feat (item): update handle buying price and selling price
This commit is contained in:
No files matched your search
@@ -13,6 +13,8 @@ type CreateDto struct {
|
|||||||
Uom_Code *string `json:"uom_code" validate:"maxLength=10"`
|
Uom_Code *string `json:"uom_code" validate:"maxLength=10"`
|
||||||
Infra_Code *string `json:"infra_code"`
|
Infra_Code *string `json:"infra_code"`
|
||||||
Stock *int `json:"stock"`
|
Stock *int `json:"stock"`
|
||||||
|
BuyingPrice *float64 `json:"buyingPrice"`
|
||||||
|
SellingPrice *float64 `json:"sellingPrice"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReadListDto struct {
|
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.Uom_Code = inputSrc.Uom_Code
|
||||||
data.Infra_Code = inputSrc.Infra_Code
|
data.Infra_Code = inputSrc.Infra_Code
|
||||||
data.Stock = inputSrc.Stock
|
data.Stock = inputSrc.Stock
|
||||||
|
data.BuyingPrice = inputSrc.BuyingPrice
|
||||||
|
data.SellingPrice = inputSrc.SellingPrice
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user