From c778603b660f7b9b45a392e5463e65baf498a77c Mon Sep 17 00:00:00 2001 From: kanade Date: Tue, 27 Jan 2026 14:26:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(erp):=20=E6=9B=B4=E6=96=B0=E6=94=B6?= =?UTF-8?q?=E6=8D=AE=E5=92=8C=E5=BA=94=E6=94=B6=E8=B4=A6=E6=AC=BE=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在收据结构中添加付款公司字段 - 将应收账款数量类型从int64改为decimal.Decimal - 在应收账款项目中添加发票单位字段 - 更新ik3cloud中应收账款产品项目的数量类型为decimal.Decimal --- erp/receipt.go | 3 +++ erp/receivable.go | 3 ++- ik3cloud/receivable.go | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/erp/receipt.go b/erp/receipt.go index b25cae6..75295da 100644 --- a/erp/receipt.go +++ b/erp/receipt.go @@ -41,6 +41,7 @@ type ReceiptItem struct { CustomName string `json:"customName"` PayCustomId int64 `json:"payCustomId"` PayCustomName string `json:"payCustomName"` + PayCompany string `json:"payCompany"` ReceiptDate time.Time `json:"receiptDate"` Currency string `json:"currency"` CurrencyName string `json:"currencyName"` @@ -81,6 +82,7 @@ type ReceiptAdd struct { CurrencySymbol string // 币种符号 CurrencyRate decimal.Decimal // 币种汇率 PayCustomId int64 // 付款客户id + PayCompany string // 付款公司 BankAccount string // 结汇银行账号 BankName string // 结汇银行 EntryAmount decimal.Decimal // 外币入账金额 @@ -111,6 +113,7 @@ type ReplyReceiptInfo struct { CustomName string `json:"customName"` PayCustomId int64 `json:"payCustomId"` PayCustomName string `json:"payCustomName"` + PayCompany string `json:"payCompany"` BankAccount string `json:"bankAccount"` BankName string `json:"bankName"` EntryAmount decimal.Decimal `json:"entryAmount"` diff --git a/erp/receivable.go b/erp/receivable.go index e554c87..b68180c 100644 --- a/erp/receivable.go +++ b/erp/receivable.go @@ -87,7 +87,8 @@ type ReceivableProductItem struct { PiSerial string `json:"piSerial"` Name string `json:"name"` Serial string `json:"serial"` - ReceivableCount int64 `json:"receivableCount"` + ReceivableCount decimal.Decimal `json:"receivableCount"` + InvoiceUnit string `json:"invoiceUnit"` AddTaxRate decimal.Decimal `json:"addTaxRate"` UnitPrice decimal.Decimal `json:"unitPrice"` ExTaxUnitPrice decimal.Decimal `json:"exTaxUnitPrice"` diff --git a/ik3cloud/receivable.go b/ik3cloud/receivable.go index a06307e..d367103 100644 --- a/ik3cloud/receivable.go +++ b/ik3cloud/receivable.go @@ -29,7 +29,7 @@ type ArgsReceivableSave struct { type ReceivableProductItem struct { Number string // 商品编码 Name string // 商品名称 - Count int64 // 数量 + Count decimal.Decimal // 数量 UnitPrice decimal.Decimal // 含税单价 AddTaxRate decimal.Decimal // 税率 ExTaxUnitPrice decimal.Decimal // 不含税单价