<?xml version="1.0" encoding="UTF-8"?>
<output>
<display>
<line>
<text align="left" length="10">Total.</text>
<text align="right" length="10">${ticket.printTotal()}</text>
</line>
<line>
<text align="center" length="20">Thank you.</text>
</line>
</display>
<ticket>
<image>Printer.Ticket.Logo</image>
<line>
<text align="center" length="48">Business Name</text>
</line>
<line>
<text align="center" length="48">Address Line</text>
</line>
<line>
<text align="center" length="48">Phone: 123456</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text align="center" length="48">TAX INVOICE</text>
</line>
<line>
<text align="center" length="48">TAX ID: 0123456789</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
<line></line>
#if (${ticket.ticketType} == 0)
<line>
<text align="left" length="15">Receipt:</text>
<text>${ticket.printId()}</text>
</line>
#end
#if (${ticket.ticketType} == 1)
<line>
<text align="left" length="15">Refund:</text>
<text>${ticket.printId()}</text>
</line>
#end
<line>
<text align="left" length="15">Date:</text>
<text>${ticket.printDate()}</text>
</line>
#if ($ticket.getCustomer())
<line>
<text align="left" length="15">Customer:</text>
<text>${ticket.getCustomer().printName()}</text>
</line>
<line>
<text align="left" length="15"></text>
<text>${ticket.getCustomer().getSearchkey()}</text>
</line>
#if ($ticket.getCustomer().getAddress())
<line>
<text align="left" length="15"></text>
<text>${ticket.getCustomer().getAddress()}</text>
</line>
#end
#end
<line></line>
<line>
<text align="left" length="23">Item</text>
<text align="right" length="10">Price</text>
<text align="right" length="5"></text>
<text align="right" length="10">Value</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($ticketline in $ticket.getLines())
<line>
#if ($ticketline.isProductCom())
<text align="left" length="23">*${ticketline.printName()}</text>
#else
<text align="left" length="23">${ticketline.printName()}</text>
#end
<text align="right" length="10">${ticketline.printPriceTax()}</text>
<text align="right" length="5">x${ticketline.printMultiply()}</text>
<text align="right" length="10">${ticketline.printValue()}</text>
</line>
#if ($ticketline.productAttSetInstId)
<line>
<text align="left" length="48"> ${ticketline.productAttSetInstDesc}</text>
</line>
#end
#end
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text>Items count: ${ticket.printArticlesCount()}</text>
</line>
<!-- TAXES START-->
<line>
<text align="left" length="16">Subtotal</text>
<text align="right" length="32">${ticket.printSubTotal()}</text>
</line>
<line>
<text align="left" length="16">Taxes</text>
<text align="right" length="32">${ticket.printTax()}</text>
</line>
<!-- TAXES END-->
<line size="1">
<text align="left" length="12" bold="true">Total</text>
<text align="right" length="36" bold="true">${ticket.printTotal()}</text>
</line>
<line></line>
#foreach ($paymentline in $ticket.payments)
#if ($paymentline.name == "cash")
<line>
<text bold="true">Cash</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#if ($paymentline.name == "cashrefund")
<line>
<text bold="true">Refund</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#if ($paymentline.name == "magcard")
<line>
<text bold="true">Mag card</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#if ($paymentline.name == "magcardrefund")
<line>
<text bold="true">Mag card refund</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#if ($paymentline.name == "cheque")
<line>
<text bold="true">Cheque</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#if ($paymentline.name == "chequerefund")
<line>
<text bold="true">Cheque refund</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#if ($paymentline.name == "paperin")
<line>
<text bold="true">Voucher</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#if ($paymentline.name == "paperout")
<line>
<text bold="true">Voucher Refund</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#if ($paymentline.name == "free")
<line>
<text bold="true">Free</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#if ($paymentline.name == "debt")
<line>
<text bold="true">Debt</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#if ($paymentline.name == "advance")
<line>
<text bold="true">Advance</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#if ($paymentline.name == "pointsin")
<line>
<text bold="true">Points</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#if ($paymentline.name == "currency")
<line>
<text bold="true">Currency - ${paymentline.printCurrency()}</text>
</line>
<line>
<text align="left" length="12">Tendered:</text>
<text align ="right" length="36">${paymentline.printCurrency()}${paymentline.printPaidCurrency()}</text>
</line>
<line>
<text align="left" length="15">Conversion Rate:</text>
<text align ="right" length="33">${paymentline.printRate()}</text>
</line>
<line>
<text align="left" length="12">Change:</text>
<text align ="right" length="36">${paymentline.printChange()}</text>
</line>
#end
#if ($paymentline.name == "online")
<line>
<text bold="true">Online - $paymentline.getTransactionID()</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#end
<line></line>
<line>
<text align="left" length="10">Cashier:</text>
<text>${ticket.printUser()}</text>
</line>
#if (${ticket.printHost()})
<line>
<text align="left" length="10">Station:</text>
#if ($ticket.getProperty("orderfrom"))
<text>${ticket.getProperty("orderfrom")}</text>
#else
<text>${ticket.printHost()}</text>
#end
</line>
#else
#if($ticket.getProperty("Host"))
<line>
<text align="left" length="10">Station:</text>
<text>${ticket.printProperty("Host")}</text>
</line>
#end
#end
<line></line>
<line>
<text align="center" length="48">Thank you for your visit.</text>
</line>
<line>
<text align="center" length="48">www.saleculator.com</text>
</line>
</ticket>
</output>
Leave a Reply