mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
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;
|
||||
|
||||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user