index change number 10000
This commit is contained in:
parent
2452f9f5e7
commit
b35541a46d
15
index.php
15
index.php
@ -861,12 +861,15 @@ if (!function_exists('sales_purchases_load_logic')) {
|
|||||||
$outletJoinSql = 'LEFT JOIN outlets o ON v.outlet_id = o.id';
|
$outletJoinSql = 'LEFT JOIN outlets o ON v.outlet_id = o.id';
|
||||||
}
|
}
|
||||||
|
|
||||||
$stmt = db()->prepare("SELECT v.*, c.name as customer_name, $customerTaxSelect as customer_tax_id, c.phone as customer_phone, $outletSelectSql \
|
$invoiceSql = implode(' ', [
|
||||||
FROM $table v \
|
"SELECT v.*, c.name as customer_name, $customerTaxSelect as customer_tax_id, c.phone as customer_phone, $outletSelectSql",
|
||||||
LEFT JOIN $cust_supplier_table c ON v.$cust_supplier_col = c.id \
|
"FROM $table v",
|
||||||
$outletJoinSql\
|
"LEFT JOIN $cust_supplier_table c ON v.$cust_supplier_col = c.id",
|
||||||
WHERE $whereSql \
|
$outletJoinSql,
|
||||||
ORDER BY v.id DESC LIMIT $limit OFFSET $offset");
|
"WHERE $whereSql",
|
||||||
|
"ORDER BY v.id DESC LIMIT $limit OFFSET $offset",
|
||||||
|
]);
|
||||||
|
$stmt = db()->prepare($invoiceSql);
|
||||||
$stmt->execute($params);
|
$stmt->execute($params);
|
||||||
$data['invoices'] = $stmt->fetchAll();
|
$data['invoices'] = $stmt->fetchAll();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user