This commit is contained in:
苏尹岚
2020-08-12 09:08:28 +08:00
parent 1fe6c7bea8
commit 98f3a67bb1

View File

@@ -59,7 +59,7 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
<BR> <BR>
商品明细: <BR> 商品明细: <BR>
品名 数量 <BR> 品名 数量 单价 小计<BR>
--------------------------------<BR>` --------------------------------<BR>`
// <BOLD>实际支付:</BOLD>%s<BR> // <BOLD>实际支付:</BOLD>%s<BR>
orderParams := []interface{}{ orderParams := []interface{}{
@@ -79,9 +79,8 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
for _, sku := range order.Skus { for _, sku := range order.Skus {
orderFmt += `%s<BR>` orderFmt += `%s<BR>`
orderFmt += `%8s<BR>` orderFmt += `%8s%10s%10s<BR>`
orderParams = append(orderParams, sku.SkuName, "x"+utils.Int2Str(sku.Count)) orderParams = append(orderParams, sku.SkuName, "x"+utils.Int2Str(sku.Count), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice*int64(sku.Count)))
//jxutils.IntPrice2StandardCurrencyString(sku.SalePrice), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice*int64(sku.Count))
} }
orderFmt += `<BR> orderFmt += `<BR>
<BOLD>共%d种%d件商品</BOLD> <BOLD>共%d种%d件商品</BOLD>