check on type replacement #8028

This commit is contained in:
De Coninck Laurent 2018-01-23 18:03:29 +01:00
parent 4874d08062
commit 53ac13c792

View File

@ -540,7 +540,7 @@ class Facture extends CommonInvoice
$newinvoiceline->fk_parent_line=$fk_parent_line;
if($newinvoiceline->fk_remise_except){
if($this->type === Facture::TYPE_REPLACEMENT && $newinvoiceline->fk_remise_except){
$discount = new DiscountAbsolute($this->db);
$discount->fetch($newinvoiceline->fk_remise_except);