check on type replacement #8028
This commit is contained in:
parent
4874d08062
commit
53ac13c792
@ -540,7 +540,7 @@ class Facture extends CommonInvoice
|
|||||||
|
|
||||||
$newinvoiceline->fk_parent_line=$fk_parent_line;
|
$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 = new DiscountAbsolute($this->db);
|
||||||
$discount->fetch($newinvoiceline->fk_remise_except);
|
$discount->fetch($newinvoiceline->fk_remise_except);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user