Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0 into vapor/development

This commit is contained in:
Edmond Lang
2025-08-06 21:34:50 +08:00
11 changed files with 213 additions and 18 deletions
@@ -13,7 +13,7 @@ class UnfinishedPaymentOrders extends Controller
public function execute(Request $request)
{
$page = (int) $request->input('page', 1);
$perPage = 5000;
$perPage = 2500;
$offset = ($page - 1) * $perPage;
$cutOffDate = $request->cut_off_date ? Carbon::parse($request->cut_off_date) : null;
@@ -126,9 +126,9 @@ function runNextBatch() {
const row = document.createElement('tr');
row.innerHTML = `
<td><a href="\${bookingUrlTemplate.replace('__ORDER_REF__', item.order_ref)}" target="_blank">\${item.order_ref}</a></td>
<td>RM \${item.booking_amount}</td>
<td>RM \${item.paid_amount}</td>
<td>RM \${item.outstanding_amount}</td>
<td>\${item.booking_amount}</td>
<td>\${item.paid_amount}</td>
<td>\${item.outstanding_amount}</td>
<td><a href="\${customerUrlTemplate.replace('__ORDER_REF__', item.customer)}" target="_blank">\${item.customer ?? '-'}</a></td>
<td>\${item.created_at}</td>
`;