I have following Customer display with advertisements and there is a catch when trying to implementing it. It seems Demo Printer(notepad) doesn’t output whole of Printer template.
The printer :
Second Screen - Ticket Printer Template :
[LAYOUT]
-- General layout
<l><html>
<l><head>
<l><script src="live.js#html"></script>
<l></head>
<l><body>
<l><center><img src="cbc.jpg" width=100% border=1 style="width:304px;height:228px;"></center>
<l><pre><center><B><font size="6">Total Rp {TICKET TOTAL}</font>
<L00>----------------Items-------------------
<L>
{ORDERS}
<L>
[<L00>----------------------- Notes -------------------------
<L>
{NOTE}
<L>]
<F>-
<J10>Total:| Rp {TICKET TOTAL}
<J00>Change Due|Rp {CHANGE TOTAL}
<F>-
<C00>T H A N K Y O U
<l></center></pre>
<l></body>
<l></html>
[ORDERS]
-- Default format for orders
<J00>{QUANTITY}x {NAME}|Rp {TOTAL AMOUNT}
{ORDER TAGS}
[ORDERS:Gift]
-- Format for gifted orders
<J00>{QUANTITY}x {NAME}|**GIFT**
{ORDER TAGS}
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
<C00>{ORDER TAG NAME} - RRP ${PRICE}
For example the automated written html output is :
1x Oreo Cheese Cake.Slice Rp 18.000,00
-------------------------------------------------------
Total: Rp 72.000,00
Change Due Rp 0,00
-------------------------------------------------------
T H A N K Y O U
</center></pre>
</body>
</html>
As you can see from the <html>
tag until {ORDERS} the lines being cut off and not all ORDERS being printed.
Second Screen - Ticket Print job
The printing content already at “All Lines”