FIX : Rounding amount on card updating

This commit is contained in:
x 2021-03-08 11:35:59 +01:00
parent e42d590a2a
commit e087c6ffe0

4
htdocs/compta/tva/card.php Normal file → Executable file
View File

@ -590,9 +590,9 @@ 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) . '</td></tr>';
print '<tr><td>' . $langs->trans("Amount") . '</td><td>' . price($object->amount, 0, $outputlangs, 1, -1, 2, $conf->currency) . '</td></tr>';
}
// Mode of payment