feat(gods): menambahkan point_per_ml di form

This commit is contained in:
Yoga Pangestu 2025-11-11 11:21:02 +07:00
parent 33ebebbe68
commit dbce89fe37
3 changed files with 3 additions and 0 deletions

View File

@ -103,6 +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),
'description' => $this->description,
];
}

View File

@ -145,6 +145,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),
'base_notes' => $this->base_notes,
'middle_notes' => $this->middle_notes,
'top_notes' => $this->top_notes,

View File

@ -113,6 +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),
'description' => $this->description,
'outlet_ids' => $this->outlet_ids,
'image' => $this->image,