FIX : in case of TVA refund, negative amount must be allowed

This commit is contained in:
Gauthier PC portable 024 2022-03-04 13:55:52 +01:00
parent 70a18bc15a
commit 7701ae2d19

View File

@ -83,7 +83,7 @@ if ($action == 'add_payment' || ($action == 'confirm_paiement' && $confirm == 'y
}
}
if ($amounts[key($amounts)] <= 0) {
if (empty($amounts[key($amounts)])) {
$error++;
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentities("Amount")), null, 'errors');
$action = 'create';