<?xml version="1.0" encoding="UTF-8"?>
<!--
Posics Saleculator - Billing System.
Copyright (C) 2009 Posics
This file is part of Posics Saleculator.
-->
<output>
<ticket>
<image>Printer.Ticket.Logo</image>
<line></line>
<line size="1">
<text align="center" length="48" bold="true">CATALOG</text>
</line>
<line></line>
#set($cat = "")
#set($prod = "")
#foreach ($line in $catalog.getCatalogLines())
#if ( $cat != ${line.printCategory()} )
#set( $cat = ${line.printCategory()} )
<line></line>
<line>
<text align="left" bold="true">${line.printCategory()}</text>
</line>
<line>
<text align="left" length="30">Item</text>
<text align="left" length="5">Code</text>
<text align="right" length="2"></text>
<text align="right" length="11">Price</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#end
#if ( $prod != ${line.printCode()} )
#set( $prod = ${line.printCode()} )
<line>
<text align="left" length="30">${line.printName()}</text>
<text align="left" length="5">${line.printCode()}</text>
<text align="right" length="2">${line.printInCatalog()}</text>
<text align="right" length="11">${line.printPrice()}</text>
</line>
#end
#if ( ${line.printTariffArea()})
<line>
<text align="right" length="37">${line.printTariffArea()}</text>
<text align="right" length="11">${line.printTariffPrice()}</text>
</line>
#end
#end
</ticket>
</output>
Leave a Reply