Fix: use product_type instead special_code
This commit is contained in:
parent
38d735341c
commit
c1e6d88442
@ -636,7 +636,7 @@ if (empty($reshook))
|
||||
$i = 0;
|
||||
foreach ($object->lines as $line)
|
||||
{
|
||||
if (empty($line->special_code) && $line->total_ht != 0) // Remove lines with special code
|
||||
if (empty($line->product_type >= 9) && $line->total_ht != 0) // Remove lines with product_type greater than or equal to 9
|
||||
{ // no need to create discount if amount is null
|
||||
$amount_ht[$line->tva_tx] += $line->total_ht;
|
||||
$amount_tva[$line->tva_tx] += $line->total_tva;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user