feat (item): update handle buying price and selling price

This commit is contained in:
dpurbosakti
2025-12-05 16:08:22 +07:00
parent 6c13b1ad51
commit 5bc3c8783e
2 changed files with 4 additions and 0 deletions
@@ -13,6 +13,8 @@ type CreateDto struct {
Uom_Code *string `json:"uom_code" validate:"maxLength=10"`
Infra_Code *string `json:"infra_code"`
Stock *int `json:"stock"`
BuyingPrice *float64 `json:"buyingPrice"`
SellingPrice *float64 `json:"sellingPrice"`
}
type ReadListDto struct {
@@ -23,4 +23,6 @@ func setData[T *e.CreateDto | *e.UpdateDto](input T, data *e.Item) {
data.Uom_Code = inputSrc.Uom_Code
data.Infra_Code = inputSrc.Infra_Code
data.Stock = inputSrc.Stock
data.BuyingPrice = inputSrc.BuyingPrice
data.SellingPrice = inputSrc.SellingPrice
}