From 0e2437a69fbf936390d3c5ed886260099c30dd2f Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 21 May 2026 09:42:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(erp):=20=E6=B7=BB=E5=8A=A0=E5=AE=A2?= =?UTF-8?q?=E6=88=B7ID=E5=92=8C=E5=8F=91=E7=A5=A8=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在收款单据模型中添加CustomId字段用于标识客户ID - 在产品会计模型中添加InvoiceAmount字段用于记录发票金额 - 更新数据结构以支持更完整的业务信息存储 --- erp/accounting/product.go | 1 + erp/receipt/claim.go | 1 + 2 files changed, 2 insertions(+) diff --git a/erp/accounting/product.go b/erp/accounting/product.go index d118d1c..d7434dd 100644 --- a/erp/accounting/product.go +++ b/erp/accounting/product.go @@ -30,6 +30,7 @@ type ProductItem struct { OuterNum *int64 `json:"outerNum"` BoxCount int64 `json:"boxCount"` PurchasePrice decimal.Decimal `json:"purchasePrice"` + InvoiceAmount decimal.Decimal `json:"invoiceAmount"` Amount decimal.Decimal `json:"amount"` Volume *decimal.Decimal `json:"volume"` TotalVolume decimal.Decimal `json:"totalVolume"` diff --git a/erp/receipt/claim.go b/erp/receipt/claim.go index 5070f91..0cd37fd 100644 --- a/erp/receipt/claim.go +++ b/erp/receipt/claim.go @@ -55,6 +55,7 @@ type ClaimAdd struct { Amount decimal.Decimal // 应收金额 Remarks string // 备注 InvoiceSerial string // 发票编号 + CustomId int64 // 客户ID } // Add @TITLE 添加