Merge pull request #195 from dikstub-rssa/fix/anything-moko
feat (item): update handle buying price and selling price
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user