FIX : Rounding amount on card updating
This commit is contained in:
parent
7f40fe4ca8
commit
1fec98c546
2
htdocs/salaries/card.php
Normal file → Executable file
2
htdocs/salaries/card.php
Normal file → Executable file
@ -718,7 +718,7 @@ if ($id)
|
||||
print '</td></tr>';*/
|
||||
|
||||
if ($action == 'edit') {
|
||||
print '<tr><td class="fieldrequired">' . $langs->trans("Amount") . '</td><td><input name="amount" size="10" value="' . $object->amount . '"></td></tr>';
|
||||
print '<tr><td class="fieldrequired">' . $langs->trans("Amount") . '</td><td><input name="amount" size="10" value="' . price($object->amount, 0, $outputlangs, 1, -1, 2) . '"></td></tr>';
|
||||
} else {
|
||||
print '<tr><td>' . $langs->trans("Amount") . '</td><td>' . price($object->amount, 0, $outputlangs, 1, -1, -1, $conf->currency) . '</td></tr>';
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user