feat(erp): 添加应付账款海关产品信息字段

- 在 ReplyPayableInfo 结构体中添加 CustomsProducts 字段
- 新增 PayableCustomsProductItem 结构体定义
- 为海关产品项添加工厂名称、报关单号、报关名称等字段
- 包含报关发票单位、实际报关发票单位、发票数量等信息
- 添加金额字段用于海关产品项的金额计算
This commit is contained in:
2026-06-01 11:54:53 +08:00
parent 120a60eac0
commit ba884153d0

View File

@@ -60,24 +60,25 @@ func (p *payable) List(ctx context.Context, args ArgsPayableList) (reply ReplyPa
} }
type ReplyPayableInfo struct { type ReplyPayableInfo struct {
Id int64 `json:"id"` Id int64 `json:"id"`
PayableSerial string `json:"payableSerial"` PayableSerial string `json:"payableSerial"`
AccountingSerial string `json:"accountingSerial"` AccountingSerial string `json:"accountingSerial"`
InvoiceSerial string `json:"invoiceSerial"` InvoiceSerial string `json:"invoiceSerial"`
Amount decimal.Decimal `json:"amount"` Amount decimal.Decimal `json:"amount"`
Currency string `json:"currency"` Currency string `json:"currency"`
CurrencyName string `json:"currencyName"` CurrencyName string `json:"currencyName"`
CurrencyRate decimal.Decimal `json:"currencyRate"` CurrencyRate decimal.Decimal `json:"currencyRate"`
CurrencySymbol string `json:"currencySymbol"` CurrencySymbol string `json:"currencySymbol"`
PurchaseStaffId int64 `json:"purchaseStaffId"` PurchaseStaffId int64 `json:"purchaseStaffId"`
IsConfirm int64 `json:"isConfirm"` IsConfirm int64 `json:"isConfirm"`
Ik3cloudStatus int64 `json:"ik3CloudStatus"` Ik3cloudStatus int64 `json:"ik3CloudStatus"`
Ik3cloudErrMsg string `json:"ik3CloudErrMsg"` Ik3cloudErrMsg string `json:"ik3CloudErrMsg"`
Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"` Ik3cloudUpdatedAt *time.Time `json:"ik3CloudUpdatedAt"`
CreatedAt *time.Time `json:"createdAt"` CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"` UpdatedAt *time.Time `json:"updatedAt"`
Products []PayableProductItem `json:"products"` Products []PayableProductItem `json:"products"`
Costs []PayableCostItem `json:"costs"` Costs []PayableCostItem `json:"costs"`
CustomsProducts []PayableCustomsProductItem `json:"customsProducts"`
} }
type PayableProductItem struct { type PayableProductItem struct {
@@ -96,6 +97,17 @@ type PayableProductItem struct {
ExTaxUnitAmount decimal.Decimal `json:"exTaxUnitAmount"` ExTaxUnitAmount decimal.Decimal `json:"exTaxUnitAmount"`
TaxAmount decimal.Decimal `json:"taxAmount"` TaxAmount decimal.Decimal `json:"taxAmount"`
} }
type PayableCustomsProductItem struct {
Id int64 `json:"id"`
FactoryName string `json:"factoryName"`
CustomsSerial string `json:"customsSerial"`
CustomsName string `json:"customsName"`
CustomsInvoiceUnit string `json:"customsInvoiceUnit"`
CustomsUnit string `json:"customsUnit"`
RealCustomsInvoiceUnit string `json:"realCustomsInvoiceUnit"`
InvoiceCount decimal.Decimal `json:"invoiceCount"`
Amount decimal.Decimal `json:"amount"`
}
type PayableCostItem struct { type PayableCostItem struct {
Id int64 `json:"id"` Id int64 `json:"id"`