fix: supply.go

main
Leo 6 months ago
parent 4882e51e76
commit 32ae1fdc5f

@ -44,7 +44,7 @@ type exchange struct {
outProject string
goodsName string
unit string
productsNums int
productsNums float64
realPrice float64
remainderRealAmount float64
inOut string
@ -145,16 +145,16 @@ func getDetail(id, inOut, changeNo, inProject, outProject, note string) {
unit := v.Get("unit").String()
productsNums := v.Get("productsNums").String()
realPrice := v.Get("realPrice").String()
remainderRealAmount := v.Get("remainderRealAmount").String()
productsAmount := v.Get("productsAmount").String()
ex := new(exchange)
ex.changeNo = changeNo
ex.inProject = inProject
ex.outProject = outProject
ex.goodsName = goodsName
ex.unit = unit
ex.productsNums = cast.ToInt(productsNums)
ex.productsNums = cast.ToFloat64(productsNums)
ex.realPrice = cast.ToFloat64(realPrice)
ex.remainderRealAmount = cast.ToFloat64(remainderRealAmount)
ex.remainderRealAmount = cast.ToFloat64(productsAmount)
ex.note = note
if inOut == "in" {
ex.inOut = "调入"

Loading…
Cancel
Save