打印
This commit is contained in:
@@ -126,7 +126,7 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
|||||||
\n
|
\n
|
||||||
\n
|
\n
|
||||||
<FS2>商品明细: \n</FS2>
|
<FS2>商品明细: \n</FS2>
|
||||||
<FS2>品名 数量\n</FS2>
|
<FS2>品名数量单价小计\n</FS2>
|
||||||
--------------------------------\n`
|
--------------------------------\n`
|
||||||
// <FS2><FB>实际支付:</FB>%s\n</FS2>
|
// <FS2><FB>实际支付:</FB>%s\n</FS2>
|
||||||
orderParams := []interface{}{
|
orderParams := []interface{}{
|
||||||
@@ -146,9 +146,8 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
|
|||||||
|
|
||||||
for _, sku := range order.Skus {
|
for _, sku := range order.Skus {
|
||||||
orderFmt += `<FS2>%s\n</FS2>`
|
orderFmt += `<FS2>%s\n</FS2>`
|
||||||
orderFmt += `<FS2>%s\n\n</FS2>`
|
orderFmt += `<FS2>%s %s %s\n\n</FS2>`
|
||||||
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 += `\n
|
orderFmt += `\n
|
||||||
<FS2><FB>共%d种%d件商品</FB></FS2>
|
<FS2><FB>共%d种%d件商品</FB></FS2>
|
||||||
|
|||||||
Reference in New Issue
Block a user