feat(variants): implement restoration of previously suspended variants with usable dates

This commit is contained in:
2026-09-16 09:05:21 -03:00
parent 44178d72a5
commit 3a4f6b64d2
5 changed files with 124 additions and 21 deletions

View File

@@ -97,6 +97,8 @@ class EntryService
$variants = Variant::query()
->where('catalog_item_id', $catalogItem->id)
->whereNull('sales_disabled_at')
->whereNull('replaced_by_variant_id')
->lockForUpdate()
->get();