From 8cb1da78fd4d237b278ed4d512c6c4f04b663cfc Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期一, 22 四月 2024 11:34:47 +0800 Subject: [PATCH] 库存调整修改 --- controllers/operation.go | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/controllers/operation.go b/controllers/operation.go index a2f7ca1..4ebdf5c 100644 --- a/controllers/operation.go +++ b/controllers/operation.go @@ -898,7 +898,7 @@ return } } else if companyName == "geruimi" { - fileUrl, err = ExportInputSelfmade(constvar.FileTemplateCategory_Selfmade, operation) + fileUrl, err = ExportInputSelfmade(constvar.FileTemplateCategory_Output, operation) if err != nil { util.ResponseFormat(c, code.RequestParamError, err.Error()) return @@ -947,9 +947,9 @@ f.SetCellValue("Sheet1", "B"+strconv.Itoa(rowIndex), v.Product.Type) f.SetCellValue("Sheet1", "C"+strconv.Itoa(rowIndex), v.Product.Unit) f.SetCellValue("Sheet1", "D"+strconv.Itoa(rowIndex), v.Amount.String()) - f.SetCellValue("Sheet1", "E"+strconv.Itoa(rowIndex), v.Product.PurchasePrice.String()) - if !v.Product.PurchasePrice.IsZero() { - ap := v.Amount.Mul(v.Product.PurchasePrice) + f.SetCellValue("Sheet1", "E"+strconv.Itoa(rowIndex), v.Product.SalePrice.String()) + if !v.Product.SalePrice.IsZero() { + ap := v.Amount.Mul(v.Product.SalePrice) totalPrice = totalPrice.Add(ap) price := ap.String() split := strings.Split(price, ".") -- Gitblit v1.8.0