Merge pull request #24380 from rycks/13_fix_forceduedate

forceduedate is an option of the function
This commit is contained in:
Laurent Destailleur 2023-03-31 01:31:38 +02:00 committed by GitHub
commit 39dcd7c6ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -591,8 +591,6 @@ class Facture extends CommonInvoice
// We do not add link to template invoice or next invoice will be linked to all generated invoices
//$this->linked_objects['facturerec'][0] = $this->fac_rec;
$forceduedate = $this->calculate_date_lim_reglement();
// For recurring invoices, update date and number of last generation of recurring template invoice, before inserting new invoice
if ($_facrec->frequency > 0) {
dol_syslog("This is a recurring invoice so we set date_last_gen and next date_when");