feat(erp): 添加单箱金额字段并移除清关总价字段

- 在销售产品、出货产品等多个结构体中添加 BoxAmount(单箱金额)字段
- 移除出货产品结构体中的 ClearanceAmount(清关总价)字段
- 涉及 sale/product、shipment/saleProduct、shipment/modify/saleProduct、shipment/mixed/product 等模块
This commit is contained in:
2026-10-28 09:28:37 +08:00
parent 08f987b527
commit c66dd7f963
4 changed files with 12 additions and 6 deletions

View File

@@ -37,6 +37,7 @@ type SaleProductItem struct {
CustomsDetail string `json:"customsDetail"`
BlEngName string `json:"blEngName"`
BoxCount int64 `json:"boxCount"`
BoxAmount decimal.Decimal `json:"boxAmount"`
InnerNum int64 `json:"innerNum"`
InnerBoxCount *int64 `json:"innerBoxCount"`
BoxNumUnit string `json:"boxNumUnit"`
@@ -63,7 +64,6 @@ type SaleProductItem struct {
SaleAmount decimal.Decimal `json:"saleAmount"`
CustomsPrice decimal.Decimal `json:"customsPrice"`
CustomsAmount decimal.Decimal `json:"customsAmount"`
ClearanceAmount decimal.Decimal `json:"clearanceAmount"`
FactoryName string `json:"factoryName"`
CurrencyRate decimal.Decimal `json:"currencyRate"`
Brand string `json:"brand"`
@@ -154,9 +154,9 @@ type SaleProductAdd struct {
CustomsGrossWeight decimal.Decimal // 报关毛重
TotalCustomsGrossWeight decimal.Decimal // 报关总毛重
SalePrice decimal.Decimal // 销售单价
BoxAmount decimal.Decimal // 单箱金额
CustomsPrice decimal.Decimal // 报关价格
CustomsAmount decimal.Decimal // 报关总价
ClearanceAmount decimal.Decimal // 清关总价
CustomsBrand string // 品牌
DomesticSupply string // 货源地
FactoryName string // 工厂名称
@@ -226,10 +226,10 @@ type SaleProductEdit struct {
CustomsGrossWeight decimal.Decimal // 报关毛重
TotalCustomsGrossWeight decimal.Decimal // 报关总毛重
SalePrice decimal.Decimal // 销售单价
BoxAmount decimal.Decimal // 单箱金额
CustomsBrand string // 品牌
CustomsPrice decimal.Decimal // 报关价格
CustomsAmount decimal.Decimal // 报关总价
ClearanceAmount decimal.Decimal // 清关总价
DomesticSupply string // 货源地
FactoryName string // 工厂名称
HsSerial int64 // 是否商检 1=商检 2=未商检