Skip to content

Commit

Permalink
Fix: wrong test
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Feb 4, 2018
1 parent c1e6d88 commit 8ee1186
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/compta/facture/card.php
Expand Up @@ -636,7 +636,7 @@
$i = 0;
foreach ($object->lines as $line)
{
if (empty($line->product_type >= 9) && $line->total_ht != 0) // Remove lines with product_type greater than or equal to 9
if ($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;
Expand Down

0 comments on commit 8ee1186

Please sign in to comment.