mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
dubug completed bookings with unapproved po's
This commit is contained in:
+1
-5
@@ -78,11 +78,7 @@ Route::get('/test', function () {
|
||||
$query->where('type', '=', \App\Classes\ValueObjects\Constants\TransactionType::PURCHASE_ORDER)->where('status', '!=', \App\Classes\ValueObjects\Constants\ApprovalStatus::APPROVED);
|
||||
})->get();
|
||||
|
||||
foreach ($bookings as $booking){
|
||||
$modal = $booking->transactions()->where('type', '=', \App\Classes\ValueObjects\Constants\TransactionType::PURCHASE_ORDER)->where('status', '!=', \App\Classes\ValueObjects\Constants\ApprovalStatus::APPROVED)->first();
|
||||
$modal->status = \App\Classes\ValueObjects\Constants\ApprovalStatus::APPROVED;
|
||||
$modal->save();
|
||||
}
|
||||
dd($bookings);
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user