refactor(inventory): update stock validation rules and enforce stock_difference requirement
This commit is contained in:
@@ -97,6 +97,8 @@ class AccommodationControllerTest extends TestCase
|
||||
|
||||
$updated = $this->variantPayload('Casa Rodante Premium', 'Con electricidad', 15, 50000);
|
||||
$updated['id'] = $variantId;
|
||||
unset($updated['stock']);
|
||||
$updated['stock_difference'] = -5;
|
||||
|
||||
$this->postJson('/api/v1/adminapp/tenant/accommodations', [
|
||||
'variants' => [
|
||||
|
||||
Reference in New Issue
Block a user