From 5d05e68bbba8bf815526f35bbfb8d008834431d1 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Tue, 17 Oct 2023 18:41:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=96=B0=E5=A2=9E=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=8F=91=E7=A5=A8,=E4=B8=8B=E5=8D=95=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/repositories/order.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service/repositories/order.go b/service/repositories/order.go index da49c782..bdf5f037 100644 --- a/service/repositories/order.go +++ b/service/repositories/order.go @@ -359,7 +359,7 @@ func (d *defaultOrder) Invoice(ctx context.Context, in *InvoiceReq) (res *Invoic var model004 string var model005 string var model006 = constants.INVOICE_TEMPLATE_06 - // 生成收据发票--首款 + ctimeDate := orderInfo.Ctime.Format("2006/01/02") var name string var city string @@ -394,6 +394,7 @@ func (d *defaultOrder) Invoice(ctx context.Context, in *InvoiceReq) (res *Invoic var tax = fmt.Sprintf("%s%s", taxCurrency, taxStr) var total = fmt.Sprintf("%s%s", constants.OrderCurrencyMessage[constants.Currency(ress.OrderDetail.OrderAmount.Total.Current.CurrentCurrency)], ress.OrderDetail.OrderAmount.Total.Current.CurrentAmount.(string)) + // 生成收据发票--首款 if receiptSnsDeposit != "" { v1 := receiptSnsDeposit v2 := name