Update facture.class.php

This commit is contained in:
Laurent Destailleur 2021-03-02 12:37:24 +01:00 committed by GitHub
parent 593ae78761
commit 1d642f49f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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