mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-05 09:08:09 +01:00
PERF: hidden var to limit list of invoices for credit note list (#33839)
* PERF: hidden var to limit list of invoices for credit note list * Update facture.class.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -5244,6 +5244,11 @@ class Facture extends CommonInvoice
|
||||
}
|
||||
$sql .= " ORDER BY f.ref";
|
||||
|
||||
if (getDolGlobalInt('LIST_OF_QUALIFIED_INVOICES_LIMIT_DEFINED') > 0) {
|
||||
$sql .= " DESC"; //order by
|
||||
$sql .= " LIMIT " . getDolGlobalInt('LIST_OF_QUALIFIED_INVOICES_LIMIT_DEFINED');
|
||||
}
|
||||
|
||||
dol_syslog(get_class($this)."::list_qualified_avoir_invoices", LOG_DEBUG);
|
||||
$resql = $this->db->query($sql);
|
||||
if ($resql) {
|
||||
|
||||
Reference in New Issue
Block a user