From 0e731c4e93a1a8a29aceb2834741e276006e2e1b Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期五, 19 四月 2024 15:45:42 +0800 Subject: [PATCH] 嘉联打印使用销售价格 --- controllers/operation.go | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controllers/operation.go b/controllers/operation.go index a2f7ca1..362fd2f 100644 --- a/controllers/operation.go +++ b/controllers/operation.go @@ -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