Commit 336f820
Dolicraft
Fix Dolibarr#35649 allow credit note with positive HT when TTC is zero or negative
The validation guard refused a credit note as soon as total_ht was strictly positive,
which blocked legitimate refunds of an invoice mixing a positive VAT line with a
0% VAT gift-card line (HT=+10, VAT=-10, TTC=0). Check total_ttc instead, mirroring
the symmetric guard for non credit-note invoices a few lines below, and keep the
existing error message.
Signed-off-by: Dolicraft <contact@dolicraft.com>1 parent 13f21da commit 336f820
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
415 | 417 | | |
416 | 418 | | |
417 | 419 | | |
| |||
0 commit comments