This commit is contained in:
suyl
2021-08-05 10:12:46 +08:00
parent 517c443332
commit 04b41d6e44
3 changed files with 4 additions and 8 deletions

View File

@@ -97,7 +97,7 @@ func (c *PrinterHandler) getOrderContent(order *model.GoodsOrder, storeTel strin
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>`
orderFmt += `upc码 %s<BR>`
orderParams = append(orderParams, sku.Upc)
}
}
@@ -188,7 +188,7 @@ func (c *PrinterHandler) getOrderContentBig(order *model.GoodsOrder, storeTel st
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>`
orderFmt += `upc码 %s<BR>`
orderParams = append(orderParams, sku.Upc)
}
}