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:
commit
35e8e370b1
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user