From 32b2beeeb9d7e20bd3fd1599efb9cc3a1e0d7d0f Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 9 Jul 2026 09:25:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(erp):=20=E6=B7=BB=E5=8A=A0=E4=BC=9A?= =?UTF-8?q?=E8=AE=A1=E6=A8=A1=E5=9D=97=E5=B8=81=E7=A7=8D=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 Accounting 结构体中新增 currency、currencyName、currencySymbol 和 currencyRate 字段 - 在 AccountingEdit 结构体中新增对应的币种信息字段 - 为新增字段添加相应的 JSON 标签映射 - 为新增字段添加中文注释说明 --- erp/accounting.go | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/erp/accounting.go b/erp/accounting.go index 6fa3587..e0a8034 100644 --- a/erp/accounting.go +++ b/erp/accounting.go @@ -126,6 +126,10 @@ type ReplyAccountingInfo struct { InvoiceDateEnd *time.Time `json:"invoiceDateEnd"` InvoiceSerial string `json:"invoiceSerial"` AccountingSerial string `json:"accountingSerial"` + Currency string `json:"currency"` + CurrencyName string `json:"currencyName"` + CurrencySymbol string `json:"currencySymbol"` + CurrencyRate decimal.Decimal `json:"currencyRate"` Remark string `json:"remark"` WorkflowId int64 `json:"workflowId"` WorkflowStatus int64 `json:"workflowStatus"` @@ -156,10 +160,14 @@ type ArgsAccountingEdit struct { } type AccountingEdit struct { - InvoiceDate *time.Time // 发票日期 - InvoiceDateEnd *time.Time // 开票期限 - AccountingSerial string // 做账合同号 - Remark string // 备注 + InvoiceDate *time.Time // 发票日期 + InvoiceDateEnd *time.Time // 开票期限 + AccountingSerial string // 做账合同号 + Remark string // 备注 + Currency string // 币种 + CurrencyName string // 币种名称 + CurrencySymbol string // 币种符号 + CurrencyRate decimal.Decimal // 币种汇率 } // Edit @TITLE 编辑