From c63059573d48ec893bd7aaf28cdf9756ad4bef13 Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 14 Aug 2026 16:39:59 +0800 Subject: [PATCH] =?UTF-8?q?feat(expense):=20=E6=B7=BB=E5=8A=A0=E8=B4=B9?= =?UTF-8?q?=E7=94=A8=E6=94=AF=E4=BB=98=E9=87=91=E9=A2=9D=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在费用结构体中新增 paymentAmount 字段用于记录支付金额 - 该字段为 decimal.Decimal 类型,支持精确的金额计算 - 扩展了费用数据模型以支持更详细的财务信息记录 --- erp/expense/cost.go | 1 + 1 file changed, 1 insertion(+) diff --git a/erp/expense/cost.go b/erp/expense/cost.go index 0a8479d..d268e9b 100644 --- a/erp/expense/cost.go +++ b/erp/expense/cost.go @@ -30,6 +30,7 @@ type CostItem struct { TypeName string `json:"typeName"` Value string `json:"value"` Amount decimal.Decimal `json:"amount"` + PaymentAmount decimal.Decimal `json:"paymentAmount"` DepartmentId int64 `json:"departmentId"` InvoiceSerial string `json:"invoiceSerial"` TravelAt *time.Time `json:"travelAt"`