<?xml version="1.0" encoding="UTF-8"?>
<!--
Posics Saleculator - Billing System.
Copyright (C) 2009 Posics
This file is part of Posics Saleculator.
-->
<output>
<display>
<line>
<text align="left" length="10">Advance paid.</text>
<text align="right" length="10">${ticket.printTotalPaid()}</text>
</line>
<line>
<text align="center" length="20">Thank you.</text>
</line>
</display>
<ticket>
<image>Printer.Ticket.Logo</image>
<line></line>
<line>
<text align="center" length="48">CUSTOMER ADVANCE PAYMENT</text>
</line>
<line></line>
<line>
<text align="left" length="15">Receipt:</text>
<text>${ticket.printId()}</text>
</line>
<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>
#end
<line></line>
<line size="1">
<text align="left" length="16" bold="true">Advance paid.</text>
<text align="right" length="32" bold="true">${ticket.printTotalPaid()}</text>
</line>
<line>
<text align="left" length="16" bold="true">Balance.</text>
<text align="right" length="32" bold="true">${customer.printCurAdvance()}</text>
</line>
#foreach ($paymentline in $ticket.payments)
#if ($paymentline.name == "cash")
<line></line>
<line>
<text bold="true">Cash</text>
</line>
<line>
<text align="left" length="18">Tendered:</text>
<text align="right" length="30">${paymentline.printPaid()}</text>
</line>
<line>
<text align="left" length="18">Change:</text>
<text align="right" length="30">${paymentline.printChange()}</text>
</line>
#end
#if ($paymentline.name == "magcard")
<line></line>
<line>
<text bold="true">Mag card</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
<line>
<text align="left" length="18">Number:</text>
<text>${paymentline.printCardNumber()}</text>
</line>
<line>
<text align="left" length="18">Expiration date:</text>
<text>${paymentline.printExpirationDate()}</text>
</line>
<line>
<text align="left" length="18">Operation:</text>
<text>${paymentline.printTransactionID()}</text>
</line>
<line>
<text align="left" length="18">Authorization:</text>
<text>${paymentline.printAuthorization()}</text>
</line>
#end
#if ($paymentline.name == "cheque")
<line></line>
<line>
<text bold="true">Cheque</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#if ($paymentline.name == "paperin")
<line></line>
<line>
<text bold="true">Note</text>
</line>
<line>
<text align="right" length="48">${paymentline.printTotal()}</text>
</line>
#end
#end
<line></line>
<line>
<text align="left" length="15">Cashier:</text>
<text>${ticket.printUser()}</text>
</line>
<line></line>
<line>
<text align="center" length="48">Thank you for your visit.</text>
</line>
</ticket>
#foreach ($paymentline in $ticket.payments)
#if ($paymentline.name == "cash")
<opendrawer/>
#end
#if ($paymentline.name == "cashrefund")
<opendrawer/>
#end
#end
</output>
Leave a Reply