订单打印去掉ActualPayPrice
This commit is contained in:
@@ -57,11 +57,11 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
|||||||
<B>%s</B><BR>
|
<B>%s</B><BR>
|
||||||
<BR>
|
<BR>
|
||||||
|
|
||||||
<BOLD>实际支付:</BOLD>%s<BR>
|
|
||||||
<BR>
|
<BR>
|
||||||
商品明细: <BR>
|
商品明细: <BR>
|
||||||
品名 数量 单价 小计<BR>
|
品名 数量 单价 小计<BR>
|
||||||
--------------------------------<BR>`
|
--------------------------------<BR>`
|
||||||
|
// <BOLD>实际支付:</BOLD>%s<BR>
|
||||||
orderParams := []interface{}{
|
orderParams := []interface{}{
|
||||||
globals.StoreName,
|
globals.StoreName,
|
||||||
utils.Time2Str(order.OrderCreatedAt),
|
utils.Time2Str(order.OrderCreatedAt),
|
||||||
@@ -74,7 +74,7 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
|||||||
order.ConsigneeMobile,
|
order.ConsigneeMobile,
|
||||||
order.ConsigneeAddress,
|
order.ConsigneeAddress,
|
||||||
order.BuyerComment,
|
order.BuyerComment,
|
||||||
jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
// jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, sku := range order.Skus {
|
for _, sku := range order.Skus {
|
||||||
@@ -131,11 +131,11 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
|||||||
<B>%s</B><BR>
|
<B>%s</B><BR>
|
||||||
<BR>
|
<BR>
|
||||||
|
|
||||||
<B><BOLD>实际支付:</BOLD></B><B>%s<BR></B>
|
|
||||||
<BR>
|
<BR>
|
||||||
<B>商品明细: <BR></B>
|
<B>商品明细: <BR></B>
|
||||||
<B>品名数量单价小计<BR></B>
|
<B>品名数量单价小计<BR></B>
|
||||||
--------------------------------<BR>`
|
--------------------------------<BR>`
|
||||||
|
// <B><BOLD>实际支付:</BOLD></B><B>%s<BR></B>
|
||||||
orderParams := []interface{}{
|
orderParams := []interface{}{
|
||||||
globals.StoreName,
|
globals.StoreName,
|
||||||
utils.Time2Str(order.OrderCreatedAt),
|
utils.Time2Str(order.OrderCreatedAt),
|
||||||
@@ -148,7 +148,7 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
|||||||
order.ConsigneeMobile,
|
order.ConsigneeMobile,
|
||||||
order.ConsigneeAddress,
|
order.ConsigneeAddress,
|
||||||
order.BuyerComment,
|
order.BuyerComment,
|
||||||
jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
// jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, sku := range order.Skus {
|
for _, sku := range order.Skus {
|
||||||
|
|||||||
@@ -59,11 +59,11 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
|||||||
*
|
*
|
||||||
客户备注: *
|
客户备注: *
|
||||||
<big>%s*
|
<big>%s*
|
||||||
<S011>实际支付: %s*
|
|
||||||
商品明细: *
|
商品明细: *
|
||||||
品名 数量 单价 小计
|
品名 数量 单价 小计
|
||||||
--------------------------------*
|
--------------------------------*
|
||||||
`
|
`
|
||||||
|
// <S011>实际支付: %s*
|
||||||
orderParams := []interface{}{
|
orderParams := []interface{}{
|
||||||
globals.StoreName,
|
globals.StoreName,
|
||||||
utils.Time2Str(order.OrderCreatedAt),
|
utils.Time2Str(order.OrderCreatedAt),
|
||||||
@@ -76,7 +76,7 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
|||||||
order.ConsigneeMobile,
|
order.ConsigneeMobile,
|
||||||
order.ConsigneeAddress,
|
order.ConsigneeAddress,
|
||||||
buyerComment,
|
buyerComment,
|
||||||
jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
// jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
||||||
}
|
}
|
||||||
for _, sku := range order.Skus {
|
for _, sku := range order.Skus {
|
||||||
orderFmt += `%s*`
|
orderFmt += `%s*`
|
||||||
@@ -128,17 +128,17 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
|||||||
<big>%s\#%d*
|
<big>%s\#%d*
|
||||||
<qrcA4>%s*
|
<qrcA4>%s*
|
||||||
` + getCode +
|
` + getCode +
|
||||||
`<big>客户: %s*
|
`<big>客户: %s*
|
||||||
<big>电话: %s*
|
<big>电话: %s*
|
||||||
<big>地址: %s*
|
<big>地址: %s*
|
||||||
*
|
*
|
||||||
<big>客户备注: *
|
<big>客户备注: *
|
||||||
<big>%s*
|
<big>%s*
|
||||||
<big>实际支付: %s*
|
|
||||||
<big>商品明细: *
|
<big>商品明细: *
|
||||||
<big>品名数量单价小计*
|
<big>品名数量单价小计*
|
||||||
--------------------------------*
|
--------------------------------*
|
||||||
`
|
`
|
||||||
|
// <big>实际支付: %s*
|
||||||
orderParams := []interface{}{
|
orderParams := []interface{}{
|
||||||
globals.StoreName,
|
globals.StoreName,
|
||||||
utils.Time2Str(order.OrderCreatedAt),
|
utils.Time2Str(order.OrderCreatedAt),
|
||||||
@@ -151,7 +151,7 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
|||||||
order.ConsigneeMobile,
|
order.ConsigneeMobile,
|
||||||
order.ConsigneeAddress,
|
order.ConsigneeAddress,
|
||||||
buyerComment,
|
buyerComment,
|
||||||
jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
// jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
||||||
}
|
}
|
||||||
for _, sku := range order.Skus {
|
for _, sku := range order.Skus {
|
||||||
orderFmt += `<big>%s*`
|
orderFmt += `<big>%s*`
|
||||||
@@ -209,12 +209,12 @@ func (c *PrinterHandler) getOrderContent2(order *model.GoodsOrder, storeTel stri
|
|||||||
|5客户备注:
|
|5客户备注:
|
||||||
|7%s
|
|7%s
|
||||||
|5
|
|5
|
||||||
|6实际支付: %s
|
|
||||||
|5
|
|5
|
||||||
|5商品明细:
|
|5商品明细:
|
||||||
|5品名 数量 单价 小计
|
|5品名 数量 单价 小计
|
||||||
|5--------------------------------
|
|5--------------------------------
|
||||||
`
|
`
|
||||||
|
// |6实际支付: %s
|
||||||
orderParams := []interface{}{
|
orderParams := []interface{}{
|
||||||
globals.StoreName,
|
globals.StoreName,
|
||||||
utils.Time2Str(order.OrderCreatedAt),
|
utils.Time2Str(order.OrderCreatedAt),
|
||||||
@@ -227,7 +227,7 @@ func (c *PrinterHandler) getOrderContent2(order *model.GoodsOrder, storeTel stri
|
|||||||
order.ConsigneeMobile,
|
order.ConsigneeMobile,
|
||||||
order.ConsigneeAddress,
|
order.ConsigneeAddress,
|
||||||
buyerComment,
|
buyerComment,
|
||||||
jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
// jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
||||||
}
|
}
|
||||||
for _, sku := range order.Skus {
|
for _, sku := range order.Skus {
|
||||||
orderFmt += `|5%s`
|
orderFmt += `|5%s`
|
||||||
|
|||||||
@@ -55,11 +55,11 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
|||||||
客户备注: \n
|
客户备注: \n
|
||||||
<FS2>%s</FS2>\n
|
<FS2>%s</FS2>\n
|
||||||
\n
|
\n
|
||||||
<FB>实际支付:</FB>%s\n
|
|
||||||
\n
|
\n
|
||||||
商品明细: \n
|
商品明细: \n
|
||||||
品名 数量 单价 小计\n
|
品名 数量 单价 小计\n
|
||||||
--------------------------------\n`
|
--------------------------------\n`
|
||||||
|
// <FB>实际支付:</FB>%s\n
|
||||||
orderParams := []interface{}{
|
orderParams := []interface{}{
|
||||||
globals.StoreName,
|
globals.StoreName,
|
||||||
utils.Time2Str(order.OrderCreatedAt),
|
utils.Time2Str(order.OrderCreatedAt),
|
||||||
@@ -72,7 +72,7 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
|||||||
order.ConsigneeMobile,
|
order.ConsigneeMobile,
|
||||||
order.ConsigneeAddress,
|
order.ConsigneeAddress,
|
||||||
order.BuyerComment,
|
order.BuyerComment,
|
||||||
jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
// jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, sku := range order.Skus {
|
for _, sku := range order.Skus {
|
||||||
@@ -123,11 +123,11 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
|||||||
<FS2>客户备注: \n</FS2>
|
<FS2>客户备注: \n</FS2>
|
||||||
<FS2>%s</FS2>\n
|
<FS2>%s</FS2>\n
|
||||||
\n
|
\n
|
||||||
<FS2><FB>实际支付:</FB>%s\n</FS2>
|
|
||||||
\n
|
\n
|
||||||
<FS2>商品明细: \n</FS2>
|
<FS2>商品明细: \n</FS2>
|
||||||
<FS2>品名数量单价小计\n</FS2>
|
<FS2>品名数量单价小计\n</FS2>
|
||||||
--------------------------------\n`
|
--------------------------------\n`
|
||||||
|
// <FS2><FB>实际支付:</FB>%s\n</FS2>
|
||||||
orderParams := []interface{}{
|
orderParams := []interface{}{
|
||||||
globals.StoreName,
|
globals.StoreName,
|
||||||
utils.Time2Str(order.OrderCreatedAt),
|
utils.Time2Str(order.OrderCreatedAt),
|
||||||
@@ -140,7 +140,7 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
|||||||
order.ConsigneeMobile,
|
order.ConsigneeMobile,
|
||||||
order.ConsigneeAddress,
|
order.ConsigneeAddress,
|
||||||
order.BuyerComment,
|
order.BuyerComment,
|
||||||
jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
// jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, sku := range order.Skus {
|
for _, sku := range order.Skus {
|
||||||
|
|||||||
@@ -56,11 +56,11 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
|||||||
客户备注: <RN>
|
客户备注: <RN>
|
||||||
<S2>%s</S2><RN>
|
<S2>%s</S2><RN>
|
||||||
<RN>
|
<RN>
|
||||||
<B1>实际支付:</B1>%s<RN>
|
|
||||||
<RN>
|
<RN>
|
||||||
商品明细: <RN>
|
商品明细: <RN>
|
||||||
品名 数量 单价 小计<RN>
|
品名 数量 单价 小计<RN>
|
||||||
********************************<RN>`
|
********************************<RN>`
|
||||||
|
// <B1>实际支付:</B1>%s<RN>
|
||||||
orderParams := []interface{}{
|
orderParams := []interface{}{
|
||||||
globals.StoreName,
|
globals.StoreName,
|
||||||
utils.Time2Str(order.OrderCreatedAt),
|
utils.Time2Str(order.OrderCreatedAt),
|
||||||
@@ -73,7 +73,7 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
|
|||||||
order.ConsigneeMobile,
|
order.ConsigneeMobile,
|
||||||
order.ConsigneeAddress,
|
order.ConsigneeAddress,
|
||||||
order.BuyerComment,
|
order.BuyerComment,
|
||||||
jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
// jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, sku := range order.Skus {
|
for _, sku := range order.Skus {
|
||||||
@@ -124,11 +124,11 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
|||||||
<S2>客户备注: <RN></S2>
|
<S2>客户备注: <RN></S2>
|
||||||
<S2>%s</S2><RN>
|
<S2>%s</S2><RN>
|
||||||
<RN>
|
<RN>
|
||||||
<S2><B1>实际支付:</B1>%s<RN></S2>
|
|
||||||
<RN>
|
<RN>
|
||||||
<S2>商品明细: <RN></S2>
|
<S2>商品明细: <RN></S2>
|
||||||
<S2>品名数量单价小计<RN></S2>
|
<S2>品名数量单价小计<RN></S2>
|
||||||
********************************<RN>`
|
********************************<RN>`
|
||||||
|
// <S2><B1>实际支付:</B1>%s<RN></S2>
|
||||||
orderParams := []interface{}{
|
orderParams := []interface{}{
|
||||||
globals.StoreName,
|
globals.StoreName,
|
||||||
utils.Time2Str(order.OrderCreatedAt),
|
utils.Time2Str(order.OrderCreatedAt),
|
||||||
@@ -141,7 +141,7 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
|||||||
order.ConsigneeMobile,
|
order.ConsigneeMobile,
|
||||||
order.ConsigneeAddress,
|
order.ConsigneeAddress,
|
||||||
order.BuyerComment,
|
order.BuyerComment,
|
||||||
jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
// jxutils.IntPrice2StandardCurrencyString(order.ActualPayPrice),
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, sku := range order.Skus {
|
for _, sku := range order.Skus {
|
||||||
|
|||||||
Reference in New Issue
Block a user