mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
audit payments bankslips
This commit is contained in:
+3
-3
@@ -430,16 +430,16 @@ Route::get('/po/manual/fix', function(){
|
||||
|
||||
Route::get('/payment/check', function(){
|
||||
|
||||
$transactions = Transaction::where('type', TransactionType::PAYMENT)->where('payment_method', \App\Classes\ValueObjects\Constants\PaymentMethodType::CASH)->whereDate('created_at', '=', Carbon::today())->whereIn('status', [ApprovalStatus::PENDING_VERIFICATION, ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])->get();
|
||||
$transactions = Transaction::where('type', TransactionType::BILL)->whereDate('created_at', '=', Carbon::today())->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED])->get();
|
||||
|
||||
foreach ($transactions as $transaction){
|
||||
$documents = $transaction->documents;
|
||||
if(!count($documents)){
|
||||
echo $transaction->owner->marking.'<br><br>';
|
||||
echo $transaction->owner->owner->marking.'<br><br>';
|
||||
continue;
|
||||
}
|
||||
|
||||
echo $transaction->owner->marking.'. payment: '.$transaction->updated_at.' -> document: '.$documents[0]->created_at.'<br>';
|
||||
echo $transaction->owner->owner->marking.'. payment: '.$transaction->updated_at.' -> document: '.$documents[0]->created_at.'<br>';
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user