Add hidden conf : NB_REC_FACT_GEN_BY_CALL (#33473)

* Add hidden conf : NB_REC_FACT_GEN_BY_CALL

* Update fournisseur.facture-rec.class.php

---------

Co-authored-by: atm-lena <lena.papazian@atm-consulting.fr>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
atm-lena
2025-03-15 15:30:09 +01:00
committed by GitHub
parent 749ac40fa2
commit bf2a2b5eb3

View File

@@ -1374,6 +1374,9 @@ class FactureFournisseurRec extends CommonInvoice
$sql .= ' AND rowid = '. (int) $restrictioninvoiceid;
}
$sql .= $this->db->order('entity', 'ASC');
if (getDolGlobalInt('NB_REC_FACT_GEN_BY_CALL')) {
$sql .= $this->db->plimit(getDolGlobalInt('NB_REC_FACT_GEN_BY_CALL'));
}
//print $sql;exit;
$parameters = array(
'restrictioninvoiceid' => $restrictioninvoiceid,