This commit is contained in:
parent
5ffcca92a6
commit
f9e42e82d5
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue