<?xml version="1.0" encoding="UTF-8"?>
<output>
<ticket>
<line></line>
<line>
<text align="left">Receipt:${ticket.printId()}</text>
<text align="right" length="30">${ticket.printDate()}</text>
</line>
#if ($ticket.getProperty("Delivery"))
<line size="1">
<text align="right" length="48">${ticket.printProperty("Delivery")}</text>
</line>
#end
#if ($ticket.getProperty("ReceiptNote"))
<line>
<text>${ticket.printProperty("ReceiptNote")}</text>
</line>
#end
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($ticketline in $ticket.getLines())
#if (($ticketline.getProperty("kotnum").equals("KOT1")) && ($ticketline.getProperty("sendstatus").equals("No")))
<line>
<text align ="left" length="5" bold="true">${ticketline.printMultiply()}x</text>
#if ($ticketline.isProductCom())
<text align ="left" length="41">--${ticketline.printName()}</text>
#else
<text align ="left" length="43" bold="true">${ticketline.printName()}</text>
#end
</line>
#end
#if ($ticketline.productAttSetInstId)
<line>
<text align ="left" length="48"> ${ticketline.productAttSetInstDesc}</text>
</line>
#end
#end
</ticket>
</output>
Leave a Reply