chore(purchase): mengubah params untuk add barang jadi menggunakan bahasa inggris
This commit is contained in:
parent
08eb7e3076
commit
100aff8403
@ -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);
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
autocomplete="off" x-mask:dynamic="$money($input, ',')" />
|
||||
|
||||
<div class="flex justify-end">
|
||||
<flux:button variant="primary" color="zinc" wire:click="addItem('parfum')">
|
||||
<flux:button variant="primary" color="zinc" wire:click="addItem('perfume')">
|
||||
Tambah
|
||||
</flux:button>
|
||||
</div>
|
||||
@ -83,7 +83,7 @@
|
||||
autocomplete="off" x-mask:dynamic="$money($input, ',')" />
|
||||
|
||||
<div class="flex justify-end">
|
||||
<flux:button variant="primary" color="zinc" wire:click="addItem('produk')">
|
||||
<flux:button variant="primary" color="zinc" wire:click="addItem('product')">
|
||||
Tambah
|
||||
</flux:button>
|
||||
</div>
|
||||
@ -101,7 +101,7 @@
|
||||
x-mask:dynamic="$money($input, ',')" />
|
||||
|
||||
<div class="flex justify-end">
|
||||
<flux:button variant="primary" color="zinc" wire:click="addItem('botol')">
|
||||
<flux:button variant="primary" color="zinc" wire:click="addItem('bottle')">
|
||||
Tambah
|
||||
</flux:button>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user