From 68184b3e5e852db205b372dff787063040346033 Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 4 Jun 2026 14:33:21 +0800 Subject: [PATCH] =?UTF-8?q?feat(sale):=20=E6=B7=BB=E5=8A=A0=E9=94=80?= =?UTF-8?q?=E5=94=AE=E7=A8=8E=E7=8E=87=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 - 在benefit结构体中新增AddTaxRate字段 - 更新导入包顺序,将time包移到标准库位置 - 为销售相关数据模型增加正向税率计算支持 --- erp/sale/benefit.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erp/sale/benefit.go b/erp/sale/benefit.go index 12cc33b..9a5aa69 100644 --- a/erp/sale/benefit.go +++ b/erp/sale/benefit.go @@ -2,9 +2,10 @@ package sale import ( "context" + "time" + "git.kumo.work/shama/service/client" "github.com/shopspring/decimal" - "time" ) type benefit struct { @@ -32,6 +33,7 @@ type BenefitProductItem struct { CurrencyName string `json:"currencyName"` CurrencyRate decimal.Decimal `json:"currencyRate"` MinusTaxRate *decimal.Decimal `json:"minusTaxRate"` + AddTaxRate *decimal.Decimal `json:"addTaxRate"` SalePrice decimal.Decimal `json:"salePrice"` SaleAmount decimal.Decimal `json:"saleAmount"` SaleCurrency string `json:"saleCurrency"`