refactor(erp): 将应付账款数量字段类型从整型改为高精度小数
- 修改 service/erp/payable.go 中 PayableCount 字段类型为 decimal.Decimal - 修改 service/ik3cloud/payable.go 中 Count 字段类型为 decimal.Decimal - 保持其他相关金额字段的数据类型一致性 - 提高数量计算的精度和准确性
This commit is contained in:
@@ -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"`
|
||||
|
||||
@@ -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 // 不含税单价
|
||||
|
||||
Reference in New Issue
Block a user