templates/components/report/general.html.twig line 1

Open in your IDE?
  1. {% set ticket = ticketObj[0] %}
  2. {# ASSEGNO IL LOGO #}
  3. {% set imagePath = asset_graphics ~ '/logos/' ~ ticket.supplier.slug ~ '.png' %}
  4. {% set phone1 = '' %}
  5. {% set phone2 = '' %}
  6. {% set phone3 = '' %}
  7. {% set number1Prefix = '' %}
  8. {% if ticket.client.getPhoneByName('Telefono 1') != '' %}{% set phone1 = ticket.client.getPhoneByName('Telefono 1') %}{% endif %}
  9. {% if ticket.client.getPhoneByName('Telefono 2') != '' %}{% set phone2 = ticket.client.getPhoneByName('Telefono 2') %}{% endif %}
  10. {% if ticket.client.getPhoneByName('Telefono cellulare') != '' %}{% set phone3 = ticket.client.getPhoneByName('Telefono cellulare') %}{% endif %}
  11. {% if ticket.displayJsonValueByColumn('Prefisso') is not null and ticket.displayJsonValueByColumn('Prefisso') != "" and ticket.displayJsonValueByColumn('Prefisso') != "---" %}{% set number1Prefix = ticket.displayJsonValueByColumn('Prefisso') ~ ticket.client.getPhoneByName('Telefono 1') %}{% endif %}
  12. {% set cassa = '' %}
  13. {% set abi = '' %}
  14. {% set risorsa = '' %}
  15. {% set accessori = '' %}
  16. {% set matricole = '' %}
  17. {% set anomalia = '' %}
  18. {% set note = '' %}
  19. {% set connessioni = '' %}
  20. {% set dettagliIntervento = '' %}
  21. {% set slot = '' %}
  22. {# RENDO LA STRINGA UN ARRAY #}
  23. {% set array = ticketObj[1] %}
  24. {% if array["Cassa"] is defined %}{% set cassa = array["Cassa"] %}{% endif %}
  25. {% if array["ABI"] is defined %}{% set abi = array["ABI"] %}{% endif %}
  26. {% if array["Risorsa"] is defined %}{% set risorsa = array["Risorsa"] %}{% endif %}
  27. {% if array["Accessori"] is defined %}{% set accessori = array["Accessori"] %}{% endif %}
  28. {% if array["Matricole"] is defined %}{% set matricole = array["Matricole"] %}{% endif %}
  29. {% if array["Anomalia"] is defined %}{% set anomalia = array["Anomalia"] %}{% endif %}
  30. {% if array["Note"] is defined %}{% set note = array["Note"] %}{% endif %}
  31. {% if array["Connessioni"] is defined %}{% set connessioni = array["Connessioni"] %}{% endif %}
  32. {% if array["SLOT"] is defined %}{% set slot = array["SLOT"] %}{% endif %}
  33. {% if array["Slot"] is defined %}{% set slot = array["Slot"] %}{% endif %}
  34. {% if array["Dettagli intervento"] is defined %}{% set dettagliIntervento = array["Dettagli intervento"] %}{% endif %}
  35. {% if ticket.displayJsonValueByColumn('SLOT')|lower == "bpm" %}
  36.     {% set imagePath = asset_graphics ~ '/logos/numia.png' %}
  37. {% endif %}
  38. <table class="table table-sm m_b_none bg_w">
  39.     <tr>
  40.         <td class="width_40" style="border: 0px">
  41.             <h4 class="m_b_none">Verbale intervento</h4>
  42.             <h4 class="m_b_10p">Tecnico apparato POS</h4>
  43.         </td>
  44.         <td style="border: 0px" class="txt_a_r">
  45.             <img src="{{ asset(imagePath) }}" width="150">
  46.         </td>
  47.     </tr>
  48.     <tr>
  49.         <td style="border: 0px">
  50.             <table class="table table_padding_lr b_none m_b_none font_12" style="border: 1px solid #222!important">
  51.                 <tr>
  52.                     <th colspan="2" class="txt_a_c">Riferimenti</th>
  53.                 </tr>
  54.                 <tr>
  55.                     <td class="td_w_120p">Spettabile:</td>
  56.                     <th>{{ ticket.client }}</th>
  57.                 </tr>
  58.                 <tr>
  59.                     <td>Numero Ticket:</td>
  60.                     <th>{{ ticket.number }}</th>
  61.                 </tr>
  62.                 <tr>
  63.                     <td>Terminale ID:</td>
  64.                     <th>{{ ticket.termid }}</th>
  65.                 </tr>
  66.             </table>
  67.         </td>
  68.         <td style="border: 0px">
  69.             <table class="table table_padding_lr b_none m_b_none font_12" style="border: 1px solid #222!important">
  70.                 <tr>
  71.                     <th colspan="2" class="txt_a_c">Intervento</th>
  72.                 </tr>
  73.                 <tr>
  74.                     <td class="td_w_120p">Intervento richiesto:</td>
  75.                     <th>{{ ticket.operation.group.value }}</th>
  76.                 </tr>
  77.                 <tr>
  78.                     <td>Fornitore:</td>
  79.                     <th>{{ ticket.supplier }} {% if ticket.displayJsonValueByColumn('SLOT') != null %}<span style="font-weight:300">(SLOT: {{ ticket.displayJsonValueByColumn('SLOT') }})</span>{% endif %}<span class="f_right" style="padding-right: 10px"><span style="font-weight:300">Tecnico:</span> {{ ticket.technician }}</span></th>
  80.                 </tr>
  81.                 <tr>
  82.                     <td>Data apertura ticket:</td>
  83.                     <th>{{ ticket.datetimeStart|date('d/m/Y') }} <span class="f_right" style="padding-right: 10px"><span style="font-weight:300">Data scadenza:</span> {% if ticket.datetimeExpiration %}{{ ticket.datetimeExpiration|date('d/m/Y H:i') }}{% endif %}</span></th>
  84.                 </tr>
  85.             </table>
  86.         </td>
  87.     </tr>
  88.     <tr>
  89.         <td colspan="2" style="border: 0px">
  90.             <table class="table table_padding_lr b_none m_b_none font_12" style="border: 1px solid #222!important">
  91.                 <tr>
  92.                     <th colspan="8" class="txt_a_c">Dati Esercente</th>
  93.                 </tr>
  94.                 <tr>
  95.                     <td class="td_w_120p">Ragione Sociale:</td>
  96.                     <th colspan="7">{{ ticket.client }}</th>
  97.                 </tr>
  98.                 <tr>
  99.                     <td class="td_w_120p">Indirizzo:</td>
  100.                     <td>{{ ticket.client.address }}</td>
  101.                     <td class="td_w_30p">CAP:</td>
  102.                     <td class="td_w_80p">{{ ticket.client.zip }}</td>
  103.                     <td class="td_w_30p">Prov:</td>
  104.                     <td class="td_w_80p">{{ ticket.client.idCity|translate_province_sign_from_city }}</td>
  105.                     <td class="td_w_30p">Loc:</td>
  106.                     <td class="td_w_150p">{{ ticket.client.idCity|translate_city_only }}</td>
  107.                 </tr>
  108.                 <tr>
  109.                     <td class="td_w_120p">Telefoni:</td>
  110.                     <td>
  111.                         {% if phone1 != '' %}{{ phone1 }}{% endif %}
  112.                         {% if phone2 != '' %}{% if phone1 != '' %} / {% endif %}{{ phone2 }}{% endif %}
  113.                         {% if phone3 != '' %}{% if phone1 != '' or phone2 != '' %} / {% endif %}{{ phone3 }}{% endif %}
  114.                         {% if number1Prefix != '' %}{% if phone1 != '' or phone2 != '' or phone3 != '' %} / {% endif %}{{ number1Prefix }}{% endif %}
  115.                     </td>
  116.                     <td colspan="2">Referente:</td>
  117.                     <td colspan="4">{{ ticket.client.referent }}</td>
  118.                 </tr>
  119.                 <tr>
  120.                     <td class="td_w_120p">Orari di apertura:</td>
  121.                     <td>{{ ticket.client.openings }}</td>
  122.                     <td colspan="2">Giorno di chiusura:</td>
  123.                     <td colspan="4">{{ ticket.client.closures }}</td>
  124.                 </tr>
  125.             </table>
  126.         </td>
  127.     </tr>
  128.     <tr>
  129.         <td colspan="2" style="border: 0px">
  130.             <table class="table table_padding_lr b_none m_b_none font_12" style="border: 1px solid #222!important">
  131.                 <tr>
  132.                     <th colspan="6" class="txt_a_c">Dati Banca</th>
  133.                 </tr>
  134.                 <tr>
  135.                     <td class="td_w_120p">Codice SIA/STAB:</td>
  136.                     <td class="td_w_100p">{{ ticket.client.code }}</td>
  137.                     <td class="td_w_80p">Num Cassa:</td>
  138.                     <td class="td_w_80p">{{ cassa|raw }}</td>
  139.                     <td class="td_w_50p">ABI:</td>
  140.                     <td>{{ abi|raw }}</td>
  141.                 </tr>
  142.                 <tr>
  143.                     <td>Risorsa interessata:</td>
  144.                     <td colspan="5">{{ risorsa|raw }}</td>
  145.                 </tr>
  146.                 <tr>
  147.                     <td>Accessori:</td>
  148.                     <td colspan="5">{{ accessori|raw }}</td>
  149.                 </tr>
  150.                 <tr>
  151.                     <td>Matricole:</td>
  152.                     <td colspan="5">{{ matricole|raw }}</td>
  153.                 </tr>
  154.                 <tr>
  155.                     <td>Anomalia:</td>
  156.                     <td colspan="5">{{ anomalia|raw }}</td>
  157.                 </tr>
  158.                 <tr>
  159.                     <td>Connessioni:</td>
  160.                     <td colspan="5">{{ connessioni|raw }}</td>
  161.                 </tr>
  162.                 <tr>
  163.                     <td>Ulteriori dettagli:</td>
  164.                     <td colspan="5">{{ dettagliIntervento|raw }}</td>
  165.                 </tr>
  166.                 <tr>
  167.                     <td>Note:</td>
  168.                     <td colspan="5">{{ note }}{% if ticket.getLastSuspension != null %}{% if note != null %}<br>{% endif %}{{ ticket.getLastSuspension.unlockCausal }}{% endif %}</td>
  169.                 </tr>
  170.             </table>
  171.         </td>
  172.     </tr>
  173.     <tr>
  174.         <td colspan="2" style="border: 0px">
  175.             <table class="table table_padding_lr b_none m_b_none font_12" style="border: 1px solid #222!important">
  176.                 <tr>
  177.                     <td>RITIRO PRESSO:</td>
  178.                 </tr>
  179.             </table>
  180.         </td>
  181.     </tr>
  182.     <tr>
  183.         <td colspan="2" style="border: 0px">
  184.             <table class="table table_padding_lr b_none m_b_none font_12" style="border: 1px solid #222!important">
  185.                 <tr>
  186.                     <th colspan="6" class="txt_a_c">Dati Terminale</th>
  187.                 </tr>
  188.                 <tr>
  189.                     <th colspan="6">Si attesta che presso il Punto Vendita sopra indicato sono stati eseguiti:</th>
  190.                 </tr>
  191.                 <tr>
  192.                     <td class="td_w_20p"><input type="checkbox"/></td>
  193.                     <td colspan="5">Intervento tecnico di Installazione/Manutenzione/Sostituzione dell'apparato POS/Upgrade indicato nel contratto di adesione ai servizi di accettazione pagamento</td>
  194.                 </tr>
  195.                 <tr>
  196.                     <td class="td_w_20p"><input type="checkbox" style="vertical-align: text-top"/></td>
  197.                     <td colspan="5">Verifica di funzionamento dell'apparato POS ed eventuali accessori (es. DLL, lettura chip, lettura-cles, apertura cont)</td>
  198.                 </tr>
  199.                 <tr>
  200.                     <td class="td_w_20p"><input type="checkbox" style="vertical-align: text-top"/></td>
  201.                     <td colspan="5">In allegato relativi scontrini</td>
  202.                 </tr>
  203.                 <tr>
  204.                     <td class="td_w_20p"><input type="checkbox" style="vertical-align: text-top"/></td>
  205.                     <td colspan="5">Attività formativa in merito alle modalità di funzionamento dell'apparato POS e altre funzionalità necessarie al funzionamento</td>
  206.                 </tr>
  207.                 <tr>
  208.                     <td class="td_w_20p"><input type="checkbox" style="vertical-align: text-top"/></td>
  209.                     <td>Consegna vetrofanie</td>
  210.                     <td class="td_w_20p"><input type="checkbox" style="vertical-align: text-top"/></td>
  211.                     <td>Consegna manuali d'uso</td>
  212.                     <td class="td_w_20p"><input type="checkbox" style="vertical-align: text-top"/></td>
  213.                     <td>TLM SMARTPOS: Consegna welcome kit</td>
  214.                 </tr>
  215.             </table>
  216.         </td>
  217.     </tr>
  218.     <tr>
  219.         <td colspan="2" style="border: 0px">
  220.             <table class="table table_padding_lr b_none m_b_none font_12" style="border: 1px solid #222!important">
  221.                 <tr>
  222.                     <th colspan="3" class="txt_a_c">Conformità Apparato</th>
  223.                 </tr>
  224.                 <tr>
  225.                     <th colspan="3">Il titolare delegato attesta che il terminale ricevuto è conforme all'utilizzo: <span style="font-weight:300">(es: estetica, pulizia scocca, assenza di usura)</span></th>
  226.                 </tr>
  227.                 <tr>
  228.                     <td colspan="3">Voce applicabile soltanto se l'intervento prevede la consegna di un terminale</td>
  229.                 </tr>
  230.                 <tr>
  231.                     <td class="td_w_20p"><input type="checkbox" style="vertical-align: text-top"/></td>
  232.                     <td>Terminale conforme</td>
  233.                     <th>Note:</th>
  234.                 </tr>
  235.                 <tr>
  236.                     <td class="td_w_20p"><input type="checkbox" style="vertical-align: text-top"/></td>
  237.                     <td>Terminale non conforme</td>
  238.                     <td>Timbro e firma del cliente ___________________________________________________</td>
  239.                 </tr>
  240.             </table>
  241.         </td>
  242.     </tr>
  243.     {% if ticket.supplier.slug == 'nexi-book-monetica' or ticket.supplier.slug == 'nexi-book-meps' or ticket.supplier.slug == 'nexi-book-sia' %}
  244.         <tr>
  245.             <td colspan="2" style="border: 0px">
  246.                 <table class="table table_padding_lr b_none m_b_none font_12" style="border: 1px solid #222!important">
  247.                     <tr>
  248.                         <td class="td_w_20p"><input type="checkbox" style="vertical-align: text-top"/></td>
  249.                         <td>App Nexi Business attivata dal tecnico</td>
  250.                         <td class="td_w_20p"><input type="checkbox" style="vertical-align: text-top"/></td>
  251.                         <td>App Nexi Business già attiva</td>
  252.                     </tr>
  253.                     <tr>
  254.                         <td class="td_w_20p"><input type="checkbox" style="vertical-align: text-top"/></td>
  255.                         <td colspan="3">Si richiede assistenza per attivare App Nexi Business</td>
  256.                     </tr>
  257.                     <tr>
  258.                         <th colspan="4">Nexi Business tramite e-mail ________________________________________ Cellulare ___________________________</th>
  259.                     </tr>
  260.                 </table>
  261.             </td>
  262.         </tr>
  263.     {% endif %}
  264.     <tr>
  265.         <td colspan="2" style="border: 0px">
  266.             <table class="table table_padding_lr b_none m_b_none font_12 m_t_20p">
  267.                 <tr>
  268.                     <th>Data / Ora fine intervento</th>
  269.                     <th>Timbro / Firma del cliente</th>
  270.                 </tr>
  271.                 <tr>
  272.                     <th class="height_40p v_a_b">________________________________________</th>
  273.                     <th class="height_40p v_a_b">________________________________________</th>
  274.                 </tr>
  275.             </table>
  276.         </td>
  277.     </tr>
  278. </table>
  279. <div style="page-break-after: always;"></div>