var/cache/dev/twig/40/40dcd5ab8a84c1972fea5815b330093fc22b85d3fb8f3c7f145ff9fe1f29712d.php line 33

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* pdf/point_par_client.html.twig */
  14. class __TwigTemplate_017c58eabc1fe602cbe3f9a67e5e5fd933252c89b5222af2759cbe0745026eb0 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source = $this->getSourceContext();
  22.         $this->parent = false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros = $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pdf/point_par_client.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "pdf/point_par_client.html.twig"));
  33.         // line 1
  34.         echo "<style>
  35. \tdiv#page-impression{
  36.         background-color: #efefef;
  37.         font-family: Arial;
  38.         font-weight: normal;
  39.         font-size: 16px;
  40.         color: #999;
  41. \t\twidth: 80%;
  42. \t\tmargin: auto;
  43.     }
  44.     p{
  45.         padding: 0;
  46.         margin: 5px 0;
  47.     }
  48.     .hr{
  49.         height: 1px;
  50.         border-top: 1px solid #999;
  51.         background-color: #999;
  52.     }
  53.     p.facture-header{
  54.         display: inline-block;
  55.         font-size: 8px;
  56.         line-height: 0px!important;
  57.         background-color: #0a001f;
  58.     }
  59.     p.facture-footer{
  60. \tfont-size: 10px;
  61.         //line-height: 0px!important;
  62.         //line-height: 50%;
  63. \t\tfont-style: italic;
  64. \t\tfont-weight: bold;
  65.     }
  66.     p.mentionvalide{
  67.         font-size: 10px;
  68.         font-style: italic;
  69.     }
  70.     .text-black{
  71.         color: #000;
  72.     }
  73.     .block{
  74.         padding: 5px;
  75.         border-radius: 10px;
  76.         border: 1px solid #000;
  77.     }
  78.     table.table-body{
  79.         border:1px solid #bbb;
  80.         border-collapse: collapse;
  81.     }
  82.     table.table-body tr td, table.table-body tr th {
  83.         border:1px solid #bbb;
  84.     }
  85.     table.table-body tr th {
  86.         padding: 7px;
  87.     }
  88.     table.table-body tr td{
  89.         text-align: left;
  90.     }
  91.     table th.table-head-th-bg{
  92.         text-align: center;
  93.     }
  94.     table.table-body .table-footer-th-bg{
  95.         background: transparent;
  96.         color: #000;
  97.         font-weight: bold;
  98.     }
  99.     table{
  100.         color: #000;
  101.         font-size: 12px;
  102.     }
  103.     table tr td.border-none {
  104.         border-bottom:none;
  105.     }
  106.     table tr td.bordered-top {
  107.         border-top: 1px solid #bbb;
  108.     }
  109.     .text-center{
  110.         text-align: center;
  111.     }
  112.     .text-left{
  113.         text-align: left;
  114.     }
  115.     .text-right{
  116.         text-align: right;
  117.     }
  118.     .text-blue{
  119.         
  120.     }
  121. \t
  122. \tdiv#page-entiere{
  123. \t\tposition: relative;
  124. \t\twidth: 80%;
  125. \t\tmargin: auto;
  126. \t\theight: 99%;
  127. \t\tfont-family:  Times, serif;
  128. \t}
  129. \t
  130.     div#hauteur-entete-exterieur{
  131.         height: ";
  132.         // line 106
  133.         echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["boutique"]) || array_key_exists("boutique", $context) ? $context["boutique"] : (function () { throw new RuntimeError('Variable "boutique" does not exist.', 106, $this->source); })()), "settings", [], "any", false, false, false, 106), "margeEntete", [], "any", false, false, false, 106), "html", null, true);
  134.         echo "px;
  135.     }
  136.     div#hauteur-pied-exterieur{
  137.         height: ";
  138.         // line 110
  139.         echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["boutique"]) || array_key_exists("boutique", $context) ? $context["boutique"] : (function () { throw new RuntimeError('Variable "boutique" does not exist.', 110, $this->source); })()), "settings", [], "any", false, false, false, 110), "margePiedDePage", [], "any", false, false, false, 110), "html", null, true);
  140.         echo "px;
  141.     }
  142. \tdiv#footer{
  143. \t\tposition: absolute;
  144. \t\tbottom: 40px;
  145. \t\tfont-family: Times, serif;
  146. \t\t
  147. \t}
  148. \t
  149. </style>
  150. ";
  151.         // line 125
  152.         echo "<div id=\"page-entiere\" data-size=\"A4\">
  153. <div id=\"impression\">
  154.     ";
  155.         // line 127
  156.         if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["boutique"]) || array_key_exists("boutique", $context) ? $context["boutique"] : (function () { throw new RuntimeError('Variable "boutique" does not exist.', 127, $this->source); })()), "settings", [], "any", false, false, false, 127), "factureContientEntete", [], "any", false, false, false, 127), false))) {
  157.             // line 128
  158.             echo "    <div>
  159.     ";
  160.             // line 130
  161.             echo "       <table>
  162.             <tr>
  163.                 ";
  164.             // line 133
  165.             echo "                <td align=\"center\" style=\"width: 25mm;\" valign=\"top\">
  166.                     <img class=\"img-responsive\" src=\"";
  167.             // line 134
  168.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["boutique"]) || array_key_exists("boutique", $context) ? $context["boutique"] : (function () { throw new RuntimeError('Variable "boutique" does not exist.', 134, $this->source); })()), "logo", [], "any", false, false, false, 134), "originalUrl", [], "any", false, false, false, 134), "html", null, true);
  169.             echo "\" width=\"";
  170.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["boutique"]) || array_key_exists("boutique", $context) ? $context["boutique"] : (function () { throw new RuntimeError('Variable "boutique" does not exist.', 134, $this->source); })()), "settings", [], "any", false, false, false, 134), "tailleLogoSurLesDocuments", [], "any", false, false, false, 134), "html", null, true);
  171.             echo "\" alt=\"\">
  172.                 </td>
  173. \t\t\t\t<td style=\"width: 178mm;\"><p>";
  174.             // line 136
  175.             echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["boutique"]) || array_key_exists("boutique", $context) ? $context["boutique"] : (function () { throw new RuntimeError('Variable "boutique" does not exist.', 136, $this->source); })()), "settings", [], "any", false, false, false, 136), "enteDocument", [], "any", false, false, false, 136);
  176.             echo "</p></td>
  177.             </tr>
  178.         </table>
  179.         <hr class=\"hr\">
  180.         
  181.     ";
  182.             // line 142
  183.             echo "    </div>
  184.     ";
  185.         } else {
  186.             // line 144
  187.             echo "    <div id=\"hauteur-entete-exterieur\">
  188.     </div>
  189.     ";
  190.         }
  191.         // line 147
  192.         echo "    ";
  193.         $context["vehicules"] = [0 => 22, 1 => 23, 2 => 28];
  194.         // line 148
  195.         echo "
  196.     ";
  197.         // line 149
  198.         $context["ht"] = 0;
  199.         // line 150
  200.         echo "\t";
  201.         $context["tva"] = 0;
  202.         // line 151
  203.         echo "\t";
  204.         $context["remise"] = 0;
  205.         // line 152
  206.         echo "\t";
  207.         $context["ttc"] = 0;
  208.         // line 153
  209.         echo "\t";
  210.         $context["totalPaye"] = 0;
  211.         // line 154
  212.         echo "\t";
  213.         $context["totalResteAPayer"] = 0;
  214.         // line 155
  215.         echo "
  216.     <table class=\"table\" border=\"0\" style=\"margin-top: 0px\">
  217.        
  218.         <tr>
  219.             <td align=\"left\" style=\"width: 160px;\" valign=\"top\">
  220.                 
  221.             </td>
  222.             <td align=\"left\" style=\"width: 200px;\" valign=\"top\">
  223.                 <table style=\"width: 300px;\">
  224.                     <tr>
  225.                         <td><h5 style=\"position: relative; top: -7px; margin-right: 10px;\"></h5></td>
  226.                     </tr>
  227.                 </table>
  228.             </td>
  229.         </tr>
  230.     </table>
  231.     <table class=\"table\" border=\"0\" style=\"margin-top: 10px\">
  232.         <tr>
  233.             <td><u><h4>Point de ";
  234.         // line 173
  235.         echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["client"]) || array_key_exists("client", $context) ? $context["client"] : (function () { throw new RuntimeError('Variable "client" does not exist.', 173, $this->source); })()), "nom", [], "any", false, false, false, 173), "html", null, true);
  236.         echo " de ";
  237.         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, (isset($context["dateDebut"]) || array_key_exists("dateDebut", $context) ? $context["dateDebut"] : (function () { throw new RuntimeError('Variable "dateDebut" does not exist.', 173, $this->source); })()), "d/m/Y"), "html", null, true);
  238.         echo " à ";
  239.         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, (isset($context["dateFin"]) || array_key_exists("dateFin", $context) ? $context["dateFin"] : (function () { throw new RuntimeError('Variable "dateFin" does not exist.', 173, $this->source); })()), "d/m/Y"), "html", null, true);
  240.         echo "</h4></u></td>
  241.         </tr>
  242.     </table>
  243.     <table class=\"table-body\" border=\"0\" style=\"width: 100%\">
  244.         <tr>
  245.             <th class=\"table-head-th-bg\" width=\"60\">";
  246.         // line 178
  247.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.number"), "html", null, true);
  248.         echo "</th>
  249. \t\t\t<th class=\"table-head-th-bg\" width=\"50\">";
  250.         // line 179
  251.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.date"), "html", null, true);
  252.         echo "</th>
  253.             <th class=\"table-head-th-bg\" width=\"60\">";
  254.         // line 180
  255.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.totalHT"), "html", null, true);
  256.         echo "</th>
  257.             <th class=\"table-head-th-bg\" width=\"60\">";
  258.         // line 181
  259.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.totalTVA"), "html", null, true);
  260.         echo "</th>
  261.             <th class=\"table-head-th-bg\" width=\"60\">";
  262.         // line 182
  263.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.totalTTC"), "html", null, true);
  264.         echo "</th>
  265. \t\t\t<th class=\"table-head-th-bg\" width=\"70\">";
  266.         // line 183
  267.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.paye"), "html", null, true);
  268.         echo "</th>
  269. \t\t\t<th class=\"table-head-th-bg\" width=\"70\">";
  270.         // line 184
  271.         echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin.reste_a_payer"), "html", null, true);
  272.         echo "</th>
  273.         </tr>
  274.         <tbody>
  275.         ";
  276.         // line 189
  277.         $context['_parent'] = $context;
  278.         $context['_seq'] = twig_ensure_traversable((isset($context["invoices"]) || array_key_exists("invoices", $context) ? $context["invoices"] : (function () { throw new RuntimeError('Variable "invoices" does not exist.', 189, $this->source); })()));
  279.         foreach ($context['_seq'] as $context["_key"] => $context["proposal"]) {
  280.             // line 190
  281.             echo "\t\t\t\t";
  282.             $context["totalPaye"] = (twig_get_attribute($this->env, $this->source, $context["proposal"], "montantPaye", [], "any", false, false, false, 190) + (isset($context["totalPaye"]) || array_key_exists("totalPaye", $context) ? $context["totalPaye"] : (function () { throw new RuntimeError('Variable "totalPaye" does not exist.', 190, $this->source); })()));
  283.             // line 191
  284.             echo "\t\t\t\t";
  285.             $context["totalResteAPayer"] = (twig_get_attribute($this->env, $this->source, $context["proposal"], "resteAPayer", [], "any", false, false, false, 191) + (isset($context["totalResteAPayer"]) || array_key_exists("totalResteAPayer", $context) ? $context["totalResteAPayer"] : (function () { throw new RuntimeError('Variable "totalResteAPayer" does not exist.', 191, $this->source); })()));
  286.             // line 192
  287.             echo "
  288. \t\t\t\t";
  289.             // line 193
  290.             $context["ht"] = ((isset($context["ht"]) || array_key_exists("ht", $context) ? $context["ht"] : (function () { throw new RuntimeError('Variable "ht" does not exist.', 193, $this->source); })()) + twig_get_attribute($this->env, $this->source, $context["proposal"], "totalHTApresRemise", [], "any", false, false, false, 193));
  291.             // line 194
  292.             echo "                ";
  293.             $context["tva"] = ((isset($context["tva"]) || array_key_exists("tva", $context) ? $context["tva"] : (function () { throw new RuntimeError('Variable "tva" does not exist.', 194, $this->source); })()) + twig_get_attribute($this->env, $this->source, $context["proposal"], "totalTVA", [], "any", false, false, false, 194));
  294.             // line 195
  295.             echo "\t\t\t\t";
  296.             $context["remise"] = ((isset($context["remise"]) || array_key_exists("remise", $context) ? $context["remise"] : (function () { throw new RuntimeError('Variable "remise" does not exist.', 195, $this->source); })()) + twig_get_attribute($this->env, $this->source, $context["proposal"], "remise", [], "any", false, false, false, 195));
  297.             // line 196
  298.             echo "\t\t\t\t";
  299.             $context["ttc"] = ((isset($context["ttc"]) || array_key_exists("ttc", $context) ? $context["ttc"] : (function () { throw new RuntimeError('Variable "ttc" does not exist.', 196, $this->source); })()) + twig_get_attribute($this->env, $this->source, $context["proposal"], "totalTTC", [], "any", false, false, false, 196));
  300.             // line 197
  301.             echo "\t\t\t  <tr class=\"table-body-th-bg\">
  302. \t\t\t\t<td class=\"border-none text-left\">";
  303.             // line 198
  304.             echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["proposal"], "numero", [], "any", false, false, false, 198), "html", null, true);
  305.             echo "</td>
  306. \t\t\t\t<td class=\"border-none text-left\">";
  307.             // line 199
  308.             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["proposal"], "laDate", [], "any", false, false, false, 199), "d/m/Y"), "html", null, true);
  309.             echo "</td>
  310. \t\t\t\t
  311. \t\t\t\t<td class=\"border-none text-left\">";
  312.             // line 201
  313.             echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["proposal"], "totalHTApresRemise", [], "any", false, false, false, 201), 0, "", " "), "html", null, true);
  314.             echo "</td>
  315. \t\t\t\t<td class=\"border-none text-left\">";
  316.             // line 202
  317.             if ((1 === twig_compare(twig_get_attribute($this->env, $this->source, $context["proposal"], "totalTVA", [], "any", false, false, false, 202), 0))) {
  318.                 echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["proposal"], "totalTVA", [], "any", false, false, false, 202), 0, "", " "), "html", null, true);
  319.             }
  320.             echo "</td>
  321. \t\t\t\t<td class=\"border-none text-left\">";
  322.             // line 203
  323.             echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["proposal"], "totalTTC", [], "any", false, false, false, 203), 0, "", " "), "html", null, true);
  324.             echo "</td>
  325. \t\t\t\t<td class=\"border-none text-left\">";
  326.             // line 204
  327.             if ((1 === twig_compare(twig_get_attribute($this->env, $this->source, $context["proposal"], "montantPaye", [], "any", false, false, false, 204), 0))) {
  328.                 echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["proposal"], "montantPaye", [], "any", false, false, false, 204), 0, "", " "), "html", null, true);
  329.             }
  330.             echo "</td>
  331. \t\t\t\t<td class=\"border-none text-left\">";
  332.             // line 205
  333.             if ((1 === twig_compare(twig_get_attribute($this->env, $this->source, $context["proposal"], "resteAPayer", [], "any", false, false, false, 205), 0))) {
  334.                 echo " ";
  335.                 echo twig_escape_filter($this->env, twig_number_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["proposal"], "resteAPayer", [], "any", false, false, false, 205), 0, "", " "), "html", null, true);
  336.             }
  337.             echo "</td>
  338. \t\t\t\t
  339. \t\t\t  </tr>
  340. \t\t\t  ";
  341.         }
  342.         $_parent = $context['_parent'];
  343.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['proposal'], $context['_parent'], $context['loop']);
  344.         $context = array_intersect_key($context, $_parent) + $_parent;
  345.         // line 208
  346.         echo "\t\t
  347.             <tr>
  348.                 <td colspan=\"7\"></td>
  349.             </tr>
  350.             <tr>
  351.                 <td colspan=\"2\"></td>
  352.                 <td class=\"border-none text-left\">";
  353.         // line 214
  354.         echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["ht"]) || array_key_exists("ht", $context) ? $context["ht"] : (function () { throw new RuntimeError('Variable "ht" does not exist.', 214, $this->source); })()), 0, "", " "), "html", null, true);
  355.         echo "</td>
  356.                 <td class=\"border-none text-left\">";
  357.         // line 215
  358.         echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["tva"]) || array_key_exists("tva", $context) ? $context["tva"] : (function () { throw new RuntimeError('Variable "tva" does not exist.', 215, $this->source); })()), 0, "", " "), "html", null, true);
  359.         echo "</td>
  360.                 <td class=\"border-none text-left\">";
  361.         // line 216
  362.         echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["ttc"]) || array_key_exists("ttc", $context) ? $context["ttc"] : (function () { throw new RuntimeError('Variable "ttc" does not exist.', 216, $this->source); })()), 0, "", " "), "html", null, true);
  363.         echo "</td>
  364.                 <td class=\"border-none text-left\">";
  365.         // line 217
  366.         echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["totalPaye"]) || array_key_exists("totalPaye", $context) ? $context["totalPaye"] : (function () { throw new RuntimeError('Variable "totalPaye" does not exist.', 217, $this->source); })()), 0, "", " "), "html", null, true);
  367.         echo "</td>
  368.                 <td class=\"border-none text-left\">";
  369.         // line 218
  370.         echo twig_escape_filter($this->env, twig_number_format_filter($this->env, (isset($context["totalResteAPayer"]) || array_key_exists("totalResteAPayer", $context) ? $context["totalResteAPayer"] : (function () { throw new RuntimeError('Variable "totalResteAPayer" does not exist.', 218, $this->source); })()), 0, "", " "), "html", null, true);
  371.         echo "</td>
  372.             </tr>
  373.              <tr>
  374.                 <td colspan=\"7\"></td>
  375.             </tr>
  376.          
  377.         </tbody>
  378.     </table>
  379. \t";
  380.         // line 232
  381.         echo "\t</div>
  382. \t
  383. \t<div id=\"footer\">
  384.        
  385. \t\t
  386.         ";
  387.         // line 237
  388.         if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["boutique"]) || array_key_exists("boutique", $context) ? $context["boutique"] : (function () { throw new RuntimeError('Variable "boutique" does not exist.', 237, $this->source); })()), "settings", [], "any", false, false, false, 237), "factureContientEntete", [], "any", false, false, false, 237), false))) {
  389.             // line 238
  390.             echo "        <hr class=\"hr\">
  391.         <p class=\"facture-footer\">";
  392.             // line 239
  393.             echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["boutique"]) || array_key_exists("boutique", $context) ? $context["boutique"] : (function () { throw new RuntimeError('Variable "boutique" does not exist.', 239, $this->source); })()), "settings", [], "any", false, false, false, 239), "piedDocument", [], "any", false, false, false, 239);
  394.             echo "</p>
  395.         ";
  396.         } else {
  397.             // line 241
  398.             echo "        <div id=\"hauteur-pied-exterieur\">
  399.         </div>
  400.         ";
  401.         }
  402.         // line 244
  403.         echo "\t</div>
  404. </div>
  405. ";
  406.         
  407.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  408.         
  409.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  410.     }
  411.     public function getTemplateName()
  412.     {
  413.         return "pdf/point_par_client.html.twig";
  414.     }
  415.     public function isTraitable()
  416.     {
  417.         return false;
  418.     }
  419.     public function getDebugInfo()
  420.     {
  421.         return array (  428 => 244,  423 => 241,  418 => 239,  415 => 238,  413 => 237,  406 => 232,  394 => 218,  390 => 217,  386 => 216,  382 => 215,  378 => 214,  370 => 208,  357 => 205,  351 => 204,  347 => 203,  341 => 202,  337 => 201,  332 => 199,  328 => 198,  325 => 197,  322 => 196,  319 => 195,  316 => 194,  314 => 193,  311 => 192,  308 => 191,  305 => 190,  301 => 189,  293 => 184,  289 => 183,  285 => 182,  281 => 181,  277 => 180,  273 => 179,  269 => 178,  257 => 173,  237 => 155,  234 => 154,  231 => 153,  228 => 152,  225 => 151,  222 => 150,  220 => 149,  217 => 148,  214 => 147,  209 => 144,  205 => 142,  197 => 136,  190 => 134,  187 => 133,  183 => 130,  180 => 128,  178 => 127,  174 => 125,  157 => 110,  150 => 106,  43 => 1,);
  422.     }
  423.     public function getSourceContext()
  424.     {
  425.         return new Source("<style>
  426. \tdiv#page-impression{
  427.         background-color: #efefef;
  428.         font-family: Arial;
  429.         font-weight: normal;
  430.         font-size: 16px;
  431.         color: #999;
  432. \t\twidth: 80%;
  433. \t\tmargin: auto;
  434.     }
  435.     p{
  436.         padding: 0;
  437.         margin: 5px 0;
  438.     }
  439.     .hr{
  440.         height: 1px;
  441.         border-top: 1px solid #999;
  442.         background-color: #999;
  443.     }
  444.     p.facture-header{
  445.         display: inline-block;
  446.         font-size: 8px;
  447.         line-height: 0px!important;
  448.         background-color: #0a001f;
  449.     }
  450.     p.facture-footer{
  451. \tfont-size: 10px;
  452.         //line-height: 0px!important;
  453.         //line-height: 50%;
  454. \t\tfont-style: italic;
  455. \t\tfont-weight: bold;
  456.     }
  457.     p.mentionvalide{
  458.         font-size: 10px;
  459.         font-style: italic;
  460.     }
  461.     .text-black{
  462.         color: #000;
  463.     }
  464.     .block{
  465.         padding: 5px;
  466.         border-radius: 10px;
  467.         border: 1px solid #000;
  468.     }
  469.     table.table-body{
  470.         border:1px solid #bbb;
  471.         border-collapse: collapse;
  472.     }
  473.     table.table-body tr td, table.table-body tr th {
  474.         border:1px solid #bbb;
  475.     }
  476.     table.table-body tr th {
  477.         padding: 7px;
  478.     }
  479.     table.table-body tr td{
  480.         text-align: left;
  481.     }
  482.     table th.table-head-th-bg{
  483.         text-align: center;
  484.     }
  485.     table.table-body .table-footer-th-bg{
  486.         background: transparent;
  487.         color: #000;
  488.         font-weight: bold;
  489.     }
  490.     table{
  491.         color: #000;
  492.         font-size: 12px;
  493.     }
  494.     table tr td.border-none {
  495.         border-bottom:none;
  496.     }
  497.     table tr td.bordered-top {
  498.         border-top: 1px solid #bbb;
  499.     }
  500.     .text-center{
  501.         text-align: center;
  502.     }
  503.     .text-left{
  504.         text-align: left;
  505.     }
  506.     .text-right{
  507.         text-align: right;
  508.     }
  509.     .text-blue{
  510.         
  511.     }
  512. \t
  513. \tdiv#page-entiere{
  514. \t\tposition: relative;
  515. \t\twidth: 80%;
  516. \t\tmargin: auto;
  517. \t\theight: 99%;
  518. \t\tfont-family:  Times, serif;
  519. \t}
  520. \t
  521.     div#hauteur-entete-exterieur{
  522.         height: {{ boutique.settings.margeEntete }}px;
  523.     }
  524.     div#hauteur-pied-exterieur{
  525.         height: {{ boutique.settings.margePiedDePage }}px;
  526.     }
  527. \tdiv#footer{
  528. \t\tposition: absolute;
  529. \t\tbottom: 40px;
  530. \t\tfont-family: Times, serif;
  531. \t\t
  532. \t}
  533. \t
  534. </style>
  535. {#<div id=\"page-entiere\" data-size=\"A4\" backtop=\"20px\" backleft=\"10px\" backright=\"10px\" backbottom=\"20px\" footer=\"\">#}
  536. <div id=\"page-entiere\" data-size=\"A4\">
  537. <div id=\"impression\">
  538.     {% if boutique.settings.factureContientEntete == false %}
  539.     <div>
  540.     {#<page_header>#}
  541.        <table>
  542.             <tr>
  543.                 {#total en mm est de 210#}
  544.                 <td align=\"center\" style=\"width: 25mm;\" valign=\"top\">
  545.                     <img class=\"img-responsive\" src=\"{{ boutique.logo.originalUrl }}\" width=\"{{ boutique.settings.tailleLogoSurLesDocuments }}\" alt=\"\">
  546.                 </td>
  547. \t\t\t\t<td style=\"width: 178mm;\"><p>{{ boutique.settings.enteDocument|raw }}</p></td>
  548.             </tr>
  549.         </table>
  550.         <hr class=\"hr\">
  551.         
  552.     {#</page_header>#}
  553.     </div>
  554.     {% else %}
  555.     <div id=\"hauteur-entete-exterieur\">
  556.     </div>
  557.     {% endif %}
  558.     {% set vehicules =[ 22, 23, 28] %}
  559.     {% set ht = 0 %}
  560. \t{% set tva = 0 %}
  561. \t{% set remise = 0 %}
  562. \t{% set ttc = 0 %}
  563. \t{% set totalPaye = 0 %}
  564. \t{% set totalResteAPayer = 0 %}
  565.     <table class=\"table\" border=\"0\" style=\"margin-top: 0px\">
  566.        
  567.         <tr>
  568.             <td align=\"left\" style=\"width: 160px;\" valign=\"top\">
  569.                 
  570.             </td>
  571.             <td align=\"left\" style=\"width: 200px;\" valign=\"top\">
  572.                 <table style=\"width: 300px;\">
  573.                     <tr>
  574.                         <td><h5 style=\"position: relative; top: -7px; margin-right: 10px;\"></h5></td>
  575.                     </tr>
  576.                 </table>
  577.             </td>
  578.         </tr>
  579.     </table>
  580.     <table class=\"table\" border=\"0\" style=\"margin-top: 10px\">
  581.         <tr>
  582.             <td><u><h4>Point de {{ client.nom  }} de {{ dateDebut | date('d/m/Y') }} à {{ dateFin | date('d/m/Y') }}</h4></u></td>
  583.         </tr>
  584.     </table>
  585.     <table class=\"table-body\" border=\"0\" style=\"width: 100%\">
  586.         <tr>
  587.             <th class=\"table-head-th-bg\" width=\"60\">{{ 'admin.number' | trans }}</th>
  588. \t\t\t<th class=\"table-head-th-bg\" width=\"50\">{{ 'admin.date' | trans }}</th>
  589.             <th class=\"table-head-th-bg\" width=\"60\">{{ 'admin.totalHT' | trans }}</th>
  590.             <th class=\"table-head-th-bg\" width=\"60\">{{ 'admin.totalTVA' | trans }}</th>
  591.             <th class=\"table-head-th-bg\" width=\"60\">{{ 'admin.totalTTC' | trans }}</th>
  592. \t\t\t<th class=\"table-head-th-bg\" width=\"70\">{{ 'admin.paye' | trans }}</th>
  593. \t\t\t<th class=\"table-head-th-bg\" width=\"70\">{{ 'admin.reste_a_payer' | trans }}</th>
  594.         </tr>
  595.         <tbody>
  596.         {% for proposal in invoices %}
  597. \t\t\t\t{% set totalPaye = proposal.montantPaye + totalPaye %}
  598. \t\t\t\t{% set totalResteAPayer = proposal.resteAPayer + totalResteAPayer %}
  599. \t\t\t\t{% set ht = ht + proposal.totalHTApresRemise %}
  600.                 {% set tva = tva + proposal.totalTVA %}
  601. \t\t\t\t{% set remise = remise + proposal.remise %}
  602. \t\t\t\t{% set ttc = ttc + proposal.totalTTC %}
  603. \t\t\t  <tr class=\"table-body-th-bg\">
  604. \t\t\t\t<td class=\"border-none text-left\">{{ proposal.numero }}</td>
  605. \t\t\t\t<td class=\"border-none text-left\">{{ proposal.laDate | date('d/m/Y') }}</td>
  606. \t\t\t\t
  607. \t\t\t\t<td class=\"border-none text-left\">{{ proposal.totalHTApresRemise | number_format(0, '', ' ') }}</td>
  608. \t\t\t\t<td class=\"border-none text-left\">{% if proposal.totalTVA > 0 %}{{ proposal.totalTVA | number_format(0, '', ' ') }}{% endif %}</td>
  609. \t\t\t\t<td class=\"border-none text-left\">{{ proposal.totalTTC | number_format(0, '', ' ') }}</td>
  610. \t\t\t\t<td class=\"border-none text-left\">{% if proposal.montantPaye > 0 %}{{ proposal.montantPaye | number_format(0, '', ' ') }}{% endif %}</td>
  611. \t\t\t\t<td class=\"border-none text-left\">{% if proposal.resteAPayer > 0 %} {{ proposal.resteAPayer | number_format(0, '', ' ') }}{%  endif %}</td>
  612. \t\t\t\t
  613. \t\t\t  </tr>
  614. \t\t\t  {% endfor %}\t\t
  615.             <tr>
  616.                 <td colspan=\"7\"></td>
  617.             </tr>
  618.             <tr>
  619.                 <td colspan=\"2\"></td>
  620.                 <td class=\"border-none text-left\">{{ ht | number_format(0, '', ' ') }}</td>
  621.                 <td class=\"border-none text-left\">{{ tva | number_format(0, '', ' ') }}</td>
  622.                 <td class=\"border-none text-left\">{{ ttc | number_format(0, '', ' ') }}</td>
  623.                 <td class=\"border-none text-left\">{{ totalPaye | number_format(0, '', ' ') }}</td>
  624.                 <td class=\"border-none text-left\">{{ totalResteAPayer | number_format(0, '', ' ') }}</td>
  625.             </tr>
  626.              <tr>
  627.                 <td colspan=\"7\"></td>
  628.             </tr>
  629.          
  630.         </tbody>
  631.     </table>
  632. \t{#<page_footer>
  633.         <p class=\"mentionvalide\">{{ facture.mentionvalidite }}</p>
  634.         <hr class=\"hr\">
  635.         <p class=\"facture-footer\">{{ boutique.facturefooter|raw }}</p>
  636.     </page_footer>#}
  637. \t</div>
  638. \t
  639. \t<div id=\"footer\">
  640.        
  641. \t\t
  642.         {% if boutique.settings.factureContientEntete == false %}
  643.         <hr class=\"hr\">
  644.         <p class=\"facture-footer\">{{ boutique.settings.piedDocument|raw }}</p>
  645.         {% else %}
  646.         <div id=\"hauteur-pied-exterieur\">
  647.         </div>
  648.         {% endif %}
  649. \t</div>
  650. </div>
  651. ", "pdf/point_par_client.html.twig", "/home/harmony/public_html/templates/pdf/point_par_client.html.twig");
  652.     }
  653. }