##=====================================================================================================
##================================== IP PRINTER =======================================================
##=====================================================================================================
#if($deviceClass=="IppPrinter")
<center/><b>StartPay </b>
<center/>Aproape de tine!

<center/>**************************************

<left/><b>$dealer.name</b>
<left/>CIF:<b>$dealer.inn</b>

<left/>Serviciu: Rovinieta
<left/>Incasare in numele Scala Assistance

#if ($operation.sumResult.out.isEmpty())
<center/><b>BON DE REST</b>
#end
<left/>Terminal ID: <b>$point.id</b>
<left/>Data si ora: <b>$dateFormat.format($operation.date)</b>
<left/>Numar chitanta: <b>$operation.checkNumber</b>
<left/>Adresa: <b>$point.city, $point.address</b>
<left/>ID tranzactie: <b>$operation.views.get("id")</b>

<left/>Numar de inmatriculare: <b>$operation.views.get("id1")</b>
<left/>Suma achitata: <b>$SumFormatter.format($operation.sumResult.income.sum) RON</b>
#if (!$operation.sumResult.out.isEmpty())
<left/>Categoria: <b>$operation.views.get("category")</b>
<left/>Tara: <b>$operation.views.get("iso_code")</b>
<left/>Valabil de la: <b>$operation.views.get("valid_from2")</b>
<left/>Valabil pana la: <b>$operation.views.get("valid_until")</b>
<left/>Perioada: <b>$operation.views.get("title")</b>
<left/>Valoarea rovinietei: <b>$operation.views.get("price")</b>
<left/>Valoarea rovinietei Euro: <b>$operation.views.get("authority_price")</b>
<left/>Cursul de schimb: <b>$operation.views.get("exchange_rate")</b>
<left/>Data cursului de schimb: <b>$operation.views.get("exchange_rate_date")</b>
<left/>Serie tranzactie: <b>$operation.views.get("transaction_id")</b>
<left/>Seria: <b>$operation.views.get("number")</b>
<left/>Serie sasiu: <b>$operation.views.get("chassis_number2")</b>
<left/>GUID: <b>$operation.views.get("guid")</b>

<left/><b>$operation.views.get("email_alert")</b>
#end

## ======================================================================================================
## =============================== SUCCESS AND REST =====================================================
#if (!$operation.sumResult.out.isEmpty())
#if ($operation.pinCode)
<left/>Incasat: $SumFormatter.format($operation.sumResult.income.sum) RON
#if ($operation.pincodeNominal)
<left/>Rest*: $SumFormatter.format($operation.pinCodeNominal) RON
#else
<left/>Rest*: $SumFormatter.format($operation.sumResult.change.sum) RON
#end
<left/>Cod PIN rest: <b>$renderHelper.formatPinCode($operation.pinCode)</b>
#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/><b>TRANZACTIE REUSITA</b>
#elseif ($operation.sumResult.out.isEmpty())
<center/><b>ATENTIE, TRANZACTIE NEREUSITA!</b>
#end
<center/>**************************************

<center/><b>Relatii clienti StartPay</b>

<center/>Telefon Relatii Clienti: 0310 050 624

<center/>WhatsApp Relatii Clienti: 0310 050 624

<center/>L-V 08:00-20:00 S-D 09:00-18:00

<center/>Indisponibil in zilele libere legale


<b>Multumim ca ati ales StartPay!</b>
##=====================================================================================================
##================================== POS PRINTER ======================================================
##=====================================================================================================
#elseif ($deviceClass=="PosPrinter")
<center/><b>StartPay </b>
<center/>Aproape de tine!

<center/>**************************************

<left/><b>$dealer.name</b>
<left/>CIF:<b>$dealer.inn</b>

<left/>Serviciu: Rovinieta
<left/>Incasare in numele Scala Assistance

#if ($operation.sumResult.out.isEmpty())
<center/><b>BON DE REST</b>
#end
<left/>Terminal ID: <b>$point.id</b>
<left/>Data si ora: <b>$dateFormat.format($operation.date)</b>
<left/>Numar chitanta: <b>$operation.checkNumber</b>
<left/>Adresa: <b>$point.city, $point.address</b>
<left/>ID tranzactie: <b>$operation.views.get("id")</b>

<left/>Numar de inmatriculare: <b>$operation.views.get("id1")</b>
<left/>Suma achitata: <b>$SumFormatter.format($operation.sumResult.income.sum) RON</b>
#if (!$operation.sumResult.out.isEmpty())
<left/>Categoria: <b>$operation.views.get("category")</b>
<left/>Tara: <b>$operation.views.get("iso_code")</b>
<left/>Valabil de la: <b>$operation.views.get("valid_from2")</b>
<left/>Valabil pana la: <b>$operation.views.get("valid_until")</b>
<left/>Perioada: <b>$operation.views.get("title")</b>
<left/>Valoarea rovinietei: <b>$operation.views.get("price")</b>
<left/>Valoarea rovinietei Euro: <b>$operation.views.get("authority_price")</b>
<left/>Cursul de schimb: <b>$operation.views.get("exchange_rate")</b>
<left/>Data cursului de schimb: <b>$operation.views.get("exchange_rate_date")</b>
<left/>Serie tranzactie: <b>$operation.views.get("transaction_id")</b>
<left/>Seria: <b>$operation.views.get("number")</b>
<left/>Serie sasiu: <b>$operation.views.get("chassis_number2")</b>
<left/>GUID: <b>$operation.views.get("guid")</b>

<left/><b>$operation.views.get("email_alert")</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 PIN rest: <b>$renderHelper.formatPinCode($operation.pinCode)</b>
#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 PIN rest: <b>$renderHelper.formatPinCode($operation.pinCode)</b>
#end
## =============================== END REST =============================================================
## ======================================================================================================
#if (!$operation.sumResult.out.isEmpty())
<center/><b>TRANZACTIE REUSITA</b>
#elseif ($operation.sumResult.out.isEmpty())

<center/><b>ATENTIE, TRANZACTIE NEREUSITA!</b>
#end

<center/>**************************************

<center/><b>Relatii clienti StartPay</b>

<center/>Telefon Relatii Clienti: 0310 050 624

<center/>WhatsApp Relatii Clienti: 0310 050 624

<center/>L-V 08:00-20:00 S-D 09:00-18:00

<center/>Indisponibil in zilele libere legale


<b>Multumim ca ati ales StartPay!</b>
#end
