<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* pdfComanda.html.twig */
class __TwigTemplate_803ffc6ccd2350793c676631537cf8db extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pdfComanda.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pdfComanda.html.twig"));
// line 1
echo "<html>
<head><title>abonament</title></head>
<tbody>
<div style=\"width: 100%;\">
<div style=\"text-align: left; font-size: 18px; margin: 0px 0 5px 0; padding: 5px; font-weight: bold; background: #eee;\">
<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" summary=\"\" style=\"width:100%; margin-bottom: 0px;\">
<tbody>
<tr>
<td>
<img src=\"https://www.masella.com/images/logo_masella-black.png\" alt=\"Masella\" style=\"width:160px;\">
</td>
<td style=\"text-align:left; font-size:17px; padding: 0 10px; background: #a0d5ff;\">
<strong>";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Resum de la compra"), "html", null, true);
echo "</strong>
</td>
<td style=\"text-align:left; font-size:14px; padding: 0 10px; background: #a0d5ff;\">
";
// line 16
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Lloc:"), "html", null, true);
echo " <strong>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 16, $this->source); })()), "getLlocVenda", [], "method", false, false, false, 16), "html", null, true);
echo "</strong><br/>
";
// line 17
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Data:"), "html", null, true);
echo " <strong>";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 17, $this->source); })()), "getData", [], "method", false, false, false, 17), "d-m-Y"), "html", null, true);
echo "</strong><br/>
";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Localitzador:"), "html", null, true);
echo " <strong>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 18, $this->source); })()), "getLocalitzador", [], "method", false, false, false, 18), "html", null, true);
echo "</strong><br/>
";
// line 19
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Codi client:"), "html", null, true);
echo " <strong>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 19, $this->source); })()), "getConsumers", [], "any", false, false, false, 19), "getId", [], "method", false, false, false, 19), "html", null, true);
echo "</strong></span>
</td>
</tr>
</table>
</div>
<div style=\"padding:10px;\">
<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"\" style=\"width:100%; margin-bottom: 20px;\">
<tbody>
<tr>
<td colspan=\"3\" style=\"text-align:left; font-size:14px; margin: 15px 0 15px 0; font-weight:bold;\">";
// line 28
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Dades del comprador:"), "html", null, true);
echo "</td>
</tr>
<tr>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; \">";
// line 32
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nom"), "html", null, true);
echo ":<br/>
<strong>";
// line 33
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 33, $this->source); })()), "consumers", [], "any", false, false, false, 33), "nom", [], "any", false, false, false, 33), "html", null, true);
echo "</strong>
</td>
<!--
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; \">";
// line 36
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cognoms"), "html", null, true);
echo ":<br/>
<strong>";
// line 37
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 37, $this->source); })()), "consumers", [], "any", false, false, false, 37), "cognoms", [], "any", false, false, false, 37), "html", null, true);
echo "</strong>
</td>
-->
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; \">";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cognom1"), "html", null, true);
echo ":<br/>
<strong>";
// line 41
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 41, $this->source); })()), "consumers", [], "any", false, false, false, 41), "cognom1", [], "any", false, false, false, 41), "html", null, true);
echo "</strong>
</td>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; \">";
// line 43
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cognom2"), "html", null, true);
echo ":<br/>
<strong>";
// line 44
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 44, $this->source); })()), "consumers", [], "any", false, false, false, 44), "cognom2", [], "any", false, false, false, 44), "html", null, true);
echo "</strong>
</td>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; \">";
// line 47
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("DNI"), "html", null, true);
echo ":<br/>
<strong>";
// line 48
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 48, $this->source); })()), "consumers", [], "any", false, false, false, 48), "dni", [], "any", false, false, false, 48), "html", null, true);
echo "</strong>
</td>
</tr>
<tr>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">";
// line 53
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Adreça"), "html", null, true);
echo ":<br/>
<strong>";
// line 54
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 54, $this->source); })()), "consumers", [], "any", false, false, false, 54), "direccio", [], "any", false, false, false, 54), "html", null, true);
echo "</strong>
</td>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">";
// line 56
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("C.Postal"), "html", null, true);
echo ":<br/>
<strong>";
// line 57
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 57, $this->source); })()), "consumers", [], "any", false, false, false, 57), "cp", [], "any", false, false, false, 57), "html", null, true);
echo "</strong>
</td>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">";
// line 59
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Població"), "html", null, true);
echo ":<br/>
<strong>";
// line 60
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 60, $this->source); })()), "consumers", [], "any", false, false, false, 60), "poblacio", [], "any", false, false, false, 60), "html", null, true);
echo "</strong>
</td>
</tr>
<tr>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">";
// line 64
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("D. naixement"), "html", null, true);
echo ":<br/>
<strong>";
// line 65
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 65, $this->source); })()), "consumers", [], "any", false, false, false, 65), "dataNaixement", [], "any", false, false, false, 65), "d-m-Y"), "html", null, true);
echo "</strong>
</td>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">";
// line 67
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("E-mail"), "html", null, true);
echo ":<br/>
<strong>";
// line 68
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 68, $this->source); })()), "consumers", [], "any", false, false, false, 68), "email", [], "any", false, false, false, 68), "html", null, true);
echo "</strong>
</td>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Telèfon"), "html", null, true);
echo ":<br/>
<strong>";
// line 71
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 71, $this->source); })()), "consumers", [], "any", false, false, false, 71), "telefon", [], "any", false, false, false, 71), "html", null, true);
echo "</strong>
</td>
</tr>
<tr>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">";
// line 76
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forma de pagament"), "html", null, true);
echo ":<br/>
<strong>";
// line 77
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 77, $this->source); })()), "getFormaPagament", [], "method", false, false, false, 77), "html", null, true);
echo "</strong>
</td>
<td colspan=\"2\" style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">";
// line 79
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Vol factura?"), "html", null, true);
echo ":<br/>
<strong>";
// line 80
if ((twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 80, $this->source); })()), "factura", [], "any", false, false, false, 80) == 1)) {
echo " Si ";
} else {
echo " No ";
}
echo "</strong>
</td>
</tr>
";
// line 83
if ((((twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 83, $this->source); })()), "getFormaPagament", [], "method", false, false, false, 83) == "Mixt") && (twig_get_attribute($this->env, $this->source, // line 84
(isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 84, $this->source); })()), "getPagamentTargeta", [], "method", false, false, false, 84) > 0)) && (twig_get_attribute($this->env, $this->source, // line 85
(isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 85, $this->source); })()), "getPagamentEfectiu", [], "method", false, false, false, 85) > 0))) {
// line 86
echo " <tr>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">";
// line 87
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pagament targeta"), "html", null, true);
echo ":<br/>
<strong>";
// line 88
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 88, $this->source); })()), "getPagamentTargeta", [], "method", false, false, false, 88), "html", null, true);
echo "</strong>
</td>
<td colspan=\"1\" style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">";
// line 90
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pagament efectiu"), "html", null, true);
echo ":<br/>
<strong>";
// line 91
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 91, $this->source); })()), "getPagamentEfectiu", [], "method", false, false, false, 91), "html", null, true);
echo "</strong>
</td>
</tr>
";
}
// line 96
echo "
<!--
<tr>
<td colspan=\"3\" >
";
// line 100
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Acceptació RGPD*"), "html", null, true);
echo " Si
</td>
</tr>
-->
</tbody>
</table>
<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"\" style=\"width:100%; border:solid 1px #a0d5ff; margin-bottom: 20px;\">
<thead>
<tr>
<th colspan=\"7\" style=\"text-align:left; font-size:17px; font-weight:bold; padding: 10px; background: #a0d5ff;\">";
// line 110
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Productes"), "html", null, true);
echo "</th>
</tr>
<tr>
<th style=\"text-align:left; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;\">";
// line 113
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nom"), "html", null, true);
echo "</th>
<th style=\"text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;\">";
// line 114
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Data naixement"), "html", null, true);
echo "</th>
<th style=\"text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;\">";
// line 115
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("RGPD*"), "html", null, true);
echo "</th>
<th style=\"text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;\">";
// line 116
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Quantitat"), "html", null, true);
echo "</th>
<th style=\"text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;\">";
// line 117
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Tipus d'abonament"), "html", null, true);
echo "</th>
<th style=\"text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;\">";
// line 118
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("WTP"), "html", null, true);
echo "</th>
";
// line 119
if ((((twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 119, $this->source); })()), "getFormaPagament", [], "method", false, false, false, 119) == "Mixt") && (twig_get_attribute($this->env, $this->source, // line 120
(isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 120, $this->source); })()), "getPagamentTargeta", [], "method", false, false, false, 120) == 0)) && (twig_get_attribute($this->env, $this->source, // line 121
(isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 121, $this->source); })()), "getPagamentEfectiu", [], "method", false, false, false, 121) == 0))) {
// line 122
echo " <th style=\"text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pagament targeta"), "html", null, true);
echo "</th>
<th style=\"text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 2px #a0d5ff;\">";
// line 123
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pagament efectiu"), "html", null, true);
echo "</th>
";
}
// line 125
echo " <th style=\"text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-bottom:solid 2px #a0d5ff;\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Preu"), "html", null, true);
echo "</th>
</tr>
</thead>
<tbody>
";
// line 130
$context["descompte"] = 0;
// line 131
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["objComandesLinies"]) || array_key_exists("objComandesLinies", $context) ? $context["objComandesLinies"] : (function () { throw new RuntimeError('Variable "objComandesLinies" does not exist.', 131, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["linies"]) {
// line 132
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["linies"], "abonaments", [], "any", false, false, false, 132), "estacio", [], "any", false, false, false, 132) != "Extra")) {
// line 133
echo " ";
$context["descompte"] = ((isset($context["descompte"]) || array_key_exists("descompte", $context) ? $context["descompte"] : (function () { throw new RuntimeError('Variable "descompte" does not exist.', 133, $this->source); })()) + twig_get_attribute($this->env, $this->source, $context["linies"], "descompte", [], "any", false, false, false, 133));
// line 134
echo " <tr>
<td style=\"text-align:left; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\">";
// line 135
echo twig_escape_filter($this->env, ((((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["linies"], "consumers", [], "any", false, false, false, 135), "nom", [], "any", false, false, false, 135) . " ") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["linies"], "consumers", [], "any", false, false, false, 135), "cognom1", [], "any", false, false, false, 135)) . " ") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["linies"], "consumers", [], "any", false, false, false, 135), "cognom2", [], "any", false, false, false, 135)), "html", null, true);
echo "</td>
<td style=\"text-align:center; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\">";
// line 136
if ((twig_get_attribute($this->env, $this->source, $context["linies"], "dataNaixement", [], "any", false, false, false, 136) != "")) {
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["linies"], "dataNaixement", [], "any", false, false, false, 136), "d-m-Y"), "html", null, true);
}
echo "</td>
<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;\" > ✔</div></td>
<td style=\"text-align:center; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\">";
// line 138
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["linies"], "quantitat", [], "any", false, false, false, 138), "html", null, true);
echo "</td>
<td style=\"text-align:center; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\">
";
// line 140
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["linies"], "abonamentsTipus", [], "any", false, false, false, 140) . " ") . twig_get_attribute($this->env, $this->source, $context["linies"], "detall", [], "any", false, false, false, 140)), "html", null, true);
echo "
";
// line 141
$context["preuSuplement"] = 0;
// line 142
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["objComandesLiniesSuplement"]) || array_key_exists("objComandesLiniesSuplement", $context) ? $context["objComandesLiniesSuplement"] : (function () { throw new RuntimeError('Variable "objComandesLiniesSuplement" does not exist.', 142, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["suplement"]) {
// line 143
echo " ";
if (twig_in_filter(((twig_get_attribute($this->env, $this->source, $context["linies"], "id", [], "any", false, false, false, 143) . "-") . twig_get_attribute($this->env, $this->source, $context["suplement"], "id", [], "any", false, false, false, 143)), (isset($context["aSuplements"]) || array_key_exists("aSuplements", $context) ? $context["aSuplements"] : (function () { throw new RuntimeError('Variable "aSuplements" does not exist.', 143, $this->source); })()))) {
// line 144
echo " <br>
";
// line 145
echo twig_escape_filter($this->env, ((((twig_get_attribute($this->env, $this->source, $context["suplement"], "quantitat", [], "any", false, false, false, 145) . " ") . twig_get_attribute($this->env, $this->source, $context["suplement"], "abonamentsTipus", [], "any", false, false, false, 145)) . " ") . twig_get_attribute($this->env, $this->source, $context["suplement"], "detall", [], "any", false, false, false, 145)), "html", null, true);
echo "
";
// line 146
$context["preuSuplement"] = twig_get_attribute($this->env, $this->source, $context["suplement"], "total", [], "any", false, false, false, 146);
// line 147
echo " ";
}
// line 148
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['suplement'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 149
echo "
</td>
<td style=\"text-align:center; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\">
";
// line 152
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["linies"], "xipIntroduitClient", [], "any", false, false, false, 152), "html", null, true);
echo "
</td>
";
// line 154
if ((((twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 154, $this->source); })()), "getFormaPagament", [], "method", false, false, false, 154) == "Mixt") && (twig_get_attribute($this->env, $this->source, // line 155
(isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 155, $this->source); })()), "getPagamentTargeta", [], "method", false, false, false, 155) == 0)) && (twig_get_attribute($this->env, $this->source, // line 156
(isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 156, $this->source); })()), "getPagamentEfectiu", [], "method", false, false, false, 156) == 0))) {
// line 157
echo " <td style=\"text-align:center; font-size:14px; padding: 5px 10px; text-align:right; border-bottom:solid 1px #a0d5ff;\">
";
// line 158
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["linies"], "pagamentTargeta", [], "any", false, false, false, 158), "html", null, true);
echo "
</td>
<td style=\"text-align:center; font-size:14px; padding: 5px 10px; text-align:right; border-bottom:solid 1px #a0d5ff;\">
";
// line 161
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["linies"], "pagamentEfectiu", [], "any", false, false, false, 161), "html", null, true);
echo "
</td>
";
}
// line 164
echo " <td style=\"text-align:center; font-size:14px; padding: 5px 10px; text-align:right; border-bottom:solid 1px #a0d5ff;\">
";
// line 165
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["linies"], "total", [], "any", false, false, false, 165), 2, ".", ","), "html", null, true);
echo "€
";
// line 166
if (((isset($context["preuSuplement"]) || array_key_exists("preuSuplement", $context) ? $context["preuSuplement"] : (function () { throw new RuntimeError('Variable "preuSuplement" does not exist.', 166, $this->source); })()) > 0)) {
// line 167
echo " <br>";
echo twig_escape_filter($this->env, (isset($context["preuSuplement"]) || array_key_exists("preuSuplement", $context) ? $context["preuSuplement"] : (function () { throw new RuntimeError('Variable "preuSuplement" does not exist.', 167, $this->source); })()), "html", null, true);
echo "€
";
}
// line 169
echo " </td>
</tr>
";
}
// line 172
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['linies'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 173
echo " </tbody>
</table>
";
// line 175
$context["head"] = 1;
// line 176
echo " ";
$context["guardaesquis"] = 0;
// line 177
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["objComandesLinies"]) || array_key_exists("objComandesLinies", $context) ? $context["objComandesLinies"] : (function () { throw new RuntimeError('Variable "objComandesLinies" does not exist.', 177, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["linies"]) {
// line 178
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["linies"], "abonaments", [], "any", false, false, false, 178), "estacio", [], "any", false, false, false, 178) == "Extra")) {
// line 179
echo "
";
// line 180
if (((isset($context["head"]) || array_key_exists("head", $context) ? $context["head"] : (function () { throw new RuntimeError('Variable "head" does not exist.', 180, $this->source); })()) == 1)) {
echo "
<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"\" style=\"width:100%; border:solid 1px #a0d5ff; margin-bottom: 20px;\">
<thead>
<tr>
<th colspan=\"4\" style=\"text-align:left; font-size:17px; font-weight:bold; padding: 10px; background: #a0d5ff;\">Extres</th>
<th style=\"text-align:center; font-size:14px; padding: 10px; background: #a0d5ff;\">";
// line 185
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("RGPD*"), "html", null, true);
echo "</th>
<th style=\"text-align:center; font-size:14px; padding: 10px; background: #a0d5ff;\">";
// line 186
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Preu"), "html", null, true);
echo "</th>
</tr>
</thead>
";
// line 189
$context["head"] = 0;
// line 190
echo " ";
}
// line 191
echo "
<tr>
<td style=\"text-align:left; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\">";
// line 193
echo twig_escape_filter($this->env, ((((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["linies"], "consumers", [], "any", false, false, false, 193), "nom", [], "any", false, false, false, 193) . " ") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["linies"], "consumers", [], "any", false, false, false, 193), "cognom1", [], "any", false, false, false, 193)) . " ") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["linies"], "consumers", [], "any", false, false, false, 193), "cognom2", [], "any", false, false, false, 193)), "html", null, true);
echo "</td>
<td style=\"text-align:left; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\"></td>
<td style=\"text-align:left; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\">";
// line 195
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["linies"], "quantitat", [], "any", false, false, false, 195), "html", null, true);
echo "</td>
<td style=\"text-align:left; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\">
";
// line 197
echo twig_escape_filter($this->env, ((twig_get_attribute($this->env, $this->source, $context["linies"], "abonamentsTipus", [], "any", false, false, false, 197) . " ") . twig_get_attribute($this->env, $this->source, $context["linies"], "detall", [], "any", false, false, false, 197)), "html", null, true);
echo "
";
// line 198
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["linies"], "abonaments", [], "any", false, false, false, 198), "estacio", [], "any", false, false, false, 198) == "Extra") && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["linies"], "abonaments", [], "any", false, false, false, 198), "id", [], "any", false, false, false, 198) == 64))) {
// line 199
echo " ";
$context["guardaesquis"] = 1;
// line 200
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["linies"], "taquilla", [], "any", false, false, false, 200) == "0") || (twig_get_attribute($this->env, $this->source, $context["linies"], "taquilla", [], "any", false, false, false, 200) == ""))) {
// line 201
echo " ";
echo twig_escape_filter($this->env, (" " . "taquilla sense assignar"), "html", null, true);
echo "
";
} else {
// line 203
echo " ";
echo twig_escape_filter($this->env, (((" " . "taquilla nº") . " ") . twig_get_attribute($this->env, $this->source, $context["linies"], "taquilla", [], "any", false, false, false, 203)), "html", null, true);
echo "
";
}
// line 205
echo " ";
}
// line 206
echo " ";
$context["preuSuplement"] = 0;
// line 207
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["objComandesLiniesSuplement"]) || array_key_exists("objComandesLiniesSuplement", $context) ? $context["objComandesLiniesSuplement"] : (function () { throw new RuntimeError('Variable "objComandesLiniesSuplement" does not exist.', 207, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["suplement"]) {
// line 208
echo " ";
if (twig_in_filter(((twig_get_attribute($this->env, $this->source, $context["linies"], "id", [], "any", false, false, false, 208) . "-") . twig_get_attribute($this->env, $this->source, $context["suplement"], "id", [], "any", false, false, false, 208)), (isset($context["aSuplements"]) || array_key_exists("aSuplements", $context) ? $context["aSuplements"] : (function () { throw new RuntimeError('Variable "aSuplements" does not exist.', 208, $this->source); })()))) {
// line 209
echo " <br>
";
// line 210
echo twig_escape_filter($this->env, ((((twig_get_attribute($this->env, $this->source, $context["suplement"], "quantitat", [], "any", false, false, false, 210) . " ") . twig_get_attribute($this->env, $this->source, $context["suplement"], "abonamentsTipus", [], "any", false, false, false, 210)) . " ") . twig_get_attribute($this->env, $this->source, $context["suplement"], "detall", [], "any", false, false, false, 210)), "html", null, true);
echo "
";
// line 211
$context["preuSuplement"] = twig_get_attribute($this->env, $this->source, $context["suplement"], "total", [], "any", false, false, false, 211);
// line 212
echo " ";
}
// line 213
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['suplement'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 214
echo "
</td>
<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;\" > ✔</div></td>
<td style=\"text-align:right; font-size:14px; padding: 5px 10px; border-bottom:solid 1px #a0d5ff;\">
";
// line 218
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["linies"], "total", [], "any", false, false, false, 218), 2, ".", ","), "html", null, true);
echo "€
";
// line 219
if (((isset($context["preuSuplement"]) || array_key_exists("preuSuplement", $context) ? $context["preuSuplement"] : (function () { throw new RuntimeError('Variable "preuSuplement" does not exist.', 219, $this->source); })()) > 0)) {
// line 220
echo " <br>";
echo twig_escape_filter($this->env, (isset($context["preuSuplement"]) || array_key_exists("preuSuplement", $context) ? $context["preuSuplement"] : (function () { throw new RuntimeError('Variable "preuSuplement" does not exist.', 220, $this->source); })()), "html", null, true);
echo "€
";
}
// line 222
echo " </td>
</tr>
";
}
// line 225
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['linies'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 226
echo " </table>
";
// line 227
if ((twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 227, $this->source); })()), "factura", [], "any", false, false, false, 227) == 1)) {
// line 228
echo " ";
if (((twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 228, $this->source); })()), "getNomEmpresa", [], "method", false, false, false, 228) != "") || (twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 228, $this->source); })()), "getNifEmpresa", [], "method", false, false, false, 228) != ""))) {
// line 229
echo " <table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"\" style=\"width:100%; border:solid 2px #a0d5ff;\">
<tbody>
<tr>
<th colspan=\"4\" style=\"text-align:left; font-size:14px; font-weight:bold; padding: 10px; background: #a0d5ff;\">";
// line 232
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Factura"), "html", null, true);
echo "</th>
</tr>
<tr>
<td style=\"font-size: 14px; width:50%; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff; padding-top:10px;\">";
// line 235
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nom empresa"), "html", null, true);
echo ":<br/>
<strong>";
// line 236
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 236, $this->source); })()), "getNomEmpresa", [], "method", false, false, false, 236), "html", null, true);
echo "
</td>
<td style=\"font-size: 14px; width:50%; border-bottom:solid 1px #a0d5ff; padding-top:10px;\">";
// line 238
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nif empresa"), "html", null, true);
echo ":<br/>
<strong>";
// line 239
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 239, $this->source); })()), "getNifEmpresa", [], "method", false, false, false, 239), "html", null, true);
echo "</strong>
</td>
</tr>
";
}
// line 243
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 243, $this->source); })()), "getDireccioEmpresa", [], "method", false, false, false, 243) != "")) {
// line 244
echo " <tr>
<td colspan=\"2\" style=\"font-size: 14px; border-bottom:solid 1px #a0d5ff; width:100%; padding-top:10px;\">";
// line 245
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Adreça empresa"), "html", null, true);
echo ":<br/>
<strong>";
// line 246
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 246, $this->source); })()), "getDireccioEmpresa", [], "method", false, false, false, 246), "html", null, true);
echo "</strong>
</td>
</tr>
";
}
// line 250
echo " ";
if (((twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 250, $this->source); })()), "getCpEmpresa", [], "method", false, false, false, 250) != "") || (twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 250, $this->source); })()), "getPoblacioEmpresa", [], "method", false, false, false, 250) != ""))) {
// line 251
echo " <tr>
<td style=\"font-size: 14px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff; width:50%; padding-top:10px;\">";
// line 252
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("C.Postal"), "html", null, true);
echo ":<br/>
<strong>";
// line 253
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 253, $this->source); })()), "getCpEmpresa", [], "method", false, false, false, 253), "html", null, true);
echo "</strong>
</td>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; width:20%; padding-top:10px;\">";
// line 255
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Població"), "html", null, true);
echo ":<br/>
<strong>";
// line 256
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 256, $this->source); })()), "getPoblacioEmpresa", [], "method", false, false, false, 256), "html", null, true);
echo "</strong>
</td>
</tr>
</tbody>
</table>
";
}
// line 262
echo " ";
}
// line 263
echo "
<div style=\"clear: both;\"></div>
<div style=\"text-align:right; font-size:17px; font-weight:bold; margin: 10px 10px 0 0; height: 25px; float: right; min-width: 80px;\">";
// line 266
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, ((isset($context["total_cistella"]) || array_key_exists("total_cistella", $context) ? $context["total_cistella"] : (function () { throw new RuntimeError('Variable "total_cistella" does not exist.', 266, $this->source); })()) + (isset($context["descompte"]) || array_key_exists("descompte", $context) ? $context["descompte"] : (function () { throw new RuntimeError('Variable "descompte" does not exist.', 266, $this->source); })())), 2, ".", ","), "html", null, true);
echo "€</div>
<div style=\"width: 260px; text-align:right; font-size:14px; margin: 15px 5px 0 0; float: right;\">";
// line 267
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("TOTAL"), "html", null, true);
echo ":</div>
";
// line 269
$context["totalComanda"] = (isset($context["total_cistella"]) || array_key_exists("total_cistella", $context) ? $context["total_cistella"] : (function () { throw new RuntimeError('Variable "total_cistella" does not exist.', 269, $this->source); })());
// line 270
echo " ";
if ((((twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 270, $this->source); })()), "getDescompte", [], "method", false, false, false, 270) != "") && (twig_get_attribute($this->env, $this->source, // line 271
(isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 271, $this->source); })()), "getDescompte", [], "method", false, false, false, 271) > 0.0)) || (( // line 272
(isset($context["descompte"]) || array_key_exists("descompte", $context) ? $context["descompte"] : (function () { throw new RuntimeError('Variable "descompte" does not exist.', 272, $this->source); })()) != "") && ((isset($context["descompte"]) || array_key_exists("descompte", $context) ? $context["descompte"] : (function () { throw new RuntimeError('Variable "descompte" does not exist.', 272, $this->source); })()) > 0.0)))) {
// line 273
echo " ";
if (((twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 273, $this->source); })()), "getDescompte", [], "method", false, false, false, 273) != "") && (twig_get_attribute($this->env, $this->source, // line 274
(isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 274, $this->source); })()), "getDescompte", [], "method", false, false, false, 274) > 0.0))) {
// line 275
echo " ";
$context["descompte"] = twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 275, $this->source); })()), "getDescompte", [], "method", false, false, false, 275);
// line 276
echo " ";
$context["totalComanda"] = ((isset($context["total_cistella"]) || array_key_exists("total_cistella", $context) ? $context["total_cistella"] : (function () { throw new RuntimeError('Variable "total_cistella" does not exist.', 276, $this->source); })()) - (isset($context["descompte"]) || array_key_exists("descompte", $context) ? $context["descompte"] : (function () { throw new RuntimeError('Variable "descompte" does not exist.', 276, $this->source); })()));
// line 277
echo " ";
}
// line 278
echo " <div style=\"clear: both;\"></div>
<div style=\"text-align:right; font-size:17px; font-weight:bold; margin: 0px 10px 0 0; height: 25px; float: right; min-width: 80px;\">";
// line 279
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["descompte"]) || array_key_exists("descompte", $context) ? $context["descompte"] : (function () { throw new RuntimeError('Variable "descompte" does not exist.', 279, $this->source); })()), 2, ".", ","), "html", null, true);
echo "€</div>
<div style=\"width: 260px; text-align:right; font-size:11px; margin: 0px 5px 0 0; float: right;\">";
// line 280
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Descompte"), "html", null, true);
echo ":</div>
<div style=\"clear: both;\"></div>
<div style=\"text-align:right; font-size:17px; font-weight:bold; margin: 0px 10px 0 0; height: 25px; float: right; min-width: 80px;\">";
// line 283
echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["totalComanda"]) || array_key_exists("totalComanda", $context) ? $context["totalComanda"] : (function () { throw new RuntimeError('Variable "totalComanda" does not exist.', 283, $this->source); })()), 2, ".", ","), "html", null, true);
echo "€</div>
<div style=\"width: 260px; text-align:right; font-size:14px; margin: 0px 5px 0 0; float: right;\">";
// line 284
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("TOTAL amb descompte"), "html", null, true);
echo ":</div>
";
}
// line 286
echo "
<div style=\"clear: both;\"></div>
<div style=\"width: 200px; text-align:right; font-size:14px; margin: 0 10px 20px 0; float: right;\">";
// line 288
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("(Preus amb IVA inclòs)"), "html", null, true);
echo "</div>
<div style=\"clear: both;\"></div>
";
// line 290
if (((isset($context["guardaesquis"]) || array_key_exists("guardaesquis", $context) ? $context["guardaesquis"] : (function () { throw new RuntimeError('Variable "guardaesquis" does not exist.', 290, $this->source); })()) == 1)) {
// line 291
echo " <div style=\"width: 440px; font-size: 14px; margin:17px 0 0 0; float: left;\"><span style=\"font-weight:bold;\" >";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("INFORMACIÓ GUARDAESQUÍS"), "html", null, true);
echo ":</span><br />
<span style=\"font-size: 9px;\">";
// line 292
echo twig_get_attribute($this->env, $this->source, (isset($context["enGeneral"]) || array_key_exists("enGeneral", $context) ? $context["enGeneral"] : (function () { throw new RuntimeError('Variable "enGeneral" does not exist.', 292, $this->source); })()), "getRebutGuardaesquisCa", [], "method", false, false, false, 292);
echo "</span>
</div>
";
}
// line 295
echo " <!--<div style=\"width: 200px; padding-top: 110px; text-align: center; font-size:14px; margin: 0 0px 5px 0; float: right; border: solid 1px #666;\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Rebut no vàlid sense el segell"), "html", null, true);
echo "</div>-->
";
// line 296
if ((twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 296, $this->source); })()), "getFirmaCodi", [], "method", false, false, false, 296) != "")) {
// line 297
echo " <div style=\"width: 400px; text-align: center; font-size:14px; margin: 0 0px 5px 0; border: solid 1px #666;\"><img src=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 297, $this->source); })()), "getFirmaCodi", [], "method", false, false, false, 297), "html", null, true);
echo "\" id=\"img_firma_codi\" name=\"img_firma_codi\" style=\"width: 150px;\">";
echo "</div>
";
}
// line 299
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Localitzador:"), "html", null, true);
echo " <strong>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["objComandes"]) || array_key_exists("objComandes", $context) ? $context["objComandes"] : (function () { throw new RuntimeError('Variable "objComandes" does not exist.', 299, $this->source); })()), "getLocalitzador", [], "method", false, false, false, 299), "html", null, true);
echo "</strong><br/>
<img src=\"";
// line 300
echo twig_escape_filter($this->env, (isset($context["sImageCode"]) || array_key_exists("sImageCode", $context) ? $context["sImageCode"] : (function () { throw new RuntimeError('Variable "sImageCode" does not exist.', 300, $this->source); })()), "html", null, true);
echo "\" />
<div style=\"clear: both;\"></div>
<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"\" style=\"width:100%;\">
<tbody>
<tr>
<td style=\"text-align:left;font-size: 14px;\">
<span style=\"font-weight:bold;\" >";
// line 306
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("IMPORTANT"), "html", null, true);
echo ":</span><br/>
";
// line 307
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Aquest rebut servirà per retirar l’abonament/s i/o l’assegurança."), "html", null, true);
echo "<br/>
*RGPD: <a href=\"https://www.masella.com/ca/paginas/condicions-generals-abonaments-temporada\"> ";
// line 308
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("He llegit i he acceptat la política de privacitat i les condicions dels Abonaments de Temporada"), "html", null, true);
echo "</a>
+info. <a href=\"https://www.masella.com/ca/paginas/condicions-generals-abonaments-temporada\">https://www.masella.com/ca/paginas/condicions-generals-abonaments-temporada</a>
</td>
<td style=\"text-align:right;\">
<img src=\"https://www.masella.com/images/qravislegal.png\" style=\"width:80px;\" alt=\"QR\">
</td>
</tr>
</tbody>
</table>
<div style=\"clear: both;\"></div>
<div style=\"text-align: center; font-size: 14px; margin:20px 0 0 0;\">
TELESQUÍS DE LA TOSSA DE ALP, DAS Y URÚS, S.A. – CIF A17012824<br/>
Av. Peu de Pista, s/n – 17538 MASELLA – ALP t. 972 144 000<br/>
masella@masella.com – www.masella.com
</div>
</div>
</div>
</tbody>
</html>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "pdfComanda.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 799 => 308, 795 => 307, 791 => 306, 782 => 300, 775 => 299, 768 => 297, 766 => 296, 761 => 295, 755 => 292, 750 => 291, 748 => 290, 743 => 288, 739 => 286, 734 => 284, 730 => 283, 724 => 280, 720 => 279, 717 => 278, 714 => 277, 711 => 276, 708 => 275, 706 => 274, 704 => 273, 702 => 272, 701 => 271, 699 => 270, 697 => 269, 692 => 267, 688 => 266, 683 => 263, 680 => 262, 671 => 256, 667 => 255, 662 => 253, 658 => 252, 655 => 251, 652 => 250, 645 => 246, 641 => 245, 638 => 244, 635 => 243, 628 => 239, 624 => 238, 619 => 236, 615 => 235, 609 => 232, 604 => 229, 601 => 228, 599 => 227, 596 => 226, 590 => 225, 585 => 222, 579 => 220, 577 => 219, 573 => 218, 567 => 214, 561 => 213, 558 => 212, 556 => 211, 552 => 210, 549 => 209, 546 => 208, 541 => 207, 538 => 206, 535 => 205, 529 => 203, 523 => 201, 520 => 200, 517 => 199, 515 => 198, 511 => 197, 506 => 195, 501 => 193, 497 => 191, 494 => 190, 492 => 189, 486 => 186, 482 => 185, 474 => 180, 471 => 179, 468 => 178, 463 => 177, 460 => 176, 458 => 175, 454 => 173, 448 => 172, 443 => 169, 437 => 167, 435 => 166, 431 => 165, 428 => 164, 422 => 161, 416 => 158, 413 => 157, 411 => 156, 410 => 155, 409 => 154, 404 => 152, 399 => 149, 393 => 148, 390 => 147, 388 => 146, 384 => 145, 381 => 144, 378 => 143, 373 => 142, 371 => 141, 367 => 140, 362 => 138, 355 => 136, 351 => 135, 348 => 134, 345 => 133, 342 => 132, 337 => 131, 335 => 130, 326 => 125, 321 => 123, 316 => 122, 314 => 121, 313 => 120, 312 => 119, 308 => 118, 304 => 117, 300 => 116, 296 => 115, 292 => 114, 288 => 113, 282 => 110, 269 => 100, 263 => 96, 255 => 91, 251 => 90, 246 => 88, 242 => 87, 239 => 86, 237 => 85, 236 => 84, 235 => 83, 225 => 80, 221 => 79, 216 => 77, 212 => 76, 204 => 71, 200 => 70, 195 => 68, 191 => 67, 186 => 65, 182 => 64, 175 => 60, 171 => 59, 166 => 57, 162 => 56, 157 => 54, 153 => 53, 145 => 48, 141 => 47, 135 => 44, 131 => 43, 126 => 41, 122 => 40, 116 => 37, 112 => 36, 106 => 33, 102 => 32, 95 => 28, 81 => 19, 75 => 18, 69 => 17, 63 => 16, 57 => 13, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<html>
<head><title>abonament</title></head>
<tbody>
<div style=\"width: 100%;\">
<div style=\"text-align: left; font-size: 18px; margin: 0px 0 5px 0; padding: 5px; font-weight: bold; background: #eee;\">
<table border=\"0\" cellpadding=\"1\" cellspacing=\"0\" summary=\"\" style=\"width:100%; margin-bottom: 0px;\">
<tbody>
<tr>
<td>
<img src=\"https://www.masella.com/images/logo_masella-black.png\" alt=\"Masella\" style=\"width:160px;\">
</td>
<td style=\"text-align:left; font-size:17px; padding: 0 10px; background: #a0d5ff;\">
<strong>{{\"Resum de la compra\" | trans}}</strong>
</td>
<td style=\"text-align:left; font-size:14px; padding: 0 10px; background: #a0d5ff;\">
{{\"Lloc:\" | trans}} <strong>{{objComandes.getLlocVenda()}}</strong><br/>
{{\"Data:\" | trans}} <strong>{{objComandes.getData() | date('d-m-Y')}}</strong><br/>
{{\"Localitzador:\" | trans}} <strong>{{objComandes.getLocalitzador()}}</strong><br/>
{{\"Codi client:\" | trans}} <strong>{{objComandes.getConsumers.getId()}}</strong></span>
</td>
</tr>
</table>
</div>
<div style=\"padding:10px;\">
<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"\" style=\"width:100%; margin-bottom: 20px;\">
<tbody>
<tr>
<td colspan=\"3\" style=\"text-align:left; font-size:14px; margin: 15px 0 15px 0; font-weight:bold;\">{{\"Dades del comprador:\" | trans}}</td>
</tr>
<tr>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; \">{{\"Nom\" | trans}}:<br/>
<strong>{{objComandes.consumers.nom}}</strong>
</td>
<!--
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; \">{{\"Cognoms\" | trans}}:<br/>
<strong>{{objComandes.consumers.cognoms}}</strong>
</td>
-->
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; \">{{\"Cognom1\" | trans}}:<br/>
<strong>{{objComandes.consumers.cognom1}}</strong>
</td>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; \">{{\"Cognom2\" | trans}}:<br/>
<strong>{{objComandes.consumers.cognom2}}</strong>
</td>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; \">{{\"DNI\" | trans}}:<br/>
<strong>{{objComandes.consumers.dni}}</strong>
</td>
</tr>
<tr>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">{{\"Adreça\" | trans}}:<br/>
<strong>{{objComandes.consumers.direccio}}</strong>
</td>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">{{\"C.Postal\" | trans}}:<br/>
<strong>{{objComandes.consumers.cp}}</strong>
</td>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">{{\"Població\" | trans}}:<br/>
<strong>{{objComandes.consumers.poblacio}}</strong>
</td>
</tr>
<tr>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">{{\"D. naixement\" | trans}}:<br/>
<strong>{{objComandes.consumers.dataNaixement |date('d-m-Y')}}</strong>
</td>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">{{\"E-mail\" | trans}}:<br/>
<strong>{{objComandes.consumers.email}}</strong>
</td>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">{{\"Telèfon\" | trans}}:<br/>
<strong>{{objComandes.consumers.telefon}}</strong>
</td>
</tr>
<tr>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">{{\"Forma de pagament\" | trans}}:<br/>
<strong>{{objComandes.getFormaPagament()}}</strong>
</td>
<td colspan=\"2\" style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">{{\"Vol factura?\" | trans}}:<br/>
<strong>{% if (objComandes.factura == 1)%} Si {% else %} No {% endif %}</strong>
</td>
</tr>
{% if objComandes.getFormaPagament() == 'Mixt'
and objComandes.getPagamentTargeta() > 0
and objComandes.getPagamentEfectiu() > 0%}
<tr>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">{{\"Pagament targeta\" | trans}}:<br/>
<strong>{{objComandes.getPagamentTargeta()}}</strong>
</td>
<td colspan=\"1\" style=\"font-size: 14px; border-bottom:solid 1px #ccc; padding-top:10px;\">{{\"Pagament efectiu\" | trans}}:<br/>
<strong>{{objComandes.getPagamentEfectiu()}}</strong>
</td>
</tr>
{% endif %}
<!--
<tr>
<td colspan=\"3\" >
{{\"Acceptació RGPD*\" | trans}} Si
</td>
</tr>
-->
</tbody>
</table>
<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"\" style=\"width:100%; border:solid 1px #a0d5ff; margin-bottom: 20px;\">
<thead>
<tr>
<th colspan=\"7\" style=\"text-align:left; font-size:17px; font-weight:bold; padding: 10px; background: #a0d5ff;\">{{\"Productes\" | trans}}</th>
</tr>
<tr>
<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>
<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>
<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>
<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>
<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>
<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>
{% if objComandes.getFormaPagament() == 'Mixt'
and objComandes.getPagamentTargeta() == 0
and objComandes.getPagamentEfectiu() == 0%}
<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>
<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>
{% endif %}
<th style=\"text-align:center; font-size:14px; font-weight:bold; padding: 5px 10px; border-bottom:solid 2px #a0d5ff;\">{{\"Preu\" | trans}}</th>
</tr>
</thead>
<tbody>
{% set descompte = 0 %}
{% for linies in objComandesLinies %}
{% if linies.abonaments.estacio != 'Extra' %}
{% set descompte = descompte + linies.descompte %}
<tr>
<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>
<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>
<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;\" > ✔</div></td>
<td style=\"text-align:center; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\">{{linies.quantitat}}</td>
<td style=\"text-align:center; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\">
{{linies.abonamentsTipus~' '~linies.detall}}
{% set preuSuplement = 0 %}
{% for suplement in objComandesLiniesSuplement %}
{% if ( linies.id~'-'~suplement.id in aSuplements ) %}
<br>
{{suplement.quantitat~' '~suplement.abonamentsTipus~' '~suplement.detall}}
{% set preuSuplement = suplement.total %}
{% endif %}
{% endfor %}
</td>
<td style=\"text-align:center; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\">
{{ linies.xipIntroduitClient }}
</td>
{% if objComandes.getFormaPagament() == 'Mixt'
and objComandes.getPagamentTargeta() == 0
and objComandes.getPagamentEfectiu() == 0%}
<td style=\"text-align:center; font-size:14px; padding: 5px 10px; text-align:right; border-bottom:solid 1px #a0d5ff;\">
{{linies.pagamentTargeta}}
</td>
<td style=\"text-align:center; font-size:14px; padding: 5px 10px; text-align:right; border-bottom:solid 1px #a0d5ff;\">
{{linies.pagamentEfectiu}}
</td>
{% endif %}
<td style=\"text-align:center; font-size:14px; padding: 5px 10px; text-align:right; border-bottom:solid 1px #a0d5ff;\">
{{linies.total|number_format(2, '.', ',')}}€
{% if (preuSuplement>0) %}
<br>{{preuSuplement}}€
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
{% set head = 1 %}
{% set guardaesquis = 0 %}
{% for linies in objComandesLinies %}
{% if linies.abonaments.estacio == 'Extra' %}
{% if head == 1 %}
<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"\" style=\"width:100%; border:solid 1px #a0d5ff; margin-bottom: 20px;\">
<thead>
<tr>
<th colspan=\"4\" style=\"text-align:left; font-size:17px; font-weight:bold; padding: 10px; background: #a0d5ff;\">Extres</th>
<th style=\"text-align:center; font-size:14px; padding: 10px; background: #a0d5ff;\">{{\"RGPD*\" | trans}}</th>
<th style=\"text-align:center; font-size:14px; padding: 10px; background: #a0d5ff;\">{{\"Preu\" | trans}}</th>
</tr>
</thead>
{% set head = 0 %}
{% endif %}
<tr>
<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>
<td style=\"text-align:left; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\"></td>
<td style=\"text-align:left; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\">{{linies.quantitat}}</td>
<td style=\"text-align:left; font-size:14px; padding: 5px 10px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff;\">
{{linies.abonamentsTipus~' '~linies.detall}}
{% if linies.abonaments.estacio == 'Extra' and linies.abonaments.id == 64 %}
{% set guardaesquis = 1 %}
{% if linies.taquilla == '0' or linies.taquilla == ''%}
{{' ' ~ 'taquilla sense assignar'}}
{% else %}
{{' ' ~ 'taquilla nº' ~ ' ' ~ linies.taquilla }}
{% endif %}
{% endif %}
{% set preuSuplement = 0 %}
{% for suplement in objComandesLiniesSuplement %}
{% if ( linies.id~'-'~suplement.id in aSuplements ) %}
<br>
{{suplement.quantitat~' '~suplement.abonamentsTipus~' '~suplement.detall}}
{% set preuSuplement = suplement.total %}
{% endif %}
{% endfor %}
</td>
<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;\" > ✔</div></td>
<td style=\"text-align:right; font-size:14px; padding: 5px 10px; border-bottom:solid 1px #a0d5ff;\">
{{linies.total|number_format(2, '.', ',')}}€
{% if (preuSuplement>0) %}
<br>{{preuSuplement}}€
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
</table>
{% if (objComandes.factura == 1)%}
{% if (objComandes.getNomEmpresa() != '' or objComandes.getNifEmpresa() != '')%}
<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"\" style=\"width:100%; border:solid 2px #a0d5ff;\">
<tbody>
<tr>
<th colspan=\"4\" style=\"text-align:left; font-size:14px; font-weight:bold; padding: 10px; background: #a0d5ff;\">{{\"Factura\" | trans}}</th>
</tr>
<tr>
<td style=\"font-size: 14px; width:50%; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff; padding-top:10px;\">{{\"Nom empresa\" | trans}}:<br/>
<strong>{{objComandes.getNomEmpresa()}}
</td>
<td style=\"font-size: 14px; width:50%; border-bottom:solid 1px #a0d5ff; padding-top:10px;\">{{\"Nif empresa\" | trans}}:<br/>
<strong>{{objComandes.getNifEmpresa()}}</strong>
</td>
</tr>
{% endif %}
{% if (objComandes.getDireccioEmpresa() != '')%}
<tr>
<td colspan=\"2\" style=\"font-size: 14px; border-bottom:solid 1px #a0d5ff; width:100%; padding-top:10px;\">{{\"Adreça empresa\" | trans}}:<br/>
<strong>{{objComandes.getDireccioEmpresa()}}</strong>
</td>
</tr>
{% endif %}
{% if (objComandes.getCpEmpresa() != '' or objComandes.getPoblacioEmpresa() != '')%}
<tr>
<td style=\"font-size: 14px; border-right:solid 1px #a0d5ff; border-bottom:solid 1px #a0d5ff; width:50%; padding-top:10px;\">{{\"C.Postal\" | trans}}:<br/>
<strong>{{objComandes.getCpEmpresa()}}</strong>
</td>
<td style=\"font-size: 14px; border-bottom:solid 1px #ccc; width:20%; padding-top:10px;\">{{\"Població\" | trans}}:<br/>
<strong>{{objComandes.getPoblacioEmpresa()}}</strong>
</td>
</tr>
</tbody>
</table>
{% endif %}
{% endif %}
<div style=\"clear: both;\"></div>
<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>
<div style=\"width: 260px; text-align:right; font-size:14px; margin: 15px 5px 0 0; float: right;\">{{\"TOTAL\" | trans}}:</div>
{% set totalComanda = total_cistella %}
{% if (objComandes.getDescompte() != ''
and objComandes.getDescompte() > 0.00)
or (descompte != '' and descompte > 0.00)%}
{% if (objComandes.getDescompte() != ''
and objComandes.getDescompte() > 0.00) %}
{% set descompte = objComandes.getDescompte() %}
{% set totalComanda = total_cistella - descompte %}
{% endif %}
<div style=\"clear: both;\"></div>
<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>
<div style=\"width: 260px; text-align:right; font-size:11px; margin: 0px 5px 0 0; float: right;\">{{\"Descompte\" | trans}}:</div>
<div style=\"clear: both;\"></div>
<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>
<div style=\"width: 260px; text-align:right; font-size:14px; margin: 0px 5px 0 0; float: right;\">{{\"TOTAL amb descompte\" | trans}}:</div>
{% endif %}
<div style=\"clear: both;\"></div>
<div style=\"width: 200px; text-align:right; font-size:14px; margin: 0 10px 20px 0; float: right;\">{{\"(Preus amb IVA inclòs)\" | trans}}</div>
<div style=\"clear: both;\"></div>
{% if guardaesquis == 1 %}
<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 />
<span style=\"font-size: 9px;\">{{enGeneral.getRebutGuardaesquisCa()|raw}}</span>
</div>
{% endif %}
<!--<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>-->
{% if objComandes.getFirmaCodi() != '' %}
<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>
{% endif %}
{{\"Localitzador:\" | trans}} <strong>{{objComandes.getLocalitzador()}}</strong><br/>
<img src=\"{{ sImageCode }}\" />
<div style=\"clear: both;\"></div>
<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" summary=\"\" style=\"width:100%;\">
<tbody>
<tr>
<td style=\"text-align:left;font-size: 14px;\">
<span style=\"font-weight:bold;\" >{{\"IMPORTANT\" | trans}}:</span><br/>
{{\"Aquest rebut servirà per retirar l’abonament/s i/o l’assegurança.\" | trans}}<br/>
*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>
+info. <a href=\"https://www.masella.com/ca/paginas/condicions-generals-abonaments-temporada\">https://www.masella.com/ca/paginas/condicions-generals-abonaments-temporada</a>
</td>
<td style=\"text-align:right;\">
<img src=\"https://www.masella.com/images/qravislegal.png\" style=\"width:80px;\" alt=\"QR\">
</td>
</tr>
</tbody>
</table>
<div style=\"clear: both;\"></div>
<div style=\"text-align: center; font-size: 14px; margin:20px 0 0 0;\">
TELESQUÍS DE LA TOSSA DE ALP, DAS Y URÚS, S.A. – CIF A17012824<br/>
Av. Peu de Pista, s/n – 17538 MASELLA – ALP t. 972 144 000<br/>
masella@masella.com – www.masella.com
</div>
</div>
</div>
</tbody>
</html>", "pdfComanda.html.twig", "/var/www/vhosts/masella.com/httpdocs/templates/pdfComanda.html.twig");
}
}