From 51baf26dcce48feff0cf719641f27bc1f141ada4 Mon Sep 17 00:00:00 2001 From: chenlin Date: Fri, 20 Sep 2024 15:31:04 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BA=A7=E5=93=81=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E6=B1=87=E6=80=BB=EF=BC=88=E6=8C=89=E9=97=A8=E5=BA=97=EF=BC=89?= =?UTF-8?q?=E6=80=BB=E9=87=91=E9=A2=9D=E5=9B=9B=E8=88=8D=E4=BA=94=E5=85=A5?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/models/inventory_report.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/admin/models/inventory_report.go b/app/admin/models/inventory_report.go index 1640e61..a1425d8 100644 --- a/app/admin/models/inventory_report.go +++ b/app/admin/models/inventory_report.go @@ -388,6 +388,7 @@ func (m *InventoryReportByProductReq) ReportByProductList(c *gin.Context) (*Inve resp.TotalEffectiveAmount = sumData.TotalEffectiveAmount resp.TotalTransferAmount = sumData.TotalTransferAmount resp.TotalAmount = resp.TotalEffectiveAmount + resp.TotalTransferAmount + resp.TotalAmount = math.Round(resp.TotalAmount*100) / 100 resp.Total = uint32(len(reportList)) resp.List = reportList