小票打印bug修复

This commit is contained in:
谭凯凯
2024-11-28 17:45:35 +08:00
committed by Tankaikai
parent b75bb50f63
commit 059d8718dd
2 changed files with 7 additions and 3 deletions

View File

@@ -89,6 +89,7 @@ public abstract class PrinterHandler {
String categoryId = "0";
if (isTemporary == 1) {
item.setProductId(0);
item.setProductSkuId(0);
}
// 台位费不打印
if (item.getProductId().equals(-999)) {
@@ -104,6 +105,8 @@ public abstract class PrinterHandler {
if (isTemporary == 0 && sku == null) {
log.error("商品不存在, id: {}", item.getProductSkuId());
return;
} else {
sku = new TbProductSkuWithBLOBs();
}
if (StrUtil.isEmpty(machine.getClassifyPrint())) {
log.error("分类打印是空, classifyPrint: {}", machine.getClassifyPrint());