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:
parent
749ac40fa2
commit
bf2a2b5eb3
1 changed files with 3 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue