diff --git a/addons/dine360_order_channels/static/src/xml/receipt_extension.xml b/addons/dine360_order_channels/static/src/xml/receipt_extension.xml index f052957..93387fc 100644 --- a/addons/dine360_order_channels/static/src/xml/receipt_extension.xml +++ b/addons/dine360_order_channels/static/src/xml/receipt_extension.xml @@ -2,36 +2,267 @@ - -
-
- Order Source: - -
-
- Fulfilment: - -
+ +
+ + +
Restaurant Receipt
- -
-
DELIVERY ADDRESS:
-
-
- +
+ Logo +
+
+
+
+ Tel: + |
-
Phone:
-
- Note: +
+
+
+ +
"Authentic Indian Food At its Finest!"
+ +
+
+ Receipt No. + +
+
+ Date & Time + +
+
+ Cashier + +
+
+ + + + + + + + + + + + + + + + + + +
List of ItemsQtyUnit CostAmount
+ +
+ +
+
+ +
+
+
+ Total Amount + +
+
+ VAT + +
+
+ Net Amount + +
+ +
+ Rounding + +
+
+ To Pay + +
+
+ + +
+ + +
+
+ Change +
- - -
- Ref:
-
- WhatsApp: + + + + +
+
+ Order Source: + +
+
+ Fulfilment: + +
+ + +
+
DELIVERY ADDRESS:
+
+
+ +
+
Phone:
+
+ Note: +
+
+ + +
+ Ref: +
+
+ WhatsApp: +
+
+ +
+ +
+ +
+

Powered by Dine360

diff --git a/addons/dine360_qz_printer/static/src/js/qz_wrapper.js b/addons/dine360_qz_printer/static/src/js/qz_wrapper.js index 4e63627..b1056ab 100644 --- a/addons/dine360_qz_printer/static/src/js/qz_wrapper.js +++ b/addons/dine360_qz_printer/static/src/js/qz_wrapper.js @@ -167,12 +167,14 @@ function buildEscPosReceipt(receiptElement, order) { const body = lines.flatMap((line) => wrapLine(line)).join(NEWLINE); + console.log("Cutter command run: Preparing ESC/POS data with feed and partial cut."); + return [ ESC + "@", // Initialize printer ESC + "a" + "\x00", // Left align body, - NEWLINE + NEWLINE + NEWLINE, - GS + "V" + "\x00", // Full cut on Epson-compatible printers + NEWLINE + NEWLINE + NEWLINE + NEWLINE + NEWLINE, + GS + "V" + "\x42" + "\x00", // Feed paper to cutting position and perform partial cut (standard ESC/POS) ].join(""); }