<?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;

/* invoice.html.twig */
class __TwigTemplate_bee74e5bc3cc30bc56357b20978eb284 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;
        // line 1
        echo "<html>
<head>
    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
    <style type=\"text/css\">
        ";
        // line 5
        $this->loadTemplate("assets/style.css", "invoice.html.twig", 5)->display($context);
        // line 6
        echo "   .amarillo-rounded {
        background-color: rgba(252, 211, 77, 1) !important;
        border-bottom-left-radius: 10px !important;
        border-bottom-right-radius: 10px !important;
        border-top-right-radius: 10px !important;
        border-top-left-radius: 10px !important;
    }
table {

 border-collapse: collapse;
}
    </style>
</head>
<body class=\"white-bg\">
";
        // line 20
        $context["cp"] = twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 20, $this->source); })()), "company", [], "any", false, false, false, 20);
        // line 21
        $context["isNota"] = twig_in_filter(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 21, $this->source); })()), "tipoDoc", [], "any", false, false, false, 21), ["07", "08"]);
        // line 22
        $context["isAnticipo"] = (twig_get_attribute($this->env, $this->source, ($context["doc"] ?? null), "totalAnticipos", [], "any", true, true, false, 22) && (twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 22, $this->source); })()), "totalAnticipos", [], "any", false, false, false, 22) > 0));
        // line 23
        $context["name"] = $this->env->getRuntime('Greenter\Report\Filter\DocumentFilter')->getValueCatalog(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 23, $this->source); })()), "tipoDoc", [], "any", false, false, false, 23), "01");
        // line 24
        echo "<table width=\"100%\">
    <tbody><tr>
        <td style=\"padding:30px; !important\">
            <table width=\"100%\" height=\"200px\" border=\"0\" aling=\"center\" cellpadding=\"0\" cellspacing=\"0\">
                <tbody><tr>
                    <td width=\"50%\" height=\"90\" align=\"center\">
                        <span><img src=\"";
        // line 30
        echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\ImageFilter')->toBase64(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["params"]) || array_key_exists("params", $context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.', 30, $this->source); })()), "system", [], "any", false, false, false, 30), "logo", [], "any", false, false, false, 30)), "html", null, true);
        echo "\" height=\"80\" style=\"text-align:center\" border=\"0\"></span>
                    </td>
                    <td width=\"5%\" height=\"40\" align=\"center\"></td>
                    <td width=\"45%\" rowspan=\"2\" valign=\"bottom\" style=\"padding-left:0\">
                        <div class=\"tabla_borde\">
                            <table width=\"100%\" border=\"0\" height=\"200\" cellpadding=\"6\" cellspacing=\"0\">
                                <tbody><tr>
                                    <td align=\"center\">
                                        <span style=\"font-family:Tahoma, Geneva, sans-serif; font-size:29px\" text-align=\"center\">";
        // line 38
        echo twig_escape_filter($this->env, (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 38, $this->source); })()), "html", null, true);
        echo "</span>
                                        <br>
                                        <span style=\"font-family:Tahoma, Geneva, sans-serif; font-size:19px\" text-align=\"center\">E L E C T R Ó N I C A</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td align=\"center\">
                                        <span style=\"font-size:15px\" text-align=\"center\">R.U.C.: ";
        // line 45
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["cp"]) || array_key_exists("cp", $context) ? $context["cp"] : (function () { throw new RuntimeError('Variable "cp" does not exist.', 45, $this->source); })()), "ruc", [], "any", false, false, false, 45), "html", null, true);
        echo "</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td align=\"center\">
                                        <span style=\"font-size:24px\">";
        // line 50
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 50, $this->source); })()), "serie", [], "any", false, false, false, 50), "html", null, true);
        echo "-";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 50, $this->source); })()), "correlativo", [], "any", false, false, false, 50), "html", null, true);
        echo "</span>
                                    </td>
                                </tr>
                                </tbody></table>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td valign=\"bottom\" style=\"padding-left:0\">
                        <div class=\"tabla_borde\">
                            <table width=\"96%\" height=\"100%\" border=\"0\" border-radius=\"\" cellpadding=\"9\" cellspacing=\"0\">
                                <tbody><tr>
                                    <td align=\"center\">
                                        <strong><span style=\"font-size:15px\">";
        // line 63
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["cp"]) || array_key_exists("cp", $context) ? $context["cp"] : (function () { throw new RuntimeError('Variable "cp" does not exist.', 63, $this->source); })()), "razonSocial", [], "any", false, false, false, 63), "html", null, true);
        echo "</span></strong>
                                    </td>
                                </tr>
\t\t\t\t<tr>
                                    <td align=\"left\">
                                        <strong>Correo: </strong>";
        // line 68
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["cp"]) || array_key_exists("cp", $context) ? $context["cp"] : (function () { throw new RuntimeError('Variable "cp" does not exist.', 68, $this->source); })()), "email", [], "any", false, false, false, 68), "html", null, true);
        echo "
                                    </td>
                                </tr>

\t\t\t\t<tr>
                                    <td align=\"left\">
                                        <strong>Telefono: </strong>";
        // line 74
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["cp"]) || array_key_exists("cp", $context) ? $context["cp"] : (function () { throw new RuntimeError('Variable "cp" does not exist.', 74, $this->source); })()), "telephone", [], "any", false, false, false, 74), "html", null, true);
        echo "
                                    </td>
                                </tr>

                                <tr>
                                    <td align=\"left\">
                                        <strong>Dirección: </strong>";
        // line 80
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["cp"]) || array_key_exists("cp", $context) ? $context["cp"] : (function () { throw new RuntimeError('Variable "cp" does not exist.', 80, $this->source); })()), "address", [], "any", false, false, false, 80), "direccion", [], "any", false, false, false, 80), "html", null, true);
        echo "
                                    </td>
                                </tr>
                                <tr>
                                    <td align=\"left\">
                                        ";
        // line 85
        echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["params"]) || array_key_exists("params", $context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.', 85, $this->source); })()), "user", [], "any", false, false, false, 85), "header", [], "any", false, false, false, 85);
        echo "
                                    </td>
                                </tr>
                                </tbody></table>
                        </div>
                    </td>
                </tr>
                </tbody></table>
            <div class=\"tabla_borde\">
                ";
        // line 94
        $context["cl"] = twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 94, $this->source); })()), "client", [], "any", false, false, false, 94);
        // line 95
        echo "                <table width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">
                    <tbody><tr>
                        <td width=\"60%\" align=\"left\"><strong>Razón Social:</strong>  ";
        // line 97
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["cl"]) || array_key_exists("cl", $context) ? $context["cl"] : (function () { throw new RuntimeError('Variable "cl" does not exist.', 97, $this->source); })()), "rznSocial", [], "any", false, false, false, 97), "html", null, true);
        echo "</td>
                        <td width=\"40%\" align=\"left\"><strong>";
        // line 98
        echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\DocumentFilter')->getValueCatalog(twig_get_attribute($this->env, $this->source, (isset($context["cl"]) || array_key_exists("cl", $context) ? $context["cl"] : (function () { throw new RuntimeError('Variable "cl" does not exist.', 98, $this->source); })()), "tipoDoc", [], "any", false, false, false, 98), "06"), "html", null, true);
        echo ":</strong>  ";
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["cl"]) || array_key_exists("cl", $context) ? $context["cl"] : (function () { throw new RuntimeError('Variable "cl" does not exist.', 98, $this->source); })()), "numDoc", [], "any", false, false, false, 98), "html", null, true);
        echo "</td>
                    </tr>
                    <tr>
                        <td width=\"60%\" align=\"left\">
                            <strong>Fecha Emisión: </strong>  ";
        // line 102
        echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 102, $this->source); })()), "fechaEmision", [], "any", false, false, false, 102), "d/m/Y"), "html", null, true);
        echo "
                            ";
        // line 103
        if ((twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 103, $this->source); })()), "fechaEmision", [], "any", false, false, false, 103), "H:i:s") != "00:00:00")) {
            echo " ";
            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 103, $this->source); })()), "fechaEmision", [], "any", false, false, false, 103), "H:i:s"), "html", null, true);
            echo " ";
        }
        // line 104
        echo "                            ";
        if ((twig_get_attribute($this->env, $this->source, ($context["doc"] ?? null), "fecVencimiento", [], "any", true, true, false, 104) && twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 104, $this->source); })()), "fecVencimiento", [], "any", false, false, false, 104))) {
            // line 105
            echo "                            <br><br><strong>Fecha Vencimiento: </strong>  ";
            echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 105, $this->source); })()), "fecVencimiento", [], "any", false, false, false, 105), "d/m/Y"), "html", null, true);
            echo "
                            ";
        }
        // line 107
        echo "                        </td>
                        <td width=\"40%\" align=\"left\"><strong>Dirección: </strong>  ";
        // line 108
        if (twig_get_attribute($this->env, $this->source, (isset($context["cl"]) || array_key_exists("cl", $context) ? $context["cl"] : (function () { throw new RuntimeError('Variable "cl" does not exist.', 108, $this->source); })()), "address", [], "any", false, false, false, 108)) {
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["cl"]) || array_key_exists("cl", $context) ? $context["cl"] : (function () { throw new RuntimeError('Variable "cl" does not exist.', 108, $this->source); })()), "address", [], "any", false, false, false, 108), "direccion", [], "any", false, false, false, 108), "html", null, true);
        }
        echo "</td>
                    </tr>
                    ";
        // line 110
        if ((isset($context["isNota"]) || array_key_exists("isNota", $context) ? $context["isNota"] : (function () { throw new RuntimeError('Variable "isNota" does not exist.', 110, $this->source); })())) {
            // line 111
            echo "                    <tr>
                        <td width=\"60%\" align=\"left\"><strong>Tipo Doc. Ref.: </strong>  ";
            // line 112
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\DocumentFilter')->getValueCatalog(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 112, $this->source); })()), "tipDocAfectado", [], "any", false, false, false, 112), "01"), "html", null, true);
            echo "</td>
                        <td width=\"40%\" align=\"left\"><strong>Documento Ref.: </strong>  ";
            // line 113
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 113, $this->source); })()), "numDocfectado", [], "any", false, false, false, 113), "html", null, true);
            echo "</td>
                    </tr>
                    ";
        }
        // line 116
        echo "                    <tr>
                        <td width=\"60%\" align=\"left\"><strong>Tipo Moneda: </strong>  ";
        // line 117
        echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\DocumentFilter')->getValueCatalog(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 117, $this->source); })()), "tipoMoneda", [], "any", false, false, false, 117), "021"), "html", null, true);
        echo " </td>
                        <td width=\"40%\" align=\"left\">";
        // line 118
        if ((twig_get_attribute($this->env, $this->source, ($context["doc"] ?? null), "compra", [], "any", true, true, false, 118) && twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 118, $this->source); })()), "compra", [], "any", false, false, false, 118))) {
            echo "<strong>O/C: </strong>  ";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 118, $this->source); })()), "compra", [], "any", false, false, false, 118), "html", null, true);
        }
        echo "</td>
                    </tr>
                    ";
        // line 120
        if (twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 120, $this->source); })()), "guias", [], "any", false, false, false, 120)) {
            // line 121
            echo "                    <tr>
                        <td width=\"60%\" align=\"left\"><strong>Guias: </strong>
                        ";
            // line 123
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 123, $this->source); })()), "guias", [], "any", false, false, false, 123));
            foreach ($context['_seq'] as $context["_key"] => $context["guia"]) {
                // line 124
                echo "                            ";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["guia"], "nroDoc", [], "any", false, false, false, 124), "html", null, true);
                echo "&nbsp;&nbsp;
                        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['guia'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 125
            echo "</td>
                        <td width=\"40%\"></td>
                    </tr>
                    ";
        }
        // line 129
        echo "                    </tbody></table>
            </div><br>
            ";
        // line 131
        $context["moneda"] = $this->env->getRuntime('Greenter\Report\Filter\DocumentFilter')->getValueCatalog(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 131, $this->source); })()), "tipoMoneda", [], "any", false, false, false, 131), "02");
        // line 132
        echo "            <div class=\"tabla_borde\">
                <table width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">
                    <tbody>
                        <tr class=\"amarillo-rounded\">
                            <td align=\"center\" class=\"bold\" style=\"border-top-left-radius: 10px;\">ITEM</td>
 \t\t\t    <td align=\"center\" class=\"bold\">CANT.</td>
                            <td align=\"center\" class=\"bold\">UNID. MED</td>
";
        // line 139
        if ((twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 139, $this->source); })()), "tipoDoc", [], "any", false, false, false, 139) != "10")) {
            // line 140
            echo "                            <td align=\"center\" class=\"bold\">CODIGO</td>
";
        }
        // line 142
        echo "                            <td align=\"center\" class=\"bold\">DESCRIPCION  </td>

                            <td align=\"center\" class=\"bold\">PRECIO UNI. C/IGV</td>
";
        // line 145
        if ((twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 145, $this->source); })()), "tipoDoc", [], "any", false, false, false, 145) == "10")) {
            // line 146
            echo "             <td align=\"center\" class=\"bold\">SUB TOTAL</td>
";
        }
        // line 148
        echo "
                            <td align=\"center\" class=\"bold\" style=\"border-top-right-radius: 10px;\" >Valor Total</td>
                        </tr>
                        ";
        // line 151
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 151, $this->source); })()), "details", [], "any", false, false, false, 151));
        $context['loop'] = [
          'parent' => $context['_parent'],
          'index0' => 0,
          'index'  => 1,
          'first'  => true,
        ];
        if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
            $length = count($context['_seq']);
            $context['loop']['revindex0'] = $length - 1;
            $context['loop']['revindex'] = $length;
            $context['loop']['length'] = $length;
            $context['loop']['last'] = 1 === $length;
        }
        foreach ($context['_seq'] as $context["_key"] => $context["det"]) {
            // line 152
            echo "                        <tr class=\"border_top\">
 \t\t\t<td align=\"center\">
\t\t\t";
            // line 154
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 154), "html", null, true);
            echo "
\t\t\t\t</td>
                            <td align=\"center\">
                                ";
            // line 157
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, $context["det"], "cantidad", [], "any", false, false, false, 157)), "html", null, true);
            echo "
                            </td>
 \t\t\t\t<td align=\"center\">
                               ";
            // line 160
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["det"], "unidad", [], "any", false, false, false, 160), "html", null, true);
            echo "
                            </td>

";
            // line 163
            if ((twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 163, $this->source); })()), "tipoDoc", [], "any", false, false, false, 163) != "10")) {
                // line 164
                echo "                            <td align=\"center\">
                                ";
                // line 165
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["det"], "codProducto", [], "any", false, false, false, 165), "html", null, true);
                echo "
                            </td>
";
            }
            // line 168
            echo "
                            <td align=\"left\" width=\"300px\">
                                <span>";
            // line 170
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["det"], "descripcion", [], "any", false, false, false, 170), "html", null, true);
            echo "</span><br>
                            </td>
                            <td align=\"center\">
                                ";
            // line 173
            echo twig_escape_filter($this->env, (isset($context["moneda"]) || array_key_exists("moneda", $context) ? $context["moneda"] : (function () { throw new RuntimeError('Variable "moneda" does not exist.', 173, $this->source); })()), "html", null, true);
            echo "
                                ";
            // line 174
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, $context["det"], "mtoPrecioUnitario", [], "any", false, false, false, 174)), "html", null, true);
            echo "
                            </td>

";
            // line 177
            if ((twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 177, $this->source); })()), "tipoDoc", [], "any", false, false, false, 177) == "10")) {
                // line 178
                echo " 
             <td align=\"center\" >
  ";
                // line 180
                echo twig_escape_filter($this->env, (isset($context["moneda"]) || array_key_exists("moneda", $context) ? $context["moneda"] : (function () { throw new RuntimeError('Variable "moneda" does not exist.', 180, $this->source); })()), "html", null, true);
                echo "
";
                // line 181
                echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, $context["det"], "mtoBaseIgv", [], "any", false, false, false, 181)), "html", null, true);
                echo "
</td>
";
            }
            // line 184
            echo "
                            <td align=\"center\">
                                ";
            // line 186
            echo twig_escape_filter($this->env, (isset($context["moneda"]) || array_key_exists("moneda", $context) ? $context["moneda"] : (function () { throw new RuntimeError('Variable "moneda" does not exist.', 186, $this->source); })()), "html", null, true);
            echo "
                                ";
            // line 187
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, $context["det"], "mtoValorVenta", [], "any", false, false, false, 187)), "html", null, true);
            echo "
                            </td>
                        </tr>
                        ";
            ++$context['loop']['index0'];
            ++$context['loop']['index'];
            $context['loop']['first'] = false;
            if (isset($context['loop']['length'])) {
                --$context['loop']['revindex0'];
                --$context['loop']['revindex'];
                $context['loop']['last'] = 0 === $context['loop']['revindex0'];
            }
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['det'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 191
        echo "                    </tbody>
                </table></div>
            <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
                <tbody><tr>
                    <td width=\"50%\" valign=\"top\">
                        <table width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">
                            <tbody>
                            <tr>
                                <td colspan=\"4\">
                                    <br>
                                    <br>
                                    <span style=\"font-family:Tahoma, Geneva, sans-serif; font-size:12px\" text-align=\"center\"><strong>";
        // line 202
        echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\ResolveFilter')->getValueLegend(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 202, $this->source); })()), "legends", [], "any", false, false, false, 202), "1000"), "html", null, true);
        echo "</strong></span>
                                    <br>
                                    <br>
                                    <strong>Información Adicional</strong>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                        <table width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">
                            <tbody>
                            <tr class=\"border_top\">
                                <td width=\"30%\" style=\"font-size: 10px;\">
                                    LEYENDA:
                                </td>
                                <td width=\"70%\" style=\"font-size: 10px;\">
                                    <p>
                                        ";
        // line 218
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 218, $this->source); })()), "legends", [], "any", false, false, false, 218));
        foreach ($context['_seq'] as $context["_key"] => $context["leg"]) {
            // line 219
            echo "                                        ";
            if ((twig_get_attribute($this->env, $this->source, $context["leg"], "code", [], "any", false, false, false, 219) != "1000")) {
                // line 220
                echo "                                            ";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["leg"], "value", [], "any", false, false, false, 220), "html", null, true);
                echo "<br>
                                        ";
            }
            // line 222
            echo "                                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['leg'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 223
        echo "                                    </p>
                                </td>
                            </tr>
\t\t\t\t<tr class=\"border_top\">
                                <td width=\"30%\" style=\"font-size: 10px;\">
                                    FORMA DE PAGO:
                                </td>
                                <td width=\"70%\" style=\"font-size: 10px;\">
                                    <p>
                                      ";
        // line 232
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 232, $this->source); })()), "formaPago", [], "any", false, false, false, 232), "tipo", [], "any", false, false, false, 232), "html", null, true);
        echo "<br>
                                       </p>
                                </td>
                            </tr>
\t\t\t\t<tr class=\"border_top\">
                                <td width=\"30%\" style=\"font-size: 10px;\">
                                    MONEDA:
                                </td>
                                <td width=\"70%\" style=\"font-size: 10px;\">
                                    <p>
                                ";
        // line 242
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 242, $this->source); })()), "moneda", [], "any", false, false, false, 242), "html", null, true);
        echo "<br>
                                    </p>
                                </td>
                            </tr>
\t\t\t\t</tr>
\t\t\t\t<tr class=\"border_top\">
                                <td width=\"30%\" style=\"font-size: 10px;\">
                                    CUENTA BCP (SOLES):
                                </td>
                                <td width=\"70%\" style=\"font-size: 10px;\">
                                    <p>
                                ";
        // line 253
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 253, $this->source); })()), "cuentaBCP", [], "any", false, false, false, 253), "html", null, true);
        echo "<br>
                                    </p>
                                </td>
                            </tr>

\t\t\t\t<tr class=\"border_top\">
                                <td width=\"30%\" style=\"font-size: 10px;\">
                                    CUENTA YAPE (SOLES):
                                </td>
                                <td width=\"70%\" style=\"font-size: 10px;\">
                                    <p>
                                ";
        // line 264
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 264, $this->source); })()), "cuentaYAPE", [], "any", false, false, false, 264), "html", null, true);
        echo "<br>
                                    </p>
                                </td>
                            </tr>


\t\t\t<tr class=\"border_top\">
                                <td width=\"30%\" style=\"font-size: 10px;\">
                                    OBSERVACION:
                                </td>
                                <td width=\"70%\" style=\"font-size: 10px;\">
                                    <p>
                                    ";
        // line 276
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 276, $this->source); })()), "observacion", [], "any", false, false, false, 276), "html", null, true);
        echo "<br>
                                    </p>
                                </td>
                            </tr>


                            ";
        // line 282
        if ((isset($context["isNota"]) || array_key_exists("isNota", $context) ? $context["isNota"] : (function () { throw new RuntimeError('Variable "isNota" does not exist.', 282, $this->source); })())) {
            // line 283
            echo "                            <tr class=\"border_top\">
                                <td width=\"30%\" style=\"font-size: 10px;\">
                                    MOTIVO DE EMISIÓN:
                                </td>
                                <td width=\"70%\" style=\"font-size: 10px;\">
                                    ";
            // line 288
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 288, $this->source); })()), "desMotivo", [], "any", false, false, false, 288), "html", null, true);
            echo "
                                </td>
                            </tr>
                            ";
        }
        // line 292
        echo "                            ";
        if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["params"] ?? null), "user", [], "any", false, true, false, 292), "extras", [], "any", true, true, false, 292)) {
            // line 293
            echo "                                ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["params"]) || array_key_exists("params", $context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.', 293, $this->source); })()), "user", [], "any", false, false, false, 293), "extras", [], "any", false, false, false, 293));
            foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
                // line 294
                echo "                                    <tr class=\"border_top\">
                                        <td width=\"30%\" style=\"font-size: 10px;\">
                                            ";
                // line 296
                echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "name", [], "any", false, false, false, 296)), "html", null, true);
                echo ":
                                        </td>
                                        <td width=\"70%\" style=\"font-size: 10px;\">
                                            ";
                // line 299
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "value", [], "any", false, false, false, 299), "html", null, true);
                echo "
                                        </td>
                                    </tr>
                                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 303
            echo "                            ";
        }
        // line 304
        echo "                            </tbody>
                        </table>
                        ";
        // line 306
        if ((isset($context["isAnticipo"]) || array_key_exists("isAnticipo", $context) ? $context["isAnticipo"] : (function () { throw new RuntimeError('Variable "isAnticipo" does not exist.', 306, $this->source); })())) {
            // line 307
            echo "                        <table width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">
                            <tbody>
                            <tr>
                                <td>
                                    <br>
                                    <strong>Anticipo</strong>
                                    <br>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                        <table width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\" style=\"font-size: 10px;\">
                            <tbody>
                            <tr>
                                <td width=\"30%\"><b>Nro. Doc.</b></td>
                                <td width=\"70%\"><b>Total</b></td>
                            </tr>
                            ";
            // line 324
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 324, $this->source); })()), "anticipos", [], "any", false, false, false, 324));
            foreach ($context['_seq'] as $context["_key"] => $context["atp"]) {
                // line 325
                echo "                            <tr class=\"border_top\">
                                <td width=\"30%\">";
                // line 326
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["atp"], "nroDocRel", [], "any", false, false, false, 326), "html", null, true);
                echo "</td>
                                <td width=\"70%\">";
                // line 327
                echo twig_escape_filter($this->env, (isset($context["moneda"]) || array_key_exists("moneda", $context) ? $context["moneda"] : (function () { throw new RuntimeError('Variable "moneda" does not exist.', 327, $this->source); })()), "html", null, true);
                echo " ";
                echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, $context["atp"], "total", [], "any", false, false, false, 327)), "html", null, true);
                echo "</td>
                            </tr>
                            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['atp'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 330
            echo "                            </tbody>
                        </table>
                        ";
        }
        // line 333
        echo "                    </td>
                    <td width=\"50%\" valign=\"top\">
                        <br>
                        <table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"table table-valores-totales\">
                            <tbody>
                            ";
        // line 338
        if ((isset($context["isAnticipo"]) || array_key_exists("isAnticipo", $context) ? $context["isAnticipo"] : (function () { throw new RuntimeError('Variable "isAnticipo" does not exist.', 338, $this->source); })())) {
            // line 339
            echo "                                <tr class=\"border_bottom\">
                                    <td align=\"right\"><strong>Total Anticipo:</strong></td>
                                    <td width=\"120\" align=\"right\"><span>";
            // line 341
            echo twig_escape_filter($this->env, (isset($context["moneda"]) || array_key_exists("moneda", $context) ? $context["moneda"] : (function () { throw new RuntimeError('Variable "moneda" does not exist.', 341, $this->source); })()), "html", null, true);
            echo "  ";
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 341, $this->source); })()), "totalAnticipos", [], "any", false, false, false, 341)), "html", null, true);
            echo "</span></td>
                                </tr>
                            ";
        }
        // line 344
        echo "                            ";
        if (twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 344, $this->source); })()), "mtoOperGravadas", [], "any", false, false, false, 344)) {
            // line 345
            echo "                            <tr class=\"border_bottom\">
                                <td align=\"right\"><strong>Op. Gravadas:</strong></td>
                                <td width=\"120\" align=\"right\"><span>";
            // line 347
            echo twig_escape_filter($this->env, (isset($context["moneda"]) || array_key_exists("moneda", $context) ? $context["moneda"] : (function () { throw new RuntimeError('Variable "moneda" does not exist.', 347, $this->source); })()), "html", null, true);
            echo "  ";
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 347, $this->source); })()), "mtoOperGravadas", [], "any", false, false, false, 347)), "html", null, true);
            echo "</span></td>
                            </tr>
                            ";
        }
        // line 350
        echo "                            ";
        if (twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 350, $this->source); })()), "mtoOperInafectas", [], "any", false, false, false, 350)) {
            // line 351
            echo "                            <tr class=\"border_bottom\">
                                <td align=\"right\"><strong>Op. Inafectas:</strong></td>
                                <td width=\"120\" align=\"right\"><span>";
            // line 353
            echo twig_escape_filter($this->env, (isset($context["moneda"]) || array_key_exists("moneda", $context) ? $context["moneda"] : (function () { throw new RuntimeError('Variable "moneda" does not exist.', 353, $this->source); })()), "html", null, true);
            echo "  ";
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 353, $this->source); })()), "mtoOperInafectas", [], "any", false, false, false, 353)), "html", null, true);
            echo "</span></td>
                            </tr>
                            ";
        }
        // line 356
        echo "                            ";
        if (twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 356, $this->source); })()), "mtoOperExoneradas", [], "any", false, false, false, 356)) {
            // line 357
            echo "                            <tr class=\"border_bottom\">
                                <td align=\"right\"><strong>Op. Exoneradas:</strong></td>
                                <td width=\"120\" align=\"right\"><span>";
            // line 359
            echo twig_escape_filter($this->env, (isset($context["moneda"]) || array_key_exists("moneda", $context) ? $context["moneda"] : (function () { throw new RuntimeError('Variable "moneda" does not exist.', 359, $this->source); })()), "html", null, true);
            echo "  ";
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 359, $this->source); })()), "mtoOperExoneradas", [], "any", false, false, false, 359)), "html", null, true);
            echo "</span></td>
                            </tr>
                            ";
        }
        // line 362
        echo "                            <tr>
                                <td align=\"right\"><strong>I.G.V.";
        // line 363
        if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["params"] ?? null), "user", [], "any", false, true, false, 363), "numIGV", [], "any", true, true, false, 363)) {
            echo " ";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["params"]) || array_key_exists("params", $context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.', 363, $this->source); })()), "user", [], "any", false, false, false, 363), "numIGV", [], "any", false, false, false, 363), "html", null, true);
            echo "%";
        }
        echo ":</strong></td>
                                <td width=\"120\" align=\"right\"><span>";
        // line 364
        echo twig_escape_filter($this->env, (isset($context["moneda"]) || array_key_exists("moneda", $context) ? $context["moneda"] : (function () { throw new RuntimeError('Variable "moneda" does not exist.', 364, $this->source); })()), "html", null, true);
        echo "  ";
        echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 364, $this->source); })()), "mtoIGV", [], "any", false, false, false, 364)), "html", null, true);
        echo "</span></td>
                            </tr>
                            ";
        // line 366
        if (twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 366, $this->source); })()), "mtoISC", [], "any", false, false, false, 366)) {
            // line 367
            echo "                            <tr>
                                <td align=\"right\"><strong>I.S.C.:</strong></td>
                                <td width=\"120\" align=\"right\"><span>";
            // line 369
            echo twig_escape_filter($this->env, (isset($context["moneda"]) || array_key_exists("moneda", $context) ? $context["moneda"] : (function () { throw new RuntimeError('Variable "moneda" does not exist.', 369, $this->source); })()), "html", null, true);
            echo "  ";
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 369, $this->source); })()), "mtoISC", [], "any", false, false, false, 369)), "html", null, true);
            echo "</span></td>
                            </tr>
                            ";
        }
        // line 372
        echo "                            ";
        if (twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 372, $this->source); })()), "sumOtrosCargos", [], "any", false, false, false, 372)) {
            // line 373
            echo "                                <tr>
                                    <td align=\"right\"><strong>Otros Cargos:</strong></td>
                                    <td width=\"120\" align=\"right\"><span>";
            // line 375
            echo twig_escape_filter($this->env, (isset($context["moneda"]) || array_key_exists("moneda", $context) ? $context["moneda"] : (function () { throw new RuntimeError('Variable "moneda" does not exist.', 375, $this->source); })()), "html", null, true);
            echo "  ";
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 375, $this->source); })()), "sumOtrosCargos", [], "any", false, false, false, 375)), "html", null, true);
            echo "</span></td>
                                </tr>
                            ";
        }
        // line 378
        echo "                            ";
        if (twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 378, $this->source); })()), "icbper", [], "any", false, false, false, 378)) {
            // line 379
            echo "                                <tr>
                                    <td align=\"right\"><strong>I.C.B.P.E.R.:</strong></td>
                                    <td width=\"120\" align=\"right\"><span>";
            // line 381
            echo twig_escape_filter($this->env, (isset($context["moneda"]) || array_key_exists("moneda", $context) ? $context["moneda"] : (function () { throw new RuntimeError('Variable "moneda" does not exist.', 381, $this->source); })()), "html", null, true);
            echo "  ";
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 381, $this->source); })()), "icbper", [], "any", false, false, false, 381)), "html", null, true);
            echo "</span></td>
                                </tr>
                            ";
        }
        // line 384
        echo "                            ";
        if (twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 384, $this->source); })()), "mtoOtrosTributos", [], "any", false, false, false, 384)) {
            // line 385
            echo "                                <tr>
                                    <td align=\"right\"><strong>Otros Tributos:</strong></td>
                                    <td width=\"120\" align=\"right\"><span>";
            // line 387
            echo twig_escape_filter($this->env, (isset($context["moneda"]) || array_key_exists("moneda", $context) ? $context["moneda"] : (function () { throw new RuntimeError('Variable "moneda" does not exist.', 387, $this->source); })()), "html", null, true);
            echo "  ";
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 387, $this->source); })()), "mtoOtrosTributos", [], "any", false, false, false, 387)), "html", null, true);
            echo "</span></td>
                                </tr>
                            ";
        }
        // line 390
        echo "                            <tr>
                                <td align=\"right\"><strong>Precio Venta:</strong></td>
                                <td width=\"120\" align=\"right\"><span id=\"ride-importeTotal\" class=\"ride-importeTotal\">";
        // line 392
        echo twig_escape_filter($this->env, (isset($context["moneda"]) || array_key_exists("moneda", $context) ? $context["moneda"] : (function () { throw new RuntimeError('Variable "moneda" does not exist.', 392, $this->source); })()), "html", null, true);
        echo "  ";
        echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 392, $this->source); })()), "mtoImpVenta", [], "any", false, false, false, 392)), "html", null, true);
        echo "</span></td>
                            </tr>
                            ";
        // line 394
        if ((twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 394, $this->source); })()), "perception", [], "any", false, false, false, 394) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 394, $this->source); })()), "perception", [], "any", false, false, false, 394), "mto", [], "any", false, false, false, 394))) {
            // line 395
            echo "                                ";
            $context["perc"] = twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 395, $this->source); })()), "perception", [], "any", false, false, false, 395);
            // line 396
            echo "                                ";
            $context["soles"] = $this->env->getRuntime('Greenter\Report\Filter\DocumentFilter')->getValueCatalog("PEN", "02");
            // line 397
            echo "                                <tr>
                                    <td align=\"right\"><strong>Percepción:</strong></td>
                                    <td width=\"120\" align=\"right\"><span>";
            // line 399
            echo twig_escape_filter($this->env, (isset($context["soles"]) || array_key_exists("soles", $context) ? $context["soles"] : (function () { throw new RuntimeError('Variable "soles" does not exist.', 399, $this->source); })()), "html", null, true);
            echo "  ";
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, (isset($context["perc"]) || array_key_exists("perc", $context) ? $context["perc"] : (function () { throw new RuntimeError('Variable "perc" does not exist.', 399, $this->source); })()), "mto", [], "any", false, false, false, 399)), "html", null, true);
            echo "</span></td>
                                </tr>
                                <tr>
                                    <td align=\"right\"><strong>Total a Pagar:</strong></td>
                                    <td width=\"120\" align=\"right\"><span>";
            // line 403
            echo twig_escape_filter($this->env, (isset($context["soles"]) || array_key_exists("soles", $context) ? $context["soles"] : (function () { throw new RuntimeError('Variable "soles" does not exist.', 403, $this->source); })()), "html", null, true);
            echo " ";
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\FormatFilter')->number(twig_get_attribute($this->env, $this->source, (isset($context["perc"]) || array_key_exists("perc", $context) ? $context["perc"] : (function () { throw new RuntimeError('Variable "perc" does not exist.', 403, $this->source); })()), "mtoTotal", [], "any", false, false, false, 403)), "html", null, true);
            echo "</span></td>
                                </tr>
                            ";
        }
        // line 406
        echo "                            </tbody>
                        </table>
                    </td>
                </tr>
                </tbody></table>
            <br>
            <br>
            ";
        // line 413
        if ((array_key_exists("max_items", $context) && (twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 413, $this->source); })()), "details", [], "any", false, false, false, 413)) > (isset($context["max_items"]) || array_key_exists("max_items", $context) ? $context["max_items"] : (function () { throw new RuntimeError('Variable "max_items" does not exist.', 413, $this->source); })())))) {
            // line 414
            echo "                <div style=\"page-break-after:always;\"></div>
            ";
        }
        // line 416
        echo "            <div>
";
        // line 417
        if ((twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 417, $this->source); })()), "tipoDoc", [], "any", false, false, false, 417) != "10")) {
            // line 418
            echo "                <hr style=\"display: block; height: 1px; border: 0; border-top: 1px solid #666; margin: 20px 0; padding: 0;\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">
";
        }
        // line 419
        echo "                 
   <tbody><tr>
                        <td width=\"85%\">
";
        // line 422
        if ((twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 422, $this->source); })()), "tipoDoc", [], "any", false, false, false, 422) != "10")) {
            // line 423
            echo "                            <blockquote>
                                ";
            // line 424
            if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["params"] ?? null), "user", [], "any", false, true, false, 424), "footer", [], "any", true, true, false, 424)) {
                // line 425
                echo "                                    ";
                echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["params"]) || array_key_exists("params", $context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.', 425, $this->source); })()), "user", [], "any", false, false, false, 425), "footer", [], "any", false, false, false, 425);
                echo "
                                ";
            }
            // line 427
            echo "
                                ";
            // line 428
            if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["params"] ?? null), "system", [], "any", false, true, false, 428), "hash", [], "any", true, true, false, 428) && twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["params"]) || array_key_exists("params", $context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.', 428, $this->source); })()), "system", [], "any", false, false, false, 428), "hash", [], "any", false, false, false, 428))) {
                // line 429
                echo "                                    <strong>Resumen:</strong>   ";
                echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["params"]) || array_key_exists("params", $context) ? $context["params"] : (function () { throw new RuntimeError('Variable "params" does not exist.', 429, $this->source); })()), "system", [], "any", false, false, false, 429), "hash", [], "any", false, false, false, 429), "html", null, true);
                echo "<br>
                                ";
            }
            // line 431
            echo "
                                <span>Representación Impresa de la ";
            // line 432
            echo twig_escape_filter($this->env, (isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 432, $this->source); })()), "html", null, true);
            echo " ELECTRÓNICA.</span>
                            </blockquote>
";
        }
        // line 435
        echo "                        </td>
  ";
        // line 436
        if ((twig_get_attribute($this->env, $this->source, (isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 436, $this->source); })()), "tipoDoc", [], "any", false, false, false, 436) != "10")) {
            // line 437
            echo "
                        <td width=\"15%\" align=\"right\">
                            <img src=\"";
            // line 439
            echo twig_escape_filter($this->env, $this->env->getRuntime('Greenter\Report\Filter\ImageFilter')->toBase64($this->env->getRuntime('Greenter\Report\Render\QrRender')->getImage((isset($context["doc"]) || array_key_exists("doc", $context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.', 439, $this->source); })())), "svg+xml"), "html", null, true);
            echo "\" alt=\"Qr Image\">
                        </td>
";
        }
        // line 442
        echo "                    </tr>
                    </tbody></table>
            </div>
        </td>
    </tr>
    </tbody></table>
</body></html>
";
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "invoice.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  908 => 442,  902 => 439,  898 => 437,  896 => 436,  893 => 435,  887 => 432,  884 => 431,  878 => 429,  876 => 428,  873 => 427,  867 => 425,  865 => 424,  862 => 423,  860 => 422,  855 => 419,  851 => 418,  849 => 417,  846 => 416,  842 => 414,  840 => 413,  831 => 406,  823 => 403,  814 => 399,  810 => 397,  807 => 396,  804 => 395,  802 => 394,  795 => 392,  791 => 390,  783 => 387,  779 => 385,  776 => 384,  768 => 381,  764 => 379,  761 => 378,  753 => 375,  749 => 373,  746 => 372,  738 => 369,  734 => 367,  732 => 366,  725 => 364,  717 => 363,  714 => 362,  706 => 359,  702 => 357,  699 => 356,  691 => 353,  687 => 351,  684 => 350,  676 => 347,  672 => 345,  669 => 344,  661 => 341,  657 => 339,  655 => 338,  648 => 333,  643 => 330,  632 => 327,  628 => 326,  625 => 325,  621 => 324,  602 => 307,  600 => 306,  596 => 304,  593 => 303,  583 => 299,  577 => 296,  573 => 294,  568 => 293,  565 => 292,  558 => 288,  551 => 283,  549 => 282,  540 => 276,  525 => 264,  511 => 253,  497 => 242,  484 => 232,  473 => 223,  467 => 222,  461 => 220,  458 => 219,  454 => 218,  435 => 202,  422 => 191,  404 => 187,  400 => 186,  396 => 184,  390 => 181,  386 => 180,  382 => 178,  380 => 177,  374 => 174,  370 => 173,  364 => 170,  360 => 168,  354 => 165,  351 => 164,  349 => 163,  343 => 160,  337 => 157,  331 => 154,  327 => 152,  310 => 151,  305 => 148,  301 => 146,  299 => 145,  294 => 142,  290 => 140,  288 => 139,  279 => 132,  277 => 131,  273 => 129,  267 => 125,  258 => 124,  254 => 123,  250 => 121,  248 => 120,  240 => 118,  236 => 117,  233 => 116,  227 => 113,  223 => 112,  220 => 111,  218 => 110,  211 => 108,  208 => 107,  202 => 105,  199 => 104,  193 => 103,  189 => 102,  180 => 98,  176 => 97,  172 => 95,  170 => 94,  158 => 85,  150 => 80,  141 => 74,  132 => 68,  124 => 63,  106 => 50,  98 => 45,  88 => 38,  77 => 30,  69 => 24,  67 => 23,  65 => 22,  63 => 21,  61 => 20,  45 => 6,  43 => 5,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "invoice.html.twig", "/var/www/html/lycet-grg/vendor/greenter/report/src/Report/Templates/invoice.html.twig");
    }
}
