Fix output of fields with type "real"
This commit is contained in:
parent
ebe8f27c16
commit
8e9a4e1877
@ -454,8 +454,10 @@ while ($i < min($num, $limit))
|
|||||||
$cssforfield='';
|
$cssforfield='';
|
||||||
if (in_array($val['type'], array('date','datetime','timestamp'))) $cssforfield.=($cssforfield?' ':'').'center';
|
if (in_array($val['type'], array('date','datetime','timestamp'))) $cssforfield.=($cssforfield?' ':'').'center';
|
||||||
elseif ($key == 'status') $cssforfield.=($cssforfield?' ':'').'center';
|
elseif ($key == 'status') $cssforfield.=($cssforfield?' ':'').'center';
|
||||||
|
|
||||||
if (in_array($val['type'], array('timestamp'))) $cssforfield.=($cssforfield?' ':'').'nowrap';
|
if (in_array($val['type'], array('timestamp'))) $cssforfield.=($cssforfield?' ':'').'nowrap';
|
||||||
elseif ($key == 'ref') $cssforfield.=($cssforfield?' ':'').'nowrap';
|
elseif ($key == 'ref') $cssforfield.=($cssforfield?' ':'').'nowrap';
|
||||||
|
|
||||||
if (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real'))) $cssforfield.=($cssforfield?' ':'').'right';
|
if (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real'))) $cssforfield.=($cssforfield?' ':'').'right';
|
||||||
|
|
||||||
if (! empty($arrayfields['t.'.$key]['checked']))
|
if (! empty($arrayfields['t.'.$key]['checked']))
|
||||||
|
|||||||
@ -6130,6 +6130,12 @@ abstract class CommonObject
|
|||||||
$value=price($value);
|
$value=price($value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
elseif ($type == 'real')
|
||||||
|
{
|
||||||
|
if (!empty($value)) {
|
||||||
|
$value=price($value);
|
||||||
|
}
|
||||||
|
}
|
||||||
elseif ($type == 'boolean')
|
elseif ($type == 'boolean')
|
||||||
{
|
{
|
||||||
$checked='';
|
$checked='';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user