refactor: update storePriceTypeOptions to exclude HARGA_MODAL from available price types for improved pricing logic
This commit is contained in:
parent
26d4794489
commit
ad73e8237c
@ -118,7 +118,7 @@ public function marketingOptions(): array
|
|||||||
public function storePriceTypeOptions(): array
|
public function storePriceTypeOptions(): array
|
||||||
{
|
{
|
||||||
return collect(PriceType::cases())
|
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) => [
|
->map(fn (PriceType $type) => [
|
||||||
'value' => $type->value,
|
'value' => $type->value,
|
||||||
'label' => $type->label(),
|
'label' => $type->label(),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user