mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
auto generate invoices
This commit is contained in:
+1
-1
@@ -766,7 +766,7 @@ Route::get('/generate/invoices', function(){
|
||||
|
||||
Route::get('/invoices/approve', function(Request $request){
|
||||
// whereDoesntHave
|
||||
$invoices = Transaction::where('type', TransactionType::SHIPPING_INVOICE)->get();
|
||||
$invoices = Transaction::where('type', TransactionType::SHIPPING_INVOICE)->where('status', ApprovalStatus::PENDING_SUBMISSION)->get();
|
||||
dd($invoices);
|
||||
foreach ($invoices as $invoice) {
|
||||
$order = $invoice->owner->owner;
|
||||
|
||||
Reference in New Issue
Block a user