mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
This commit is contained in:
committed by
GitHub
parent
5ffcca92a6
commit
f9e42e82d5
@@ -541,7 +541,7 @@ class Paiement extends CommonObject
|
||||
// Loop on each vat rate
|
||||
$i = 0;
|
||||
foreach ($invoice->lines as $line) {
|
||||
if ($line->total_ht != 0) { // no need to create discount if amount is null
|
||||
if ($line->product_type != 9 && $line->total_ht != 0) { // no need to create discount if amount is null or is special product
|
||||
if (!array_key_exists($line->tva_tx, $amount_ht)) {
|
||||
$amount_ht[$line->tva_tx] = 0.0;
|
||||
$amount_tva[$line->tva_tx] = 0.0;
|
||||
|
||||
Reference in New Issue
Block a user