From f87c0e2aeb430e3b240d14f38ef3368baafb17cd Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 23 Jan 2026 16:00:45 +0800 Subject: [PATCH] =?UTF-8?q?refactor(erp):=20=E5=B0=86=E5=BA=94=E4=BB=98?= =?UTF-8?q?=E8=B4=A6=E6=AC=BE=E6=95=B0=E9=87=8F=E5=AD=97=E6=AE=B5=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=BB=8E=E6=95=B4=E5=9E=8B=E6=94=B9=E4=B8=BA=E9=AB=98?= =?UTF-8?q?=E7=B2=BE=E5=BA=A6=E5=B0=8F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 service/erp/payable.go 中 PayableCount 字段类型为 decimal.Decimal - 修改 service/ik3cloud/payable.go 中 Count 字段类型为 decimal.Decimal - 保持其他相关金额字段的数据类型一致性 - 提高数量计算的精度和准确性 --- erp/payable.go | 2 +- ik3cloud/payable.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erp/payable.go b/erp/payable.go index f86b3fa..ff73b3d 100644 --- a/erp/payable.go +++ b/erp/payable.go @@ -84,7 +84,7 @@ type PayableProductItem struct { FactoryName string `json:"factoryName"` Name string `json:"name"` Serial string `json:"serial"` - PayableCount int64 `json:"payableCount"` + PayableCount decimal.Decimal `json:"payableCount"` AddTaxRate decimal.Decimal `json:"addTaxRate"` UnitPrice decimal.Decimal `json:"unitPrice"` ExTaxUnitPrice decimal.Decimal `json:"exTaxUnitPrice"` diff --git a/ik3cloud/payable.go b/ik3cloud/payable.go index 76964cb..49142b7 100644 --- a/ik3cloud/payable.go +++ b/ik3cloud/payable.go @@ -28,7 +28,7 @@ type PayableProductItem struct { FactoryNumber string // 工厂编码 Number string // 商品编码 Name string // 商品名称 - Count int64 // 数量 + Count decimal.Decimal // 数量 UnitPrice decimal.Decimal // 含税单价 AddTaxRate decimal.Decimal // 税率 ExTaxUnitPrice decimal.Decimal // 不含税单价