templates/pdfComanda.html.twig line 33

Open in your IDE?
  1. <html>
  2.     <head><title>abonament</title></head>
  3.     <tbody>
  4.         <div style="width: 100%;">
  5.             <div style="text-align: left; font-size: 18px; margin: 0px 0 5px 0; padding: 5px; font-weight: bold; background: #eee;">
  6.                 <table border="0" cellpadding="1" cellspacing="0" summary="" style="width:100%; margin-bottom: 0px;">
  7.                     <tbody>
  8.                         <tr>
  9.                             <td>
  10.                                 <img src="https://www.masella.com/images/logo_masella-black.png" alt="Masella" style="width:160px;">
  11.                             </td>
  12.                             <td style="text-align:left; font-size:17px; padding: 0 10px; background: #a0d5ff;">
  13.                                 <strong>{{"Resum de la compra" | trans}}</strong> 
  14.                             </td>
  15.                             <td style="text-align:left; font-size:14px; padding: 0 10px; background: #a0d5ff;">
  16.                                 {{"Lloc:" | trans}} <strong>{{objComandes.getLlocVenda()}}</strong><br/>
  17.                                 {{"Data:" | trans}} <strong>{{objComandes.getData() | date('d-m-Y')}}</strong><br/>
  18.                                 {{"Localitzador:" | trans}} <strong>{{objComandes.getLocalitzador()}}</strong><br/>
  19.                                 {{"Codi client:" | trans}} <strong>{{objComandes.getConsumers.getId()}}</strong></span>
  20.                             </td>
  21.                         </tr>
  22.                 </table>
  23.             </div>    
  24.             <div style="padding:10px;">
  25.                 <table border="0" cellpadding="3" cellspacing="0" summary="" style="width:100%; margin-bottom: 20px;">
  26.                     <tbody>
  27.                         <tr>
  28.                             <td colspan="3" style="text-align:left; font-size:14px; margin: 15px 0 15px 0; font-weight:bold;">{{"Dades del comprador:" | trans}}</td>
  29.                         </tr>
  30.                         <tr>
  31.                             <td style="font-size: 14px; border-bottom:solid 1px #ccc; ">{{"Nom" | trans}}:<br/>
  32.                                 <strong>{{objComandes.consumers.nom}}</strong>
  33.                             </td>
  34.                             <!--
  35.                             <td style="font-size: 14px; border-bottom:solid 1px #ccc; ">{{"Cognoms" | trans}}:<br/>
  36.                                 <strong>{{objComandes.consumers.cognoms}}</strong>
  37.                             </td>
  38.                             -->
  39.                             <td style="font-size: 14px; border-bottom:solid 1px #ccc; ">{{"Cognom1" | trans}}:<br/>
  40.                                 <strong>{{objComandes.consumers.cognom1}}</strong>
  41.                             </td>
  42.                             <td style="font-size: 14px; border-bottom:solid 1px #ccc; ">{{"Cognom2" | trans}}:<br/>
  43.                                 <strong>{{objComandes.consumers.cognom2}}</strong>
  44.                             </td>
  45.                             <td style="font-size: 14px; border-bottom:solid 1px #ccc; ">{{"DNI" | trans}}:<br/>
  46.                                 <strong>{{objComandes.consumers.dni}}</strong>
  47.                             </td>
  48.                         </tr>
  49.                         <tr>
  50.                             <td style="font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;">{{"Adreça" | trans}}:<br/>
  51.                                 <strong>{{objComandes.consumers.direccio}}</strong>
  52.                             </td>
  53.                             <td style="font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;">{{"C.Postal" | trans}}:<br/>
  54.                                 <strong>{{objComandes.consumers.cp}}</strong>
  55.                             </td>
  56.                             <td style="font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;">{{"Població" | trans}}:<br/>
  57.                                 <strong>{{objComandes.consumers.poblacio}}</strong>
  58.                             </td>
  59.                         </tr>
  60.                         <tr>
  61.                             <td style="font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;">{{"D. naixement" | trans}}:<br/>
  62.                                 <strong>{{objComandes.consumers.dataNaixement |date('d-m-Y')}}</strong>
  63.                             </td>
  64.                             <td style="font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;">{{"E-mail" | trans}}:<br/>
  65.                                 <strong>{{objComandes.consumers.email}}</strong>
  66.                             </td>
  67.                             <td style="font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;">{{"Telèfon" | trans}}:<br/>
  68.                                 <strong>{{objComandes.consumers.telefon}}</strong>
  69.                             </td>
  70.                         </tr>
  71.                         <tr>
  72.                             <td style="font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;">{{"Forma de pagament" | trans}}:<br/>
  73.                                 <strong>{{objComandes.getFormaPagament()}}</strong>
  74.                             </td>
  75.                             <td colspan="2" style="font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;">{{"Vol factura?" | trans}}:<br/>
  76.                                 <strong>{% if (objComandes.factura == 1)%} Si {% else %} No {% endif %}</strong>
  77.                             </td>
  78.                         </tr>
  79.                         {% if objComandes.getFormaPagament() == 'Mixt' 
  80.                                 and objComandes.getPagamentTargeta() > 0
  81.                                 and objComandes.getPagamentEfectiu() > 0%}
  82.                             <tr>
  83.                                 <td style="font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;">{{"Pagament targeta" | trans}}:<br/>
  84.                                     <strong>{{objComandes.getPagamentTargeta()}}</strong>
  85.                                 </td>
  86.                                 <td colspan="1" style="font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;">{{"Pagament efectiu" | trans}}:<br/>
  87.                                     <strong>{{objComandes.getPagamentEfectiu()}}</strong>
  88.                                 </td>
  89.                             </tr>
  90.                             
  91.                         {% endif %}
  92.                         <!--
  93.                         <tr>
  94.                             <td colspan="3" >
  95.                         {{"Acceptació RGPD*" | trans}} Si  
  96.                             </td>
  97.                         </tr>
  98.                         -->
  99.                     </tbody>
  100.                 </table>
  101.                 <table border="0" cellpadding="3" cellspacing="0" summary="" style="width:100%; border:solid 1px #a0d5ff; margin-bottom: 20px;">
  102.                     <thead>
  103.                         <tr>
  104.                             <th colspan="7" style="text-align:left; font-size:17px; font-weight:bold; padding: 10px; background: #a0d5ff;">{{"Productes" | trans}}</th>
  105.                         </tr>
  106.                         <tr>
  107.                             <th style="text-align:left; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;">{{"Nom" | trans}}</th>
  108.                             <th style="text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;">{{"Data naixement" | trans}}</th>
  109.                             <th style="text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;">{{"RGPD*" | trans}}</th>
  110.                             <th style="text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;">{{"Quantitat" | trans}}</th>
  111.                             <th style="text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;">{{"Tipus d'abonament" | trans}}</th>
  112.                             <th style="text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;">{{"WTP" | trans}}</th>
  113.                             {% if objComandes.getFormaPagament() == 'Mixt' 
  114.                                     and objComandes.getPagamentTargeta() == 0
  115.                                     and objComandes.getPagamentEfectiu() == 0%}
  116.                             <th style="text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;">{{"Pagament targeta" | trans}}</th>
  117.                             <th style="text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;">{{"Pagament efectiu" | trans}}</th>
  118.                             {% endif %}
  119.                             <th style="text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-bottom:solid 2px #a0d5ff;">{{"Preu" | trans}}</th>
  120.                             
  121.                         </tr>
  122.                     </thead>
  123.                     <tbody>
  124.                         {% set descompte = 0 %}
  125.                         {% for linies in  objComandesLinies %}
  126.                             {% if linies.abonaments.estacio != 'Extra' %}
  127.                                 {% set descompte = descompte + linies.descompte %}
  128.                                 <tr>
  129.                                     <td style="text-align:left; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;">{{linies.consumers.nom~' '~linies.consumers.cognom1~' '~linies.consumers.cognom2}}</td>
  130.                                     <td style="text-align:center; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;">{% if linies.dataNaixement !='' %}{{linies.dataNaixement|date('d-m-Y')}}{% endif %}</td>                                    
  131.                                     <td style="text-align:center; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;"><div style="border-radius: 50%; background: green; color: #fff; width: 20px; height: 20px; font-size: 20px;text-align:center; margin:0 auto;" > &#10004;</div></td>
  132.                                     <td style="text-align:center; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;">{{linies.quantitat}}</td>
  133.                                     <td style="text-align:center; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;">
  134.                                         {{linies.abonamentsTipus~' '~linies.detall}}
  135.                                         {% set preuSuplement = 0 %}
  136.                                         {% for suplement in objComandesLiniesSuplement %}
  137.                                             {% if ( linies.id~'-'~suplement.id in aSuplements  ) %}
  138.                                                 <br>
  139.                                                 {{suplement.quantitat~' '~suplement.abonamentsTipus~' '~suplement.detall}}
  140.                                                 {% set preuSuplement = suplement.total %}
  141.                                             {% endif %}
  142.                                         {% endfor %}
  143.                                     </td>
  144.                                     <td style="text-align:center; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;">
  145.                                         {{ linies.xipIntroduitClient }}
  146.                                     </td>
  147.                                     {% if objComandes.getFormaPagament() == 'Mixt' 
  148.                                             and objComandes.getPagamentTargeta() == 0
  149.                                             and objComandes.getPagamentEfectiu() == 0%}
  150.                                     <td style="text-align:center; font-size:14px; padding: 5px 10px; text-align:right; border-bottom:solid 1px #a0d5ff;">
  151.                                         {{linies.pagamentTargeta}}
  152.                                     </td>    
  153.                                     <td style="text-align:center; font-size:14px; padding: 5px 10px; text-align:right; border-bottom:solid 1px #a0d5ff;">
  154.                                         {{linies.pagamentEfectiu}}
  155.                                     </td>
  156.                                     {% endif %}
  157.                                     <td style="text-align:center; font-size:14px; padding: 5px 10px; text-align:right; border-bottom:solid 1px #a0d5ff;">
  158.                                         {{linies.total|number_format(2, '.', ',')}}€
  159.                                         {% if (preuSuplement>0) %}
  160.                                             <br>{{preuSuplement}}€
  161.                                         {% endif %}
  162.                                     </td>
  163.                                 </tr>
  164.                             {% endif %}
  165.                         {% endfor %}
  166.                         </tbody>
  167.                 </table>
  168.                 {% set head = 1 %}
  169.                 {% set guardaesquis = 0 %}
  170.                 {% for linies in  objComandesLinies %}
  171.                     {% if linies.abonaments.estacio == 'Extra' %}
  172.                         
  173.                         {% if head == 1 %}    
  174.                             <table border="0" cellpadding="3" cellspacing="0" summary="" style="width:100%; border:solid 1px #a0d5ff; margin-bottom: 20px;">
  175.                                 <thead>
  176.                                     <tr>
  177.                                         <th colspan="4" style="text-align:left; font-size:17px; font-weight:bold; padding: 10px; background: #a0d5ff;">Extres</th>
  178.                                         <th style="text-align:center; font-size:14px; padding: 10px; background: #a0d5ff;">{{"RGPD*" | trans}}</th>
  179.                                         <th style="text-align:center; font-size:14px; padding: 10px; background: #a0d5ff;">{{"Preu" | trans}}</th>
  180.                                     </tr>
  181.                                 </thead>
  182.                                 {% set head = 0 %}
  183.                             {% endif %}
  184.                             
  185.                             <tr>
  186.                                 <td style="text-align:left; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;">{{linies.consumers.nom~' '~linies.consumers.cognom1~' '~linies.consumers.cognom2}}</td>
  187.                                 <td style="text-align:left; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;"></td>
  188.                                 <td style="text-align:left; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;">{{linies.quantitat}}</td>
  189.                                 <td style="text-align:left; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;">
  190.                                     {{linies.abonamentsTipus~' '~linies.detall}}
  191.                                     {% if linies.abonaments.estacio == 'Extra'  and linies.abonaments.id == 64 %}
  192.                                         {% set guardaesquis = 1 %}
  193.                                         {% if linies.taquilla == '0' or linies.taquilla == ''%}
  194.                                             {{' ' ~ 'taquilla sense assignar'}}
  195.                                         {% else %}
  196.                                             {{' ' ~ 'taquilla nº' ~ ' ' ~ linies.taquilla }}
  197.                                         {% endif %}
  198.                                     {% endif %}
  199.                                     {% set preuSuplement = 0 %}
  200.                                     {% for suplement in objComandesLiniesSuplement %}
  201.                                         {% if ( linies.id~'-'~suplement.id in aSuplements  ) %}
  202.                                             <br>
  203.                                             {{suplement.quantitat~' '~suplement.abonamentsTipus~' '~suplement.detall}}
  204.                                             {% set preuSuplement = suplement.total %}
  205.                                         {% endif %}
  206.                                     {% endfor %}
  207.                                 </td>
  208.                                 <td style="text-align:center; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;"><div style="border-radius: 50%; background: green; color: #fff; width: 20px; height: 20px; font-size: 20px;text-align:center; margin:0 auto;" > &#10004;</div></td>
  209.                                 <td style="text-align:right; font-size:14px; padding: 5px 10px; border-bottom:solid 1px #a0d5ff;">
  210.                                     {{linies.total|number_format(2, '.', ',')}}€
  211.                                     {% if (preuSuplement>0) %}
  212.                                         <br>{{preuSuplement}}€
  213.                                     {% endif %}
  214.                                 </td>
  215.                             </tr>
  216.                         {% endif %}
  217.                     {% endfor %}
  218.                 </table>
  219.                 {% if (objComandes.factura == 1)%}
  220.                     {% if (objComandes.getNomEmpresa() != '' or objComandes.getNifEmpresa() != '')%}
  221.                         <table border="0" cellpadding="3" cellspacing="0" summary="" style="width:100%; border:solid 2px #a0d5ff;">
  222.                             <tbody>
  223.                                 <tr>
  224.                                     <th colspan="4" style="text-align:left; font-size:14px; font-weight:bold; padding: 10px; background: #a0d5ff;">{{"Factura" | trans}}</th>
  225.                                 </tr>
  226.                                 <tr>
  227.                                     <td style="font-size: 14px; width:50%; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff; padding-top:10px;">{{"Nom empresa" | trans}}:<br/>
  228.                                         <strong>{{objComandes.getNomEmpresa()}}
  229.                                     </td>
  230.                                     <td style="font-size: 14px; width:50%; border-bottom:solid 1px #a0d5ff; padding-top:10px;">{{"Nif empresa" | trans}}:<br/>
  231.                                         <strong>{{objComandes.getNifEmpresa()}}</strong>
  232.                                     </td>
  233.                                 </tr>
  234.                             {% endif %}
  235.                             {% if (objComandes.getDireccioEmpresa() != '')%}
  236.                                 <tr>
  237.                                     <td  colspan="2" style="font-size: 14px; border-bottom:solid 1px #a0d5ff; width:100%; padding-top:10px;">{{"Adreça empresa" | trans}}:<br/>
  238.                                         <strong>{{objComandes.getDireccioEmpresa()}}</strong>
  239.                                     </td>
  240.                                 </tr>
  241.                             {% endif %}
  242.                             {% if (objComandes.getCpEmpresa() != '' or objComandes.getPoblacioEmpresa() != '')%}
  243.                                 <tr>
  244.                                     <td style="font-size: 14px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff; width:50%; padding-top:10px;">{{"C.Postal" | trans}}:<br/>
  245.                                         <strong>{{objComandes.getCpEmpresa()}}</strong>
  246.                                     </td>
  247.                                     <td style="font-size: 14px; border-bottom:solid 1px #ccc; width:20%; padding-top:10px;">{{"Població" | trans}}:<br/>
  248.                                         <strong>{{objComandes.getPoblacioEmpresa()}}</strong>
  249.                                     </td>
  250.                                 </tr>
  251.                             </tbody>
  252.                         </table>
  253.                     {% endif %}
  254.                 {% endif %}
  255.                 <div style="clear: both;"></div>
  256.                 <div style="text-align:right; font-size:17px; font-weight:bold; margin: 10px 10px 0 0;  height: 25px; float: right; min-width: 80px;">{{(total_cistella+descompte)|number_format(2, '.', ',') }}€</div>
  257.                 <div style="width: 260px; text-align:right; font-size:14px; margin: 15px 5px 0 0; float: right;">{{"TOTAL" | trans}}:</div>
  258.                 {% set totalComanda = total_cistella %}
  259.                 {% if (objComandes.getDescompte() != '' 
  260.                         and objComandes.getDescompte() > 0.00) 
  261.                         or (descompte != '' and descompte > 0.00)%}
  262.                     {% if (objComandes.getDescompte() != '' 
  263.                         and objComandes.getDescompte() > 0.00) %}
  264.                         {% set descompte = objComandes.getDescompte() %}
  265.                         {% set totalComanda = total_cistella - descompte %}
  266.                     {% endif %}
  267.                     <div style="clear: both;"></div>
  268.                     <div style="text-align:right; font-size:17px; font-weight:bold; margin: 0px 10px 0 0;  height: 25px; float: right; min-width: 80px;">{{descompte|number_format(2, '.', ',') }}€</div>
  269.                     <div style="width: 260px; text-align:right; font-size:11px; margin: 0px 5px 0 0; float: right;">{{"Descompte" | trans}}:</div>
  270.                     <div style="clear: both;"></div>
  271.                     <div style="text-align:right; font-size:17px; font-weight:bold; margin: 0px 10px 0 0;  height: 25px; float: right; min-width: 80px;">{{totalComanda|number_format(2, '.', ',') }}€</div>
  272.                     <div style="width: 260px; text-align:right; font-size:14px; margin: 0px 5px 0 0; float: right;">{{"TOTAL amb descompte" | trans}}:</div>
  273.                 {% endif %}
  274.                 <div style="clear: both;"></div>
  275.                 <div style="width: 200px; text-align:right; font-size:14px; margin: 0 10px 20px 0; float: right;">{{"(Preus amb IVA inclòs)" | trans}}</div>
  276.                 <div style="clear: both;"></div>
  277.                 {% if guardaesquis == 1 %}
  278.                     <div style="width: 440px; font-size: 14px; margin:17px 0 0 0; float: left;"><span style="font-weight:bold;" >{{"INFORMACIÓ GUARDAESQUÍS" | trans}}:</span><br />
  279.                         <span style="font-size: 9px;">{{enGeneral.getRebutGuardaesquisCa()|raw}}</span>
  280.                     </div>
  281.                 {% endif %}
  282.                 <!--<div style="width: 200px; padding-top: 110px; text-align: center; font-size:14px; margin: 0 0px 5px 0; float: right; border: solid 1px #666;">{{"Rebut no vàlid sense el segell" | trans}}</div>-->
  283.                 {% if objComandes.getFirmaCodi() != '' %}
  284.                 <div style="width: 400px; text-align: center; font-size:14px; margin: 0 0px 5px 0; border: solid 1px #666;"><img src="{{objComandes.getFirmaCodi()}}" id="img_firma_codi" name="img_firma_codi" style="width: 150px;">{# {"Signatura per la revolució de fiança" | trans} #}</div>
  285.                 {% endif %}
  286.                 {{"Localitzador:" | trans}} <strong>{{objComandes.getLocalitzador()}}</strong><br/>
  287.                 <img src="{{ sImageCode }}" />
  288.                 <div style="clear: both;"></div>
  289.                 <table border="0" cellpadding="3" cellspacing="0" summary="" style="width:100%;">
  290.                     <tbody>
  291.                         <tr>
  292.                             <td style="text-align:left;font-size: 14px;">
  293.                                 <span style="font-weight:bold;" >{{"IMPORTANT" | trans}}:</span><br/>
  294.                                 {{"Aquest rebut servirà per retirar l’abonament/s i/o l’assegurança." | trans}}<br/>
  295.                                 *RGPD: <a href="https://www.masella.com/ca/paginas/condicions-generals-abonaments-temporada"> {{ "He llegit i he acceptat la política de privacitat i les condicions dels Abonaments de Temporada" | trans }}</a>
  296.                                 +info. <a href="https://www.masella.com/ca/paginas/condicions-generals-abonaments-temporada">https://www.masella.com/ca/paginas/condicions-generals-abonaments-temporada</a>
  297.                             </td>
  298.                             <td style="text-align:right;">
  299.                                 <img src="https://www.masella.com/images/qravislegal.png" style="width:80px;" alt="QR">
  300.                             </td>
  301.                         </tr>
  302.                     </tbody>
  303.                 </table>
  304.                 <div style="clear: both;"></div>
  305.                 <div style="text-align: center; font-size: 14px; margin:20px 0 0 0;">
  306.                     TELESQUÍS DE LA TOSSA DE ALP, DAS Y URÚS, S.A. – CIF A17012824<br/>
  307.                     Av. Peu de Pista, s/n – 17538 MASELLA – ALP t. 972 144 000<br/>
  308.                     masella@masella.com – www.masella.com
  309.                 </div>
  310.             </div>
  311.         </div>
  312.     </tbody>
  313. </html>