From 1d642f49f7869ba78e56348dc5f3923d40016171 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 2 Mar 2021 12:37:24 +0100 Subject: [PATCH] Update facture.class.php --- htdocs/compta/facture/class/facture.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index dd081a87870..40d220ac717 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -1192,6 +1192,7 @@ class Facture extends CommonInvoice if (($object->lines[$i]->info_bits & 0x02) == 0x02) // We do not clone line of discounts { unset($object->lines[$i]); + continue; } // Bloc to update dates of service (month by month only if previously filled and similare to start and end of month) @@ -1217,9 +1218,8 @@ class Facture extends CommonInvoice $object->lines[$i]->date_end = $newLast; } } - if ($object->lines[$i]) { - $object->lines[$i]->ref_ext = ''; - }// Do not clone ref_ext + + $object->lines[$i]->ref_ext = ''; // Do not clone ref_ext } // Create clone