##=====================================================================================================
##================================== IP PRINTER =======================================================
##=====================================================================================================
#if($deviceClass=="IppPrinter")
#if (!$operation.sumResult.out.isEmpty())
<center><img src="file:///${app_path}/templates/logo/upc.png"></center>
#end
<center/><b>NTS Pay</b>
<center/><b>SISTEM DE PLATI INTELIGENT</b>
#if ($operation.sumResult.out.isEmpty())
<center/><b>BON DE REST</b>
#end
<left/><b>$dealer.name</b>
<left/>CUI: <b>$dealer.inn, J$dealer.ogrn</b>
<left/><b>$dealer.address</b>
<center/>----------------------------
<left/>Terminal: <b>$point.id</b>
<left/>Data: <b>$dateFormat.format($operation.date)</b>
<left/>Numar: <b>$operation.checkNumber</b>
<left/>Adresa: <b>$point.city, $point.address</b>

#if (!$operation.sumResult.out.isEmpty())
<left/>Serviciul: <b>$operation.service.name</b>
<left/>Cod client: <b>$operation.views.get("id1").replaceAll("(\d{3})(\d{3})(\d{4})","$1.$2.$3")</b>
<left/>Incarcat: <b>$SumFormatter.format($operation.sumResult.income.sum) LEI
#end
## ======================================================================================================
## =============================== SUCCESS AND REST =====================================================
#if (!$operation.sumResult.out.isEmpty())
#if ($operation.pinCode)
<left/>Ati introdus: $SumFormatter.format($operation.sumResult.income.sum) LEI
#if ($operation.pincodeNominal)
<left/>Rest*: $SumFormatter.format($operation.pinCodeNominal) LEI
#else
<left/>Rest*: $SumFormatter.format($operation.sumResult.change.sum) LEI
#end
<left/>Cod rest: <b>$renderHelper.formatPinCode($operation.pinCode)</b>
<center/><div style="padding:3px 0 0 0;">*Pentru eliberarea restului va rugam sunati la:
<center/>Serviciul Clienti eAjutor:
<center/><b>073.702.8363, 021.269.0167</b>,
<center/>Luni-Vineri intre orele 9:00-18:00.
#end
## =============================== ONLY REST ============================================================
#elseif ($operation.sumResult.out.isEmpty())
#if ($operation.pincodeNominal)
<left/><font size="2">Rest: <b>$operation.pinCodeNominal LEI</b></font>
#else
<left/><font size="2">Rest: <b>$operation.sumResult.change.sum LEI</b></font>
#end
<left/><font size="2">Cod rest: <b>$renderHelper.formatPinCode($operation.pinCode)</b></font>
#end
## =============================== END REST =============================================================
## ======================================================================================================
<hr><center>Asigurati-va ca acest bon a fost tiparit in prezenta dvs.
Va rugam sa pastrati bonul. Orice reclamatii se admint numai dupa prezentarea bonului.

#if (!$operation.sumResult.out.isEmpty())
<center/><b>TRANZACTIE REUSITA</b>
<center/>----------------------------
<center/>Pentru orice intrebari legate de functionarea acestui terminal de plata va rugam sa apelati:
#elseif ($operation.sumResult.out.isEmpty())
<center/><b>ATENTIE, TRANZACTIE NEREUSITA!</b>
<center/>----------------------------
Pentru eliberarea sumei introduse sunati la:
#end
<center/>Serviciul Clienti eAjutor:
<center/><b>073.702.8363, 021.269.0167</b>,
<center/>Luni-Vineri intre orele 9:00-18:00.

<b>MULTUMIM CA ATI ALES NTS Pay!</b>

<center/>Serviciu oferit in parteneriat cu QIWI!
##=====================================================================================================
##================================== POS PRINTER ======================================================
##=====================================================================================================
#elseif ($deviceClass=="PosPrinter")
#if (!$operation.sumResult.out.isEmpty())
<center/><img src="upc_pos.png"/>
#end
<center/><b>NTS Pay<br>SISTEM DE PLATI INTELIGENT</b>

#if ($operation.sumResult.out.isEmpty())
BON DE REST

#end
<left/><b>$dealer.name</b>
<left/>CUI: <b>$dealer.inn, J$dealer.ogrn</b>
<left/><b>$dealer.address</b>
<center/>----------------------------
<left/>Numar Terminal: <b>$point.id</b>
<left/>Data Tranzactie: <b>$dateFormat.format($operation.date)</b>
<left/>Numar Tranzactie: <b>$operation.checkNumber</b>
<left/>Adresa Terminal: <b>$point.city, $point.address</b>

#if (!$operation.sumResult.out.isEmpty())
<left/>Serviciul: <b>$operation.service.name</b>
<left/>Cod client: <b>$operation.views.get("id1").replaceAll("(\d{3})(\d{3})(\d{4})","$1.$2.$3")</b>
<left/>Incarcat: <b>$SumFormatter.format($operation.sumResult.income.sum) LEI
#end
## ======================================================================================================
## =============================== SUCCESS AND REST =====================================================
#if (!$operation.sumResult.out.isEmpty())
#if ($operation.pinCode)
<left/>Ati introdus: <b>$SumFormatter.format($operation.sumResult.income.sum) LEI</b>
#if ($operation.pincodeNominal)
<left/>Rest*: <b>$SumFormatter.format($operation.pinCodeNominal) LEI</b>
#else
<left/>Rest*: <b>$SumFormatter.format($operation.sumResult.change.sum) LEI</b>
#end
<left/>Cod rest: <b>$renderHelper.formatPinCode($operation.pinCode)</b>
<center/>Pentru eliberarea sumei introduse sunati la:
<center/>Serviciul Clienti eAjutor:
<center/><b>073.702.8363, 021.269.0167</b>,
<center/>Luni-Vineri intre orele 9:00-18:00.
#end
## =============================== ONLY REST ============================================================
#elseif ($operation.sumResult.out.isEmpty())
#if ($operation.pincodeNominal)
<left/>Rest: <b>$operation.pinCodeNominal LEI</b>
#else
<left/>Rest: <b>$operation.sumResult.change.sum LEI</b>
#end
<left/>Cod rest: <b>$renderHelper.formatPinCode($operation.pinCode)</b>
#end
## =============================== END REST =============================================================
## ======================================================================================================
<center/>------------------------------------
<left/>Asigurati-va ca acest bon a fost tiparit in prezenta dvs. Va rugam sa pastrati bonul.
<left/>Orice reclamatii se admit numai dupa prezentarea bonului.
#if (!$operation.sumResult.out.isEmpty())
<center/><b>TRANZACTIE REUSITA</b>
<center/>----------------------------
<center/>Pentru orice intrebari legate de functionarea acestui terminal de plata va rugam sa apelati:
#elseif ($operation.sumResult.out.isEmpty())
<center/><b>ATENTIE, TRANZACTIE NEREUSITA!</b>
<center/>----------------------------
Pentru eliberarea sumei introduse sunati la:
#end
<center/>Serviciul Clienti eAjutor:
<center/><b>073.702.8363, 021.269.0167</b>,
<center/>Luni-Vineri intre orele 9:00-18:00.

<b>MULTUMIM CA ATI ALES NTS Pay!</b>

<center/>Serviciu oferit in parteneriat cu QIWI!
#end
