收银台打印小票

This commit is contained in:
齐天大圣 2024-10-26 14:57:28 +08:00
parent 2a3f80675e
commit d479583f49
2 changed files with 3 additions and 1 deletions

View File

@ -184,6 +184,7 @@ public class PrintCardValueReport {
}
receiptPrinting.setPrintTemplateDown(receiptPrinting.getPrintTemplateDown().
replace("ttttt",formattedDateTime));
System.out.println(receiptPrinting.getPrintTemplateTop()+sb.toString()+receiptPrinting.getPrintTemplateDown());
return receiptPrinting.getPrintTemplateTop()+sb.toString()+receiptPrinting.getPrintTemplateDown();
}
public static Map<String, Object> getHandover() {

View File

@ -83,6 +83,7 @@ public class ReceiptPrintingServiceImpl extends ServiceImpl<ReceiptPrintingMappe
String formattedDateTime = now.format(formatter);
System.out.println("当前时间:" + formattedDateTime);
if(receiptPrinting.getLogoSet().equals("0")){
sb.append("<ML>1</ML>"+"\r\n");
sb.append("----------------------------\r\n");
String mm=setIice(receiptPrinting.getCodeImage(),nowAccountInfo.getStoreId());
if ("18".equals(mm)) {
@ -116,7 +117,7 @@ public class ReceiptPrintingServiceImpl extends ServiceImpl<ReceiptPrintingMappe
// }
// }
}else {
sb.append("<ML>logo_state:0</ML>");
sb.append("<ML>0</ML>"+"\r\n");
}
if(receiptPrinting.getHeadfootSet().contains("0")){
sb.append("<FB><center>"+nowAccountInfo.getStoreName() +"</center></FB>");