Merge pull request #20269 from atm-gauthier/14.0_fix_refund_tva

FIX : in case of TVA refund, negative amount must be allowed
This commit is contained in:
Laurent Destailleur 2022-03-07 14:14:54 +01:00 committed by GitHub
commit 35e8e370b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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';