From fa5a9c9e2083636495c9273adf67c3a19ae9e158 Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 5 Jan 2026 11:14:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(erp):=20=E6=B7=BB=E5=8A=A0=E4=BB=98?= =?UTF-8?q?=E6=AC=BE=E5=AE=A2=E6=88=B7=E4=BF=A1=E6=81=AF=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在收据结构体中增加PayCustomId和PayCustomName字段 - 将原有的CustomId字段注释明确为付款客户id - 在收据明细结构体中添加PayCustomId和PayCustomName字段 - 在ik3cloud收据服务中增加PayCustomNumber字段 - 保持原有客户信息字段的同时支持付款客户信息的存储 --- erp/receipt.go | 6 +++++- ik3cloud/receipt.go | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/erp/receipt.go b/erp/receipt.go index 9da98c5..423cc33 100644 --- a/erp/receipt.go +++ b/erp/receipt.go @@ -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"` diff --git a/ik3cloud/receipt.go b/ik3cloud/receipt.go index 6ce5c0b..a074c51 100644 --- a/ik3cloud/receipt.go +++ b/ik3cloud/receipt.go @@ -23,6 +23,7 @@ type ArgsReceiptSave struct { Remarks string // 备注 Costs []ReceiptCost // 费用明细 CustomNumber string // 客户编号 + PayCustomNumber string // 付款客户编号 } type ReceiptCost struct {