adjust calculate total price marketing ayam pullet

This commit is contained in:
giovanni
2026-05-12 19:55:06 +07:00
parent a04ae14271
commit eac671fa80
2 changed files with 17 additions and 10 deletions
@@ -26,6 +26,7 @@ type CreateMarketingProduct struct {
UnitPrice float64 `json:"unit_price" validate:"required,gt=0"`
Qty float64 `json:"qty" validate:"required,gt=0"`
AvgWeight float64 `json:"avg_weight" validate:"omitempty,gt=0"`
TotalPrice *float64 `json:"total_price" validate:"omitempty,gt=0"`
}
type Update struct {