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
@@ -747,7 +747,7 @@ Route::get('/generate/invoices', function(){
|
||||
|
||||
$postCodes = \App\Models\SegmentConstant::whereIn('reference', ['CENTER_POSTCODE', 'OUTSTATION_POSTCODE'])->get()->pluck('value');
|
||||
|
||||
if($billingAddress && in_array($deliveryAddress->postcode, $postCodes)){
|
||||
if($billingAddress && in_array($deliveryAddress->postcode, $postCodes->toArray())){
|
||||
echo 'generating...';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user