<#assign lw=42>
<#assign escRoot="/esc/tmt70">

<#include "/macros.txt"/>

<@centered text="${entityName}" fill="_"/>
<@centered text="${address}" fill="_"/>
<@centered text="${phone}" fill="_"/>

<@centered text="INFORMATIVA ${NrBon} - ${masa} ${waiter}" fill=" "/>
<#if exemplar?? && (exemplar?length > 0) >
<@centered text="-" fill="-"/>
<@centered text="Exemplar ${exemplar}" fill=" "/>
<@centered text="-" fill="-"/>
</#if>

<#list sales as product>
<@productline leftpart="${product.produs}"  rightpart="${product.cantitate}x${product.pret}=${product.valoare}" format="" rightsize=10/>
</#list>
<@centered text="-" fill="-"/>
<@leftalign text="  TOTAL ${total1}" format="TDU"/>

<#if discount?? >
    <@leftalign text="  ${discount}"/>
    <@leftalign text="  TOTAL DUPA DISCOUNT ${total2}"/>
</#if>

<#if tipsIncluded?? >
<@centered text="-" fill="-"/>
<#list sales as product>
<#if product.produs?lower_case == "tips">
    <@productline leftpart="${product.produs}"  rightpart="${product.cantitate}x${product.pret}=${product.valoare}" format="" rightsize=10/>
</#if>
</#list>
<@centered text=" TIPS INCLUDED. _THANK YOU_ " fill="_" format="TDU"/>
<@centered text="-" fill="-"/>

    <#else>
    <@centered text=" TIPS __NOT__ INCLUDED " fill=" " format="TDU"/>

    <@leftalign text="  ${tips_15_label} - Excellent [ ] -> ${tips_included_15_value} RON" format="TDU"/>
    <@leftalign text="  ${tips_12_label} - Very Good [ ] -> ${tips_included_12_value} RON"/>
    <@leftalign text="  ${tips_10_label} - Good [ ] -> ${tips_included_10_value} RON"/>

    <@centered text="THANK YOU"/>
</#if>

<@centered text="-" fill="-"/>
<@centered text="Soft by www.DeverSoft.ro" format="TDU"/>
<@centered text="-" fill="-"/>

<@cutter/>
<@buzzer/>
<@drawer/>




