Fix: remove lines with special code when convert to reduc
This commit is contained in:
parent
47d0b6583e
commit
2147bd23e6
@ -611,7 +611,7 @@ if (empty($reshook))
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($object->lines as $line)
|
foreach ($object->lines as $line)
|
||||||
{
|
{
|
||||||
if ($line->total_ht!=0)
|
if (empty($line->special_code) && $line->total_ht != 0) // Remove lines with special code
|
||||||
{ // no need to create discount if amount is null
|
{ // no need to create discount if amount is null
|
||||||
$amount_ht[$line->tva_tx] += $line->total_ht;
|
$amount_ht[$line->tva_tx] += $line->total_ht;
|
||||||
$amount_tva[$line->tva_tx] += $line->total_tva;
|
$amount_tva[$line->tva_tx] += $line->total_tva;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user