New Tests
This commit is contained in:
@@ -42,10 +42,17 @@ class PlatformSeeder extends Seeder
|
||||
]
|
||||
);
|
||||
|
||||
$warehouse = Warehouse::updateOrCreate(
|
||||
['company_id' => $company->id, 'code' => 'MPBA-MAIN'],
|
||||
['name' => 'MPBA Main Warehouse', 'status' => 'active', 'timezone' => 'Europe/London']
|
||||
);
|
||||
$warehouse = Warehouse::firstOrNew([
|
||||
'company_id' => $company->id,
|
||||
'code' => 'MPBA-MAIN',
|
||||
]);
|
||||
|
||||
$warehouse->forceFill([
|
||||
'uuid' => $warehouse->uuid ?: (string) Str::uuid(),
|
||||
'name' => 'MPBA Main Warehouse',
|
||||
'status' => 'active',
|
||||
'timezone' => 'Europe/London',
|
||||
])->save();
|
||||
|
||||
WarehouseValidationRule::updateOrCreate(
|
||||
['warehouse_id' => $warehouse->id, 'rule_key' => 'stock.location.required'],
|
||||
|
||||
Reference in New Issue
Block a user