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