auto generate invoices

This commit is contained in:
Omair Saleh
2023-02-17 12:53:35 +08:00
parent a23e0b35a2
commit 2f4b568c9a
-1
View File
@@ -750,7 +750,6 @@ Route::get('/generate/invoices', function(){
$postCodes = \App\Models\SegmentConstant::whereIn('reference', ['CENTER_POSTCODE', 'OUTSTATION_POSTCODE'])->get()->pluck('value')->flatten();
dump($deliveryAddress->postcode, $postCodes->toArray());
if(!!$billingAddress && in_array($deliveryAddress->postcode, $postCodes->toArray())){
echo 'generating...';
continue;