refactor: update storePriceTypeOptions to exclude HARGA_MODAL from available price types for improved pricing logic

This commit is contained in:
Yoga Pangestu 2026-06-21 16:06:14 +07:00
parent 26d4794489
commit ad73e8237c

View File

@ -118,7 +118,7 @@ public function marketingOptions(): array
public function storePriceTypeOptions(): array
{
return collect(PriceType::cases())
->reject(fn (PriceType $type) => in_array($type, [PriceType::SHOPEE, PriceType::TIKTOK], true))
->reject(fn (PriceType $type) => in_array($type, [PriceType::HARGA_MODAL, PriceType::SHOPEE, PriceType::TIKTOK], true))
->map(fn (PriceType $type) => [
'value' => $type->value,
'label' => $type->label(),