打印
This commit is contained in:
@@ -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 += `
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user