feat(erp): 添加应付账款海关产品信息字段
- 在 ReplyPayableInfo 结构体中添加 CustomsProducts 字段 - 新增 PayableCustomsProductItem 结构体定义 - 为海关产品项添加工厂名称、报关单号、报关名称等字段 - 包含报关发票单位、实际报关发票单位、发票数量等信息 - 添加金额字段用于海关产品项的金额计算
This commit is contained in:
@@ -78,6 +78,7 @@ type ReplyPayableInfo struct {
|
|||||||
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"`
|
||||||
|
|||||||
Reference in New Issue
Block a user