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