<?xml version="1.0" encoding="UTF-8"?>
<output>
<ticket>
<line>
<text>------------------------------------------------</text>
</line>
<line size="1">
<text align="center" length="48" bold="true">$order.getPortal(): #$order.getOrderId()</text>
</line>
<line size="1">
<text align="center" length="48" bold="true">$order.getOrderJSON().getString("payment_status")</text>
</line>
<line size="1">
#if($order.getOrderJSON().getInt("delivery_method")==1)
<text align="center" length="48" bold="true">Delivery: $order.getOrderJSON().getString("delivery_pickup_time")</text>
#elseif($order.getOrderJSON().getInt("delivery_method")==2)
<text align="center" length="48" bold="true">PickUp: $order.getOrderJSON().getString("delivery_pickup_time")</text>
#elseif($order.getOrderJSON().getInt("delivery_method")==3)
#if(!$order.getOrderJSON().isNull("table_number"))
<text align="center" length="48" bold="true">DineIn: $order.getOrderJSON().getString("table_number")</text>
#else
<text align="center" length="48" bold="true">DineIn</text>
#end
#end
</line>
<line>
<text align="center" length="48">$order.printOrderDate()</text>
</line>
<line>
<text align="center" length="48">$order.printString($order.getOrderJSON().getString("restarant"))</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
<line><text align="center" length="48" underline="true">CUSTOMER</text></line>
<line>
<text align="center" length="48" bold="true">$order.getOrderJSON().getString("client_name")</text>
</line>
<line>
<text align="center" length="48" bold="true">$order.getOrderJSON().getString("client_phone")</text>
</line>
#if(!$order.getOrderJSON().isNull("client_address"))
<line>
<text bold="true">$order.getOrderJSON().getString("client_address")</text>
</line>
#end
<line></line>
<line><text align="center" length="48" underline="true">CUSTOMER NOTES</text></line>
<line>
<text bold="true">$order.getOrderJSON().getString("client_comment")</text>
</line>
<line></line>
<line>
<text align="left" length="23">Item</text>
<text align="right" length="10">Price</text>
<text align="right" length="5"></text>
<text align="right" length="10">Value</text>
</line>
<line>
<text>------------------------------------------------</text>
</line>
#foreach ($ticketline in $ticket.getLines())
<line>
#if ($ticketline.isProductCom())
<text align="left" length="23">*${ticketline.printName()}</text>
#else
<text align="left" length="23">${ticketline.printName()}</text>
#end
<text align="right" length="10">${ticketline.printPriceTax()}</text>
<text align="right" length="5">x${ticketline.printMultiply()}</text>
<text align="right" length="10">${ticketline.printValue()}</text>
</line>
#if ($ticketline.productAttSetInstId)
<line>
<text align="left" length="48"> ${ticketline.productAttSetInstDesc}</text>
</line>
#end
#end
<line>
<text>------------------------------------------------</text>
</line>
<line>
<text>Items count: ${ticket.printArticlesCount()}</text>
</line>
<!-- TAXES START-->
<line>
<text align="left" length="16">Subtotal</text>
<text align="right" length="32">${ticket.printSubTotal()}</text>
</line>
<line>
<text align="left" length="16">Taxes</text>
<text align="right" length="32">${ticket.printTax()}</text>
</line>
<!-- TAXES END-->
<line size="1">
<text align="left" length="12" bold="true">Total</text>
<text align="right" length="36" bold="true">${ticket.printTotal()}</text>
</line>
<line></line>
</ticket>
</output>
Leave a Reply