mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
billplz audit
This commit is contained in:
+3
-3
@@ -868,7 +868,7 @@ Route::get('/invoices/delete-duplicated', function(Request $request){
|
||||
dump($order->reference . ' -no');
|
||||
}
|
||||
|
||||
// if have unverified payment
|
||||
// if have unverified payment
|
||||
// $paymentHistory = $packingList->transactions()->whereHas('transactions', function($query){
|
||||
// return $query->where('type', TransactionType::PAYMENT)->whereIn('status', [ApprovalStatus::PENDING_SUBMISSION ,ApprovalStatus::APPROVED, ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::COMPLETED, ApprovalStatus::REJECTED]);
|
||||
// })->get();
|
||||
@@ -969,7 +969,7 @@ Route::get('/billplz/audit', function (Request $request) {
|
||||
|
||||
} else {
|
||||
$totalAmount += $transaction->amount;
|
||||
echo $transaction->id." => Fraud." . $transaction->amount . " </br>";
|
||||
echo 'Order: '. $transaction->owner->owner->owner->reference . ' - Date: '.$transaction->owner->created_at->format('d-m-Y').' - Amount: '. $transaction->amount . " </br></br>";
|
||||
}
|
||||
}else{
|
||||
echo "billplz error</br>";
|
||||
@@ -977,4 +977,4 @@ Route::get('/billplz/audit', function (Request $request) {
|
||||
}
|
||||
|
||||
echo 'Total: ' . $totalAmount;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user