mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-25 07:24:21 +00:00
list yiwu to sabah or srawak orders
This commit is contained in:
@@ -32,7 +32,7 @@ final class WarehouseReferences {
|
||||
11 => self::VT_KLANG,
|
||||
12 => self::VT_KLANG,
|
||||
13 => self::VT_SABAH,
|
||||
14 => self::VT_KLANG,
|
||||
14 => self::VT_SARAWAK,
|
||||
15 => self::VT_KLANG,
|
||||
16 => self::VT_KLANG,
|
||||
];
|
||||
|
||||
@@ -135,6 +135,8 @@ Route::group(['prefix' => 'template', 'as' => 'template.'], function () {
|
||||
Route::get('/yiwu', function () {
|
||||
$orders = \App\Models\Order::whereHas('OrderRoles', function($query){
|
||||
return $query->where('role_id', \App\Classes\ValueObjects\Constants\OrderRoleTypes::ORIGIN_WAREHOUSE)->where('company_module_id', 4);
|
||||
})->whereHas('addresses', function($query){
|
||||
return $query->whereIn('state_id', [5, 13, 14]);
|
||||
})->get();
|
||||
|
||||
foreach ($orders as $order){
|
||||
|
||||
Reference in New Issue
Block a user