mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
add transaction counter
This commit is contained in:
@@ -1273,6 +1273,7 @@ Route::get('/payment-and-billing-2', function () {
|
|||||||
Route::get('/show-all-extra-payments', function () {
|
Route::get('/show-all-extra-payments', function () {
|
||||||
ini_set('memory_limit', '-1');
|
ini_set('memory_limit', '-1');
|
||||||
ini_set('max_execution_time', 0);
|
ini_set('max_execution_time', 0);
|
||||||
|
$transactionCounter = 0;
|
||||||
|
|
||||||
$invoices = Transaction::where('type', TransactionType::SHIPPING_INVOICE)
|
$invoices = Transaction::where('type', TransactionType::SHIPPING_INVOICE)
|
||||||
->where('status', ApprovalStatus::COMPLETED)
|
->where('status', ApprovalStatus::COMPLETED)
|
||||||
@@ -1302,6 +1303,7 @@ Route::get('/show-all-extra-payments', function () {
|
|||||||
if (($paidAmount <= $invoice->amount) || ($paidAmount - $invoice->amount < 0.01)) {
|
if (($paidAmount <= $invoice->amount) || ($paidAmount - $invoice->amount < 0.01)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
$transactionCounter += 1;
|
||||||
|
|
||||||
echo '<tr>';
|
echo '<tr>';
|
||||||
echo '<td>' . $invoice->type . '</td>';
|
echo '<td>' . $invoice->type . '</td>';
|
||||||
@@ -1312,6 +1314,8 @@ Route::get('/show-all-extra-payments', function () {
|
|||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
}
|
}
|
||||||
echo '</table>';
|
echo '</table>';
|
||||||
|
|
||||||
|
echo'<br> Total: ' . $transactionCounter;
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/segments', function (Request $request) {
|
Route::get('/segments', function (Request $request) {
|
||||||
|
|||||||
Reference in New Issue
Block a user