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"`
|
||||
|
||||
Reference in New Issue
Block a user