From ee7f3e6211c030f5c31459035f46c55d36a6f66d Mon Sep 17 00:00:00 2001 From: kanade Date: Tue, 13 May 2025 11:51:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(shipment):=20=E6=B7=BB=E5=8A=A0=E9=87=87?= =?UTF-8?q?=E8=B4=AD=E5=8D=95=E4=BB=B7=E5=92=8C=E9=80=80=E7=A8=8E=E7=8E=87?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 CustomsProductItem 结构中添加了 PurchasePrice 和 MinusTaxRate 字段- PurchasePrice 表示采购单价,用于记录商品的采购成本- MinusTaxRate 表示退税率,用于计算出口退税金额 --- erp/bean/shipment.go | 60 +++++++++++++++++++++++--------------------- 1 file changed, 31 insertions(+), 29 deletions(-) diff --git a/erp/bean/shipment.go b/erp/bean/shipment.go index de5fcc0..3f646c0 100644 --- a/erp/bean/shipment.go +++ b/erp/bean/shipment.go @@ -11,33 +11,35 @@ type ReplyCustoms struct { } type CustomsProductItem struct { - Index int `json:"index" label:"序号"` // 序号 - Serial string `json:"serial" label:"货号"` // 货号 - CustomsName string `json:"customsName" label:"中文报关名称"` // 中文报关名称 - ShipmentCount int64 `json:"shipmentCount" label:"出运数量"` // 出运数量 - SalePrice decimal.Decimal `json:"salePrice" label:"销售单价"` // 销售单价 - SaleAmount decimal.Decimal `json:"saleAmount" label:"销售金额"` // 销售金额 - CustomsPrice decimal.Decimal `json:"customsPrice" label:"报关单价"` // 报关单价 - CustomsAmount decimal.Decimal `json:"customsAmount" label:"报关金额"` // 报关金额 - AdjustAmount decimal.Decimal `json:"adjustAmount" label:"调整金额"` // 调整金额 - RealCustomsPrice decimal.Decimal `json:"realCustomsPrice" label:"真实报关单价"` // 真实报关单价 - RealCustomsAmount decimal.Decimal `json:"realCustomsAmount" label:"真实报关金额"` // 真实报关金额 - Name string `json:"name" label:"中文品名"` // 中文品名 - EngName string `json:"engName" label:"英文品名"` // 英文品名 - CustomsSerial string `json:"customsSerial" label:"海关编码"` // 海关编码 - CustomsMeasureUnit string `json:"customsMeasureUnit" label:"报关单位"` // 报关单位 - CustomsInvoiceUnit string `json:"customsInvoiceUnit" label:"开票单位"` // 开票单位 - CustomsDetail string `json:"customsDetail" label:"申报要素"` // 申报要素 - ShipmentCountUnit string `json:"shipmentCountUnit" label:"数量单位"` // 数量单位 - OuterBoxCount int64 `json:"outerBoxCount" label:"箱数"` // 箱数 - TotalVolume decimal.Decimal `json:"totalVolume" label:"总体积"` // 总体积 - TotalGrossWeight decimal.Decimal `json:"totalGrossWeight" label:"总毛重"` // 总毛重 - TotalNetWeight decimal.Decimal `json:"totalNetWeight" label:"总净重"` // 总净重 - DomesticSupply string `json:"domesticSupply" label:"境内货源地"` // 境内货源地 - TaxExemption string `json:"taxExemption" label:"征免"` // 征免 - ContainerNumber string `json:"containerNumber" label:"箱号"` // 箱号 - SealNumber string `json:"sealNumber" label:"封号"` // 封号 - Remark string `json:"remark" label:"备注"` // 备注 - ShipmentProductId int64 `json:"shipmentProductId" label:"产品id"` // 产品id - ShipmentGiftId int64 `json:"shipmentGiftId" label:"赠品id"` // 赠品id + Index int `json:"index" label:"序号"` // 序号 + Serial string `json:"serial" label:"货号"` // 货号 + CustomsName string `json:"customsName" label:"中文报关名称"` // 中文报关名称 + ShipmentCount int64 `json:"shipmentCount" label:"出运数量"` // 出运数量 + SalePrice decimal.Decimal `json:"salePrice" label:"销售单价"` // 销售单价 + SaleAmount decimal.Decimal `json:"saleAmount" label:"销售金额"` // 销售金额 + CustomsPrice decimal.Decimal `json:"customsPrice" label:"报关单价"` // 报关单价 + CustomsAmount decimal.Decimal `json:"customsAmount" label:"报关金额"` // 报关金额 + AdjustAmount decimal.Decimal `json:"adjustAmount" label:"调整金额"` // 调整金额 + RealCustomsPrice decimal.Decimal `json:"realCustomsPrice" label:"真实报关单价"` // 真实报关单价 + RealCustomsAmount decimal.Decimal `json:"realCustomsAmount" label:"真实报关金额"` // 真实报关金额 + Name string `json:"name" label:"中文品名"` // 中文品名 + EngName string `json:"engName" label:"英文品名"` // 英文品名 + CustomsSerial string `json:"customsSerial" label:"海关编码"` // 海关编码 + CustomsMeasureUnit string `json:"customsMeasureUnit" label:"报关单位"` // 报关单位 + CustomsInvoiceUnit string `json:"customsInvoiceUnit" label:"开票单位"` // 开票单位 + CustomsDetail string `json:"customsDetail" label:"申报要素"` // 申报要素 + ShipmentCountUnit string `json:"shipmentCountUnit" label:"数量单位"` // 数量单位 + OuterBoxCount int64 `json:"outerBoxCount" label:"箱数"` // 箱数 + TotalVolume decimal.Decimal `json:"totalVolume" label:"总体积"` // 总体积 + TotalGrossWeight decimal.Decimal `json:"totalGrossWeight" label:"总毛重"` // 总毛重 + TotalNetWeight decimal.Decimal `json:"totalNetWeight" label:"总净重"` // 总净重 + DomesticSupply string `json:"domesticSupply" label:"境内货源地"` // 境内货源地 + TaxExemption string `json:"taxExemption" label:"征免"` // 征免 + ContainerNumber string `json:"containerNumber" label:"箱号"` // 箱号 + SealNumber string `json:"sealNumber" label:"封号"` // 封号 + Remark string `json:"remark" label:"备注"` // 备注 + ShipmentProductId int64 `json:"shipmentProductId" label:"产品id"` // 产品id + ShipmentGiftId int64 `json:"shipmentGiftId" label:"赠品id"` // 赠品id + PurchasePrice decimal.Decimal `json:"purchasePrice" label:"采购单价"` // 采购单价 + MinusTaxRate *decimal.Decimal `json:"minusTaxRate" label:"退税率"` // 退税率 }