<?xml version="1.0" encoding="UTF-8"?>
<!--
Posics Saleculator - Billing System.
Copyright (C) 2014 Posics
This file is part of Posics Saleculator.
-->
<output>
<ticket>
<line></line>
<line>
<text bold="true" align="center" length="48">Delivery Orders</text>
</line>
<line>
<text bold="true" align="center" length="48">$driver</text>
</line>
<line>
<text align="left" length="10">Receipt</text>
<text align="left" length="20">Date</text>
<text align="right" length="18">Amount</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#set($count=0)
#foreach ($line in $diary)
#set($count=$count+1)
<line>
<text align="left" length="10">$line.getTicketId()</text>
<text align="left" length="20">$line.getDate()</text>
<text align="right" length="18">$line.printAmount() $line.printPayment()</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text bold="true" length="20">Orders: $count</text>
<text bold="true" align="right" length="28">Total: $total</text>
</line>
<line></line>
</ticket>
</output>
Leave a Reply