Fix discount id

This commit is contained in:
John 2018-05-18 11:02:04 +02:00
parent b42c87256c
commit 3dd11e1eaf

View File

@ -1378,7 +1378,7 @@ if (empty($reshook))
// Check if discount not already affected to another invoice // Check if discount not already affected to another invoice
if ($discount->fk_facture_line > 0) if ($discount->fk_facture_line > 0)
{ {
unset($object->lines[$i]); $line->fk_remise_except = 0;
} }
} }
} }