diff --git a/app/Livewire/Forms/Studio/Catalog/BottleForm.php b/app/Livewire/Forms/Studio/Catalog/BottleForm.php index 2050028..760926d 100644 --- a/app/Livewire/Forms/Studio/Catalog/BottleForm.php +++ b/app/Livewire/Forms/Studio/Catalog/BottleForm.php @@ -103,7 +103,7 @@ private function prepareSavedData(): array 'size' => $this->size, 'cost_price' => replaceCurrency($this->cost_price), 'sale_price' => replaceCurrency($this->sale_price), - 'point_per_ml' => round($this->sale_price / 100), + 'point_per_pcs' => round($this->sale_price / 100), 'description' => $this->description, ]; } diff --git a/app/Livewire/Forms/Studio/Catalog/ProductForm.php b/app/Livewire/Forms/Studio/Catalog/ProductForm.php index a9b45f7..5bf4ff9 100644 --- a/app/Livewire/Forms/Studio/Catalog/ProductForm.php +++ b/app/Livewire/Forms/Studio/Catalog/ProductForm.php @@ -113,7 +113,7 @@ private function prepareSavedData() 'sku' => $this->sku, 'cost_price' => replaceCurrency($this->cost_price), 'sale_price' => replaceCurrency($this->sale_price), - 'point_per_ml' => round($this->sale_price / 100), + 'point_per_pcs' => round($this->sale_price / 100), 'description' => $this->description, 'outlet_ids' => $this->outlet_ids, 'image' => $this->image,