diff --git a/app/Traits/Purchase/WithAddItem.php b/app/Traits/Purchase/WithAddItem.php index 5664b73..761d4ba 100644 --- a/app/Traits/Purchase/WithAddItem.php +++ b/app/Traits/Purchase/WithAddItem.php @@ -13,19 +13,19 @@ trait WithAddItem public function addItem(string $type) { switch ($type) { - case 'parfum': + case 'perfume': $model = Perfume::class; $id = $this->form->perfume_id; $quantity = replaceCurrency($this->form->quantity_perfume); break; - case 'produk': + case 'product': $model = Product::class; $id = $this->form->product_id; $quantity = replaceCurrency($this->form->quantity_product); break; - case 'botol': + case 'bottle': $model = Bottle::class; $id = $this->form->bottle_id; $quantity = replaceCurrency($this->form->quantity_bottle); diff --git a/resources/views/livewire/studio/manage/purchase/form.blade.php b/resources/views/livewire/studio/manage/purchase/form.blade.php index 58f1c5f..2220cf4 100644 --- a/resources/views/livewire/studio/manage/purchase/form.blade.php +++ b/resources/views/livewire/studio/manage/purchase/form.blade.php @@ -66,7 +66,7 @@ autocomplete="off" x-mask:dynamic="$money($input, ',')" />