receipt design change
This commit is contained in:
parent
654e7ddc7e
commit
f071f03dd2
@ -194,9 +194,6 @@ public abstract class BaseXPrint {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void dotBreak(){
|
|
||||||
printer.appendPrnStr(new String(new char[29]).replace("\0", "."), fontNormal, AlignEnum.LEFT, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected void dashBreak() {
|
protected void dashBreak() {
|
||||||
printer.appendPrnStr("-----------------------------", fontNormal, AlignEnum.LEFT,false);
|
printer.appendPrnStr("-----------------------------", fontNormal, AlignEnum.LEFT,false);
|
||||||
@ -763,23 +760,6 @@ public abstract class BaseXPrint {
|
|||||||
printer.appendPrnStr(new String(new char[29]).replace("\0", "."), fontNormal, AlignEnum.LEFT, false);
|
printer.appendPrnStr(new String(new char[29]).replace("\0", "."), fontNormal, AlignEnum.LEFT, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void printTranHeader(String title){
|
|
||||||
SimpleDateFormat date = new SimpleDateFormat("dd MMM yyyy", Locale.getDefault());
|
|
||||||
String printedDate = date.format(new Date());
|
|
||||||
|
|
||||||
SimpleDateFormat time = new SimpleDateFormat("HH:mm:ss", Locale.getDefault());
|
|
||||||
String printedTime = time.format(new Date());
|
|
||||||
|
|
||||||
printer.appendPrnStr("PRINTED DATE", printedDate, fontNormal, false);
|
|
||||||
printer.appendPrnStr("", printedTime, fontNormal, false);
|
|
||||||
printer.appendPrnStr(title, fontNormal , AlignEnum.CENTER, false);
|
|
||||||
|
|
||||||
// if (payDetail.getTransactionType() == TransactionsType.MMQR.value && payDetail.getQrTransStatus() == 1) {
|
|
||||||
//// printer.appendPrnStr("TRACE NO:" + traceNum + " INV NO:" + invoiceNo, fontNormal, AlignEnum.LEFT,false);
|
|
||||||
// printer.appendPrnStr("INV NO :" + invoiceNo , fontNormal, AlignEnum.LEFT,false);
|
|
||||||
// }
|
|
||||||
dotBreak();
|
|
||||||
}
|
|
||||||
protected void printTransDetailReport(List<PayDetail> lists, HostType hostType) {
|
protected void printTransDetailReport(List<PayDetail> lists, HostType hostType) {
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user