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,