This commit is contained in:
苏尹岚
2020-08-12 09:09:17 +08:00
parent 21a4f76903
commit fd6bfee315

View File

@@ -60,7 +60,7 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
客户备注: * 客户备注: *
<big>%s* <big>%s*
商品明细: * 商品明细: *
品名 数量 品名 数量 单价 小计
--------------------------------* --------------------------------*
` `
// <S011>实际支付: %s* // <S011>实际支付: %s*
@@ -81,8 +81,7 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
for _, sku := range order.Skus { for _, sku := range order.Skus {
orderFmt += `%s*` orderFmt += `%s*`
orderFmt += `%8s%10s%10s*` orderFmt += `%8s%10s%10s*`
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 += ` orderFmt += `
* *