From ddb8b406a0a99aa26bbcd64a718d79c237c23816 Mon Sep 17 00:00:00 2001 From: jyhere Date: Thu, 30 Dec 2021 10:17:03 +0100 Subject: [PATCH] FIx : addline() $type default value is misleading It should refer to a Product type, not an Invoice type. --- htdocs/compta/facture/class/facture.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index dfd380e047c..0436c7e9420 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -3147,7 +3147,7 @@ class Facture extends CommonInvoice $fk_remise_except = '', $price_base_type = 'HT', $pu_ttc = 0, - $type = self::TYPE_STANDARD, + $type = Product::TYPE_PRODUCT, $rang = -1, $special_code = 0, $origin = '',