Merge pull request #195 from dikstub-rssa/fix/anything-moko

feat (item): update handle buying price and selling price
This commit is contained in:
Dwi Atmoko Purbo Sakti
2025-12-05 16:08:51 +07:00
committed by GitHub
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
}