<?xml version="1.0" encoding="UTF-8"?>
<!--
Posics Saleculator - Billing System.
Copyright (C) 2014 Posics
This file is part of Posics Saleculator.
-->
<output>
<ticket>
<image>Printer.Ticket.Logo</image>
<line></line>
<line>
<text align="center" length="48">CUSTOMER DIARY</text>
</line>
<line>
<text align="center" length="48">${datefrom} to ${dateto}</text>
</line>
<line></line>
<line>
<text align="left" length="15">Customer:</text>
<text>${customer.printName()}</text>
</line>
<line></line>
<line>
<text align="left" length="12">Date</text>
<text align="center" length="10">Receipt</text>
<text align="left" length="10">Payment</text>
<text align="right" length="16">Amount</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($line in $diary)
#if($line.getPaymentType().equals("debt") || $line.getPaymentType().equals("debtpaid"))
<line>
<text align="left" length="12">$line.printDate()</text>
<text align="center" length="10">$line.getId()</text>
<text align="left" length="10">$line.getPaymentType()</text>
<text align="right" length="16">$line.printAmount()</text>
</line>
#end
#end
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text align="left" length="32">Balance</text>
<text align="right" length="16">$customer.printCurDebt()</text>
</line>
</ticket>
</output>
Leave a Reply