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:
+4
-1
@@ -739,7 +739,10 @@ Route::get('/generate/invoices', function(){
|
||||
$packingLists = (App()->make(ListsPackingLists::class))->execute(['does_not_have_transaction_type' => 1, 'type' => 2]);
|
||||
foreach ($packingLists as $packingList){
|
||||
$order = $packingList->owner;
|
||||
if(!($order instanceof Order)) echo '<span style="color: red;">failed to generate...</span>'; continue;
|
||||
if(!($order instanceof Order)) {
|
||||
echo '<span style="color: red;">failed to generate...</span>';
|
||||
continue;
|
||||
}
|
||||
|
||||
$companyModule = $order->companyModule;
|
||||
$billingAddress = $companyModule->addresses()->where('type', \App\Classes\ValueObjects\Constants\AddressType::BILLING)->first();
|
||||
|
||||
Reference in New Issue
Block a user