From bf2a2b5eb3ff968e258c4f2ef57061a533cc4c0c Mon Sep 17 00:00:00 2001 From: atm-lena <52402938+atm-lena@users.noreply.github.com> Date: Sat, 15 Mar 2025 15:30:09 +0100 Subject: [PATCH] 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 Co-authored-by: Laurent Destailleur --- htdocs/fourn/class/fournisseur.facture-rec.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/fourn/class/fournisseur.facture-rec.class.php b/htdocs/fourn/class/fournisseur.facture-rec.class.php index ca8000c2dc9..19476de135f 100644 --- a/htdocs/fourn/class/fournisseur.facture-rec.class.php +++ b/htdocs/fourn/class/fournisseur.facture-rec.class.php @@ -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,