mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
order export refund by created at
This commit is contained in:
+3
-3
@@ -463,7 +463,7 @@ Route::get('/approve_refunds', function(Request $request){
|
||||
echo '<table>';
|
||||
echo '<tr>';
|
||||
echo '<td>No.</td>';
|
||||
echo '<td>Updated At</td>';
|
||||
echo '<td>Created At</td>';
|
||||
echo '<td>Marking</td>';
|
||||
echo '<td>Payment Method</td>';
|
||||
echo '<td colspan="2">Refunded Amount</td>';
|
||||
@@ -478,7 +478,7 @@ Route::get('/approve_refunds', function(Request $request){
|
||||
echo '<td>Bank Holder Name</td>';
|
||||
echo '<td>Note Remark</td>';
|
||||
echo '</tr>';
|
||||
foreach ($payments->orderBy('updated_at', 'DESC')->get() as $index => $payment){
|
||||
foreach ($payments->orderBy('created_at', 'DESC')->get() as $index => $payment){
|
||||
$booking = $payment->owner;
|
||||
$original_refunds = floatval((App()->make(CalculatesBookingRefundAmount::class))->calculateRefundAmount($payment, $booking->fix_currency_id));
|
||||
$refunds = $original_refunds / $payment->currency_rate;
|
||||
@@ -511,7 +511,7 @@ Route::get('/approve_refunds', function(Request $request){
|
||||
|
||||
echo '<tr>';
|
||||
echo '<td>'.($index + 1).'.</td>';
|
||||
echo '<td>'.$payment->updated_at->format('d-M-y').'</td>';
|
||||
echo '<td>'.$payment->created_at->format('d-M-y').'</td>';
|
||||
echo '<td>'.$booking->marking.'</td>';
|
||||
echo '<td>'.\App\Classes\ValueObjects\Constants\PaymentMethodType::PAYMENT_METHODS_ID[$payment->payment_method].'</td>';
|
||||
echo '<td>'.$payment->currency->short_code.'</td>';
|
||||
|
||||
Reference in New Issue
Block a user