Hi,

I am trying to display product book value in a subpanel. The book_value field of Product is for some reason of 'decimal' type in 5.5. It is displayed as currency in Detail view, but I can't get it to format as currency in list view and in a subpanel.

I have overriden vardefs as follows:

$dictionary['Product']['fields']['book_value'] = array (
'name' => 'book_value',
'vname' => 'LBL_BOOK_VALUE',
'type' => 'currency',
'required' => false,
'reportable' => true,
'audited' => true,
);

so now the generated $subpanel_layout['list_fields'] contains the following:

'book_value' =>
array (
'type' => 'currency',
'vname' => 'LBL_BOOK_VALUE',
'currency_format' => true,
'width' => '10%',
'default' => true,
),

which is identical to what it has for list_price - and yet list price is displayed as currency, and book_price as a decimal of the form '750.000000'.

Please help!