<?php

/* VGMWOBundle:Invoicing:new.html.twig */
class __TwigTemplate_6168311f406519461ab24ad92ba81ed21e422487ca85858886ab7ccf09a5f834 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        // line 1
        $this->parent = $this->loadTemplate("VGMWOBundle::layout.html.twig", "VGMWOBundle:Invoicing:new.html.twig", 1);
        $this->blocks = array(
            'stylesheets' => array($this, 'block_stylesheets'),
            'content' => array($this, 'block_content'),
            'message' => array($this, 'block_message'),
            'temp_item_template' => array($this, 'block_temp_item_template'),
            'temp_term' => array($this, 'block_temp_term'),
            'temp_via' => array($this, 'block_temp_via'),
            'javascripts' => array($this, 'block_javascripts'),
        );
    }

    protected function doGetParent(array $context)
    {
        return "VGMWOBundle::layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 2
    public function block_stylesheets($context, array $blocks = array())
    {
        $this->displayParentBlock("stylesheets", $context, $blocks);
        echo "<link href=\"";
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/css/bootstrap-datetimepicker.css"), "html", null, true);
        echo "\" rel=\"stylesheet\" media=\"screen\">
<style>
    table.totals>tbody>tr>td:nth-child(2n+1){font-size: 17px;}
    table.totals>tbody>tr>td:nth-last-child(2n+1){font-size: 14px;vertical-align: middle;text-align: right;}
</style>
";
    }

    // line 8
    public function block_content($context, array $blocks = array())
    {
        // line 9
        echo "    <div class=\"container\">
        <div class=\"form-group container-fluid\" data-bind=\"with: invoice\">
            <section id=\"header-area\" class=\"row\">
                <div id=\"logo\" class=\"col-xs-12 col-sm-8\" style=\"vertical-align: bottom; display: table; position: relative;\">
                    <div style=\"float: left\">
                        <img id=\"logo-img\" src=\"";
        // line 14
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/images/logo/Navy Blue/Navy Blue Aeroservicios-400.png"), "html", null, true);
        echo "\"
                             width=\"auto\" height=\"80px\"/>
                    </div>
                    <div style=\"float: left\">
                        <strong style=\"font-size: 17px;\">Aeroservicios USA, Inc.</strong>
                        <p>3750 NW 49 Street Miami, FL 33142</p>
                        <p>305-637-3040</p>
                    </div>
                </div>
                <div class=\"col-xs-12 col-sm-4\">
                    <div class=\"col-xs-6 col-sm-6\">
                        <label form=\"qb-date\" style=\"margin-bottom: 0px;\">QB date</label>
                        <input tabindex=\"1\" id=\"qb-date\"
                               required=\"required\"
                               data-date =\"\"
                               data-date-format=\"mm/dd/yyyy\"
                               data-link-field=\"qb-date\"
                               data-link-format=\"mm/dd/yyyy\"
                               class=\"form-control datepicker\">
                    </div>
                    <div class=\"col-xs-6 col-sm-6\">
                        <label form=\"invoice-number\" style=\"margin-bottom: 0px;\">Invoice #</label>
                        <input tabindex=\"2\" id=\"invoice-number\" type=\"tel\" class=\"form-control\" placeholder=\"Invoice #\"
                               maxlength=\"10\" required=\"required\">
                    </div>
                </div>
                <div class=\"horizaontal-divider\" style=\"clear: both\"></div>
            </section>
            <section id=\"general-info\" class=\"row\">
                <div class=\"col-xs-12 col-sm-6\">
                    <label for=\"wo-condition\" style=\"margin-bottom: 0px;\">Bill to:</label>
                    <select tabindex=\"3\" id=\"client\" required=\"required\" class=\"form-control\"
                            data-bind=\"options: \$root.clients,optionsCaption: '',optionsText: 'name',value: bill_to\"></select>
                    <textarea class=\"form-control\" rows=\"4\" data-bind=\"textInput: bill_to_info\" tabindex=\"4\"></textarea>
                </div>
                <div class=\"col-xs-12 col-sm-6\">
                    <label for=\"wo-condition\" style=\"margin-bottom: 0px;\">Ship to:</label>
                    <select tabindex=\"5\" id=\"client\" required=\"required\" class=\"form-control\"
                            data-bind=\"options: \$root.clients,optionsCaption: '',optionsText: 'name',value: ship_to\"></select>
                    <textarea class=\"form-control\" rows=\"4\" data-bind=\"textInput: ship_to_info\" tabindex=\"6\"></textarea>
                </div>
                <div class=\"col-xs-12 col-sm-6\">
                    <table class=\"table table-responsive\">
                        <thead>
                            <tr>
                                <th class=\"col-xs-3 col-sm-3\">P.O.#</th>
                                <th class=\"col-xs-3 col-sm-3\">Terms</th>
                                <th class=\"col-xs-3 col-sm-3\">Due date</th>
                                <th class=\"col-xs-3 col-sm-3\">Rep</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td><input id=\"po-number\" tabindex=\"7\" maxlength=\"10\" data-bind=\"\" class=\"form-control\"></td>
                                <td>
                                    <div class=\"input-group\">
                                        <select id=\"terms\" tabindex=\"8\" class=\"form-control\"
                                                data-bind=\"options: \$root.terms,optionsText: 'name',
                                                           optionsCaption: '',value: terms\"></select>
                                        <div class=\"input-group-addon\" style=\"padding: 2px 4px;\"
                                             data-bind=\"click: \$root.add_terms\">
                                            <a href=\"#\"><span class=\"glyphicon glyphicon-plus\"></span></a>
                                        </div>
                                    </div>
                                </td>
                                <td><input id=\"due-date\" tabindex=\"9\"
                                           data-date =\"\"
                                           data-date-format=\"mm/dd/yyyy\"
                                           data-link-field=\"due-date\"
                                           data-link-format=\"mm/dd/yyyy\"
                                           class=\"form-control datepicker\"></td>
                                <td><select id=\"rep\" tabindex=\"10\" class=\"form-control\"
                                            data-bind=\"options: \$root.countries,optionsCaption: '',
                                                       value: rep\"></select></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <div class=\"col-xs-12 col-sm-6\">
                    <table class=\"table table-responsive\">
                        <thead>
                        <tr>
                            <th class=\"col-xs-3 col-sm-3\">Ship date</th>
                            <th class=\"col-xs-3 col-sm-3\">Via</th>
                            <th class=\"col-xs-3 col-sm-3\">EXW</th>
                            <th class=\"col-xs-3 col-sm-3\">IN #</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td><input id=\"ship-date\" tabindex=\"11\"
                                       data-date =\"\"
                                       data-date-format=\"mm/dd/yyyy\"
                                       data-link-field=\"ship-date\"
                                       data-link-format=\"mm/dd/yyyy\"
                                       class=\"form-control datepicker\"></td>
                            <td>
                                <div class=\"input-group\">
                                    <select id=\"vias\" tabindex=\"12\" class=\"form-control\"
                                            data-bind=\"options: \$root.vias,optionsText: 'name',
                                                       optionsCaption: '',value: via\"></select>
                                    <div class=\"input-group-addon\" style=\"padding: 2px 4px;\"
                                         data-bind=\"click: \$root.add_via\">
                                        <a href=\"#\"><span class=\"glyphicon glyphicon-plus\"></span></a>
                                    </div>
                                </div>
                            <td><input id=\"exw\" tabindex=\"13\" maxlength=\"10\" data-bind=\"\" class=\"form-control\"></td>
                            <td><input id=\"in-number\" tabindex=\"14\" maxlength=\"10\" data-bind=\"\" class=\"form-control\"></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class=\"horizaontal-divider\" style=\"clear: both\"></div>
            </section>
            <section id=\"items-area\" class=\"row\" style=\"min-height: 200px;\">
                <div class=\"col-xs-12 col-sm-12\">
                    <table class=\"table table-responsive\" style=\"margin-bottom: 5px;\">
                        <thead>
                        <tr>
                            <th class=\"col-xs-1 col-sm-1\">Quantity</th>
                            <th class=\"col-xs-1 col-sm-2\" style=\"white-space: nowrap;\">Item code</th>
                            <th class=\"col-xs-1 col-sm-1\">Account</th>
                            <th class=\"col-xs-4 col-sm-6\">Description</th>
                            <th class=\"col-xs-1 col-sm-1\" style=\"white-space: nowrap;\">Unit price</th>
                            <th class=\"col-xs-2 col-sm-1\" style=\"white-space: nowrap;\">Ext. price</th>
                        </tr>
                        </thead>
                        <tbody data-bind=\"foreach: items\">
                        <tr>
                            <td>
                                <div class=\"input-group\">
                                    <div class=\"input-group-addon\" style=\"padding: 2px 4px;\"
                                         data-bind=\"click: dec_cant\">
                                        <a href=\"#\"><span class=\"glyphicon glyphicon-minus\"></span></a>
                                    </div>
                                    <input type=\"tel\" class=\"form-control\"
                                           data-bind=\"textInput: cant\">
                                    <div class=\"input-group-addon\" style=\"padding: 2px 4px;\"
                                         data-bind=\"click: inc_cant\">
                                        <a href=\"#\"><span class=\"glyphicon glyphicon-plus\"></span></a>
                                    </div>
                                </div>
                            </td>
                            <td>
                                <div class=\"input-group\">
                                    <select class=\"form-control\"
                                            data-bind=\"options: \$root.item_templates,optionsText: 'code',
                                                       optionsCaption: '',value: item_temp\"></select>
                                    <div class=\"input-group-addon\" style=\"padding: 2px 4px;\"
                                         data-bind=\"click: add_item_template\">
                                        <a href=\"#\"><span class=\"glyphicon glyphicon-plus\"></span></a>
                                    </div>
                                </div>
                            </td>
                            <td><select class=\"form-control\"
                                        data-bind=\"options: \$root.accounts,optionsCaption: '',
                                                       value: account\"></select>
                            </td>
                            <td>
                                <input data-bind=\"textInput: description\" class=\"form-control\">
                            </td>
                            <td>
                                <div class=\"input-group\">
                                    <div class=\"input-group-addon\" style=\"padding: 2px 4px;\">\$</div>
                                    <input data-bind=\"value: unit_price\" class=\"form-control\">
                                </div>
                            </td>
                            <td>
                                <div class=\"input-group\">
                                    <div class=\"input-group-addon\" style=\"padding: 2px 4px;\">\$</div>
                                    <input data-bind=\"textInput: extended_price\" class=\"form-control\">
                                </div>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <div>
                        <a class=\"btn btn-primary pull-right\" data-bind=\"click: add_item\">
                            Add Item <span class=\"glyphicon glyphicon-plus\"></span>
                        </a>
                    </div>
                </div>
            </section>
            <section id=\"invoice-footer-area\" class=\"row\">
                <div class=\"col-xs-12 col-sm-12 text-right\" style=\"bottom: 0;\">
                    <div class=\"col-xs-12 col-sm-2 input-group pull-right\" style=\"padding-bottom: 4px;\">
                        <div class=\"input-group-addon\" style=\"padding: 2px 4px;\">
                            Tax rate %
                        </div>
                        <input id=\"tax\" tabindex=\"12\" class=\"form-control\"
                                data-bind=\"value: tax_percentage\"></select>
                        ";
        // line 209
        echo "                    </div>
                </div>
                <div class=\"horizaontal-divider\" style=\"clear: both\"></div>
                <div class=\"col-xs-12 col-sm-9\">
                    <textarea class=\"form-control\" rows=\"2\" data-bind=\"textInput: via.info\"></textarea>
                </div>
                <div class=\"col-xs-4 col-sm-3\">
                    <table class=\"table table-responsive totals\">
                        <tbody>
                            <tr>
                                <td><strong>Subtotal</strong></td>
                                <td><span class=\"glyphicon glyphicon-usd\"></span>10000</td>
                            </tr>
                            <tr>
                                <td><strong>Sales Tax</strong></td>
                                <td><span class=\"glyphicon glyphicon-usd\"></span>10000</td>
                            </tr>
                            <tr>
                                <td><strong>Total</strong></td>
                                <td><span class=\"glyphicon glyphicon-usd\"></span>10000</td>
                            </tr>
                            <tr>
                                <td><strong>Payments/Credits</strong></td>
                                <td><span class=\"glyphicon glyphicon-usd\"></span>10000</td>
                            </tr>
                            <tr>
                                <td><strong>Balance Due</strong></td>
                                <td><span class=\"glyphicon glyphicon-usd\"></span>10000</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </section>
        </div>
        <footer style=\"clear: both; text-align: right;\">
            <a class=\"btn btn-primary\" href=\"#\"
               data-bind=\"click: ''\">
                Update
            </a>
            <a class=\"btn btn-warning\" href=\"";
        // line 248
        echo $this->env->getExtension('routing')->getPath("invoices");
        echo "\">
                Cancel
            </a>
        </footer>
    </div>
    ";
        // line 253
        $this->displayBlock('message', $context, $blocks);
        // line 254
        echo "    ";
        $this->displayBlock('temp_item_template', $context, $blocks);
        // line 255
        echo "    ";
        $this->displayBlock('temp_term', $context, $blocks);
        // line 256
        echo "    ";
        $this->displayBlock('temp_via', $context, $blocks);
    }

    // line 253
    public function block_message($context, array $blocks = array())
    {
        $this->loadTemplate("VGMWOBundle:Menssage:message.html.twig", "VGMWOBundle:Invoicing:new.html.twig", 253)->display($context);
    }

    // line 254
    public function block_temp_item_template($context, array $blocks = array())
    {
        $this->loadTemplate("VGMWOBundle:Invoicing/Modal_panels:temp_item_template.html.twig", "VGMWOBundle:Invoicing:new.html.twig", 254)->display($context);
    }

    // line 255
    public function block_temp_term($context, array $blocks = array())
    {
        $this->loadTemplate("VGMWOBundle:Invoicing/Modal_panels:temp_term.html.twig", "VGMWOBundle:Invoicing:new.html.twig", 255)->display($context);
    }

    // line 256
    public function block_temp_via($context, array $blocks = array())
    {
        $this->loadTemplate("VGMWOBundle:Invoicing/Modal_panels:temp_via.html.twig", "VGMWOBundle:Invoicing:new.html.twig", 256)->display($context);
    }

    // line 259
    public function block_javascripts($context, array $blocks = array())
    {
        // line 260
        echo "    ";
        $this->displayParentBlock("javascripts", $context, $blocks);
        echo "
    <script type=\"text/javascript\" src=\"";
        // line 261
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/bootstrap-datetimepicker.js"), "html", null, true);
        echo "\"></script>
    <script type=\"text/javascript\" src=\"";
        // line 262
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/jquery/jquery.inputmask.js"), "html", null, true);
        echo "\"></script>
    <script type=\"text/javascript\" src=\"";
        // line 263
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/customized/utils/knockout.plugins.js"), "html", null, true);
        echo "\"></script>
    <script type=\"text/javascript\" src=\"";
        // line 264
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/customized/utils/message.modal.js"), "html", null, true);
        echo "\"></script>
    <script type=\"text/javascript\" src=\"";
        // line 265
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/customized/utils/util.lists.js"), "html", null, true);
        echo "\"></script>
    <script type=\"text/javascript\" src=\"";
        // line 266
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/js/customized/Invoices/invoice.manager.js"), "html", null, true);
        echo "\"></script>
    <script type=\"text/javascript\" HIDDEN=\"hidden\">
        \$(document).ready(function() {
            loadPageFeatures();
            \$('#search-add-stock').on('hidden.bs.modal', function (e) {
                \$( \"#stock-number-4-search\" ).focus();
            });
        });
        function go_home_list(){window.location.href=\"";
        // line 274
        echo $this->env->getExtension('routing')->getPath("invoices");
        echo "\";}
        function get_saving_invoice_term_url(){return \"";
        // line 275
        echo $this->env->getExtension('routing')->getPath("save_invoice_term");
        echo "\";}
        function get_saving_invoice_via_url(){return \"";
        // line 276
        echo $this->env->getExtension('routing')->getPath("save_invoice_via");
        echo "\";}
        function get_saving_invoice_item_template_url(){return \"";
        // line 277
        echo $this->env->getExtension('routing')->getPath("save_invoice_item_template");
        echo "\";}

        function get_workorder_support_id_url(){return \"";
        // line 279
        echo $this->env->getExtension('routing')->getPath("get_wo_support_by_id");
        echo "\";}
        function get_search_4_stock_url(){return \"";
        // line 280
        echo $this->env->getExtension('routing')->getPath("find_stocks4workorder");
        echo "\";}
        function get_workorder_check_existence_url(){return \"";
        // line 281
        echo $this->env->getExtension('routing')->getPath("check_creating_exist");
        echo "\";}
        function get_workorder_create_url(){return \"";
        // line 282
        echo $this->env->getExtension('routing')->getPath("create_workorder");
        echo "\";}
        function get_workorder_update_url(){return \"";
        // line 283
        echo $this->env->getExtension('routing')->getPath("update_workorder");
        echo "\";}
        function get_save_stock_url(){return \"";
        // line 284
        echo $this->env->getExtension('routing')->getPath("save_stock");
        echo "\";}
        function get_workorder_obs_url(){return \"";
        // line 285
        echo $this->env->getExtension('routing')->getPath("workorder_get_my_obs");
        echo "\";}
        function get_workorder_tasks_url(){return \"";
        // line 286
        echo $this->env->getExtension('routing')->getPath("workorder_get_my_tasks");
        echo "\";}
        function get_workorder_stocks_url(){return \"";
        // line 287
        echo $this->env->getExtension('routing')->getPath("workorder_get_my_stocks");
        echo "\";}
        function blankStockModal(holder){resetStockModal(holder, '";
        // line 288
        echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("bundles/vgmwo/images/logo/Navy Blue/Navy Blue Aeroservicios-300.png"), "html", null, true);
        echo "');}

        viewModel.LoadData = ko.dependentObservable(function() {
            viewModel.invoice(new invoice(null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,
                    null,null,null,null,null));
            viewModel.countries = countries;

            ";
        // line 295
        if ((isset($context["clients"]) ? $context["clients"] : null)) {
            echo "var tclients=[];";
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["clients"]) ? $context["clients"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["client"]) {
                echo "tclients.push({id:\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["client"], "id", array()), "html", null, true);
                echo "\",name:\"";
                echo twig_escape_filter($this->env, $context["client"], "html", null, true);
                echo "\",bill_to:\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["client"], "billinfo", array()), "html", null, true);
                echo "\",ship_to:\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["client"], "shipinfo", array()), "html", null, true);
                echo "\"});";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['client'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            echo "viewModel.clients(tclients);";
        }
        // line 296
        echo "            ";
        if ((isset($context["terms"]) ? $context["terms"] : null)) {
            echo "var tterms=[];";
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["terms"]) ? $context["terms"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["term"]) {
                echo "tterms.push({id:\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["term"], "id", array()), "html", null, true);
                echo "\",name:\"";
                echo twig_escape_filter($this->env, $context["term"], "html", null, true);
                echo "\"});";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['term'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            echo "viewModel.terms(tterms);";
        }
        // line 297
        echo "            ";
        if ((isset($context["vias"]) ? $context["vias"] : null)) {
            echo "var tvias=[];";
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["vias"]) ? $context["vias"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["via"]) {
                echo "tvias.push({id:\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["via"], "id", array()), "html", null, true);
                echo "\",name:\"";
                echo twig_escape_filter($this->env, $context["via"], "html", null, true);
                echo "\",via_info:\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["via"], "description", array()), "html", null, true);
                echo "\"});";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['via'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            echo "viewModel.vias(tvias);";
        }
        // line 298
        echo "            ";
        if ((isset($context["item_templates"]) ? $context["item_templates"] : null)) {
            echo "var titem_templates=[];";
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["item_templates"]) ? $context["item_templates"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["item_template"]) {
                echo "titem_templates.push({id:\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["item_template"], "id", array()), "html", null, true);
                echo "\",code:\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["item_template"], "code", array()), "html", null, true);
                echo "\",rate:\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["item_template"], "rate", array()), "html", null, true);
                echo "\",description:\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["item_template"], "description", array()), "html", null, true);
                echo "\"});";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item_template'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            echo "viewModel.item_templates(titem_templates);";
        }
        // line 299
        echo "            ";
        if ((isset($context["accounts"]) ? $context["accounts"] : null)) {
            echo "var taccounts=[];";
            $context['_parent'] = (array) $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["accounts"]) ? $context["accounts"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["account"]) {
                echo "taccounts.push({id:\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["account"], "id", array()), "html", null, true);
                echo "\",name:\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["account"], "name", array()), "html", null, true);
                echo "\",code:\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["account"], "code", array()), "html", null, true);
                echo "\"});";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['account'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            echo "viewModel.accounts(taccounts);";
        }
        // line 300
        echo "            //alert(\"X\");
        }, viewModel);
        ko.applyBindings(viewModel, document.getElementById(\"content-body\"));
    </script>
";
    }

    public function getTemplateName()
    {
        return "VGMWOBundle:Invoicing:new.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  541 => 300,  521 => 299,  499 => 298,  479 => 297,  461 => 296,  440 => 295,  430 => 288,  426 => 287,  422 => 286,  418 => 285,  414 => 284,  410 => 283,  406 => 282,  402 => 281,  398 => 280,  394 => 279,  389 => 277,  385 => 276,  381 => 275,  377 => 274,  366 => 266,  362 => 265,  358 => 264,  354 => 263,  350 => 262,  346 => 261,  341 => 260,  338 => 259,  332 => 256,  326 => 255,  320 => 254,  314 => 253,  309 => 256,  306 => 255,  303 => 254,  301 => 253,  293 => 248,  252 => 209,  58 => 14,  51 => 9,  48 => 8,  34 => 2,  11 => 1,);
    }
}
