This commit is contained in:
suyl
2021-08-04 17:33:26 +08:00
parent e5467de15e
commit 3e47450078
4 changed files with 23 additions and 1 deletions

View File

@@ -95,6 +95,11 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
orderFmt += `%s<BR>`
orderFmt += `%8s%10s%10s<BR>`
orderParams = append(orderParams, sku.SkuName, "x"+utils.Int2Str(sku.Count), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice*int64(sku.Count)))
//标品需要打印条形码
if sku.Upc != "" {
orderFmt += `<BC128_C>%s</BC128_C><BR>`
orderParams = append(orderParams, sku.Upc)
}
}
orderFmt += `<BR>
<BOLD>共%d种%d件商品</BOLD>
@@ -181,6 +186,11 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
orderFmt += `<B>%s<BR></B>`
orderFmt += `<B>%s %s %s<BR><BR></B>`
orderParams = append(orderParams, sku.SkuName, "x"+utils.Int2Str(sku.Count), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice), jxutils.IntPrice2StandardCurrencyString(sku.SalePrice*int64(sku.Count)))
//标品需要打印条形码
if sku.Upc != "" {
orderFmt += `<BC128_C>%s</BC128_C><BR>`
orderParams = append(orderParams, sku.Upc)
}
}
orderFmt += `<BR>
<B><BOLD>共%d种%d件商品</BOLD></B>