feat(erp): 添加付款客户信息字段支持

- 在收据结构体中增加PayCustomId和PayCustomName字段
- 将原有的CustomId字段注释明确为付款客户id
- 在收据明细结构体中添加PayCustomId和PayCustomName字段
- 在ik3cloud收据服务中增加PayCustomNumber字段
- 保持原有客户信息字段的同时支持付款客户信息的存储
This commit is contained in:
2026-01-05 11:14:26 +08:00
parent f6e573a132
commit fa5a9c9e20
2 changed files with 6 additions and 1 deletions

View File

@@ -35,6 +35,8 @@ type ReceiptItem struct {
ReceiptSerial string `json:"receiptSerial"`
CustomId int64 `json:"customId"`
CustomName string `json:"customName"`
PayCustomId int64 `json:"payCustomId"`
PayCustomName string `json:"payCustomName"`
ReceiptDate time.Time `json:"receiptDate"`
Currency string `json:"currency"`
CurrencyName string `json:"currencyName"`
@@ -72,7 +74,7 @@ type ReceiptAdd struct {
CurrencyName string // 币种名称
CurrencySymbol string // 币种符号
CurrencyRate decimal.Decimal // 币种汇率
CustomId int64 // 客户id
PayCustomId int64 // 付款客户id
BankName string // 结汇银行
EntryAmount decimal.Decimal // 外币入账金额
ForeignFee decimal.Decimal // 国外扣费
@@ -100,6 +102,8 @@ type ReplyReceiptInfo struct {
CurrencyRate decimal.Decimal `json:"currencyRate"`
CustomId int64 `json:"customId"`
CustomName string `json:"customName"`
PayCustomId int64 `json:"payCustomId"`
PayCustomName string `json:"payCustomName"`
BankName string `json:"bankName"`
EntryAmount decimal.Decimal `json:"entryAmount"`
ForeignFee decimal.Decimal `json:"foreignFee"`