##================================================================================
##================================== IP PRINTER ==================================
##================================================================================
#if($deviceClass=="IppPrinter")
#if (!$operation.sumResult.out.isEmpty())
<center><img src="file:///${app_path}/templates/logo/orange.png"></center>
#end
<center/><b><font size="2">NTS Pay</font></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/>Numar telefon: <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) RON (TVA 19% inclus.) / $SumFormatter.format($operation.sumResult.outProv.sum) EUR</b>
#end
## ================================================================================
## =============================== SUCCESS AND REST ===============================
#if (!$operation.sumResult.out.isEmpty())
#if ($operation.pinCode)
<left/>Incasat: <b>$SumFormatter.format($operation.sumResult.income.sum) RON</b>
#if ($operation.pincodeNominal)
<left/>Rest*: <b>$SumFormatter.format($operation.pinCodeNominal) RON</b>
#else
<left/>Rest*: <b>$SumFormatter.format($operation.sumResult.change.sum) RON</b>
#end
<left/>Cod rest: <b>$renderHelper.formatPinCode($operation.pinCode)</b>
<center/>Pentru orice intrebari legate de functionarea
acestui terminal de plata va rugam sa apelati:
<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 RON</b></font>
#else
<left/><font size="2">Rest: <b>$operation.sumResult.change.sum RON</b></font>
#end
<left/><font size="2">Cod rest: <b>$renderHelper.formatPinCode($operation.pinCode)</b></font>
#end
## =============================== END REST ===============================
## ========================================================================
#if (!$operation.sumResult.out.isEmpty())
<center/>----------------------------
<center/>Orange Romania SA
<left/>Dupa efectuarea platii, contravaloarea
creditului nu se poate restitui sub nici o
forma. Orange Romania si $dealer.name
nu raspunde pentru declararea gresita
numarului Prepay de reincarcat.
<left/>Bd. Lascar Catargiu, nr. 51-53, sect. 1,
Bucuresti
<left/><b>RELATII CLIENTI ORANGE: 444</b>
#end
<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())
<b>ATENTIE, TRANZACTIE NEREUSITA!</b><br>
<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>

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

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

#end
<left/>$dealer.name
<left/>CUI: <b>$dealer.inn, J$dealer.ogrn
<left/>$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/>Numar: <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) RON (TVA 19% inclus.) / $SumFormatter.format($operation.sumResult.outProv.sum) EUR</b>
#end
## ================================================================================
## =============================== SUCCESS AND REST ===============================
#if (!$operation.sumResult.out.isEmpty())
#if ($operation.pinCode)
Ati introdus: $SumFormatter.format($operation.sumResult.income.sum) RON
#if ($operation.pincodeNominal)
<left/>Rest*: <b>$SumFormatter.format($operation.pinCodeNominal) RON</b>
#else
<left/>Rest*: <b>$SumFormatter.format($operation.sumResult.change.sum) RON</b>
#end
<left/>Cod rest: <b>$renderHelper.formatPinCode($operation.pinCode)</b>
<center/>*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/>Rest: <b>$operation.pinCodeNominal RON</b>
#else
<left/>Rest: <b>$operation.sumResult.change.sum RON</b>
#end
<left/>Cod rest: <b>$renderHelper.formatPinCode($operation.pinCode)</b>
#end
## =============================== END REST ===============================
## ========================================================================
#if (!$operation.sumResult.out.isEmpty())
<center/>----------------------------
<center/>Orange Romania SA
<left/>Dupa efectuarea platii, contravaloarea
creditului nu se poate restitui sub nici o
forma. Orange Romania si $dealer.name
nu raspunde pentru declararea gresita
numarului Prepay de reincarcat.
<left/>Bd. Lascar Catargiu, nr. 51-53, sect. 1,
Bucuresti
<left/><b>RELATII CLIENTI ORANGE: 444</b>
#end
<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.
<center/>
#if (!$operation.sumResult.out.isEmpty())
<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())
<b>ATENTIE, TRANZACTIE NEREUSITA!</b>
<center/>----------------------------
<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