feat(entry): refine variant selection logic to exclude replaced variants and add unit tests for replacement behavior
This commit is contained in:
@@ -97,6 +97,7 @@ class EntryService
|
||||
|
||||
$variants = Variant::query()
|
||||
->where('catalog_item_id', $catalogItem->id)
|
||||
->whereNull('replaced_by_variant_id')
|
||||
->lockForUpdate()
|
||||
->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user