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

@@ -54,6 +54,7 @@ type ProductListItem struct {
SaleCount int64 `json:"saleCount"`
SaleAmount decimal.Decimal `json:"saleAmount"`
BoxCount int64 `json:"boxCount"`
BoxAmount decimal.Decimal `json:"boxAmount"`
QuotePrice decimal.Decimal `json:"quotePrice"`
QuoteFactorySerial string `json:"quoteFactorySerial"`
QuoteFactoryId int64 `json:"quoteFactoryId"`
@@ -113,6 +114,7 @@ type ProductItem struct {
SaleCount int64 `json:"saleCount"`
SaleAmount decimal.Decimal `json:"saleAmount"`
BoxCount int64 `json:"boxCount"`
BoxAmount decimal.Decimal `json:"boxAmount"`
QuotePrice decimal.Decimal `json:"quotePrice"`
QuoteFactorySerial string `json:"quoteFactorySerial"`
QuoteFactoryId int64 `json:"quoteFactoryId"`
@@ -177,6 +179,7 @@ type ProductAdd struct {
PackageWeight decimal.Decimal // 包装重量
Sort int64 // 排序
SaleCount int64 // 销售数量/合同数量
BoxAmount decimal.Decimal // 单箱金额(手填)
Packages []ProductPackage // 包装
Customs ProductCustoms // 海关
Quote ProductQuote // 工厂报价
@@ -369,6 +372,7 @@ type ProductEdit struct {
Weight *decimal.Decimal // 重量
Texture string // 材质
SalePrice decimal.Decimal // 销售单价
BoxAmount decimal.Decimal // 单箱金额(手填)
BanFlag int64 // 禁用标记 1=禁用,2=可用
Mold int64 // 组成类型 1=单件 2=套件
MoldCount int64 // 子组件数量
@@ -405,6 +409,7 @@ type MultiData struct {
QuotePrice decimal.Decimal // 采购单价
SalePrice decimal.Decimal // 销售单价
SaleCount int64 // 销售数量
BoxAmount decimal.Decimal // 单箱金额(手填)
Info string // 备注
}