收银台打印小票
This commit is contained in:
parent
2a3f80675e
commit
d479583f49
@ -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() {
|
||||
|
@ -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>");
|
||||
|
Loading…
Reference in New Issue
Block a user