mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
debug payment not showing issue
This commit is contained in:
@@ -866,3 +866,55 @@ Route::get('/invoice/{marking}/{started_at}/{ended_at}/fix', function($marking,
|
||||
}
|
||||
);
|
||||
})->name('invoice.fix.byCustomerMarking');
|
||||
|
||||
Route::get('/transfer/{marking}/payment-details', function ($marking) {
|
||||
$booking = Booking::where('marking', $marking)->first();
|
||||
|
||||
$transactions = $booking->transactions()->withTrashed()->get();
|
||||
|
||||
$statusLabels = [
|
||||
0 => 'PAYMENT_ATTEMPT',
|
||||
1 => 'PAYMENT',
|
||||
2 => 'INVOICE',
|
||||
3 => 'BILL',
|
||||
4 => 'PROFORMA',
|
||||
5 => 'TOP_UP',
|
||||
6 => 'REFUND',
|
||||
7 => 'PURCHASE_ORDER',
|
||||
8 => 'SUPPLIER_DELIVER',
|
||||
9 => 'CREDIT_NOTE',
|
||||
10 => 'WITHDRAW',
|
||||
11 => 'DEBIT_NOTE',
|
||||
12 => 'TRANSFER_FEE',
|
||||
13 => 'CASH_BACK',
|
||||
];
|
||||
|
||||
$ApprovalStatus = ApprovalStatus::APPROVAL_STATUS_ID;
|
||||
|
||||
echo '<table border="1" width="100%">';
|
||||
echo '<thead>';
|
||||
echo '<tr>';
|
||||
echo '<th>ID</th>';
|
||||
echo '<th>Amount</th>';
|
||||
echo '<th>Type</th>';
|
||||
echo '<th>Status</th>';
|
||||
echo '<th>Created At</th>';
|
||||
echo '<th>Deleted At</th>';
|
||||
echo '</tr>';
|
||||
echo '</thead>';
|
||||
echo '<tbody>';
|
||||
|
||||
foreach ($transactions as $transaction) {
|
||||
echo '<tr>';
|
||||
echo '<td>' . $transaction->id . '</td>';
|
||||
echo '<td>' . $transaction->amount . '</td>';
|
||||
echo '<td>' . $statusLabels[$transaction->type] . '</td>';
|
||||
echo '<td>' . $ApprovalStatus [$transaction->status] . '</td>';
|
||||
echo '<td>' . $transaction->created_at . '</td>';
|
||||
echo '<td>' . $transaction->deleted_at . '</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
|
||||
echo '</tbody>';
|
||||
echo '</table>';
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user