var/cache/dev/twig/01/01fd989f9c9e4d1c2c476692a8799695.php line 201

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* role/user/warehouse/sheet.html.twig */
  15. class __TwigTemplate_02b4364e834ca0e3b081089f332b5fa2 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'title' => [$this'block_title'],
  25.             'pageTitleH1' => [$this'block_pageTitleH1'],
  26.             'pageTitleBreadcrumb' => [$this'block_pageTitleBreadcrumb'],
  27.             'subMenuLeft' => [$this'block_subMenuLeft'],
  28.             'subMenuRight' => [$this'block_subMenuRight'],
  29.             'content' => [$this'block_content'],
  30.             'tableStocks' => [$this'block_tableStocks'],
  31.             'tableTransfers' => [$this'block_tableTransfers'],
  32.             'tableRequests' => [$this'block_tableRequests'],
  33.             'modals' => [$this'block_modals'],
  34.             'javascripts' => [$this'block_javascripts'],
  35.         ];
  36.     }
  37.     protected function doGetParent(array $context)
  38.     {
  39.         // line 1
  40.         return "role/user/index.html.twig";
  41.     }
  42.     protected function doDisplay(array $context, array $blocks = [])
  43.     {
  44.         $macros $this->macros;
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""role/user/warehouse/sheet.html.twig"));
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""role/user/warehouse/sheet.html.twig"));
  49.         $this->parent $this->loadTemplate("role/user/index.html.twig""role/user/warehouse/sheet.html.twig"1);
  50.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  51.         
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  53.         
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  55.     }
  56.     // line 3
  57.     public function block_title($context, array $blocks = [])
  58.     {
  59.         $macros $this->macros;
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  64.         yield "Magazzino - Scheda";
  65.         
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  67.         
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  69.         return; yield '';
  70.     }
  71.     // line 5
  72.     public function block_pageTitleH1($context, array $blocks = [])
  73.     {
  74.         $macros $this->macros;
  75.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageTitleH1"));
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageTitleH1"));
  79.         yield "Magazzino - Scheda";
  80.         
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  82.         
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  84.         return; yield '';
  85.     }
  86.     // line 7
  87.     public function block_pageTitleBreadcrumb($context, array $blocks = [])
  88.     {
  89.         $macros $this->macros;
  90.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageTitleBreadcrumb"));
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageTitleBreadcrumb"));
  94.         // line 8
  95.         yield "\t<li class=\"breadcrumb-item\"><a href=\"";
  96.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_list");
  97.         yield "\">Magazzini</a></li>
  98. \t<li class=\"breadcrumb-item\"><a href=\"javascript:void(0)\">Scheda</a></li>
  99. ";
  100.         
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  102.         
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  104.         return; yield '';
  105.     }
  106.     // line 12
  107.     public function block_subMenuLeft($context, array $blocks = [])
  108.     {
  109.         $macros $this->macros;
  110.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""subMenuLeft"));
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""subMenuLeft"));
  114.         // line 13
  115.         yield "\t";
  116.         if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'13$this->source); })()), "user", [], "any"falsefalsefalse13), "warehouses", [], "any"falsefalsefalse13)) == 1)) {
  117.             // line 14
  118.             yield "\t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"";
  119.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_index");
  120.             yield "\">Scrivania</a></li>
  121. \t";
  122.         } else {
  123.             // line 16
  124.             yield "\t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"";
  125.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_list");
  126.             yield "\">Magazzini</a></li>
  127. \t";
  128.         }
  129.         
  130.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  131.         
  132.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  133.         return; yield '';
  134.     }
  135.     // line 20
  136.     public function block_subMenuRight($context, array $blocks = [])
  137.     {
  138.         $macros $this->macros;
  139.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  140.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""subMenuRight"));
  141.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  142.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""subMenuRight"));
  143.         // line 21
  144.         yield "\t";
  145.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'21$this->source); })()), "user", [], "any"falsefalsefalse21), "canWrite", ["warehouse"], "method"falsefalsefalse21) || ( !(null === CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'21$this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'21$this->source); })()), "user", [], "any"falsefalsefalse21), "id", [], "any"falsefalsefalse21)], "method"falsefalsefalse21)) && (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'21$this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'21$this->source); })()), "user", [], "any"falsefalsefalse21), "id", [], "any"falsefalsefalse21)], "method"falsefalsefalse21), "permission", [], "any"falsefalsefalse21) == "RW")))) {
  146.             // line 22
  147.             yield "\t\t";
  148.             if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'22$this->source); })()), "headquarter", [], "any"falsefalsefalse22) && (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'22$this->source); })()), "user", [], "any"falsefalsefalse22), "canWrite", ["warehouse"], "method"falsefalsefalse22) || CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'22$this->source); })()), "user", [], "any"falsefalsefalse22), "canWrite", ["warehouse_receive_material"], "method"falsefalsefalse22)))) {
  149.                 // line 23
  150.                 yield "\t\t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"javascript: transferReceive()\">Ricevi materiale</a></li>
  151. \t\t";
  152.             }
  153.             // line 25
  154.             yield "\t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"javascript: transferSend()\">Invia materiale</a></li>
  155. \t";
  156.         }
  157.         
  158.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  159.         
  160.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  161.         return; yield '';
  162.     }
  163.     // line 29
  164.     public function block_content($context, array $blocks = [])
  165.     {
  166.         $macros $this->macros;
  167.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  168.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  169.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  170.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  171.         // line 30
  172.         yield "\t";
  173.         if (((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'30$this->source); })()), "user", [], "any"falsefalsefalse30), "getAccountTypology", [], "any"falsefalsefalse30) == "agency") || (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'30$this->source); })()), "user", [], "any"falsefalsefalse30), "getAccountTypology", [], "any"falsefalsefalse30) == "warehouse"))) {
  174.             // line 31
  175.             yield "\t\t";
  176.             $context["prReqTitle"] = "Richieste tecnici";
  177.             // line 32
  178.             yield "\t\t";
  179.             $context["prReqInserted"] = "Da gestire";
  180.             // line 33
  181.             yield "\t\t";
  182.             $context["prReqTakeCharge"] = "Prese in carico";
  183.             // line 34
  184.             yield "\t\t";
  185.             $context["prReqCompleted"] = "Gestite";
  186.             // line 35
  187.             yield "\t";
  188.         } elseif ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'35$this->source); })()), "user", [], "any"falsefalsefalse35), "getAccountTypology", [], "any"falsefalsefalse35) == "technician")) {
  189.             // line 36
  190.             yield "\t\t";
  191.             $context["prReqTitle"] = "Le tue richieste";
  192.             // line 37
  193.             yield "\t\t";
  194.             $context["prReqInserted"] = "Inviate";
  195.             // line 38
  196.             yield "\t\t";
  197.             $context["prReqTakeCharge"] = "Prese in carico";
  198.             // line 39
  199.             yield "\t\t";
  200.             $context["prReqCompleted"] = "Completate";
  201.             // line 40
  202.             yield "\t";
  203.         }
  204.         // line 41
  205.         yield "\t<section class=\"p_lr_30p m_tb_40p\">
  206. \t\t<div class=\"row\">
  207. \t\t\t<div class=\"col-12\">
  208. \t\t\t\t<h3 class=\"form_title\">Magazzino: ";
  209.         // line 44
  210.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'44$this->source); })()), "nickname", [], "any"falsefalsefalse44), "html"nulltrue);
  211.         yield "</h3>
  212. \t\t\t\t<hr class=\"m_t_none\">
  213. \t\t\t\t<div class=\"tabs clearfix\">
  214. \t\t\t\t\t<ul class=\"tab-nav clearfix\">
  215. \t\t\t\t\t\t<li><a id=\"btn_tab_stocks\" href=\"#stocks\" class=\"tab_session\" data-filterTab=\"stocks\"><i class=\"icon-warehouse d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"Scorte\"></i><span class=\"d-none d-md-block\">Scorte</span></a></li>
  216. \t\t\t\t\t\t<li><a id=\"btn_tab_transfers\" href=\"#transfers\" class=\"tab_session\" data-filterTab=\"transfers\"><i class=\"icon-exchange d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"Trasferimenti\"></i><span class=\"d-none d-md-block\">Trasferimenti</span></a></li>
  217. \t\t\t\t\t\t<li><a id=\"btn_tab_data\" href=\"#data\" class=\"tab_session\" data-filterTab=\"data\"><i class=\"icon-users d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"Dati e utenti\"></i><span class=\"d-none d-md-block\">Dati e utenti</span></a></li>
  218. \t\t\t\t\t\t";
  219.         // line 51
  220.         if (((CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'51$this->source); })()), "headquarter", [], "any"falsefalsefalse51) && ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'51$this->source); })()), "user", [], "any"falsefalsefalse51), "getAccountTypology", [], "any"falsefalsefalse51) == "agency") || (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'51$this->source); })()), "user", [], "any"falsefalsefalse51), "getAccountTypology", [], "any"falsefalsefalse51) == "warehouse"))) || (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'51$this->source); })()), "user", [], "any"falsefalsefalse51), "getAccountTypology", [], "any"falsefalsefalse51) == "technician"))) {
  221.             // line 52
  222.             yield "\t\t\t\t\t\t\t<li><a id=\"btn_tab_request\" href=\"#technicianRequests\" class=\"tab_session\" data-filterTab=\"request\"><i class=\"icon-question d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"";
  223.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prReqTitle"]) || array_key_exists("prReqTitle"$context) ? $context["prReqTitle"] : (function () { throw new RuntimeError('Variable "prReqTitle" does not exist.'52$this->source); })()), "html"nulltrue);
  224.             yield "\"></i><span class=\"d-none d-md-block\">";
  225.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prReqTitle"]) || array_key_exists("prReqTitle"$context) ? $context["prReqTitle"] : (function () { throw new RuntimeError('Variable "prReqTitle" does not exist.'52$this->source); })()), "html"nulltrue);
  226.             yield "</span></a></li>
  227. \t\t\t\t\t\t";
  228.         }
  229.         // line 54
  230.         yield "\t\t\t\t\t</ul>
  231. \t\t\t\t\t<div class=\"tab-container\">
  232. \t\t\t\t\t\t";
  233.         // line 57
  234.         yield "\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"stocks\">
  235. \t\t\t\t\t\t\t<div class=\"row\">
  236. \t\t\t\t\t\t\t\t<div class=\"col-12\">
  237. \t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Scorte in magazzino
  238. \t\t\t\t\t\t\t\t\t\t<a href=\"";
  239.         // line 61
  240.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_stocks_export_csv", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'61$this->source); })()), "id", [], "any"falsefalsefalse61)]), "html"nulltrue);
  241.         yield "\" class=\"button button-3d button-mini button-pr m_t_none m_b_none f_right\"><i class=\"icon-file-excel d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Esporta in csv\"></i><span class=\"d-none d-lg-block\">Esporta in csv</span></a>
  242. \t\t\t\t\t\t\t\t\t\t";
  243.         // line 62
  244.         if (((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'62$this->source); })()), "user", [], "any"falsefalsefalse62), "getAccountTypology", [], "any"falsefalsefalse62) == "agency") || (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'62$this->source); })()), "user", [], "any"falsefalsefalse62), "getAccountTypology", [], "any"falsefalsefalse62) == "warehouse"))) {
  245.             // line 63
  246.             yield "\t\t\t\t\t\t\t\t\t\t\t";
  247.             if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'63$this->source); })()), "headquarter", [], "any"falsefalsefalse63) && (CoreExtension::getAttribute($this->env$this->source, (isset($context["settingRecoverStock"]) || array_key_exists("settingRecoverStock"$context) ? $context["settingRecoverStock"] : (function () { throw new RuntimeError('Variable "settingRecoverStock" does not exist.'63$this->source); })()), "value", [], "any"falsefalsefalse63) == 1))) {
  248.                 // line 64
  249.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  250.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_stocks_recover", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'64$this->source); })()), "id", [], "any"falsefalsefalse64)]), "html"nulltrue);
  251.                 yield "\" class=\"button button-3d button-mini button-green m_t_none m_b_none f_right\"><i class=\"icon-barcode d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Rientra scorte\"></i><span class=\"d-none d-lg-block\">Rientra scorte</span></a>
  252. \t\t\t\t\t\t\t\t\t\t\t";
  253.             }
  254.             // line 66
  255.             yield "\t\t\t\t\t\t\t\t\t\t\t";
  256.             if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["settingRegisterStock"]) || array_key_exists("settingRegisterStock"$context) ? $context["settingRegisterStock"] : (function () { throw new RuntimeError('Variable "settingRegisterStock" does not exist.'66$this->source); })()), "value", [], "any"falsefalsefalse66) == 1)) {
  257.                 // line 67
  258.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  259.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_stocks_register", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'67$this->source); })()), "id", [], "any"falsefalsefalse67)]), "html"nulltrue);
  260.                 yield "\" class=\"button button-3d button-mini button-green m_t_none m_b_none f_right\"><i class=\"icon-barcode d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Registra scorte\"></i><span class=\"d-none d-lg-block\">Registra scorte</span></a>
  261. \t\t\t\t\t\t\t\t\t\t\t";
  262.             }
  263.             // line 69
  264.             yield "\t\t\t\t\t\t\t\t\t\t";
  265.         }
  266.         // line 70
  267.         yield "\t\t\t\t\t\t\t\t\t\t";
  268.         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'70$this->source); })()), "user", [], "any"falsefalsefalse70), "canWrite", ["warehouse_inventory"], "method"falsefalsefalse70)) {
  269.             // line 71
  270.             yield "\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript: stockInventory()\" class=\"button button-3d button-mini button-amber m_t_none m_b_none f_right\"><i class=\"icon-boxes d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Inventario\"></i><span class=\"d-none d-lg-block\">Inventario</span></a>
  271. \t\t\t\t\t\t\t\t\t\t";
  272.         }
  273.         // line 73
  274.         yield "\t\t\t\t\t\t\t\t\t</h4>
  275. \t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
  276. \t\t\t\t\t\t\t\t</div>
  277. \t\t\t\t\t\t\t\t<div class=\"col-12\">
  278. \t\t\t\t\t\t\t\t\t<div class=\"tabs clearfix\">
  279. \t\t\t\t\t\t\t\t\t\t<ul class=\"tab-nav clearfix\">
  280. \t\t\t\t\t\t\t\t\t\t\t";
  281.         // line 79
  282.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'79$this->source); })()), "headquarter", [], "any"falsefalsefalse79)) {
  283.             // line 80
  284.             yield "\t\t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_s_to_manage\" href=\"#to_manage\" class=\"tab_session2\" data-filterTab=\"s_to_manage\"><i class=\"icon-question d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"Da gestire (";
  285.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["toManageProducts"]) || array_key_exists("toManageProducts"$context) ? $context["toManageProducts"] : (function () { throw new RuntimeError('Variable "toManageProducts" does not exist.'80$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse80), "html"nulltrue);
  286.             yield ")\"></i><span class=\"d-none d-md-block\">Da gestire (";
  287.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["toManageProducts"]) || array_key_exists("toManageProducts"$context) ? $context["toManageProducts"] : (function () { throw new RuntimeError('Variable "toManageProducts" does not exist.'80$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse80), "html"nulltrue);
  288.             yield ")</span></a></li>
  289. \t\t\t\t\t\t\t\t\t\t\t";
  290.         }
  291.         // line 82
  292.         yield "\t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_s_available\" href=\"#available\" class=\"tab_session2\" data-filterTab=\"s_available\"><i class=\"icon-check d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"Disponibili (";
  293.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["availableProducts"]) || array_key_exists("availableProducts"$context) ? $context["availableProducts"] : (function () { throw new RuntimeError('Variable "availableProducts" does not exist.'82$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse82), "html"nulltrue);
  294.         yield ")\"></i><span class=\"d-none d-md-block\">Disponibili (";
  295.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["availableProducts"]) || array_key_exists("availableProducts"$context) ? $context["availableProducts"] : (function () { throw new RuntimeError('Variable "availableProducts" does not exist.'82$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse82), "html"nulltrue);
  296.         yield ")</span></a></li>
  297. \t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_s_not_available\" href=\"#not_available\" class=\"tab_session2\" data-filterTab=\"s_not_available\"><i class=\"icon-minus d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"Non disponibili (";
  298.         // line 83
  299.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["notAvailableProducts"]) || array_key_exists("notAvailableProducts"$context) ? $context["notAvailableProducts"] : (function () { throw new RuntimeError('Variable "notAvailableProducts" does not exist.'83$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse83), "html"nulltrue);
  300.         yield ")\"></i><span class=\"d-none d-md-block\">Non disponibili (";
  301.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["notAvailableProducts"]) || array_key_exists("notAvailableProducts"$context) ? $context["notAvailableProducts"] : (function () { throw new RuntimeError('Variable "notAvailableProducts" does not exist.'83$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse83), "html"nulltrue);
  302.         yield ")</span></a></li>
  303. \t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_s_transfer\" href=\"#transfer\" class=\"tab_session2\" data-filterTab=\"s_transfer\"><i class=\"icon-exchange d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"In trasferimento (";
  304.         // line 84
  305.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["transferProducts"]) || array_key_exists("transferProducts"$context) ? $context["transferProducts"] : (function () { throw new RuntimeError('Variable "transferProducts" does not exist.'84$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse84), "html"nulltrue);
  306.         yield ")\"></i><span class=\"d-none d-md-block\">In trasferimento (";
  307.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["transferProducts"]) || array_key_exists("transferProducts"$context) ? $context["transferProducts"] : (function () { throw new RuntimeError('Variable "transferProducts" does not exist.'84$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse84), "html"nulltrue);
  308.         yield ")</span></a></li>
  309. \t\t\t\t\t\t\t\t\t\t</ul>
  310. \t\t\t\t\t\t\t\t\t\t<div class=\"tab-container\">
  311. \t\t\t\t\t\t\t\t\t\t\t";
  312.         // line 87
  313.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'87$this->source); })()), "headquarter", [], "any"falsefalsefalse87)) {
  314.             // line 88
  315.             yield "\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"to_manage\">
  316. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
  317. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12\">
  318. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a id=\"button_0_condition\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-line-alert-circle d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Cambia condizione\"></i><span class=\"d-none d-lg-block\">Cambia condizione</span></a>
  319. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a id=\"button_0_supplier\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-hand-holding d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Aggiungi fornitori\"></i><span class=\"d-none d-lg-block\">Aggiungi fornitori</span></a>
  320. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a id=\"button_0_managed\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-wrench d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Gestito\"></i><span class=\"d-none d-lg-block\">Gestito</span></a>
  321. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  322. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
  323. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table class=\"table table-sm table-bordered responsive_font_size\">
  324. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
  325. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  326. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<form method=\"get\" action=\"";
  327.             // line 99
  328.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_sheet", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'99$this->source); })()), "id", [], "any"falsefalsefalse99)]), "html"nulltrue);
  329.             yield "\" id=\"formFilter_0\">
  330. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"3\"><a href=\"";
  331.             // line 100
  332.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("remove_filter", ["route" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'100$this->source); })()), "request", [], "any"falsefalsefalse100), "attributes", [], "any"falsefalsefalse100), "get", ["_route"], "method"falsefalsefalse100), "route_params" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'100$this->source); })()), "request", [], "any"falsefalsefalse100), "attributes", [], "any"falsefalsefalse100), "get", ["_route_params"], "method"falsefalsefalse100)]), "html"nulltrue);
  333.             yield "\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Escludi filtri\"><img class=\"icon_action icon_red\" src=\"";
  334.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_delete"]) || array_key_exists("icon_delete"$context) ? $context["icon_delete"] : (function () { throw new RuntimeError('Variable "icon_delete" does not exist.'100$this->source); })())), "html"nulltrue);
  335.             yield "\"></a></td>
  336. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_150p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"codeProducer_0\" value=\"";
  337.             // line 101
  338.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "codeProducer_0", [], "any"truetruefalse101)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "codeProducer_0", [], "any"falsefalsefalse101))) : ("")), "html"nulltrue);
  339.             yield "\"/></td>
  340. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_180p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"model_0\" value=\"";
  341.             // line 102
  342.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "model_0", [], "any"truetruefalse102)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "model_0", [], "any"falsefalsefalse102))) : ("")), "html"nulltrue);
  343.             yield "\"/></td>
  344. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" class=\"form-control\" id=\"filter_supplier_value_0\" readonly onClick=\"filterSuppliers0()\" data-bs-toggle=\"tooltip\"/><input type=\"hidden\" id=\"filter_supplier_id_0\" name=\"supplier_0\" value=\"";
  345.             // line 103
  346.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "supplier_0", [], "any"truetruefalse103)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "supplier_0", [], "any"falsefalsefalse103))) : ("")), "html"nulltrue);
  347.             yield "\"/></td>
  348. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"condition_0\" value=\"";
  349.             // line 104
  350.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "condition_0", [], "any"truetruefalse104)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "condition_0", [], "any"falsefalsefalse104))) : ("")), "html"nulltrue);
  351.             yield "\"/></td>
  352. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"producer_0\" value=\"";
  353.             // line 105
  354.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "producer_0", [], "any"truetruefalse105)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "producer_0", [], "any"falsefalsefalse105))) : ("")), "html"nulltrue);
  355.             yield "\"/></td>
  356. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_150p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"codeSupplier_0\" value=\"";
  357.             // line 106
  358.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "codeSupplier_0", [], "any"truetruefalse106)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "codeSupplier_0", [], "any"falsefalsefalse106))) : ("")), "html"nulltrue);
  359.             yield "\"/></td>
  360. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"sku_0\" value=\"";
  361.             // line 107
  362.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sku_0", [], "any"truetruefalse107)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sku_0", [], "any"falsefalsefalse107))) : ("")), "html"nulltrue);
  363.             yield "\"/></td>
  364. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"technician_0\" value=\"";
  365.             // line 108
  366.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "technician_0", [], "any"truetruefalse108)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "technician_0", [], "any"falsefalsefalse108))) : ("")), "html"nulltrue);
  367.             yield "\"/></td>
  368. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_60p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"ddt_0\" value=\"";
  369.             // line 109
  370.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "ddt_0", [], "any"truetruefalse109)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "ddt_0", [], "any"falsefalsefalse109))) : ("")), "html"nulltrue);
  371.             yield "\"/></td>
  372. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"lastUser_0\" value=\"";
  373.             // line 110
  374.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "lastUser_0", [], "any"truetruefalse110)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "lastUser_0", [], "any"falsefalsefalse110))) : ("")), "html"nulltrue);
  375.             yield "\"/></td>
  376. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_20p\"><button type=\"submit\" class=\"btn bg_w f_left p_0p\" data-bs-toggle=\"tooltip\" title=\"Filtra\"><img class=\"icon_green icon_action\" src=\"";
  377.             // line 111
  378.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_search"]) || array_key_exists("icon_search"$context) ? $context["icon_search"] : (function () { throw new RuntimeError('Variable "icon_search" does not exist.'111$this->source); })())), "html"nulltrue);
  379.             yield "\"></button></td>
  380. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"filter_tab\" value=\"s_to_manage\">
  381. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_field_0\" type=\"hidden\" name=\"sortField_0\" value=\"";
  382.             // line 113
  383.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortField_0", [], "any"truetruefalse113)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortField_0", [], "any"falsefalsefalse113))) : ("")), "html"nulltrue);
  384.             yield "\"/>
  385. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_order_0\" type=\"hidden\" name=\"sortOrder_0\" value=\"";
  386.             // line 114
  387.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortOrder_0", [], "any"truetruefalse114)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortOrder_0", [], "any"falsefalsefalse114))) : ("")), "html"nulltrue);
  388.             yield "\"/>
  389. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
  390. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  391. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
  392. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\"></th>
  393. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\">
  394. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"switch\" data-bs-toggle=\"tooltip\" title=\"Seleziona tutti\">
  395. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"stock_0_all_checkboxes\" class=\"switch-toggle switch-flat-mini switch-toggle-flat\" type=\"checkbox\" onChange=\"javascript: selectAll(0, 's_to_manage')\">
  396. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"stock_0_all_checkboxes\" class=\"m_b_none\"></label>
  397. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  398. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</th>
  399. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_40p txt_a_c\">Ptà<button type=\"button\" onClick=\"setOrderBy0('p.toManagePriority')\" data-orderField=\"p.toManagePriority\" class=\"f_right filter_arrow_0\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  400. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Matr. produttore<button type=\"button\" onClick=\"setOrderBy0('p.codeProducer')\" data-orderField=\"p.codeProducer\" class=\"f_right filter_arrow_0\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  401. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Modello<button type=\"button\" onClick=\"setOrderBy0('m.name')\" data-orderField=\"m.name\" class=\"f_right filter_arrow_0\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  402. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Fornitori</th>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
  403. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Condizione<button type=\"button\" onClick=\"setOrderBy0('c.value')\" data-orderField=\"c.value\" class=\"f_right filter_arrow_0\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  404. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Produttore<button type=\"button\" onClick=\"setOrderBy0('pr.name')\" data-orderField=\"pr.name\" class=\"f_right filter_arrow_0\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  405. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Matr. fornitore<button type=\"button\" onClick=\"setOrderBy0('p.codeSupplier')\" data-orderField=\"p.codeSupplier\" class=\"f_right filter_arrow_0\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  406. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>SKU<button type=\"button\" onClick=\"setOrderBy0('m.sku')\" data-orderField=\"m.sku\" class=\"f_right filter_arrow_0\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  407. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Tecnico</th>
  408. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>DDT</th>
  409. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th colspan=\"2\">Ultimo utente log</th>
  410. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  411. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
  412. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
  413. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  414.             // line 139
  415.             if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["toManageProducts"]) || array_key_exists("toManageProducts"$context) ? $context["toManageProducts"] : (function () { throw new RuntimeError('Variable "toManageProducts" does not exist.'139$this->source); })())) > 0)) {
  416.                 // line 140
  417.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  418.                 $context['_parent'] = $context;
  419.                 $context['_seq'] = CoreExtension::ensureTraversable((isset($context["toManageProducts"]) || array_key_exists("toManageProducts"$context) ? $context["toManageProducts"] : (function () { throw new RuntimeError('Variable "toManageProducts" does not exist.'140$this->source); })()));
  420.                 foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  421.                     // line 141
  422.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  423.                     $context["first"] = true;
  424.                     // line 142
  425.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  426.                     $context["suppliersString"] = "";
  427.                     // line 143
  428.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  429.                     $context['_parent'] = $context;
  430.                     $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source$context["product"], "suppliers", [], "any"falsefalsefalse143));
  431.                     foreach ($context['_seq'] as $context["_key"] => $context["supplier"]) {
  432.                         // line 144
  433.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  434.                         if ((isset($context["first"]) || array_key_exists("first"$context) ? $context["first"] : (function () { throw new RuntimeError('Variable "first" does not exist.'144$this->source); })())) {
  435.                             $context["first"] = false;
  436.                         } else {
  437.                             $context["suppliersString"] = ((isset($context["suppliersString"]) || array_key_exists("suppliersString"$context) ? $context["suppliersString"] : (function () { throw new RuntimeError('Variable "suppliersString" does not exist.'144$this->source); })()) . "-");
  438.                         }
  439.                         // line 145
  440.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  441.                         $context["suppliersString"] = ((isset($context["suppliersString"]) || array_key_exists("suppliersString"$context) ? $context["suppliersString"] : (function () { throw new RuntimeError('Variable "suppliersString" does not exist.'145$this->source); })()) . CoreExtension::getAttribute($this->env$this->source$context["supplier"], "id", [], "any"falsefalsefalse145));
  442.                         // line 146
  443.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  444.                     }
  445.                     $_parent $context['_parent'];
  446.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['supplier'], $context['_parent'], $context['loop']);
  447.                     $context array_intersect_key($context$_parent) + $_parent;
  448.                     // line 147
  449.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"suppliers_ids_string\" value=\"";
  450.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["suppliersString"]) || array_key_exists("suppliersString"$context) ? $context["suppliersString"] : (function () { throw new RuntimeError('Variable "suppliersString" does not exist.'147$this->source); })()), "html"nulltrue);
  451.                     yield "\">
  452. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr ";
  453.                     // line 148
  454.                     if (CoreExtension::getAttribute($this->env$this->source$context["product"], "toManage", [], "any"falsefalsefalse148)) {
  455.                         yield "class=\"bg_to_manage_";
  456.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "toManagePriority", [], "any"falsefalsefalse148), "html"nulltrue);
  457.                         yield "\"";
  458.                     }
  459.                     yield ">
  460. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\"><a href=\"";
  461.                     // line 149
  462.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_product_sheet", ["productId" => CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse149)]), "html"nulltrue);
  463.                     yield "\" data-bs-toggle=\"tooltip\" title=\"Scheda\"><img class=\"icon_action icon_pr\" src=\"";
  464.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_sheet"]) || array_key_exists("icon_sheet"$context) ? $context["icon_sheet"] : (function () { throw new RuntimeError('Variable "icon_sheet" does not exist.'149$this->source); })())), "html"nulltrue);
  465.                     yield "\"></a></td>
  466. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>
  467. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"switch\">
  468. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"stock_checkbox_";
  469.                     // line 152
  470.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse152), "html"nulltrue);
  471.                     yield "\" class=\"switch-toggle switch-flat-mini switch-toggle-flat stock_0_checkbox\" type=\"checkbox\" value=\"";
  472.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse152), "html"nulltrue);
  473.                     yield "\" onChange=\"javascript: updateButtons(0, 's_to_manage')\">
  474. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"stock_checkbox_";
  475.                     // line 153
  476.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse153), "html"nulltrue);
  477.                     yield "\" class=\"m_b_none\"></label>
  478. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  479. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
  480. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">";
  481.                     // line 156
  482.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "toManagePriority", [], "any"falsefalsefalse156), "html"nulltrue);
  483.                     yield "</td>
  484. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_codeProducer_";
  485.                     // line 157
  486.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse157), "html"nulltrue);
  487.                     yield "\"><a href=\"";
  488.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_product_sheet", ["productId" => CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse157)]), "html"nulltrue);
  489.                     yield "\" class=\"underline\" target=\"_blank\">";
  490.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source$context["product"], "codeProducer", [], "any"truetruefalse157)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source$context["product"], "codeProducer", [], "any"falsefalsefalse157), "---")) : ("---")), "html"nulltrue);
  491.                     yield "</a></td>
  492. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_model_";
  493.                     // line 158
  494.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse158), "html"nulltrue);
  495.                     yield "\">";
  496.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "model", [], "any"falsefalsefalse158), "name", [], "any"falsefalsefalse158), "html"nulltrue);
  497.                     yield "</td>
  498. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  499.                     // line 159
  500.                     yield CoreExtension::getAttribute($this->env$this->source$context["product"], "displaySuppliers", [], "method"falsefalsefalse159);
  501.                     yield "</td>
  502. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  503.                     // line 160
  504.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "displayCondition", ["string-short"], "method"falsefalsefalse160), "html"nulltrue);
  505.                     yield "</td>
  506. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  507.                     // line 161
  508.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "model", [], "any"falsefalsefalse161), "producer", [], "any"falsefalsefalse161), "html"nulltrue);
  509.                     yield "</td>
  510. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_codeSupplier_";
  511.                     // line 162
  512.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse162), "html"nulltrue);
  513.                     yield "\">";
  514.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source$context["product"], "codeSupplier", [], "any"truetruefalse162)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source$context["product"], "codeSupplier", [], "any"falsefalsefalse162), "---")) : ("---")), "html"nulltrue);
  515.                     yield "</td>
  516. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  517.                     // line 163
  518.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "model", [], "any"falsefalsefalse163), "sku", [], "any"falsefalsefalse163), "html"nulltrue);
  519.                     yield "</td>
  520. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  521.                     // line 164
  522.                     if ( !(null === CoreExtension::getAttribute($this->env$this->source$context["product"], "getLastTransfer", [], "any"falsefalsefalse164))) {
  523.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "getLastTransfer", [], "method"falsefalsefalse164), "userFrom", [], "any"falsefalsefalse164), "html"nulltrue);
  524.                     }
  525.                     yield "</td>
  526. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  527.                     // line 165
  528.                     yield CoreExtension::getAttribute($this->env$this->source$context["product"], "displayTransfersDdt", [], "method"falsefalsefalse165);
  529.                     yield "</td>
  530. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\">";
  531.                     // line 166
  532.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "lastUserLog", [], "any"falsefalsefalse166), "html"nulltrue);
  533.                     yield "</td>
  534. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  535. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  536.                 }
  537.                 $_parent $context['_parent'];
  538.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  539.                 $context array_intersect_key($context$_parent) + $_parent;
  540.                 // line 169
  541.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  542.             } else {
  543.                 // line 170
  544.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  545.                 yield from                 $this->loadTemplate("components/twig/notice_no_values.html.twig""role/user/warehouse/sheet.html.twig"170)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessun prodotto in questo stato"]));
  546.                 // line 171
  547.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  548.             }
  549.             // line 172
  550.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
  551. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
  552. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  553. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
  554. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  555.             // line 176
  556.             yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["toManageProducts"]) || array_key_exists("toManageProducts"$context) ? $context["toManageProducts"] : (function () { throw new RuntimeError('Variable "toManageProducts" does not exist.'176$this->source); })()));
  557.             yield "
  558. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  559. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  560. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  561. \t\t\t\t\t\t\t\t\t\t\t";
  562.         }
  563.         // line 181
  564.         yield "\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"available\">
  565. \t\t\t\t\t\t\t\t\t\t\t\t";
  566.         // line 182
  567.         $context["number"] = 1;
  568.         // line 183
  569.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  570.         $context["tab"] = "s_available";
  571.         // line 184
  572.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  573.         $context["status"] = "available";
  574.         // line 185
  575.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  576.         $context["products"] = (isset($context["availableProducts"]) || array_key_exists("availableProducts"$context) ? $context["availableProducts"] : (function () { throw new RuntimeError('Variable "availableProducts" does not exist.'185$this->source); })());
  577.         // line 186
  578.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  579.         $context["multipleSelection"] = [false1, []];
  580.         // line 187
  581.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  582.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'187$this->source); })()), "user", [], "any"falsefalsefalse187), "canWrite", ["warehouse"], "method"falsefalsefalse187) || ((CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'187$this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'187$this->source); })()), "user", [], "any"falsefalsefalse187), "id", [], "any"falsefalsefalse187)], "method"falsefalsefalse187) != null) && (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'187$this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'187$this->source); })()), "user", [], "any"falsefalsefalse187), "id", [], "any"falsefalsefalse187)], "method"falsefalsefalse187), "permission", [], "any"falsefalsefalse187) == "RW")))) {
  583.             // line 188
  584.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  585.             if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'188$this->source); })()), "user", [], "any"falsefalsefalse188), "getAccountTypology", [], "any"falsefalsefalse188) != "technician")) {
  586.                 // line 189
  587.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  588.                 $context["multipleSelection"] = [true1, ["supplier""condition""send""export"]];
  589.                 // line 190
  590.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  591.             } else {
  592.                 // line 191
  593.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  594.                 $context["multipleSelection"] = [true1, ["condition""send""export"]];
  595.                 // line 192
  596.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  597.             }
  598.             // line 193
  599.             yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  600.         }
  601.         // line 194
  602.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  603.         yield from $this->unwrap()->yieldBlock('tableStocks'$context$blocks);
  604.         // line 293
  605.         yield "\t\t\t\t\t\t\t\t\t\t\t</div>
  606. \t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"not_available\">
  607. \t\t\t\t\t\t\t\t\t\t\t\t";
  608.         // line 295
  609.         $context["number"] = 2;
  610.         // line 296
  611.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  612.         $context["tab"] = "s_not_available";
  613.         // line 297
  614.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  615.         $context["status"] = "not_available";
  616.         // line 298
  617.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  618.         $context["products"] = (isset($context["notAvailableProducts"]) || array_key_exists("notAvailableProducts"$context) ? $context["notAvailableProducts"] : (function () { throw new RuntimeError('Variable "notAvailableProducts" does not exist.'298$this->source); })());
  619.         // line 299
  620.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  621.         $context["index"] = 1;
  622.         // line 300
  623.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  624.         $context["multipleSelection"] = [false2, []];
  625.         // line 301
  626.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  627.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'301$this->source); })()), "user", [], "any"falsefalsefalse301), "canWrite", ["warehouse"], "method"falsefalsefalse301) || ((CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'301$this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'301$this->source); })()), "user", [], "any"falsefalsefalse301), "id", [], "any"falsefalsefalse301)], "method"falsefalsefalse301) != null) && (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'301$this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'301$this->source); })()), "user", [], "any"falsefalsefalse301), "id", [], "any"falsefalsefalse301)], "method"falsefalsefalse301), "permission", [], "any"falsefalsefalse301) == "RW")))) {
  628.             // line 302
  629.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  630.             if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'302$this->source); })()), "user", [], "any"falsefalsefalse302), "getAccountTypology", [], "any"falsefalsefalse302) != "technician")) {
  631.                 // line 303
  632.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  633.                 $context["multipleSelection"] = [true2, ["supplier""condition""send""export"]];
  634.                 // line 304
  635.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  636.             } else {
  637.                 // line 305
  638.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  639.                 $context["multipleSelection"] = [true2, ["condition""send""export"]];
  640.                 // line 306
  641.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  642.             }
  643.             // line 307
  644.             yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  645.         }
  646.         // line 308
  647.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  648.         yield from         $this->unwrap()->yieldBlock("tableStocks"$context$blocks);
  649.         yield "
  650. \t\t\t\t\t\t\t\t\t\t\t</div>
  651. \t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"transfer\">
  652. \t\t\t\t\t\t\t\t\t\t\t\t";
  653.         // line 311
  654.         $context["number"] = 3;
  655.         // line 312
  656.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  657.         $context["tab"] = "s_transfer";
  658.         // line 313
  659.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  660.         $context["status"] = "transfer";
  661.         // line 314
  662.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  663.         $context["products"] = (isset($context["transferProducts"]) || array_key_exists("transferProducts"$context) ? $context["transferProducts"] : (function () { throw new RuntimeError('Variable "transferProducts" does not exist.'314$this->source); })());
  664.         // line 315
  665.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  666.         $context["index"] = 1;
  667.         // line 316
  668.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  669.         $context["multipleSelection"] = [falsenull, []];
  670.         // line 317
  671.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  672.         yield from         $this->unwrap()->yieldBlock("tableStocks"$context$blocks);
  673.         yield "
  674. \t\t\t\t\t\t\t\t\t\t\t</div>
  675. \t\t\t\t\t\t\t\t\t\t</div>
  676. \t\t\t\t\t\t\t\t\t</div>
  677. \t\t\t\t\t\t\t\t</div>
  678. \t\t\t\t\t\t\t</div>
  679. \t\t\t\t\t\t</div>
  680. \t\t\t\t\t\t";
  681.         // line 325
  682.         yield "\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"transfers\">
  683. \t\t\t\t\t\t\t<div class=\"row\">
  684. \t\t\t\t\t\t\t\t<div class=\"col-12\">
  685. \t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Trasferimenti</h4>
  686. \t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
  687. \t\t\t\t\t\t\t\t\t<div class=\"tabs clearfix\">
  688. \t\t\t\t\t\t\t\t\t\t<ul class=\"tab-nav clearfix\">
  689. \t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_pt_incoming\" href=\"#incoming\" class=\"tab_session2\" data-filterTab=\"pt_incoming\"><i class=\"icon-download d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"In entrata (";
  690.         // line 332
  691.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["incomingTransfers"]) || array_key_exists("incomingTransfers"$context) ? $context["incomingTransfers"] : (function () { throw new RuntimeError('Variable "incomingTransfers" does not exist.'332$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse332), "html"nulltrue);
  692.         yield ")\"></i><span class=\"d-none d-md-block\">In entrata (";
  693.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["incomingTransfers"]) || array_key_exists("incomingTransfers"$context) ? $context["incomingTransfers"] : (function () { throw new RuntimeError('Variable "incomingTransfers" does not exist.'332$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse332), "html"nulltrue);
  694.         yield ")</span></a></li>
  695. \t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_pt_output\" href=\"#output\" class=\"tab_session2\" data-filterTab=\"pt_output\"><i class=\"icon-upload d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"In uscita (";
  696.         // line 333
  697.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["outputTransfers"]) || array_key_exists("outputTransfers"$context) ? $context["outputTransfers"] : (function () { throw new RuntimeError('Variable "outputTransfers" does not exist.'333$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse333), "html"nulltrue);
  698.         yield ")\"></i><span class=\"d-none d-md-block\">In uscita (";
  699.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["outputTransfers"]) || array_key_exists("outputTransfers"$context) ? $context["outputTransfers"] : (function () { throw new RuntimeError('Variable "outputTransfers" does not exist.'333$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse333), "html"nulltrue);
  700.         yield ")</span></a></li>
  701. \t\t\t\t\t\t\t\t\t\t</ul>
  702. \t\t\t\t\t\t\t\t\t\t<div class=\"tab-container\">
  703. \t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"incoming\">
  704. \t\t\t\t\t\t\t\t\t\t\t\t";
  705.         // line 337
  706.         $context["transfers"] = (isset($context["incomingTransfers"]) || array_key_exists("incomingTransfers"$context) ? $context["incomingTransfers"] : (function () { throw new RuntimeError('Variable "incomingTransfers" does not exist.'337$this->source); })());
  707.         // line 338
  708.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  709.         $context["number"] = 1;
  710.         // line 339
  711.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  712.         $context["tabType"] = "pt_incoming";
  713.         // line 340
  714.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  715.         yield from $this->unwrap()->yieldBlock('tableTransfers'$context$blocks);
  716.         // line 418
  717.         yield "\t\t\t\t\t\t\t\t\t\t\t</div>
  718. \t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"output\">
  719. \t\t\t\t\t\t\t\t\t\t\t\t";
  720.         // line 420
  721.         $context["transfers"] = (isset($context["outputTransfers"]) || array_key_exists("outputTransfers"$context) ? $context["outputTransfers"] : (function () { throw new RuntimeError('Variable "outputTransfers" does not exist.'420$this->source); })());
  722.         // line 421
  723.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  724.         $context["number"] = 2;
  725.         // line 422
  726.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  727.         $context["tabType"] = "pt_output";
  728.         // line 423
  729.         yield "\t\t\t\t\t\t\t\t\t\t\t\t";
  730.         yield from         $this->unwrap()->yieldBlock("tableTransfers"$context$blocks);
  731.         yield "
  732. \t\t\t\t\t\t\t\t\t\t\t</div>
  733. \t\t\t\t\t\t\t\t\t\t</div>
  734. \t\t\t\t\t\t\t\t\t</div>
  735. \t\t\t\t\t\t\t\t</div>
  736. \t\t\t\t\t\t\t</div>
  737. \t\t\t\t\t\t</div>
  738. \t\t\t\t\t\t";
  739.         // line 431
  740.         yield "\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"data\">
  741. \t\t\t\t\t\t\t<div class=\"row\">
  742. \t\t\t\t\t\t\t\t<div class=\"col-12 col-lg-6\">
  743. \t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Dati generici
  744. \t\t\t\t\t\t\t\t\t\t";
  745.         // line 435
  746.         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'435$this->source); })()), "user", [], "any"falsefalsefalse435), "canWrite", ["warehouse"], "method"falsefalsefalse435)) {
  747.             // line 436
  748.             yield "\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript: warehouseEdit()\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Modifica\"><img class=\"icon_action icon_amber\" src=\"";
  749.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_edit"]) || array_key_exists("icon_edit"$context) ? $context["icon_edit"] : (function () { throw new RuntimeError('Variable "icon_edit" does not exist.'436$this->source); })())), "html"nulltrue);
  750.             yield "\"></a>
  751. \t\t\t\t\t\t\t\t\t\t";
  752.         }
  753.         // line 438
  754.         yield "\t\t\t\t\t\t\t\t\t</h4>
  755. \t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
  756. \t\t\t\t\t\t\t\t\t<table class=\"table table-hover responsive_font_size\">
  757. \t\t\t\t\t\t\t\t\t\t<tr>
  758. \t\t\t\t\t\t\t\t\t\t\t<th>Nickname</th>
  759. \t\t\t\t\t\t\t\t\t\t\t<td>";
  760.         // line 443
  761.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'443$this->source); })()), "nickname", [], "any"falsefalsefalse443), "html"nulltrue);
  762.         yield "</td>
  763. \t\t\t\t\t\t\t\t\t\t</tr>
  764. \t\t\t\t\t\t\t\t\t\t<tr>
  765. \t\t\t\t\t\t\t\t\t\t\t<th>Attivo</th>
  766. \t\t\t\t\t\t\t\t\t\t\t<td>";
  767.         // line 447
  768.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'447$this->source); })()), "active", [], "any"falsefalsefalse447)) {
  769.             yield "Sì";
  770.         } else {
  771.             yield "No";
  772.         }
  773.         yield "</td>
  774. \t\t\t\t\t\t\t\t\t\t</tr>
  775. \t\t\t\t\t\t\t\t\t\t<tr>
  776. \t\t\t\t\t\t\t\t\t\t\t<th>Sede</th>
  777. \t\t\t\t\t\t\t\t\t\t\t<td>";
  778.         // line 451
  779.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'451$this->source); })()), "headquarter", [], "any"falsefalsefalse451)) {
  780.             yield "Sì";
  781.         } else {
  782.             yield "No";
  783.         }
  784.         yield "</td>
  785. \t\t\t\t\t\t\t\t\t\t</tr>
  786. \t\t\t\t\t\t\t\t\t\t<tr>
  787. \t\t\t\t\t\t\t\t\t\t\t<th>Indirizzo DDT</th>
  788. \t\t\t\t\t\t\t\t\t\t\t<td>";
  789.         // line 455
  790.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'455$this->source); })()), "address", [], "any"falsefalsefalse455), "html"nulltrue);
  791.         yield "</td>
  792. \t\t\t\t\t\t\t\t\t\t</tr>
  793. \t\t\t\t\t\t\t\t\t\t<tr>
  794. \t\t\t\t\t\t\t\t\t\t\t<th>Fisso/Mobile</th>
  795. \t\t\t\t\t\t\t\t\t\t\t<td>";
  796.         // line 459
  797.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'459$this->source); })()), "movable", [], "any"falsefalsefalse459)) {
  798.             yield "Mobile";
  799.         } else {
  800.             yield "Fisso";
  801.         }
  802.         yield "</td>
  803. \t\t\t\t\t\t\t\t\t\t</tr>
  804. \t\t\t\t\t\t\t\t\t</table>
  805. \t\t\t\t\t\t\t\t</div>
  806. \t\t\t\t\t\t\t\t<div class=\"col-12 col-lg-6\">
  807. \t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Utenti</h4>
  808. \t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
  809. \t\t\t\t\t\t\t\t\t<table class=\"table table-hover responsive_font_size\">
  810. \t\t\t\t\t\t\t\t\t\t<thead>
  811. \t\t\t\t\t\t\t\t\t\t\t<tr>
  812. \t\t\t\t\t\t\t\t\t\t\t\t<th>Utente</th>
  813. \t\t\t\t\t\t\t\t\t\t\t\t<th>Permessi</th>
  814. \t\t\t\t\t\t\t\t\t\t\t\t<th class=\"txt_a_c\">Principale</th>
  815. \t\t\t\t\t\t\t\t\t\t\t</tr>
  816. \t\t\t\t\t\t\t\t\t\t</thead>
  817. \t\t\t\t\t\t\t\t\t\t<tbody>
  818. \t\t\t\t\t\t\t\t\t\t\t";
  819.         // line 475
  820.         $context['_parent'] = $context;
  821.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'475$this->source); })()), "users", [], "any"falsefalsefalse475));
  822.         foreach ($context['_seq'] as $context["_key"] => $context["jtuw"]) {
  823.             // line 476
  824.             yield "\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  825. \t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  826.             // line 477
  827.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["jtuw"], "user", [], "any"falsefalsefalse477), "html"nulltrue);
  828.             yield "</td>
  829. \t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  830.             // line 478
  831.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["jtuw"], "displayPermission", [], "any"falsefalsefalse478), "html"nulltrue);
  832.             yield "</td>
  833. \t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">";
  834.             // line 479
  835.             if (CoreExtension::getAttribute($this->env$this->source$context["jtuw"], "main", [], "any"falsefalsefalse479)) {
  836.                 yield "Sì";
  837.             } else {
  838.                 yield "No";
  839.             }
  840.             yield "</td>
  841. \t\t\t\t\t\t\t\t\t\t\t\t</tr>
  842. \t\t\t\t\t\t\t\t\t\t\t";
  843.         }
  844.         $_parent $context['_parent'];
  845.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['jtuw'], $context['_parent'], $context['loop']);
  846.         $context array_intersect_key($context$_parent) + $_parent;
  847.         // line 482
  848.         yield "\t\t\t\t\t\t\t\t\t\t</tbody>
  849. \t\t\t\t\t\t\t\t\t</table>
  850. \t\t\t\t\t\t\t\t</div>
  851. \t\t\t\t\t\t\t</div>
  852. \t\t\t\t\t\t</div>
  853. \t\t\t\t\t\t";
  854.         // line 488
  855.         yield "\t\t\t\t\t\t";
  856.         if (((CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'488$this->source); })()), "headquarter", [], "any"falsefalsefalse488) && ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'488$this->source); })()), "user", [], "any"falsefalsefalse488), "getAccountTypology", [], "any"falsefalsefalse488) == "agency") || (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'488$this->source); })()), "user", [], "any"falsefalsefalse488), "getAccountTypology", [], "any"falsefalsefalse488) == "warehouse"))) || (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'488$this->source); })()), "user", [], "any"falsefalsefalse488), "getAccountTypology", [], "any"falsefalsefalse488) == "technician"))) {
  857.             // line 489
  858.             yield "\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"technicianRequests\">
  859. \t\t\t\t\t\t\t\t<div class=\"row\">
  860. \t\t\t\t\t\t\t\t\t<div class=\"col-12\">
  861. \t\t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">";
  862.             // line 492
  863.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prReqTitle"]) || array_key_exists("prReqTitle"$context) ? $context["prReqTitle"] : (function () { throw new RuntimeError('Variable "prReqTitle" does not exist.'492$this->source); })()), "html"nulltrue);
  864.             yield "
  865. \t\t\t\t\t\t\t\t\t\t\t";
  866.             // line 493
  867.             if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'493$this->source); })()), "user", [], "any"falsefalsefalse493), "getAccountTypology", [], "any"falsefalsefalse493) == "technician")) {
  868.                 // line 494
  869.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  870.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_product_request_new", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'494$this->source); })()), "id", [], "any"falsefalsefalse494)]), "html"nulltrue);
  871.                 yield "\" class=\"button button-3d button-mini button-green m_t_none m_b_none f_right\"><i class=\"icon-plus d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Richiedi materiale\"></i><span class=\"d-none d-lg-block\">Richiedi materiale</span></a></li>
  872. \t\t\t\t\t\t\t\t\t\t\t";
  873.             }
  874.             // line 496
  875.             yield "\t\t\t\t\t\t\t\t\t\t</h4>
  876. \t\t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
  877. \t\t\t\t\t\t\t\t\t\t<div class=\"tabs clearfix\">
  878. \t\t\t\t\t\t\t\t\t\t\t<ul class=\"tab-nav clearfix\">
  879. \t\t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_pr_inserted\" href=\"#inserted\" class=\"tab_session2\" data-filterTab=\"pr_inserted\"><i class=\"icon-line-send d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"";
  880.             // line 500
  881.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prReqInserted"]) || array_key_exists("prReqInserted"$context) ? $context["prReqInserted"] : (function () { throw new RuntimeError('Variable "prReqInserted" does not exist.'500$this->source); })()), "html"nulltrue);
  882.             yield " (";
  883.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["insertedProductRequests"]) || array_key_exists("insertedProductRequests"$context) ? $context["insertedProductRequests"] : (function () { throw new RuntimeError('Variable "insertedProductRequests" does not exist.'500$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse500), "html"nulltrue);
  884.             yield ")\"></i><span class=\"d-none d-md-block\">";
  885.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prReqInserted"]) || array_key_exists("prReqInserted"$context) ? $context["prReqInserted"] : (function () { throw new RuntimeError('Variable "prReqInserted" does not exist.'500$this->source); })()), "html"nulltrue);
  886.             yield " (";
  887.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["insertedProductRequests"]) || array_key_exists("insertedProductRequests"$context) ? $context["insertedProductRequests"] : (function () { throw new RuntimeError('Variable "insertedProductRequests" does not exist.'500$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse500), "html"nulltrue);
  888.             yield ")</span></a></li>
  889. \t\t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_pr_take_charge\" href=\"#take_charge\" class=\"tab_session2\" data-filterTab=\"pr_take_charge\"><i class=\"icon-cog d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"";
  890.             // line 501
  891.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prReqTakeCharge"]) || array_key_exists("prReqTakeCharge"$context) ? $context["prReqTakeCharge"] : (function () { throw new RuntimeError('Variable "prReqTakeCharge" does not exist.'501$this->source); })()), "html"nulltrue);
  892.             yield " (";
  893.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["takeChargeProductRequests"]) || array_key_exists("takeChargeProductRequests"$context) ? $context["takeChargeProductRequests"] : (function () { throw new RuntimeError('Variable "takeChargeProductRequests" does not exist.'501$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse501), "html"nulltrue);
  894.             yield ")\"></i><span class=\"d-none d-md-block\">";
  895.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prReqTakeCharge"]) || array_key_exists("prReqTakeCharge"$context) ? $context["prReqTakeCharge"] : (function () { throw new RuntimeError('Variable "prReqTakeCharge" does not exist.'501$this->source); })()), "html"nulltrue);
  896.             yield " (";
  897.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["takeChargeProductRequests"]) || array_key_exists("takeChargeProductRequests"$context) ? $context["takeChargeProductRequests"] : (function () { throw new RuntimeError('Variable "takeChargeProductRequests" does not exist.'501$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse501), "html"nulltrue);
  898.             yield ")</span></a></li>
  899. \t\t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_pr_completed\" href=\"#completed\" class=\"tab_session2\" data-filterTab=\"pr_completed\"><i class=\"icon-checkmark d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"";
  900.             // line 502
  901.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prReqCompleted"]) || array_key_exists("prReqCompleted"$context) ? $context["prReqCompleted"] : (function () { throw new RuntimeError('Variable "prReqCompleted" does not exist.'502$this->source); })()), "html"nulltrue);
  902.             yield " (";
  903.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["completedProductRequests"]) || array_key_exists("completedProductRequests"$context) ? $context["completedProductRequests"] : (function () { throw new RuntimeError('Variable "completedProductRequests" does not exist.'502$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse502), "html"nulltrue);
  904.             yield ")\"></i><span class=\"d-none d-md-block\">";
  905.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prReqCompleted"]) || array_key_exists("prReqCompleted"$context) ? $context["prReqCompleted"] : (function () { throw new RuntimeError('Variable "prReqCompleted" does not exist.'502$this->source); })()), "html"nulltrue);
  906.             yield " (";
  907.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["completedProductRequests"]) || array_key_exists("completedProductRequests"$context) ? $context["completedProductRequests"] : (function () { throw new RuntimeError('Variable "completedProductRequests" does not exist.'502$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse502), "html"nulltrue);
  908.             yield ")</span></a></li>
  909. \t\t\t\t\t\t\t\t\t\t\t</ul>
  910. \t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-container\">
  911. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"inserted\">
  912. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  913.             // line 506
  914.             $context["requests"] = (isset($context["insertedProductRequests"]) || array_key_exists("insertedProductRequests"$context) ? $context["insertedProductRequests"] : (function () { throw new RuntimeError('Variable "insertedProductRequests" does not exist.'506$this->source); })());
  915.             // line 507
  916.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  917.             $context["tabType"] = "pr_inserted";
  918.             // line 508
  919.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  920.             $context["number"] = 1;
  921.             // line 509
  922.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  923.             $context["tabAction"] = "";
  924.             // line 510
  925.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  926.             if (((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'510$this->source); })()), "user", [], "any"falsefalsefalse510), "getAccountTypology", [], "any"falsefalsefalse510) == "agency") || ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'510$this->source); })()), "user", [], "any"falsefalsefalse510), "getAccountTypology", [], "any"falsefalsefalse510) == "warehouse") && CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'510$this->source); })()), "headquarter", [], "any"falsefalsefalse510)))) {
  927.                 // line 511
  928.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  929.                 $context["tabAction"] = "take_charge";
  930.                 // line 512
  931.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  932.             } elseif ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'512$this->source); })()), "user", [], "any"falsefalsefalse512), "getAccountTypology", [], "any"falsefalsefalse512) == "technician")) {
  933.                 // line 513
  934.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  935.                 $context["tabAction"] = "delete";
  936.                 // line 514
  937.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  938.             }
  939.             // line 515
  940.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  941.             yield from $this->unwrap()->yieldBlock('tableRequests'$context$blocks);
  942.             // line 587
  943.             yield "\t\t\t\t\t\t\t\t\t\t\t\t</div>
  944. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"take_charge\">
  945. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  946.             // line 589
  947.             $context["requests"] = (isset($context["takeChargeProductRequests"]) || array_key_exists("takeChargeProductRequests"$context) ? $context["takeChargeProductRequests"] : (function () { throw new RuntimeError('Variable "takeChargeProductRequests" does not exist.'589$this->source); })());
  948.             // line 590
  949.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  950.             $context["tabType"] = "pr_take_charge";
  951.             // line 591
  952.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  953.             $context["number"] = 2;
  954.             // line 592
  955.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  956.             $context["tabAction"] = "";
  957.             // line 593
  958.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  959.             if (((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'593$this->source); })()), "user", [], "any"falsefalsefalse593), "getAccountTypology", [], "any"falsefalsefalse593) == "agency") || ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'593$this->source); })()), "user", [], "any"falsefalsefalse593), "getAccountTypology", [], "any"falsefalsefalse593) == "warehouse") && CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'593$this->source); })()), "headquarter", [], "any"falsefalsefalse593)))) {
  960.                 // line 594
  961.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  962.                 $context["tabAction"] = "complete";
  963.                 // line 595
  964.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  965.             }
  966.             // line 596
  967.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  968.             yield from             $this->unwrap()->yieldBlock("tableRequests"$context$blocks);
  969.             yield "
  970. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  971. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"completed\">
  972. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  973.             // line 599
  974.             $context["requests"] = (isset($context["completedProductRequests"]) || array_key_exists("completedProductRequests"$context) ? $context["completedProductRequests"] : (function () { throw new RuntimeError('Variable "completedProductRequests" does not exist.'599$this->source); })());
  975.             // line 600
  976.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  977.             $context["tabType"] = "pr_completed";
  978.             // line 601
  979.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  980.             $context["number"] = 3;
  981.             // line 602
  982.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  983.             $context["tabAction"] = "";
  984.             // line 603
  985.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  986.             yield from             $this->unwrap()->yieldBlock("tableRequests"$context$blocks);
  987.             yield "
  988. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  989. \t\t\t\t\t\t\t\t\t\t\t</div>
  990. \t\t\t\t\t\t\t\t\t\t</div>
  991. \t\t\t\t\t\t\t\t\t</div>
  992. \t\t\t\t\t\t\t\t</div>
  993. \t\t\t\t\t\t\t</div>
  994. \t\t\t\t\t\t";
  995.         }
  996.         // line 611
  997.         yield "\t\t\t\t\t</div>
  998. \t\t\t\t</div>
  999. \t\t\t</div>
  1000. \t\t</div>
  1001. \t</section>
  1002. \t";
  1003.         // line 618
  1004.         yield "\t<div id=\"stockInventoryModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  1005. \t\t<div class=\"modal-dialog\" role=\"document\">
  1006. \t\t\t<div class=\"modal-content\">
  1007. \t\t\t\t";
  1008.         // line 621
  1009.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formInventory"]) || array_key_exists("formInventory"$context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.'621$this->source); })()), 'form_start', ["attr" => ["novalidate" => "novalidate"]]);
  1010.         yield "
  1011. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Verifica inventario</h3></div>
  1012. \t\t\t\t\t<div class=\"modal-body\">
  1013. \t\t\t\t\t\t<div class=\"row\">
  1014. \t\t\t\t\t\t\t<div class=\"col-12 form-group\">
  1015. \t\t\t\t\t\t\t\t<label class=\"form_label\">Fornitore*</label>
  1016. \t\t\t\t\t\t\t\t<div ";
  1017.         // line 627
  1018.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formInventory"]) || array_key_exists("formInventory"$context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.'627$this->source); })()), "supplier", [], "any"falsefalsefalse627), 'errors');
  1019.         yield ">
  1020. \t\t\t\t\t\t\t\t\t";
  1021.         // line 628
  1022.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formInventory"]) || array_key_exists("formInventory"$context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.'628$this->source); })()), "supplier", [], "any"falsefalsefalse628), 'widget', ["attr" => ["class" => "form-control form-select"]]);
  1023.         yield "
  1024. \t\t\t\t\t\t\t\t</div>
  1025. \t\t\t\t\t\t\t</div>
  1026. \t\t\t\t\t\t\t<div class=\"col-12 form-group\">
  1027. \t\t\t\t\t\t\t\t<label class=\"form_label\">Stato*</label>
  1028. \t\t\t\t\t\t\t\t<div ";
  1029.         // line 633
  1030.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formInventory"]) || array_key_exists("formInventory"$context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.'633$this->source); })()), "status", [], "any"falsefalsefalse633), 'errors');
  1031.         yield ">
  1032. \t\t\t\t\t\t\t\t\t";
  1033.         // line 634
  1034.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formInventory"]) || array_key_exists("formInventory"$context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.'634$this->source); })()), "status", [], "any"falsefalsefalse634), 'widget', ["attr" => ["class" => "form-control form-select"]]);
  1035.         yield "
  1036. \t\t\t\t\t\t\t\t</div>
  1037. \t\t\t\t\t\t\t</div>
  1038. \t\t\t\t\t\t\t<div class=\"col-12\">
  1039. \t\t\t\t\t\t\t\t<label class=\"form_label\">File*</label>
  1040. \t\t\t\t\t\t\t\t<div ";
  1041.         // line 639
  1042.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formInventory"]) || array_key_exists("formInventory"$context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.'639$this->source); })()), "path", [], "any"falsefalsefalse639), 'errors');
  1043.         yield ">
  1044. \t\t\t\t\t\t\t\t\t";
  1045.         // line 640
  1046.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formInventory"]) || array_key_exists("formInventory"$context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.'640$this->source); })()), "path", [], "any"falsefalsefalse640), 'widget', ["attr" => ["class" => "display_n"]]);
  1047.         yield "
  1048. \t\t\t\t\t\t\t\t\t";
  1049.         // line 641
  1050.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formInventory"]) || array_key_exists("formInventory"$context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.'641$this->source); })()), "file", [], "any"falsefalsefalse641), 'widget', ["attr" => ["class" => "display_n"]]);
  1051.         yield "
  1052. \t\t\t\t\t\t\t\t\t<div class=\"input-group\">
  1053. \t\t\t\t\t\t\t\t\t\t<span class=\"input-group-btn\"><button id=\"selectFile2\" class=\"button button-3d button-small button-rounded button-pr button_input_group\" type=\"button\">Seleziona</button></span>
  1054. \t\t\t\t\t\t\t\t\t\t<input id=\"filename2\" type=\"text\" class=\"form-control\" readonly>
  1055. \t\t\t\t\t\t\t\t\t</div>
  1056. \t\t\t\t\t\t\t\t</div>
  1057. \t\t\t\t\t\t\t</div>
  1058. \t\t\t\t\t\t</div>
  1059. \t\t\t\t\t</div>
  1060. \t\t\t\t\t<div class=\"modal-footer\">
  1061. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  1062. \t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Prosegui</button>
  1063. \t\t\t\t\t</div>
  1064. \t\t\t\t";
  1065.         // line 654
  1066.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formInventory"]) || array_key_exists("formInventory"$context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.'654$this->source); })()), 'form_end');
  1067.         yield "
  1068. \t\t\t</div>
  1069. \t\t</div>
  1070. \t</div>
  1071. \t
  1072. \t";
  1073.         // line 660
  1074.         yield "\t<div id=\"transferReceiveModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  1075. \t\t<div class=\"modal-dialog\" role=\"document\">
  1076. \t\t\t<div class=\"modal-content\">
  1077. \t\t\t\t";
  1078.         // line 663
  1079.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formReceive"]) || array_key_exists("formReceive"$context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.'663$this->source); })()), 'form_start', ["attr" => ["novalidate" => "novalidate"]]);
  1080.         yield 
  1081. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Ricevi materiale</h3></div>
  1082. \t\t\t\t\t<div class=\"modal-body\">
  1083. \t\t\t\t\t\t<div class=\"row\">
  1084. \t\t\t\t\t\t\t<div class=\"col-12 form-group\">
  1085. \t\t\t\t\t\t\t\t<label class=\"form_label\">Magazzino di provenienza*</label>
  1086. \t\t\t\t\t\t\t\t<div ";
  1087.         // line 669
  1088.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formReceive"]) || array_key_exists("formReceive"$context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.'669$this->source); })()), "warehouse", [], "any"falsefalsefalse669), 'errors');
  1089.         yield ">
  1090. \t\t\t\t\t\t\t\t\t";
  1091.         // line 670
  1092.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formReceive"]) || array_key_exists("formReceive"$context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.'670$this->source); })()), "warehouse", [], "any"falsefalsefalse670), 'widget', ["attr" => ["class" => "form-control form-select"]]);
  1093.         yield "
  1094. \t\t\t\t\t\t\t\t</div>
  1095. \t\t\t\t\t\t\t</div>
  1096. \t\t\t\t\t\t\t<div class=\"col-6 form-group\">
  1097. \t\t\t\t\t\t\t\t<label class=\"form_label\">Stock order</label>
  1098. \t\t\t\t\t\t\t\t<div ";
  1099.         // line 675
  1100.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formReceive"]) || array_key_exists("formReceive"$context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.'675$this->source); })()), "stockOrder", [], "any"falsefalsefalse675), 'errors');
  1101.         yield ">
  1102. \t\t\t\t\t\t\t\t\t";
  1103.         // line 676
  1104.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formReceive"]) || array_key_exists("formReceive"$context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.'676$this->source); })()), "stockOrder", [], "any"falsefalsefalse676), 'widget');
  1105.         yield "
  1106. \t\t\t\t\t\t\t\t</div>
  1107. \t\t\t\t\t\t\t</div>
  1108. \t\t\t\t\t\t\t<div class=\"col-6 form-group\">
  1109. \t\t\t\t\t\t\t\t<label class=\"form_label\">Inserire DDT?</label>
  1110. \t\t\t\t\t\t\t\t<div ";
  1111.         // line 681
  1112.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formReceive"]) || array_key_exists("formReceive"$context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.'681$this->source); })()), "ddtMandatory", [], "any"falsefalsefalse681), 'errors');
  1113.         yield ">
  1114. \t\t\t\t\t\t\t\t\t<table class=\"m_none\">
  1115. \t\t\t\t\t\t\t\t\t\t<tr>
  1116. \t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_l\"><label class=\"m_b_none m_r_10p l_s_none f_w_500\">No</label></td>
  1117. \t\t\t\t\t\t\t\t\t\t\t<td>";
  1118.         // line 685
  1119.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formReceive"]) || array_key_exists("formReceive"$context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.'685$this->source); })()), "ddtMandatory", [], "any"falsefalsefalse685), 'widget', ["attr" => ["class" => "switch-toggle switch-flat-mini switch-toggle-flat""onChange" => "javascript: tranferReceiveShowHideDDT()""checked" => true]]);
  1120.         yield "<label class=\"m_auto\" for=\"";
  1121.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["formReceive"]) || array_key_exists("formReceive"$context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.'685$this->source); })()), "ddtMandatory", [], "any"falsefalsefalse685), "vars", [], "any"falsefalsefalse685), "id", [], "any"falsefalsefalse685), "html"nulltrue);
  1122.         yield "\"></label></td>
  1123. \t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_l\"><label class=\"m_b_none m_l_10p l_s_none f_w_500\">Sì</label></td>
  1124. \t\t\t\t\t\t\t\t\t\t</tr>
  1125. \t\t\t\t\t\t\t\t\t</table>
  1126. \t\t\t\t\t\t\t\t</div>
  1127. \t\t\t\t\t\t\t</div>
  1128. \t\t\t\t\t\t</div>
  1129. \t\t\t\t\t\t<div class=\"row\" id=\"row_receive_ddt\">
  1130. \t\t\t\t\t\t\t<div class=\"col-6 form-group\">
  1131. \t\t\t\t\t\t\t\t<label class=\"form_label\">Numero DDT*</label>
  1132. \t\t\t\t\t\t\t\t<div ";
  1133.         // line 695
  1134.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formReceive"]) || array_key_exists("formReceive"$context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.'695$this->source); })()), "ddt", [], "any"falsefalsefalse695), 'errors');
  1135.         yield ">
  1136. \t\t\t\t\t\t\t\t\t";
  1137.         // line 696
  1138.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formReceive"]) || array_key_exists("formReceive"$context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.'696$this->source); })()), "ddt", [], "any"falsefalsefalse696), 'widget');
  1139.         yield "
  1140. \t\t\t\t\t\t\t\t</div>
  1141. \t\t\t\t\t\t\t</div>
  1142. \t\t\t\t\t\t\t<div class=\"col-6 form-group\">
  1143. \t\t\t\t\t\t\t\t<label class=\"form_label\">DDT*</label>
  1144. \t\t\t\t\t\t\t\t<div ";
  1145.         // line 701
  1146.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formReceive"]) || array_key_exists("formReceive"$context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.'701$this->source); })()), "ddtPath", [], "any"falsefalsefalse701), 'errors');
  1147.         yield ">
  1148. \t\t\t\t\t\t\t\t\t";
  1149.         // line 702
  1150.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formReceive"]) || array_key_exists("formReceive"$context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.'702$this->source); })()), "ddtPath", [], "any"falsefalsefalse702), 'widget', ["attr" => ["class" => "display_n"]]);
  1151.         yield "
  1152. \t\t\t\t\t\t\t\t\t";
  1153.         // line 703
  1154.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formReceive"]) || array_key_exists("formReceive"$context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.'703$this->source); })()), "file", [], "any"falsefalsefalse703), 'widget', ["attr" => ["class" => "display_n"]]);
  1155.         yield "
  1156. \t\t\t\t\t\t\t\t\t<div class=\"input-group\">
  1157. \t\t\t\t\t\t\t\t\t\t<span class=\"input-group-btn\"><button id=\"selectFile1\" class=\"button button-3d button-small button-rounded button-pr button_input_group\" type=\"button\">Seleziona</button></span>
  1158. \t\t\t\t\t\t\t\t\t\t<input id=\"filename1\" type=\"text\" class=\"form-control\" readonly>
  1159. \t\t\t\t\t\t\t\t\t</div>
  1160. \t\t\t\t\t\t\t\t</div>
  1161. \t\t\t\t\t\t\t</div>
  1162. \t\t\t\t\t\t</div>
  1163. \t\t\t\t\t</div>
  1164. \t\t\t\t\t<div class=\"modal-footer\">
  1165. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  1166. \t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Continua</button>
  1167. \t\t\t\t\t</div>
  1168. \t\t\t\t";
  1169.         // line 716
  1170.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formReceive"]) || array_key_exists("formReceive"$context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.'716$this->source); })()), 'form_end');
  1171.         yield "
  1172. \t\t\t</div>
  1173. \t\t</div>
  1174. \t</div>
  1175. \t
  1176. \t";
  1177.         // line 722
  1178.         yield "\t<div id=\"transferSendModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  1179. \t\t<div class=\"modal-dialog\" role=\"document\">
  1180. \t\t\t<div class=\"modal-content\">
  1181. \t\t\t\t";
  1182.         // line 725
  1183.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'725$this->source); })()), 'form_start', ["attr" => ["novalidate" => "novalidate""id" => "formSend"]]);
  1184.         yield "
  1185. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Invia materiale</h3></div>
  1186. \t\t\t\t\t<div class=\"modal-body\">
  1187. \t\t\t\t\t\t<div class=\"row\" id=\"row_select_type\">
  1188. \t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
  1189. \t\t\t\t\t\t\t\t<label class=\"form_label\">A chi stai inviando il materiale?</label>
  1190. \t\t\t\t\t\t\t</div>
  1191. \t\t\t\t\t\t\t";
  1192.         // line 732
  1193.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'732$this->source); })()), "headquarter", [], "any"falsefalsefalse732)) {
  1194.             // line 733
  1195.             yield "\t\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 txt_a_c\">
  1196. \t\t\t\t\t\t\t\t\t<a href=\"javascript: transferSendSetType('destination')\" class=\"button button-3d button-mini button-pr width_200p txt_a_c\">Destinazione esterna</a>
  1197. \t\t\t\t\t\t\t\t</div>
  1198. \t\t\t\t\t\t\t";
  1199.         } else {
  1200.             // line 737
  1201.             yield "\t\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 txt_a_c\">
  1202. \t\t\t\t\t\t\t\t\t<a href=\"javascript: transferSendSetType('main')\" class=\"button button-3d button-mini button-pr width_200p txt_a_c\">Sede centrale</a>
  1203. \t\t\t\t\t\t\t\t</div>
  1204. \t\t\t\t\t\t\t";
  1205.         }
  1206.         // line 741
  1207.         yield "\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 txt_a_c\">
  1208. \t\t\t\t\t\t\t\t<a href=\"javascript: transferSendSetType('technician')\" class=\"button button-3d button-mini button-pr width_200p txt_a_c\" id=\"a_send_technician\">Tecnico</a>
  1209. \t\t\t\t\t\t\t</div>
  1210. \t\t\t\t\t\t\t";
  1211.         // line 744
  1212.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'744$this->source); })()), "type", [], "any"falsefalsefalse744), 'widget', ["attr" => ["class" => "display_n"]]);
  1213.         yield "
  1214. \t\t\t\t\t\t</div>
  1215. \t\t\t\t\t\t<div class=\"row m_t_30p\" id=\"row_send_data\" style=\"display: none\">
  1216. \t\t\t\t\t\t\t<div class=\"col-12\">
  1217. \t\t\t\t\t\t\t\t<h4 class=\"form_title\">Invia materiale a: <span id=\"span_send_type\" class=\"f_w_b\"></span></h4>
  1218. \t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
  1219. \t\t\t\t\t\t\t</div>
  1220. \t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_user_from_select\" style=\"display: none\">
  1221. \t\t\t\t\t\t\t\t<label class=\"form_label\">Tecnico di partenza*</label>
  1222. \t\t\t\t\t\t\t\t<div ";
  1223.         // line 753
  1224.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'753$this->source); })()), "userFrom", [], "any"falsefalsefalse753), 'errors');
  1225.         yield ">
  1226. \t\t\t\t\t\t\t\t\t";
  1227.         // line 754
  1228.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'754$this->source); })()), "userFrom", [], "any"falsefalsefalse754), 'widget', ["attr" => ["class" => "form-control form-select"]]);
  1229.         yield "
  1230. \t\t\t\t\t\t\t\t</div>
  1231. \t\t\t\t\t\t\t</div>
  1232. \t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_user_to_select\">
  1233. \t\t\t\t\t\t\t\t<label class=\"form_label\">Tecnico di destinazione*</label>
  1234. \t\t\t\t\t\t\t\t<div ";
  1235.         // line 759
  1236.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'759$this->source); })()), "userTo", [], "any"falsefalsefalse759), 'errors');
  1237.         yield ">
  1238. \t\t\t\t\t\t\t\t\t";
  1239.         // line 760
  1240.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'760$this->source); })()), "userTo", [], "any"falsefalsefalse760), 'widget', ["attr" => ["class" => "form-control form-select""onchange" => "updateTechnicianWarehouses()"]]);
  1241.         yield "
  1242. \t\t\t\t\t\t\t\t</div>
  1243. \t\t\t\t\t\t\t</div>
  1244. \t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_warehouse_select\">
  1245. \t\t\t\t\t\t\t\t<label class=\"form_label\">Magazzino di destinazione*</label>
  1246. \t\t\t\t\t\t\t\t<div ";
  1247.         // line 765
  1248.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'765$this->source); })()), "warehouse", [], "any"falsefalsefalse765), 'errors');
  1249.         yield ">
  1250. \t\t\t\t\t\t\t\t\t";
  1251.         // line 766
  1252.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'766$this->source); })()), "warehouse", [], "any"falsefalsefalse766), 'widget', ["attr" => ["class" => "form-control form-select"]]);
  1253.         yield "
  1254. \t\t\t\t\t\t\t\t</div>
  1255. \t\t\t\t\t\t\t</div>
  1256. \t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_warehouse_selected\" style=\"display: none\">
  1257. \t\t\t\t\t\t\t\t<label class=\"form_label\">Magazzino di destinazione*</label>
  1258. \t\t\t\t\t\t\t\t<input type=\"text\" readonly=\"true\" class=\"form-control\" id=\"input_warehouse_display\">
  1259. \t\t\t\t\t\t\t</div>
  1260. \t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"div_send_supplier\">
  1261. \t\t\t\t\t\t\t\t<label class=\"form_label\">Fornitore*</label>
  1262. \t\t\t\t\t\t\t\t<div ";
  1263.         // line 775
  1264.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'775$this->source); })()), "supplier", [], "any"falsefalsefalse775), 'errors');
  1265.         yield ">
  1266. \t\t\t\t\t\t\t\t\t";
  1267.         // line 776
  1268.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'776$this->source); })()), "supplier", [], "any"falsefalsefalse776), 'widget', ["attr" => ["class" => "form-control form-select""onChange" => "showHideDivestment()"]]);
  1269.         yield "
  1270. \t\t\t\t\t\t\t\t</div>
  1271. \t\t\t\t\t\t\t</div>
  1272. \t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"div_send_ddt_mandatory\" style=\"display: none\">
  1273. \t\t\t\t\t\t\t\t<div ";
  1274.         // line 780
  1275.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'780$this->source); })()), "ddtMandatory", [], "any"falsefalsefalse780), 'errors');
  1276.         yield ">
  1277. \t\t\t\t\t\t\t\t\t";
  1278.         // line 781
  1279.         $context["checked"] = false;
  1280.         // line 782
  1281.         yield "\t\t\t\t\t\t\t\t\t";
  1282.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["settingDdtMandatory"]) || array_key_exists("settingDdtMandatory"$context) ? $context["settingDdtMandatory"] : (function () { throw new RuntimeError('Variable "settingDdtMandatory" does not exist.'782$this->source); })()), "value", [], "any"falsefalsefalse782)) {
  1283.             // line 783
  1284.             yield "\t\t\t\t\t\t\t\t\t\t";
  1285.             $context["checked"] = true;
  1286.             // line 784
  1287.             yield "\t\t\t\t\t\t\t\t\t";
  1288.         }
  1289.         // line 785
  1290.         yield "\t\t\t\t\t\t\t\t\t<table class=\"table table-sm b_none m_b_none\">
  1291. \t\t\t\t\t\t\t\t\t\t<tr>
  1292. \t\t\t\t\t\t\t\t\t\t\t<td><label class=\"form_label m_b_none\">Caricamento DDT firmato obbligatorio?</label></td>
  1293. \t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p txt_a_r\"><label class=\"m_b_none m_r_10p l_s_none f_w_500\">No</label></td>
  1294. \t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p\">";
  1295.         // line 789
  1296.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'789$this->source); })()), "ddtMandatory", [], "any"falsefalsefalse789), 'widget', ["attr" => ["class" => "switch-toggle switch-flat-mini switch-toggle-flat""checked" => (isset($context["checked"]) || array_key_exists("checked"$context) ? $context["checked"] : (function () { throw new RuntimeError('Variable "checked" does not exist.'789$this->source); })())]]);
  1297.         yield "<label class=\"m_auto\" for=\"";
  1298.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'789$this->source); })()), "ddtMandatory", [], "any"falsefalsefalse789), "vars", [], "any"falsefalsefalse789), "id", [], "any"falsefalsefalse789), "html"nulltrue);
  1299.         yield "\"></label></td>
  1300. \t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p txt_a_l\"><label class=\"m_b_none m_l_10p l_s_none f_w_500\">Sì</label></td>
  1301. \t\t\t\t\t\t\t\t\t\t</tr>
  1302. \t\t\t\t\t\t\t\t\t</table>
  1303. \t\t\t\t\t\t\t\t</div>
  1304. \t\t\t\t\t\t\t</div>
  1305. \t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"div_send_divestment\" style=\"display: none\">
  1306. \t\t\t\t\t\t\t\t<div ";
  1307.         // line 796
  1308.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'796$this->source); })()), "divestment", [], "any"falsefalsefalse796), 'errors');
  1309.         yield ">
  1310. \t\t\t\t\t\t\t\t\t<table class=\"table table-sm b_none m_b_none\">
  1311. \t\t\t\t\t\t\t\t\t\t<tr>
  1312. \t\t\t\t\t\t\t\t\t\t\t<td><label class=\"form_label m_b_none\">è dismissione?</label></td>
  1313. \t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p txt_a_r\"><label class=\"m_b_none m_r_10p l_s_none f_w_500\">No</label></td>
  1314. \t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p\">";
  1315.         // line 801
  1316.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'801$this->source); })()), "divestment", [], "any"falsefalsefalse801), 'widget', ["attr" => ["class" => "switch-toggle switch-flat-mini switch-toggle-flat"]]);
  1317.         yield "<label class=\"m_auto\" for=\"";
  1318.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'801$this->source); })()), "divestment", [], "any"falsefalsefalse801), "vars", [], "any"falsefalsefalse801), "id", [], "any"falsefalsefalse801), "html"nulltrue);
  1319.         yield "\"></label></td>
  1320. \t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p txt_a_l\"><label class=\"m_b_none m_l_10p l_s_none f_w_500\">Sì</label></td>
  1321. \t\t\t\t\t\t\t\t\t\t</tr>
  1322. \t\t\t\t\t\t\t\t\t</table>
  1323. \t\t\t\t\t\t\t\t</div>
  1324. \t\t\t\t\t\t\t</div>
  1325. \t\t\t\t\t\t</div>
  1326. \t\t\t\t\t</div>
  1327. \t\t\t\t\t";
  1328.         // line 809
  1329.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'809$this->source); })()), "sendStocksIds", [], "any"falsefalsefalse809), 'widget', ["attr" => ["class" => "display_n"]]);
  1330.         yield "
  1331. \t\t\t\t\t";
  1332.         // line 810
  1333.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'810$this->source); })()), "productRequestId", [], "any"falsefalsefalse810), 'widget', ["attr" => ["class" => "display_n"]]);
  1334.         yield "
  1335. \t\t\t\t\t<div class=\"modal-footer\">
  1336. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  1337. \t\t\t\t\t\t<a id=\"button_send_submit\" href=\"javascript:void(0)\" class=\"button button-3d button-mini button-grey f_right\">Continua</a>
  1338. \t\t\t\t\t</div>
  1339. \t\t\t\t";
  1340.         // line 815
  1341.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formSend"]) || array_key_exists("formSend"$context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.'815$this->source); })()), 'form_end');
  1342.         yield "
  1343. \t\t\t</div>
  1344. \t\t</div>
  1345. \t</div>
  1346. \t
  1347. \t";
  1348.         // line 821
  1349.         yield "\t<div id=\"stockManagedModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  1350. \t\t<div class=\"modal-dialog\" role=\"document\">
  1351. \t\t\t<div class=\"modal-content\">
  1352. \t\t\t\t<form action=\"";
  1353.         // line 824
  1354.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_stock_multiple_select_action", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'824$this->source); })()), "id", [], "any"falsefalsefalse824)]), "html"nulltrue);
  1355.         yield "\" method=\"post\" id=\"formManaged\">
  1356. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Prodotti gestiti</h3></div>\t\t\t\t\t\t
  1357. \t\t\t\t\t<div class=\"modal-body\">
  1358. \t\t\t\t\t\t<input type=\"hidden\" id=\"managedStocksIds\" name=\"ids\">
  1359. \t\t\t\t\t\t<input type=\"hidden\" id=\"managedAction\" name=\"action\">
  1360. \t\t\t\t\t\t<div class=\"row\">
  1361. \t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
  1362. \t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
  1363. \t\t\t\t\t\t\t\t<p class=\"modal_paragraph\">Cliccando sul bottone <a class='button button-3d button-mini button-green' href='javascript:void(0)'>conferma</a> i prodotti selezionati verranno segnati come gestiti.<br>Si Ã¨ sicuri di voler proseguire?</p>
  1364. \t\t\t\t\t\t\t</div>
  1365. \t\t\t\t\t\t</div>
  1366. \t\t\t\t\t</div>
  1367. \t\t\t\t\t<div class=\"modal-footer\">
  1368. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  1369. \t\t\t\t\t\t<button type=\"button\" class=\"button button-3d button-mini button-green f_right\" onclick=\"javascript: checkSubmit('managed')\">Conferma</button>
  1370. \t\t\t\t\t</div>
  1371. \t\t\t\t</form>
  1372. \t\t\t</div>
  1373. \t\t</div>
  1374. \t</div>
  1375. \t
  1376. \t";
  1377.         // line 846
  1378.         yield "\t<div id=\"stockSupplierModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  1379. \t\t<div class=\"modal-dialog\" role=\"document\">
  1380. \t\t\t<div class=\"modal-content\">
  1381. \t\t\t\t<form action=\"";
  1382.         // line 849
  1383.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_stock_multiple_select_action", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'849$this->source); })()), "id", [], "any"falsefalsefalse849)]), "html"nulltrue);
  1384.         yield "\" method=\"post\" id=\"formSupplier\">
  1385. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Aggiungi fornitori per i prodotti</h3></div>\t\t\t\t\t\t
  1386. \t\t\t\t\t<div class=\"modal-body\">
  1387. \t\t\t\t\t\t<input type=\"hidden\" id=\"supplierStocksIds\" name=\"ids\">
  1388. \t\t\t\t\t\t<input type=\"hidden\" id=\"supplierAction\" name=\"action\">
  1389. \t\t\t\t\t\t<div class=\"row\">
  1390. \t\t\t\t\t\t\t<div class=\"col-12\">
  1391. \t\t\t\t\t\t\t\t<label class=\"form_label\">Seleziona i fornitori da aggiungere</label>
  1392. \t\t\t\t\t\t\t\t<div id=\"divErrorSupplier\">
  1393. \t\t\t\t\t\t\t\t\t";
  1394.         // line 858
  1395.         $context['_parent'] = $context;
  1396.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["suppliers"]) || array_key_exists("suppliers"$context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.'858$this->source); })()));
  1397.         foreach ($context['_seq'] as $context["_key"] => $context["s"]) {
  1398.             // line 859
  1399.             yield "\t\t\t\t\t\t\t\t\t\t<table class=\"table table_no_padding b_none m_b_none\">
  1400. \t\t\t\t\t\t\t\t\t\t\t<tr>
  1401. \t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p\"><input id=\"input_supplier_";
  1402.             // line 861
  1403.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["s"], "id", [], "any"falsefalsefalse861), "html"nulltrue);
  1404.             yield "\" type=\"checkbox\" class=\"switch-toggle switch-flat-mini switch-toggle-flat supplier_checkboxes\" name=\"supplier_";
  1405.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["s"], "id", [], "any"falsefalsefalse861), "html"nulltrue);
  1406.             yield "\"><label class=\"m_b_none\" for=\"input_supplier_";
  1407.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["s"], "id", [], "any"falsefalsefalse861), "html"nulltrue);
  1408.             yield "\"></label></td>
  1409. \t\t\t\t\t\t\t\t\t\t\t\t<td><label class=\"m_b_none form_label\">";
  1410.             // line 862
  1411.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["s"], "name", [], "any"falsefalsefalse862), "html"nulltrue);
  1412.             yield "</label></td>
  1413. \t\t\t\t\t\t\t\t\t\t\t</tr>
  1414. \t\t\t\t\t\t\t\t\t\t</table>
  1415. \t\t\t\t\t\t\t\t\t";
  1416.         }
  1417.         $_parent $context['_parent'];
  1418.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['s'], $context['_parent'], $context['loop']);
  1419.         $context array_intersect_key($context$_parent) + $_parent;
  1420.         // line 866
  1421.         yield "\t\t\t\t\t\t\t\t</div>
  1422. \t\t\t\t\t\t\t</div>
  1423. \t\t\t\t\t\t</div>
  1424. \t\t\t\t\t</div>
  1425. \t\t\t\t\t<div class=\"modal-footer\">
  1426. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  1427. \t\t\t\t\t\t<button type=\"button\" class=\"button button-3d button-mini button-green f_right\" onclick=\"javascript: checkSubmit('supplier')\">Conferma</button>
  1428. \t\t\t\t\t</div>
  1429. \t\t\t\t</form>
  1430. \t\t\t</div>
  1431. \t\t</div>
  1432. \t</div>
  1433. \t";
  1434.         // line 880
  1435.         yield "\t<div id=\"stockConditionModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  1436. \t\t<div class=\"modal-dialog\" role=\"document\">
  1437. \t\t\t<div class=\"modal-content\">
  1438. \t\t\t\t<form action=\"";
  1439.         // line 883
  1440.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_stock_multiple_select_action", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'883$this->source); })()), "id", [], "any"falsefalsefalse883)]), "html"nulltrue);
  1441.         yield "\" method=\"post\" id=\"formCondition\">
  1442. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Cambia condizione prodotti</h3></div>
  1443. \t\t\t\t\t<div class=\"modal-body\">
  1444. \t\t\t\t\t\t<input type=\"hidden\" id=\"conditionStocksIds\" name=\"ids\">
  1445. \t\t\t\t\t\t<input type=\"hidden\" id=\"conditionAction\" name=\"action\">
  1446. \t\t\t\t\t\t<input type=\"hidden\" id=\"stockTab\" name=\"tab\">
  1447. \t\t\t\t\t\t<div class=\"row\">
  1448. \t\t\t\t\t\t\t<div class=\"col-12\">
  1449. \t\t\t\t\t\t\t\t<label class=\"form_label\">Seleziona nuova condizione</label>
  1450. \t\t\t\t\t\t\t\t<div id=\"divErrorCondition\">
  1451. \t\t\t\t\t\t\t\t\t<select class=\"form-control form-select\" id=\"select_product_condition\" name=\"productCondition\">
  1452. \t\t\t\t\t\t\t\t\t\t<option></option>
  1453. \t\t\t\t\t\t\t\t\t\t";
  1454.         // line 895
  1455.         $context['_parent'] = $context;
  1456.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["productConditions"]) || array_key_exists("productConditions"$context) ? $context["productConditions"] : (function () { throw new RuntimeError('Variable "productConditions" does not exist.'895$this->source); })()));
  1457.         foreach ($context['_seq'] as $context["_key"] => $context["condition"]) {
  1458.             // line 896
  1459.             yield "\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
  1460.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["condition"], "id", [], "any"falsefalsefalse896), "html"nulltrue);
  1461.             yield "\">";
  1462.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["condition"], "value", [], "any"falsefalsefalse896), "html"nulltrue);
  1463.             yield "</option>
  1464. \t\t\t\t\t\t\t\t\t\t";
  1465.         }
  1466.         $_parent $context['_parent'];
  1467.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['condition'], $context['_parent'], $context['loop']);
  1468.         $context array_intersect_key($context$_parent) + $_parent;
  1469.         // line 898
  1470.         yield "\t\t\t\t\t\t\t\t\t</select>
  1471. \t\t\t\t\t\t\t\t</div>
  1472. \t\t\t\t\t\t\t</div>
  1473. \t\t\t\t\t\t</div>
  1474. \t\t\t\t\t</div>
  1475. \t\t\t\t\t<div class=\"modal-footer\">
  1476. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  1477. \t\t\t\t\t\t<button type=\"button\" class=\"button button-3d button-mini button-green f_right\" onclick=\"javascript: checkSubmit('condition')\">Conferma</button>
  1478. \t\t\t\t\t</div>
  1479. \t\t\t\t</form>
  1480. \t\t\t</div>
  1481. \t\t</div>
  1482. \t</div>
  1483. \t
  1484. \t";
  1485.         // line 913
  1486.         yield "\t<div id=\"transferDeleteModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  1487. \t\t<div class=\"modal-dialog\" role=\"document\">
  1488. \t\t\t<div class=\"modal-content\">
  1489. \t\t\t\t<form action=\"";
  1490.         // line 916
  1491.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_transfer_delete", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'916$this->source); })()), "id", [], "any"falsefalsefalse916)]), "html"nulltrue);
  1492.         yield "\" method=\"post\">
  1493. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Trasferimento - Elimina</h3></div>
  1494. \t\t\t\t\t<div class=\"modal-body\">
  1495. \t\t\t\t\t\t<input type=\"hidden\" id=\"transferDeleteId\" name=\"transferDelId\"/>
  1496. \t\t\t\t\t\t<input type=\"hidden\" name=\"warehouseId\" value=\"";
  1497.         // line 920
  1498.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'920$this->source); })()), "id", [], "any"falsefalsefalse920), "html"nulltrue);
  1499.         yield "\"/>
  1500. \t\t\t\t\t\t<div class=\"row\">
  1501. \t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
  1502. \t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label>
  1503. \t\t\t\t\t\t\t\t<p class=\"modal_paragraph\">Cliccando sul bottone <a class='button button-3d button-mini button-red' href='javascript:void(0)'>conferma</a> eliminerai il trasferimento.<br>Si Ã¨ sicuri di voler proseguire?</p>
  1504. \t\t\t\t\t\t\t</div>
  1505. \t\t\t\t\t\t</div>
  1506. \t\t\t\t\t</div>
  1507. \t\t\t\t\t<div class=\"modal-footer\">
  1508. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-green f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  1509. \t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-red f_right\">Conferma</button>
  1510. \t\t\t\t\t</div>
  1511. \t\t\t\t</form>
  1512. \t\t\t</div>
  1513. \t\t</div>
  1514. \t</div>\t
  1515. \t
  1516. \t";
  1517.         // line 938
  1518.         yield "\t<div id=\"productRequestSheetModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  1519. \t\t<div class=\"modal-dialog\" role=\"document\">
  1520. \t\t\t<div class=\"modal-content\">
  1521. \t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richiesta materiale - Dettaglio</h3></div>
  1522. \t\t\t\t<div class=\"modal-body\">
  1523. \t\t\t\t\t<table class=\"table table-sm responsive_font_size\">
  1524. \t\t\t\t\t\t<tr>
  1525. \t\t\t\t\t\t\t<th class=\"td_w_150p\">Data/Ora</th>
  1526. \t\t\t\t\t\t\t<td id=\"request_sheet_datetime\"></td>
  1527. \t\t\t\t\t\t</tr>
  1528. \t\t\t\t\t\t<tr>
  1529. \t\t\t\t\t\t\t<th>Tecnico</th>
  1530. \t\t\t\t\t\t\t<td id=\"request_sheet_technician\"></td>
  1531. \t\t\t\t\t\t</tr>
  1532. \t\t\t\t\t\t</tr>
  1533. \t\t\t\t\t\t\t<th>Magazzino tecnico</th>
  1534. \t\t\t\t\t\t\t<td id=\"request_sheet_warehouse\"></td>
  1535. \t\t\t\t\t\t</tr>
  1536. \t\t\t\t\t\t</tr>
  1537. \t\t\t\t\t\t\t<th>Magazzino richiesta</th>
  1538. \t\t\t\t\t\t\t<td id=\"request_sheet_warehouse_headquarter\"></td>
  1539. \t\t\t\t\t\t</tr>
  1540. \t\t\t\t\t\t<tr>
  1541. \t\t\t\t\t\t\t<th colspan=\"2\" style=\"border:0px\">Note</th>
  1542. \t\t\t\t\t\t</tr>
  1543. \t\t\t\t\t\t<tr>
  1544. \t\t\t\t\t\t\t<td colspan=\"2\" id=\"request_sheet_notes\"></td>
  1545. \t\t\t\t\t\t</tr>
  1546. \t\t\t\t\t</table>
  1547. \t\t\t\t</div>
  1548. \t\t\t\t<div class=\"modal-footer txt_a_c\">
  1549. \t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red\" data-bs-dismiss=\"modal\">Chiudi</a>
  1550. \t\t\t\t</div>
  1551. \t\t\t</div>
  1552. \t\t</div>
  1553. \t</div>
  1554. \t";
  1555.         // line 976
  1556.         yield "\t<div id=\"productRequestTakeChargeModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  1557. \t\t<div class=\"modal-dialog\" role=\"document\">
  1558. \t\t\t<div class=\"modal-content\">
  1559. \t\t\t\t<form action=\"";
  1560.         // line 979
  1561.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_product_request_take_charge", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'979$this->source); })()), "id", [], "any"falsefalsefalse979)]), "html"nulltrue);
  1562.         yield "\" method=\"post\">
  1563. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richiesta prodotti - Prendi in carico</h3></div>
  1564. \t\t\t\t\t<div class=\"modal-body\">
  1565. \t\t\t\t\t\t<input type=\"hidden\" id=\"product_request_take_charge_id\" name=\"productRequestId\">
  1566. \t\t\t\t\t\t<div class=\"row\">
  1567. \t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
  1568. \t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
  1569. \t\t\t\t\t\t\t\t<p class=\"modal_paragraph\">Cliccando sul bottone <a class='button button-3d button-mini button-green' href='javascript:void(0)'>conferma</a> prenderai in carico la richiesta.<br>Si Ã¨ sicuri di voler proseguire?</p>
  1570. \t\t\t\t\t\t\t</div>
  1571. \t\t\t\t\t\t</div>
  1572. \t\t\t\t\t</div>
  1573. \t\t\t\t\t<div class=\"modal-footer\">
  1574. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  1575. \t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Conferma</button>
  1576. \t\t\t\t\t</div>
  1577. \t\t\t\t</form>
  1578. \t\t\t</div>
  1579. \t\t</div>
  1580. \t</div>
  1581. \t
  1582. \t";
  1583.         // line 1000
  1584.         yield "\t<div id=\"productRequestManagedModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  1585. \t\t<div class=\"modal-dialog\" role=\"document\">
  1586. \t\t\t<div class=\"modal-content\">
  1587. \t\t\t\t<form action=\"";
  1588.         // line 1003
  1589.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_product_request_managed", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'1003$this->source); })()), "id", [], "any"falsefalsefalse1003)]), "html"nulltrue);
  1590.         yield "\" method=\"post\">
  1591. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richiesta prodotti - Gestita</h3></div>
  1592. \t\t\t\t\t<div class=\"modal-body\">
  1593. \t\t\t\t\t\t<input type=\"hidden\" id=\"product_request_managed_id\" name=\"productRequestId\">
  1594. \t\t\t\t\t\t<div class=\"row\">
  1595. \t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
  1596. \t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
  1597. \t\t\t\t\t\t\t\t<p class=\"modal_paragraph\">Cliccando sul bottone <a class='button button-3d button-mini button-green' href='javascript:void(0)'>conferma</a> dichiarerai gestita la richiesta.<br>Si Ã¨ sicuri di voler proseguire?</p>
  1598. \t\t\t\t\t\t\t</div>
  1599. \t\t\t\t\t\t</div>
  1600. \t\t\t\t\t</div>
  1601. \t\t\t\t\t<div class=\"modal-footer\">
  1602. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  1603. \t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Conferma</button>
  1604. \t\t\t\t\t</div>
  1605. \t\t\t\t</form>
  1606. \t\t\t</div>
  1607. \t\t</div>
  1608. \t</div>
  1609. \t
  1610. \t";
  1611.         // line 1024
  1612.         yield "\t<div id=\"productRequestDeleteModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  1613. \t\t<div class=\"modal-dialog\" role=\"document\">
  1614. \t\t\t<div class=\"modal-content\">
  1615. \t\t\t\t<form action=\"";
  1616.         // line 1027
  1617.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_product_request_delete", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'1027$this->source); })()), "id", [], "any"falsefalsefalse1027)]), "html"nulltrue);
  1618.         yield "\" method=\"post\">
  1619. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richieste prodotto - Elimina</h3></div>
  1620. \t\t\t\t\t<div class=\"modal-body\">
  1621. \t\t\t\t\t\t<input type=\"hidden\" id=\"product_request_delete_id\" name=\"productRequestId\">
  1622. \t\t\t\t\t\t<div class=\"row\">
  1623. \t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
  1624. \t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
  1625. \t\t\t\t\t\t\t\t<p class=\"modal_paragraph\">Cliccando sul bottone <a class='button button-3d button-mini button-red' href='javascript:void(0)'>conferma</a> eliminerai la richiesta.<br>Si Ã¨ sicuri di voler proseguire?</p>
  1626. \t\t\t\t\t\t\t</div>
  1627. \t\t\t\t\t\t</div>
  1628. \t\t\t\t\t</div>
  1629. \t\t\t\t\t<div class=\"modal-footer\">
  1630. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-green f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  1631. \t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-red f_right\">Conferma</button>
  1632. \t\t\t\t\t</div>
  1633. \t\t\t\t</form>
  1634. \t\t\t</div>
  1635. \t\t</div>
  1636. \t</div>
  1637. ";
  1638.         
  1639.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1640.         
  1641.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1642.         return; yield '';
  1643.     }
  1644.     // line 194
  1645.     public function block_tableStocks($context, array $blocks = [])
  1646.     {
  1647.         $macros $this->macros;
  1648.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1649.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""tableStocks"));
  1650.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1651.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""tableStocks"));
  1652.         // line 195
  1653.         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
  1654. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12\">
  1655. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1656.         // line 197
  1657.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'197$this->source); })()), 0, [], "array"falsefalsefalse197)) {
  1658.             // line 198
  1659.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1660.             if (CoreExtension::inFilter("condition"CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'198$this->source); })()), 2, [], "array"falsefalsefalse198))) {
  1661.                 yield "<a id=\"button_";
  1662.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'198$this->source); })()), 1, [], "array"falsefalsefalse198), "html"nulltrue);
  1663.                 yield "_condition\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-line-alert-circle d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Cambia condizione\"></i><span class=\"d-none d-lg-block\">Cambia condizione</span></a>";
  1664.             }
  1665.             // line 199
  1666.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1667.             if (CoreExtension::inFilter("supplier"CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'199$this->source); })()), 2, [], "array"falsefalsefalse199))) {
  1668.                 yield "<a id=\"button_";
  1669.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'199$this->source); })()), 1, [], "array"falsefalsefalse199), "html"nulltrue);
  1670.                 yield "_supplier\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-hand-holding d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Aggiungi fornitori\"></i><span class=\"d-none d-lg-block\">Aggiungi fornitori</span></a>";
  1671.             }
  1672.             // line 200
  1673.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1674.             if (CoreExtension::inFilter("send"CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'200$this->source); })()), 2, [], "array"falsefalsefalse200))) {
  1675.                 yield "<a id=\"button_";
  1676.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'200$this->source); })()), 1, [], "array"falsefalsefalse200), "html"nulltrue);
  1677.                 yield "_send\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-line-send d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Invia materiale\"></i><span class=\"d-none d-lg-block\">Invia materiale</span></a>";
  1678.             }
  1679.             // line 201
  1680.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1681.             if (CoreExtension::inFilter("export"CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'201$this->source); })()), 2, [], "array"falsefalsefalse201))) {
  1682.                 yield "<a href=\"";
  1683.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_stocks_export_csv_for_send", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'201$this->source); })()), "id", [], "any"falsefalsefalse201), "status" => (isset($context["status"]) || array_key_exists("status"$context) ? $context["status"] : (function () { throw new RuntimeError('Variable "status" does not exist.'201$this->source); })())]), "html"nulltrue);
  1684.                 yield "\" class=\"button button-3d button-mini button-amber f_right m_b_10p p_tb4_lr6\"><i class=\"icon-line-send d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Esporta per invio\"></i><span class=\"d-none d-lg-block\">Esporta per invio</span></a>";
  1685.             }
  1686.             // line 202
  1687.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1688.         }
  1689.         // line 203
  1690.         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1691. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
  1692. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table class=\"table table-sm table-bordered responsive_font_size v_a_m\">
  1693. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
  1694. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  1695. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<form method=\"get\" action=\"";
  1696.         // line 208
  1697.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_sheet", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'208$this->source); })()), "id", [], "any"falsefalsefalse208)]), "html"nulltrue);
  1698.         yield "\" id=\"formFilter_1\">
  1699. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td ";
  1700.         // line 209
  1701.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'209$this->source); })()), 0, [], "array"falsefalsefalse209)) {
  1702.             yield "colspan=\"2\"";
  1703.         }
  1704.         yield "><a href=\"";
  1705.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("remove_filter", ["route" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'209$this->source); })()), "request", [], "any"falsefalsefalse209), "attributes", [], "any"falsefalsefalse209), "get", ["_route"], "method"falsefalsefalse209), "route_params" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'209$this->source); })()), "request", [], "any"falsefalsefalse209), "attributes", [], "any"falsefalsefalse209), "get", ["_route_params"], "method"falsefalsefalse209)]), "html"nulltrue);
  1706.         yield "\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Escludi filtro\"><img class=\"icon_action icon_red\" src=\"";
  1707.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_delete"]) || array_key_exists("icon_delete"$context) ? $context["icon_delete"] : (function () { throw new RuntimeError('Variable "icon_delete" does not exist.'209$this->source); })())), "html"nulltrue);
  1708.         yield "\"></a></td>
  1709. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_150p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"codeProducer_1\" value=\"";
  1710.         // line 210
  1711.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "codeProducer_1", [], "any"truetruefalse210)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "codeProducer_1", [], "any"falsefalsefalse210))) : ("")), "html"nulltrue);
  1712.         yield "\"/></td>
  1713. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_180p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"model_1\" value=\"";
  1714.         // line 211
  1715.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "model_1", [], "any"truetruefalse211)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "model_1", [], "any"falsefalsefalse211))) : ("")), "html"nulltrue);
  1716.         yield "\"/></td>
  1717. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" class=\"form-control\" id=\"filter_supplier_value_";
  1718.         // line 212
  1719.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number"$context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.'212$this->source); })()), "html"nulltrue);
  1720.         yield "\" readonly onClick=\"filterSuppliers";
  1721.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number"$context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.'212$this->source); })()), "html"nulltrue);
  1722.         yield "()\" data-bs-toggle=\"tooltip\"/><input type=\"hidden\" id=\"filter_supplier_id_";
  1723.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number"$context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.'212$this->source); })()), "html"nulltrue);
  1724.         yield "\" name=\"supplier_1\" value=\"";
  1725.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "supplier_1", [], "any"truetruefalse212)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "supplier_1", [], "any"falsefalsefalse212))) : ("")), "html"nulltrue);
  1726.         yield "\"/></td>
  1727. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"condition_1\" value=\"";
  1728.         // line 213
  1729.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "condition_1", [], "any"truetruefalse213)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "condition_1", [], "any"falsefalsefalse213))) : ("")), "html"nulltrue);
  1730.         yield "\"/></td>
  1731. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_90p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"producer_1\" value=\"";
  1732.         // line 214
  1733.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "producer_1", [], "any"truetruefalse214)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "producer_1", [], "any"falsefalsefalse214))) : ("")), "html"nulltrue);
  1734.         yield "\"/></td>
  1735. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_150p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"codeSupplier_1\" value=\"";
  1736.         // line 215
  1737.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "codeSupplier_1", [], "any"truetruefalse215)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "codeSupplier_1", [], "any"falsefalsefalse215))) : ("")), "html"nulltrue);
  1738.         yield "\"/></td>
  1739. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"sku_1\" value=\"";
  1740.         // line 216
  1741.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sku_1", [], "any"truetruefalse216)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sku_1", [], "any"falsefalsefalse216))) : ("")), "html"nulltrue);
  1742.         yield "\"/></td>
  1743. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" class=\"form-control daterange1last font_12\" id=\"daterange1last_";
  1744.         // line 217
  1745.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number"$context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.'217$this->source); })()), "html"nulltrue);
  1746.         yield "\" inputmode=\"search\" autocomplete=\"off\" name=\"dateLastTransfer_1\" style=\"height: 38px\" date-filter=\"range\"/></td>
  1747. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_60p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"ddt_1\" value=\"";
  1748.         // line 218
  1749.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "ddt_1", [], "any"truetruefalse218)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "ddt_1", [], "any"falsefalsefalse218))) : ("")), "html"nulltrue);
  1750.         yield "\"/></td>
  1751. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_60p\">
  1752. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn bg_w f_left p_0p\" data-bs-toggle=\"tooltip\" title=\"Filtra\"><img class=\"icon_action icon_green\" src=\"";
  1753.         // line 220
  1754.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_search"]) || array_key_exists("icon_search"$context) ? $context["icon_search"] : (function () { throw new RuntimeError('Variable "icon_search" does not exist.'220$this->source); })())), "html"nulltrue);
  1755.         yield "\"></button>
  1756. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
  1757.         // line 221
  1758.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_stocks_export_csv_filtered", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'221$this->source); })()), "id", [], "any"falsefalsefalse221), "status" => (isset($context["status"]) || array_key_exists("status"$context) ? $context["status"] : (function () { throw new RuntimeError('Variable "status" does not exist.'221$this->source); })())]), "html"nulltrue);
  1759.         yield "\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Esporta filtrati\"><img class=\"icon_action icon_amber\" src=\"";
  1760.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_xls"]) || array_key_exists("icon_xls"$context) ? $context["icon_xls"] : (function () { throw new RuntimeError('Variable "icon_xls" does not exist.'221$this->source); })())), "html"nulltrue);
  1761.         yield "\"></a>
  1762. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
  1763. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"filter_tab\" value=\"";
  1764.         // line 223
  1765.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["tab"]) || array_key_exists("tab"$context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.'223$this->source); })()), "html"nulltrue);
  1766.         yield "\">
  1767. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_field_1\" type=\"hidden\" name=\"sortField_1\" value=\"";
  1768.         // line 224
  1769.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortField_1", [], "any"truetruefalse224)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortField_1", [], "any"falsefalsefalse224))) : ("")), "html"nulltrue);
  1770.         yield "\"/>
  1771. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_order_1\" type=\"hidden\" name=\"sortOrder_1\" value=\"";
  1772.         // line 225
  1773.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortOrder_1", [], "any"truetruefalse225)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortOrder_1", [], "any"falsefalsefalse225))) : ("")), "html"nulltrue);
  1774.         yield "\"/>
  1775. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
  1776. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  1777. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
  1778. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\"></th>
  1779. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1780.         // line 230
  1781.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'230$this->source); })()), 0, [], "array"falsefalsefalse230)) {
  1782.             // line 231
  1783.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\">
  1784. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"switch\" data-bs-toggle=\"tooltip\" title=\"Seleziona tutti\">
  1785. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"stock_";
  1786.             // line 233
  1787.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'233$this->source); })()), 1, [], "array"falsefalsefalse233), "html"nulltrue);
  1788.             yield "_all_checkboxes\" class=\"switch-toggle switch-flat-mini switch-toggle-flat\" type=\"checkbox\" onChange=\"javascript: selectAll(";
  1789.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'233$this->source); })()), 1, [], "array"falsefalsefalse233), "html"nulltrue);
  1790.             yield ", '";
  1791.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["tab"]) || array_key_exists("tab"$context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.'233$this->source); })()), "html"nulltrue);
  1792.             yield "')\">
  1793. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"stock_";
  1794.             // line 234
  1795.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'234$this->source); })()), 1, [], "array"falsefalsefalse234), "html"nulltrue);
  1796.             yield "_all_checkboxes\" class=\"m_b_none\"></label>
  1797. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1798. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</th>
  1799. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1800.         }
  1801.         // line 238
  1802.         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Matr. produttore<button type=\"button\" onClick=\"setOrderBy1('p.codeProducer')\" data-orderField=\"p.codeProducer\" class=\"f_right filter_arrow_1\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  1803. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Modello<button type=\"button\" onClick=\"setOrderBy1('m.name')\" data-orderField=\"m.name\" class=\"f_right filter_arrow_1\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  1804. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Fornitori</th>
  1805. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Condizione<br>(Ultimi riferimenti)<button type=\"button\" onClick=\"setOrderBy1('c.value')\" data-orderField=\"c.value\" class=\"f_right filter_arrow_1\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  1806. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Produttore<button type=\"button\" onClick=\"setOrderBy1('pr.name')\" data-orderField=\"pr.name\" class=\"f_right filter_arrow_1\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  1807. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Matr. fornitore<button type=\"button\" onClick=\"setOrderBy1('p.codeSupplier')\" data-orderField=\"p.codeSupplier\" class=\"f_right filter_arrow_1\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  1808. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>SKU<button type=\"button\" onClick=\"setOrderBy1('m.sku')\" data-orderField=\"m.sku\" class=\"f_right filter_arrow_1\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  1809. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Data ultimo trasf.<button type=\"button\" onClick=\"setOrderBy1('p.dateLastTransfer')\" data-orderField=\"p.dateLastTransfer\" class=\"f_right filter_arrow_1\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  1810. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th colspan=\"2\">DDT</th>
  1811. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  1812. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
  1813. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
  1814. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1815.         // line 250
  1816.         if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'250$this->source); })())) > 0)) {
  1817.             // line 251
  1818.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1819.             $context['_parent'] = $context;
  1820.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'251$this->source); })()));
  1821.             foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
  1822.                 // line 252
  1823.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1824.                 $context["first"] = true;
  1825.                 // line 253
  1826.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1827.                 $context["suppliersString"] = "";
  1828.                 // line 254
  1829.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1830.                 $context['_parent'] = $context;
  1831.                 $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source$context["product"], "suppliers", [], "any"falsefalsefalse254));
  1832.                 foreach ($context['_seq'] as $context["_key"] => $context["supplier"]) {
  1833.                     // line 255
  1834.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1835.                     if ((isset($context["first"]) || array_key_exists("first"$context) ? $context["first"] : (function () { throw new RuntimeError('Variable "first" does not exist.'255$this->source); })())) {
  1836.                         $context["first"] = false;
  1837.                     } else {
  1838.                         $context["suppliersString"] = ((isset($context["suppliersString"]) || array_key_exists("suppliersString"$context) ? $context["suppliersString"] : (function () { throw new RuntimeError('Variable "suppliersString" does not exist.'255$this->source); })()) . "-");
  1839.                     }
  1840.                     // line 256
  1841.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1842.                     $context["suppliersString"] = ((isset($context["suppliersString"]) || array_key_exists("suppliersString"$context) ? $context["suppliersString"] : (function () { throw new RuntimeError('Variable "suppliersString" does not exist.'256$this->source); })()) . CoreExtension::getAttribute($this->env$this->source$context["supplier"], "id", [], "any"falsefalsefalse256));
  1843.                     // line 257
  1844.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1845.                 }
  1846.                 $_parent $context['_parent'];
  1847.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['supplier'], $context['_parent'], $context['loop']);
  1848.                 $context array_intersect_key($context$_parent) + $_parent;
  1849.                 // line 258
  1850.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"suppliers_ids_string\" value=\"";
  1851.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["suppliersString"]) || array_key_exists("suppliersString"$context) ? $context["suppliersString"] : (function () { throw new RuntimeError('Variable "suppliersString" does not exist.'258$this->source); })()), "html"nulltrue);
  1852.                 yield "\">
  1853. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr ";
  1854.                 // line 259
  1855.                 if (CoreExtension::getAttribute($this->env$this->source$context["product"], "toManage", [], "any"falsefalsefalse259)) {
  1856.                     yield "class=\"bg_to_manage_";
  1857.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "toManagePriority", [], "any"falsefalsefalse259), "html"nulltrue);
  1858.                     yield "\"";
  1859.                 }
  1860.                 yield ">
  1861. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\"><a href=\"";
  1862.                 // line 260
  1863.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_product_sheet", ["productId" => CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse260)]), "html"nulltrue);
  1864.                 yield "\" data-bs-toggle=\"tooltip\" title=\"Scheda\"><img class=\"icon_action icon_pr\" src=\"";
  1865.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_sheet"]) || array_key_exists("icon_sheet"$context) ? $context["icon_sheet"] : (function () { throw new RuntimeError('Variable "icon_sheet" does not exist.'260$this->source); })())), "html"nulltrue);
  1866.                 yield "\"></a></td>
  1867. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1868.                 // line 261
  1869.                 if (CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'261$this->source); })()), 0, [], "array"falsefalsefalse261)) {
  1870.                     // line 262
  1871.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>
  1872. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"switch\">
  1873. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"stock_checkbox_";
  1874.                     // line 264
  1875.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse264), "html"nulltrue);
  1876.                     yield "\" class=\"switch-toggle switch-flat-mini switch-toggle-flat stock_";
  1877.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'264$this->source); })()), 1, [], "array"falsefalsefalse264), "html"nulltrue);
  1878.                     yield "_checkbox\" type=\"checkbox\" value=\"";
  1879.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse264), "html"nulltrue);
  1880.                     yield "\" onChange=\"javascript: updateButtons(";
  1881.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection"$context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.'264$this->source); })()), 1, [], "array"falsefalsefalse264), "html"nulltrue);
  1882.                     yield ", '";
  1883.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["tab"]) || array_key_exists("tab"$context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.'264$this->source); })()), "html"nulltrue);
  1884.                     yield "')\">
  1885. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"stock_checkbox_";
  1886.                     // line 265
  1887.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse265), "html"nulltrue);
  1888.                     yield "\" class=\"m_b_none\"></label>
  1889. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1890. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
  1891. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1892.                 }
  1893.                 // line 269
  1894.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_codeProducer_";
  1895.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse269), "html"nulltrue);
  1896.                 yield "\">";
  1897.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source$context["product"], "codeProducer", [], "any"truetruefalse269)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source$context["product"], "codeProducer", [], "any"falsefalsefalse269), "---")) : ("---")), "html"nulltrue);
  1898.                 yield "</td>
  1899. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_model_";
  1900.                 // line 270
  1901.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse270), "html"nulltrue);
  1902.                 yield "\">";
  1903.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "model", [], "any"falsefalsefalse270), "name", [], "any"falsefalsefalse270), "html"nulltrue);
  1904.                 yield "</td>
  1905. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  1906.                 // line 271
  1907.                 yield CoreExtension::getAttribute($this->env$this->source$context["product"], "displaySuppliers", [], "method"falsefalsefalse271);
  1908.                 yield "</td>
  1909. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  1910.                 // line 272
  1911.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "displayCondition", ["string-short"], "method"falsefalsefalse272), "html"nulltrue);
  1912.                 yield "
  1913. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1914.                 // line 273
  1915.                 if (( !(null === CoreExtension::getAttribute($this->env$this->source$context["product"], "getLastTicket", [], "any"falsefalsefalse273)) && ((isset($context["tab"]) || array_key_exists("tab"$context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.'273$this->source); })()) == "s_not_available"))) {
  1916.                     yield "<a href=\"";
  1917.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_ticket_sheet", ["ticketId" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "getLastTicket", [], "any"falsefalsefalse273), "id", [], "any"falsefalsefalse273)]), "html"nulltrue);
  1918.                     yield "\" target=\"_blank\">";
  1919.                     yield CoreExtension::getAttribute($this->env$this->source$context["product"], "displayLastRefs", [], "any"falsefalsefalse273);
  1920.                     yield "</a>";
  1921.                 }
  1922.                 // line 274
  1923.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
  1924. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  1925.                 // line 275
  1926.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "model", [], "any"falsefalsefalse275), "producer", [], "any"falsefalsefalse275), "html"nulltrue);
  1927.                 yield "</td>
  1928. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_codeSupplier_";
  1929.                 // line 276
  1930.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["product"], "id", [], "any"falsefalsefalse276), "html"nulltrue);
  1931.                 yield "\">";
  1932.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source$context["product"], "codeSupplier", [], "any"truetruefalse276)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source$context["product"], "codeSupplier", [], "any"falsefalsefalse276), "---")) : ("---")), "html"nulltrue);
  1933.                 yield "</td>
  1934. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  1935.                 // line 277
  1936.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["product"], "model", [], "any"falsefalsefalse277), "sku", [], "any"falsefalsefalse277), "html"nulltrue);
  1937.                 yield "</td>
  1938. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  1939.                 // line 278
  1940.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["product"], "dateLastTransfer", [], "any"falsefalsefalse278), "d-m-Y H:i"), "html"nulltrue);
  1941.                 yield "</td>
  1942. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\">";
  1943.                 // line 279
  1944.                 yield CoreExtension::getAttribute($this->env$this->source$context["product"], "displayTransfersDdt", [], "method"falsefalsefalse279);
  1945.                 yield "</td>
  1946. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  1947. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1948.             }
  1949.             $_parent $context['_parent'];
  1950.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
  1951.             $context array_intersect_key($context$_parent) + $_parent;
  1952.             // line 282
  1953.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1954.         } else {
  1955.             // line 283
  1956.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1957.             yield from             $this->loadTemplate("components/twig/notice_no_values.html.twig""role/user/warehouse/sheet.html.twig"283)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessun prodotto in questo stato"]));
  1958.             // line 284
  1959.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1960.         }
  1961.         // line 285
  1962.         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
  1963. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
  1964. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1965. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
  1966. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  1967.         // line 289
  1968.         yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["products"]) || array_key_exists("products"$context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.'289$this->source); })()));
  1969.         yield "
  1970. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1971. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1972. \t\t\t\t\t\t\t\t\t\t\t\t";
  1973.         
  1974.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1975.         
  1976.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1977.         return; yield '';
  1978.     }
  1979.     // line 340
  1980.     public function block_tableTransfers($context, array $blocks = [])
  1981.     {
  1982.         $macros $this->macros;
  1983.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  1984.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""tableTransfers"));
  1985.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  1986.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""tableTransfers"));
  1987.         // line 341
  1988.         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
  1989. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
  1990. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table class=\"table table-bordered table-hover responsive_font_size\">
  1991. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
  1992. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  1993. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<form method=\"get\" action=\"";
  1994.         // line 346
  1995.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_sheet", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'346$this->source); })()), "id", [], "any"falsefalsefalse346)]), "html"nulltrue);
  1996.         yield "\" id=\"formFilter_2\">
  1997. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\"><a href=\"";
  1998.         // line 347
  1999.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("remove_filter", ["route" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'347$this->source); })()), "request", [], "any"falsefalsefalse347), "attributes", [], "any"falsefalsefalse347), "get", ["_route"], "method"falsefalsefalse347), "route_params" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'347$this->source); })()), "request", [], "any"falsefalsefalse347), "attributes", [], "any"falsefalsefalse347), "get", ["_route_params"], "method"falsefalsefalse347)]), "html"nulltrue);
  2000.         yield "\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Escludi filtro\"><img class=\"icon_action icon_red\" src=\"";
  2001.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_delete"]) || array_key_exists("icon_delete"$context) ? $context["icon_delete"] : (function () { throw new RuntimeError('Variable "icon_delete" does not exist.'347$this->source); })())), "html"nulltrue);
  2002.         yield "\"></a></td>
  2003. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_100p\"><input type=\"text\" class=\"form-control daterange2creation font_12\" id=\"daterange2creation_";
  2004.         // line 348
  2005.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number"$context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.'348$this->source); })()), "html"nulltrue);
  2006.         yield "\" inputmode=\"search\" autocomplete=\"off\" name=\"datetimeCreation_2\" style=\"height: 38px\" date-filter=\"range\"/></td>
  2007. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_100p\"><input type=\"text\" class=\"form-control daterange2send font_12\" id=\"daterange2send_";
  2008.         // line 349
  2009.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number"$context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.'349$this->source); })()), "html"nulltrue);
  2010.         yield "\" inputmode=\"search\" autocomplete=\"off\" name=\"datetimeSend_2\" style=\"height: 38px\" date-filter=\"range\"/></td>
  2011. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_100p\"><input type=\"text\" class=\"form-control daterange2completion font_12\" id=\"daterange2completion_";
  2012.         // line 350
  2013.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number"$context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.'350$this->source); })()), "html"nulltrue);
  2014.         yield "\" inputmode=\"search\" autocomplete=\"off\" name=\"datetimeCompletion_2\" style=\"height: 38px\" date-filter=\"range\"/></td>
  2015. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_200p\"><input type=\"text\" class=\"form-control\" inputmode=\"search\" name=\"warehouseFrom_2\" value=\"";
  2016.         // line 351
  2017.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "warehouseFrom_2", [], "any"truetruefalse351)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "warehouseFrom_2", [], "any"falsefalsefalse351))) : ("")), "html"nulltrue);
  2018.         yield "\"/></td>
  2019. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_200p\"><input type=\"text\" class=\"form-control\" inputmode=\"search\" name=\"warehouseTo_2\" value=\"";
  2020.         // line 352
  2021.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "warehouseTo_2", [], "any"truetruefalse352)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "warehouseTo_2", [], "any"falsefalsefalse352))) : ("")), "html"nulltrue);
  2022.         yield "\"/></td>
  2023. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_80p\"><input type=\"text\" class=\"form-control\" inputmode=\"search\" name=\"ddt_2\" value=\"";
  2024.         // line 353
  2025.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "ddt_2", [], "any"truetruefalse353)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "ddt_2", [], "any"falsefalsefalse353))) : ("")), "html"nulltrue);
  2026.         yield "\"/></td>
  2027. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_100p\"><input type=\"text\" class=\"form-control\" inputmode=\"search\" name=\"stockOrder_2\" value=\"";
  2028.         // line 354
  2029.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "stockOrder_2", [], "any"truetruefalse354)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "stockOrder_2", [], "any"falsefalsefalse354))) : ("")), "html"nulltrue);
  2030.         yield "\"/></td>
  2031. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_20p\"><button type=\"submit\" class=\"btn bg_w f_left p_0p\" data-bs-toggle=\"tooltip\" title=\"Filtra\"><img class=\"icon_action icon_green\" src=\"";
  2032.         // line 355
  2033.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_search"]) || array_key_exists("icon_search"$context) ? $context["icon_search"] : (function () { throw new RuntimeError('Variable "icon_search" does not exist.'355$this->source); })())), "html"nulltrue);
  2034.         yield "\"></button></td>\t
  2035. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"filter_tab\" value=\"";
  2036.         // line 356
  2037.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["tabType"]) || array_key_exists("tabType"$context) ? $context["tabType"] : (function () { throw new RuntimeError('Variable "tabType" does not exist.'356$this->source); })()), "html"nulltrue);
  2038.         yield "\">
  2039. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_field_2\" type=\"hidden\" name=\"sortField_2\" value=\"";
  2040.         // line 357
  2041.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortField_2", [], "any"truetruefalse357)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortField_2", [], "any"falsefalsefalse357))) : ("")), "html"nulltrue);
  2042.         yield "\"/>
  2043. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_order_2\" type=\"hidden\" name=\"sortOrder_2\" value=\"";
  2044.         // line 358
  2045.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortOrder_2", [], "any"truetruefalse358)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortOrder_2", [], "any"falsefalsefalse358))) : ("")), "html"nulltrue);
  2046.         yield "\"/>
  2047. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
  2048. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  2049. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
  2050. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\" class=\"td_w_20p\"></th>
  2051. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\" class=\"td_w_100p v_a_m\">Fase<button type=\"button\" onClick=\"setOrderBy2('p.phase')\" data-orderField=\"p.phase\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  2052. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th colspan=\"3\" class=\"txt_a_c p_025rem\">Data/ora</th>
  2053. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\" class=\"v_a_m\">Mag. partenza<button type=\"button\" onClick=\"setOrderBy2('wf.nickname')\" data-orderField=\"wf.nickname\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  2054. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\" class=\"v_a_m\">Mag. arrivo<button type=\"button\" onClick=\"setOrderBy2('wt.nickname')\" data-orderField=\"wt.nickname\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  2055. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\" class=\"v_a_m txt_a_c\">DDT<button type=\"button\" onClick=\"setOrderBy2('p.ddt')\" data-orderField=\"p.ddt\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  2056. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\" class=\"v_a_m\">Stock order<button type=\"button\" onClick=\"setOrderBy2('p.stockOrder')\" data-orderField=\"p.stockOrder\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  2057. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\"></th>
  2058. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  2059. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
  2060. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"p_025rem txt_a_c\">Creazione<button type=\"button\" onClick=\"setOrderBy2('p.datetimeCreation')\" data-orderField=\"p.datetimeCreation\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  2061. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"p_025rem txt_a_c\">Invio<button type=\"button\" onClick=\"setOrderBy2('p.datetimeSend')\" data-orderField=\"p.datetimeSend\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  2062. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"p_025rem txt_a_c\">Completam";
  2063.         // line 374
  2064.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'374$this->source); })()), "user", [], "any"falsefalsefalse374), "getAccountTypology", [], "method"falsefalsefalse374) != "technician")) {
  2065.             yield "ento";
  2066.         }
  2067.         yield "<button type=\"button\" onClick=\"setOrderBy2('p.datetimeCompletion')\" data-orderField=\"p.datetimeCompletion\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  2068. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  2069. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
  2070. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
  2071. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2072.         // line 378
  2073.         if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["transfers"]) || array_key_exists("transfers"$context) ? $context["transfers"] : (function () { throw new RuntimeError('Variable "transfers" does not exist.'378$this->source); })())) > 0)) {
  2074.             // line 379
  2075.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2076.             $context['_parent'] = $context;
  2077.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["transfers"]) || array_key_exists("transfers"$context) ? $context["transfers"] : (function () { throw new RuntimeError('Variable "transfers" does not exist.'379$this->source); })()));
  2078.             foreach ($context['_seq'] as $context["_key"] => $context["pt"]) {
  2079.                 // line 380
  2080.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  2081. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\"><a href=\"";
  2082.                 // line 381
  2083.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_transfer_sheet", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'381$this->source); })()), "id", [], "any"falsefalsefalse381), "transferId" => CoreExtension::getAttribute($this->env$this->source$context["pt"], "id", [], "any"falsefalsefalse381)]), "html"nulltrue);
  2084.                 yield "\" data-bs-toggle=\"tooltip\" title=\"Scheda\"><img class=\"icon_action icon_pr\" src=\"";
  2085.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_sheet"]) || array_key_exists("icon_sheet"$context) ? $context["icon_sheet"] : (function () { throw new RuntimeError('Variable "icon_sheet" does not exist.'381$this->source); })())), "html"nulltrue);
  2086.                 yield "\"></a></td>
  2087. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  2088.                 // line 382
  2089.                 yield CoreExtension::getAttribute($this->env$this->source$context["pt"], "displayPhase", ["string"], "method"falsefalsefalse382);
  2090.                 yield "</td>
  2091. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">";
  2092.                 // line 383
  2093.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["pt"], "datetimeCreation", [], "any"falsefalsefalse383), "d-m-Y H:i"), "html"nulltrue);
  2094.                 yield "</td>
  2095. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">";
  2096.                 // line 384
  2097.                 if ((CoreExtension::getAttribute($this->env$this->source$context["pt"], "datetimeSend", [], "any"falsefalsefalse384) != null)) {
  2098.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["pt"], "datetimeSend", [], "any"falsefalsefalse384), "d-m-Y H:i"), "html"nulltrue);
  2099.                 } else {
  2100.                     yield "---";
  2101.                 }
  2102.                 yield "</td>
  2103. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">";
  2104.                 // line 385
  2105.                 if ((CoreExtension::getAttribute($this->env$this->source$context["pt"], "datetimeCompletion", [], "any"falsefalsefalse385) != null)) {
  2106.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["pt"], "datetimeCompletion", [], "any"falsefalsefalse385), "d-m-Y H:i"), "html"nulltrue);
  2107.                 } else {
  2108.                     yield "---";
  2109.                 }
  2110.                 yield "</td>
  2111. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  2112.                 // line 386
  2113.                 if ((CoreExtension::getAttribute($this->env$this->source$context["pt"], "warehouseFrom", [], "any"falsefalsefalse386) != null)) {
  2114.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pt"], "warehouseFrom", [], "any"falsefalsefalse386), "html"nulltrue);
  2115.                 } else {
  2116.                     yield "---";
  2117.                 }
  2118.                 yield "</td>
  2119. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  2120.                 // line 387
  2121.                 if ((CoreExtension::getAttribute($this->env$this->source$context["pt"], "warehouseTo", [], "any"falsefalsefalse387) != null)) {
  2122.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pt"], "warehouseTo", [], "any"falsefalsefalse387), "html"nulltrue);
  2123.                 } else {
  2124.                     yield "---";
  2125.                 }
  2126.                 yield "</td>
  2127. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">";
  2128.                 // line 388
  2129.                 if ((CoreExtension::getAttribute($this->env$this->source$context["pt"], "ddtPath", [], "any"falsefalsefalse388) != null)) {
  2130.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pt"], "ddt", [], "any"falsefalsefalse388), "html"nulltrue);
  2131.                 } else {
  2132.                     yield "---";
  2133.                 }
  2134.                 yield "</td>
  2135. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  2136.                 // line 389
  2137.                 if ((CoreExtension::getAttribute($this->env$this->source$context["pt"], "stockOrder", [], "any"falsefalsefalse389) != null)) {
  2138.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pt"], "stockOrder", [], "any"falsefalsefalse389), "html"nulltrue);
  2139.                 } else {
  2140.                     yield "---";
  2141.                 }
  2142.                 yield "</td>
  2143. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2144.                 // line 390
  2145.                 if ((((CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'390$this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'390$this->source); })()), "user", [], "any"falsefalsefalse390), "id", [], "any"falsefalsefalse390)], "method"falsefalsefalse390) != null) && (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'390$this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'390$this->source); })()), "user", [], "any"falsefalsefalse390), "id", [], "any"falsefalsefalse390)], "method"falsefalsefalse390), "permission", [], "any"falsefalsefalse390) == "RW")) || CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'390$this->source); })()), "user", [], "any"falsefalsefalse390), "canWrite", ["warehouse"], "method"falsefalsefalse390))) {
  2146.                     // line 391
  2147.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">
  2148. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2149.                     // line 392
  2150.                     if (((isset($context["tabType"]) || array_key_exists("tabType"$context) ? $context["tabType"] : (function () { throw new RuntimeError('Variable "tabType" does not exist.'392$this->source); })()) == "pt_incoming")) {
  2151.                         // line 393
  2152.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2153.                         if ((CoreExtension::getAttribute($this->env$this->source$context["pt"], "type", [], "any"falsefalsefalse393) == "destination")) {
  2154.                             // line 394
  2155.                             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript: transferDelete(";
  2156.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pt"], "id", [], "any"falsefalsefalse394), "html"nulltrue);
  2157.                             yield ")\" data-bs-toggle=\"tooltip\" title=\"Elimina trasferimento\"><img class=\"icon_action icon_red\" src=\"";
  2158.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_delete"]) || array_key_exists("icon_delete"$context) ? $context["icon_delete"] : (function () { throw new RuntimeError('Variable "icon_delete" does not exist.'394$this->source); })())), "html"nulltrue);
  2159.                             yield "\"></a>
  2160. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2161.                         }
  2162.                         // line 396
  2163.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2164.                     } elseif (((isset($context["tabType"]) || array_key_exists("tabType"$context) ? $context["tabType"] : (function () { throw new RuntimeError('Variable "tabType" does not exist.'396$this->source); })()) == "pt_output")) {
  2165.                         // line 397
  2166.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2167.                         if (CoreExtension::getAttribute($this->env$this->source$context["pt"], "hasProductsTransfered", [], "any"falsefalsefalse397)) {
  2168.                             // line 398
  2169.                             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript: void(0)\" data-bs-toggle=\"tooltip\" title=\"Impossibile eliminare, alcuni prodotti sono stati già trasferiti!\"><img class=\"icon_action icon_grey\" src=\"";
  2170.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_delete"]) || array_key_exists("icon_delete"$context) ? $context["icon_delete"] : (function () { throw new RuntimeError('Variable "icon_delete" does not exist.'398$this->source); })())), "html"nulltrue);
  2171.                             yield "\"></a>
  2172. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2173.                         } else {
  2174.                             // line 400
  2175.                             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript: transferDelete(";
  2176.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pt"], "id", [], "any"falsefalsefalse400), "html"nulltrue);
  2177.                             yield ")\" data-bs-toggle=\"tooltip\" title=\"Elimina trasferimento\"><img class=\"icon_action icon_red\" src=\"";
  2178.                             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_delete"]) || array_key_exists("icon_delete"$context) ? $context["icon_delete"] : (function () { throw new RuntimeError('Variable "icon_delete" does not exist.'400$this->source); })())), "html"nulltrue);
  2179.                             yield "\"></a>
  2180. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2181.                         }
  2182.                         // line 402
  2183.                         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2184.                     }
  2185.                     // line 403
  2186.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
  2187. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2188.                 }
  2189.                 // line 405
  2190.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  2191. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2192.             }
  2193.             $_parent $context['_parent'];
  2194.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pt'], $context['_parent'], $context['loop']);
  2195.             $context array_intersect_key($context$_parent) + $_parent;
  2196.             // line 407
  2197.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2198.         } else {
  2199.             // line 408
  2200.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2201.             yield from             $this->loadTemplate("components/twig/notice_no_values.html.twig""role/user/warehouse/sheet.html.twig"408)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessuno trasferimento in questo stato"]));
  2202.             // line 409
  2203.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2204.         }
  2205.         // line 410
  2206.         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
  2207. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
  2208. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  2209. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
  2210. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2211.         // line 414
  2212.         yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["transfers"]) || array_key_exists("transfers"$context) ? $context["transfers"] : (function () { throw new RuntimeError('Variable "transfers" does not exist.'414$this->source); })()));
  2213.         yield "
  2214. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  2215. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  2216. \t\t\t\t\t\t\t\t\t\t\t\t";
  2217.         
  2218.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  2219.         
  2220.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  2221.         return; yield '';
  2222.     }
  2223.     // line 515
  2224.     public function block_tableRequests($context, array $blocks = [])
  2225.     {
  2226.         $macros $this->macros;
  2227.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  2228.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""tableRequests"));
  2229.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2230.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""tableRequests"));
  2231.         // line 516
  2232.         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
  2233. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
  2234. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table class=\"table table-bordered table-hover responsive_font_size\">
  2235. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
  2236. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  2237. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<form method=\"get\" action=\"";
  2238.         // line 521
  2239.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_sheet", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'521$this->source); })()), "id", [], "any"falsefalsefalse521)]), "html"nulltrue);
  2240.         yield "\" id=\"formFilter_3\">
  2241. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p txt_a_c\"><a href=\"";
  2242.         // line 522
  2243.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("remove_filter", ["route" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'522$this->source); })()), "request", [], "any"falsefalsefalse522), "attributes", [], "any"falsefalsefalse522), "get", ["_route"], "method"falsefalsefalse522), "route_params" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'522$this->source); })()), "request", [], "any"falsefalsefalse522), "attributes", [], "any"falsefalsefalse522), "get", ["_route_params"], "method"falsefalsefalse522)]), "html"nulltrue);
  2244.         yield "\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Escludi filtro\"><img class=\"icon_action icon_red\" src=\"";
  2245.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_delete"]) || array_key_exists("icon_delete"$context) ? $context["icon_delete"] : (function () { throw new RuntimeError('Variable "icon_delete" does not exist.'522$this->source); })())), "html"nulltrue);
  2246.         yield "\"></a></td>
  2247. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_140p\"><input type=\"text\" class=\"form-control daterange3 font_12\" id=\"daterange3_";
  2248.         // line 523
  2249.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number"$context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.'523$this->source); })()), "html"nulltrue);
  2250.         yield "\" inputmode=\"search\" autocomplete=\"off\" name=\"date_3\" style=\"height: 38px\" date-filter=\"range\"/></td>
  2251. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><input type=\"text\" class=\"form-control\" inputmode=\"search\" name=\"technician_3\" value=\"";
  2252.         // line 524
  2253.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "technician_3", [], "any"truetruefalse524)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "technician_3", [], "any"falsefalsefalse524))) : ("")), "html"nulltrue);
  2254.         yield "\"/></td>
  2255. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><input type=\"text\" class=\"form-control\" inputmode=\"search\" name=\"warehouse_3\" value=\"";
  2256.         // line 525
  2257.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "warehouse_3", [], "any"truetruefalse525)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "warehouse_3", [], "any"falsefalsefalse525))) : ("")), "html"nulltrue);
  2258.         yield "\"/></td>
  2259. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"4\" class=\"td_action\"><button type=\"submit\" class=\"btn bg_w f_left p_0p\" data-bs-toggle=\"tooltip\" title=\"Filtra\"><img class=\"icon_green\" src=\"";
  2260.         // line 526
  2261.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_search"]) || array_key_exists("icon_search"$context) ? $context["icon_search"] : (function () { throw new RuntimeError('Variable "icon_search" does not exist.'526$this->source); })())), "html"nulltrue);
  2262.         yield "\"></button></td>\t
  2263. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"filter_tab\" value=\"";
  2264.         // line 527
  2265.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["tabType"]) || array_key_exists("tabType"$context) ? $context["tabType"] : (function () { throw new RuntimeError('Variable "tabType" does not exist.'527$this->source); })()), "html"nulltrue);
  2266.         yield "\">
  2267. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_field_3\" type=\"hidden\" name=\"sortField_3\" value=\"";
  2268.         // line 528
  2269.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortField_3", [], "any"truetruefalse528)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortField_3", [], "any"falsefalsefalse528))) : ("")), "html"nulltrue);
  2270.         yield "\"/>
  2271. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_order_3\" type=\"hidden\" name=\"sortOrder_3\" value=\"";
  2272.         // line 529
  2273.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortOrder_3", [], "any"truetruefalse529)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env$this->source, ($context["filters"] ?? null), "sortOrder_3", [], "any"falsefalsefalse529))) : ("")), "html"nulltrue);
  2274.         yield "\"/>
  2275. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
  2276. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  2277. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
  2278. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th colspan=\"2\" class=\"txt_a_c\">Data/Ora<button type=\"button\" onClick=\"setOrderBy3('pr.datetime')\" data-orderField=\"pr.datetime\" class=\"f_right filter_arrow_3\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  2279. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_200p\">Tecnico<button type=\"button\" onClick=\"setOrderBy3('p.surname')\" data-orderField=\"p.surname\" class=\"f_right filter_arrow_3\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  2280. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2281.         // line 535
  2282.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'535$this->source); })()), "headquarter", [], "any"falsefalsefalse535)) {
  2283.             // line 536
  2284.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_200p\">Mag. Tecnico<button type=\"button\" onClick=\"setOrderBy3('w.nickname')\" data-orderField=\"w.nickname\" class=\"f_right filter_arrow_3\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  2285. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2286.         } else {
  2287.             // line 538
  2288.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_200p\">Mag. Sede<button type=\"button\" onClick=\"setOrderBy3('wh.nickname')\" data-orderField=\"wh.nickname\" class=\"f_right filter_arrow_3\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  2289. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2290.         }
  2291.         // line 540
  2292.         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_500p\">Prodotti</th>
  2293. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_300p\">Note</th>
  2294. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_action\"></th>
  2295. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2296.         // line 543
  2297.         if (((((isset($context["tabAction"]) || array_key_exists("tabAction"$context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.'543$this->source); })()) == "delete") || ((isset($context["tabAction"]) || array_key_exists("tabAction"$context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.'543$this->source); })()) == "take_charge")) || ((isset($context["tabAction"]) || array_key_exists("tabAction"$context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.'543$this->source); })()) == "complete"))) {
  2298.             yield "<th colspan=\"2\"></th>";
  2299.         }
  2300.         // line 544
  2301.         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  2302. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
  2303. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
  2304. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2305.         // line 547
  2306.         if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["requests"]) || array_key_exists("requests"$context) ? $context["requests"] : (function () { throw new RuntimeError('Variable "requests" does not exist.'547$this->source); })())) > 0)) {
  2307.             // line 548
  2308.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2309.             $context['_parent'] = $context;
  2310.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["requests"]) || array_key_exists("requests"$context) ? $context["requests"] : (function () { throw new RuntimeError('Variable "requests" does not exist.'548$this->source); })()));
  2311.             foreach ($context['_seq'] as $context["_key"] => $context["pr"]) {
  2312.                 // line 549
  2313.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_warehouse_id\" value=\"";
  2314.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["pr"], "warehouse", [], "any"falsefalsefalse549), "id", [], "any"falsefalsefalse549), "html"nulltrue);
  2315.                 yield "\">
  2316. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_warehouse_nickname\" value=\"";
  2317.                 // line 550
  2318.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["pr"], "warehouse", [], "any"falsefalsefalse550), "nickname", [], "any"falsefalsefalse550), "html"nulltrue);
  2319.                 yield "\">
  2320. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_";
  2321.                 // line 551
  2322.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "id", [], "any"falsefalsefalse551), "html"nulltrue);
  2323.                 yield "_datetime\" value=\"";
  2324.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["pr"], "datetime", [], "any"falsefalsefalse551), "d-m-Y H:i"), "html"nulltrue);
  2325.                 yield "\">
  2326. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_";
  2327.                 // line 552
  2328.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "id", [], "any"falsefalsefalse552), "html"nulltrue);
  2329.                 yield "_technician\" value=\"";
  2330.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "technician", [], "any"falsefalsefalse552), "html"nulltrue);
  2331.                 yield "\">
  2332. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_";
  2333.                 // line 553
  2334.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "id", [], "any"falsefalsefalse553), "html"nulltrue);
  2335.                 yield "_warehouse\" value=\"";
  2336.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["pr"], "warehouse", [], "any"falsefalsefalse553), "nickname", [], "any"falsefalsefalse553), "html"nulltrue);
  2337.                 yield "\">
  2338. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_";
  2339.                 // line 554
  2340.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "id", [], "any"falsefalsefalse554), "html"nulltrue);
  2341.                 yield "_warehouse_headquarter\" value=\"";
  2342.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["pr"], "warehouseHeadquarter", [], "any"falsefalsefalse554), "nickname", [], "any"falsefalsefalse554), "html"nulltrue);
  2343.                 yield "\">
  2344. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_";
  2345.                 // line 555
  2346.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "id", [], "any"falsefalsefalse555), "html"nulltrue);
  2347.                 yield "_notes\" value=\"";
  2348.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "notes", [], "any"falsefalsefalse555), "html"nulltrue);
  2349.                 yield "\">
  2350. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  2351. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\" class=\"txt_a_c\">";
  2352.                 // line 557
  2353.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source$context["pr"], "datetime", [], "any"falsefalsefalse557), "d-m-Y H:i"), "html"nulltrue);
  2354.                 yield "</td>
  2355. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  2356.                 // line 558
  2357.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "technician", [], "any"falsefalsefalse558), "html"nulltrue);
  2358.                 yield "</td>
  2359. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2360.                 // line 559
  2361.                 if (CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'559$this->source); })()), "headquarter", [], "any"falsefalsefalse559)) {
  2362.                     // line 560
  2363.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  2364.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "warehouse", [], "any"falsefalsefalse560), "html"nulltrue);
  2365.                     yield "</td>
  2366. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2367.                 } else {
  2368.                     // line 562
  2369.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  2370.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "warehouseHeadquarter", [], "any"falsefalsefalse562), "html"nulltrue);
  2371.                     yield "</td>
  2372. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2373.                 }
  2374.                 // line 564
  2375.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  2376.                 yield CoreExtension::getAttribute($this->env$this->source$context["pr"], "displayDetails", [], "any"falsefalsefalse564);
  2377.                 yield "</td>
  2378. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
  2379.                 // line 565
  2380.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "notes", [], "any"falsefalsefalse565), "html"nulltrue);
  2381.                 yield "</td>
  2382. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_action\"><a href=\"javascript: productRequestSheet(";
  2383.                 // line 566
  2384.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "id", [], "any"falsefalsefalse566), "html"nulltrue);
  2385.                 yield ")\" data-bs-toggle=\"tooltip\" title=\"Scheda\"><img class=\"icon_pr\" src=\"";
  2386.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_sheet"]) || array_key_exists("icon_sheet"$context) ? $context["icon_sheet"] : (function () { throw new RuntimeError('Variable "icon_sheet" does not exist.'566$this->source); })())), "html"nulltrue);
  2387.                 yield "\"></a></td>
  2388. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2389.                 // line 567
  2390.                 if (((isset($context["tabAction"]) || array_key_exists("tabAction"$context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.'567$this->source); })()) == "delete")) {
  2391.                     // line 568
  2392.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_action\"><a href=\"javascript: productRequestDelete(";
  2393.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "id", [], "any"falsefalsefalse568), "html"nulltrue);
  2394.                     yield ")\" data-bs-toggle=\"tooltip\" title=\"Elimina\"><img class=\"icon_red\" src=\"";
  2395.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_delete"]) || array_key_exists("icon_delete"$context) ? $context["icon_delete"] : (function () { throw new RuntimeError('Variable "icon_delete" does not exist.'568$this->source); })())), "html"nulltrue);
  2396.                     yield "\"></a></td>
  2397. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2398.                 } elseif ((                // line 569
  2399. (isset($context["tabAction"]) || array_key_exists("tabAction"$context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.'569$this->source); })()) == "take_charge")) {
  2400.                     // line 570
  2401.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_action\"><a href=\"javascript: productRequestTakeCharge(";
  2402.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "id", [], "any"falsefalsefalse570), "html"nulltrue);
  2403.                     yield ")\" data-bs-toggle=\"tooltip\" title=\"Prendi in carico\"><img class=\"icon_green\" src=\"";
  2404.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_thumb_up"]) || array_key_exists("icon_thumb_up"$context) ? $context["icon_thumb_up"] : (function () { throw new RuntimeError('Variable "icon_thumb_up" does not exist.'570$this->source); })())), "html"nulltrue);
  2405.                     yield "\"></a></td>
  2406. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2407.                 } elseif ((                // line 571
  2408. (isset($context["tabAction"]) || array_key_exists("tabAction"$context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.'571$this->source); })()) == "complete")) {
  2409.                     // line 572
  2410.                     yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_action\"><a href=\"javascript: productRequestManaged(";
  2411.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["pr"], "id", [], "any"falsefalsefalse572), "html"nulltrue);
  2412.                     yield ")\" data-bs-toggle=\"tooltip\" title=\"Richiesta gestita\"><img class=\"icon_green\" src=\"";
  2413.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_select"]) || array_key_exists("icon_select"$context) ? $context["icon_select"] : (function () { throw new RuntimeError('Variable "icon_select" does not exist.'572$this->source); })())), "html"nulltrue);
  2414.                     yield "\"></a></td>
  2415. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2416.                 }
  2417.                 // line 574
  2418.                 yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  2419. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2420.             }
  2421.             $_parent $context['_parent'];
  2422.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pr'], $context['_parent'], $context['loop']);
  2423.             $context array_intersect_key($context$_parent) + $_parent;
  2424.             // line 576
  2425.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2426.         } else {
  2427.             // line 577
  2428.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2429.             yield from             $this->loadTemplate("components/twig/notice_no_values.html.twig""role/user/warehouse/sheet.html.twig"577)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessuna richiesta in questa fase"]));
  2430.             // line 578
  2431.             yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2432.         }
  2433.         // line 579
  2434.         yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
  2435. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
  2436. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  2437. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
  2438. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  2439.         // line 583
  2440.         yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["requests"]) || array_key_exists("requests"$context) ? $context["requests"] : (function () { throw new RuntimeError('Variable "requests" does not exist.'583$this->source); })()));
  2441.         yield "
  2442. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  2443. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  2444. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  2445.         
  2446.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  2447.         
  2448.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  2449.         return; yield '';
  2450.     }
  2451.     // line 1048
  2452.     public function block_modals($context, array $blocks = [])
  2453.     {
  2454.         $macros $this->macros;
  2455.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  2456.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""modals"));
  2457.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2458.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""modals"));
  2459.         // line 1049
  2460.         yield "\t";
  2461.         yield from         $this->loadTemplate("components/modals/filter_supplier.html.twig""role/user/warehouse/sheet.html.twig"1049)->unwrap()->yield(CoreExtension::merge($context, ["number" => 0"suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers"$context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.'1049$this->source); })())]));
  2462.         // line 1050
  2463.         yield "\t";
  2464.         yield from         $this->loadTemplate("components/modals/filter_supplier.html.twig""role/user/warehouse/sheet.html.twig"1050)->unwrap()->yield(CoreExtension::merge($context, ["number" => 1"suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers"$context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.'1050$this->source); })())]));
  2465.         // line 1051
  2466.         yield "\t";
  2467.         yield from         $this->loadTemplate("components/modals/filter_supplier.html.twig""role/user/warehouse/sheet.html.twig"1051)->unwrap()->yield(CoreExtension::merge($context, ["number" => 2"suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers"$context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.'1051$this->source); })())]));
  2468.         // line 1052
  2469.         yield "\t";
  2470.         yield from         $this->loadTemplate("components/modals/filter_supplier.html.twig""role/user/warehouse/sheet.html.twig"1052)->unwrap()->yield(CoreExtension::merge($context, ["number" => 3"suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers"$context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.'1052$this->source); })())]));
  2471.         // line 1053
  2472.         yield "
  2473. \t";
  2474.         // line 1055
  2475.         yield "\t";
  2476.         $context["editWarehouseModalBody"] = ('' === $tmp \Twig\Extension\CoreExtension::captureOutput((function () use (&$context$macros$blocks) {
  2477.             // line 1056
  2478.             yield "\t\t<input type=\"hidden\" id=\"warehouseEditId\" name=\"warehouseEditId\"/>
  2479. \t\t<div class=\"row\">
  2480. \t\t\t<div class=\"col-12 form-group\">
  2481. \t\t\t\t<label class=\"form_label\">Nome*</label>
  2482. \t\t\t\t<div ";
  2483.             // line 1060
  2484.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formEdit"]) || array_key_exists("formEdit"$context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.'1060$this->source); })()), "nickname", [], "any"falsefalsefalse1060), 'errors');
  2485.             yield ">
  2486. \t\t\t\t\t";
  2487.             // line 1061
  2488.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formEdit"]) || array_key_exists("formEdit"$context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.'1061$this->source); })()), "nickname", [], "any"falsefalsefalse1061), 'widget');
  2489.             yield "
  2490. \t\t\t\t</div>
  2491. \t\t\t</div>
  2492. \t\t\t<div class=\"col-12 form-group\">
  2493. \t\t\t\t<label class=\"form_label\">Indirizzo DDT*</label>
  2494. \t\t\t\t<div ";
  2495.             // line 1066
  2496.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formEdit"]) || array_key_exists("formEdit"$context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.'1066$this->source); })()), "address", [], "any"falsefalsefalse1066), 'errors');
  2497.             yield ">
  2498. \t\t\t\t\t";
  2499.             // line 1067
  2500.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formEdit"]) || array_key_exists("formEdit"$context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.'1067$this->source); })()), "address", [], "any"falsefalsefalse1067), 'widget');
  2501.             yield "
  2502. \t\t\t\t</div>
  2503. \t\t\t</div>
  2504. \t\t\t<div class=\"col-12 col-md-6 form-group\">
  2505. \t\t\t\t<label class=\"form_label\">Sede centrale</label>
  2506. \t\t\t\t<div ";
  2507.             // line 1072
  2508.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formEdit"]) || array_key_exists("formEdit"$context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.'1072$this->source); })()), "headquarter", [], "any"falsefalsefalse1072), 'errors');
  2509.             yield ">
  2510. \t\t\t\t\t<table class=\"m_none\">
  2511. \t\t\t\t\t\t<tr>
  2512. \t\t\t\t\t\t\t<td class=\"txt_a_l\"><label class=\"m_b_none m_r_10p l_s_none f_w_500\">No</label></td>
  2513. \t\t\t\t\t\t\t<td>";
  2514.             // line 1076
  2515.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formEdit"]) || array_key_exists("formEdit"$context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.'1076$this->source); })()), "headquarter", [], "any"falsefalsefalse1076), 'widget', ["attr" => ["class" => "switch-toggle switch-flat-mini switch-toggle-flat"]]);
  2516.             yield "<label class=\"m_auto\" for=\"";
  2517.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["formEdit"]) || array_key_exists("formEdit"$context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.'1076$this->source); })()), "headquarter", [], "any"falsefalsefalse1076), "vars", [], "any"falsefalsefalse1076), "id", [], "any"falsefalsefalse1076), "html"nulltrue);
  2518.             yield "\"></label></td>
  2519. \t\t\t\t\t\t\t<td class=\"txt_a_l\"><label class=\"m_b_none m_l_10p l_s_none f_w_500\">Sì</label></td>
  2520. \t\t\t\t\t\t</tr>
  2521. \t\t\t\t\t</table>
  2522. \t\t\t\t</div>
  2523. \t\t\t</div>
  2524. \t\t\t<div class=\"col-12 col-md-6 form-group\">
  2525. \t\t\t\t<label class=\"form_label\">Magazzino mobile</label>
  2526. \t\t\t\t<div ";
  2527.             // line 1084
  2528.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formEdit"]) || array_key_exists("formEdit"$context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.'1084$this->source); })()), "movable", [], "any"falsefalsefalse1084), 'errors');
  2529.             yield ">
  2530. \t\t\t\t\t<table class=\"m_none\">
  2531. \t\t\t\t\t\t<tr>
  2532. \t\t\t\t\t\t\t<td class=\"txt_a_l\"><label class=\"m_b_none m_r_10p l_s_none f_w_500\">No</label></td>
  2533. \t\t\t\t\t\t\t<td>";
  2534.             // line 1088
  2535.             yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env$this->source, (isset($context["formEdit"]) || array_key_exists("formEdit"$context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.'1088$this->source); })()), "movable", [], "any"falsefalsefalse1088), 'widget', ["attr" => ["class" => "switch-toggle switch-flat-mini switch-toggle-flat"]]);
  2536.             yield "<label class=\"m_auto\" for=\"";
  2537.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["formEdit"]) || array_key_exists("formEdit"$context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.'1088$this->source); })()), "movable", [], "any"falsefalsefalse1088), "vars", [], "any"falsefalsefalse1088), "id", [], "any"falsefalsefalse1088), "html"nulltrue);
  2538.             yield "\"></label></td>
  2539. \t\t\t\t\t\t\t<td class=\"txt_a_l\"><label class=\"m_b_none m_l_10p l_s_none f_w_500\">Sì</label></td>
  2540. \t\t\t\t\t\t</tr>
  2541. \t\t\t\t\t</table>
  2542. \t\t\t\t</div>
  2543. \t\t\t</div>
  2544. \t\t</div>
  2545. \t";
  2546.             return; yield '';
  2547.         })())) ? '' : new Markup($tmp$this->env->getCharset());
  2548.         // line 1096
  2549.         yield "\t";
  2550.         $context["editWarehouseScriptBody"] = ('' === $tmp \Twig\Extension\CoreExtension::captureOutput((function () use (&$context$macros$blocks) {
  2551.             return; yield '';
  2552.         })())) ? '' : new Markup($tmp$this->env->getCharset());
  2553.         // line 1097
  2554.         yield "\t";
  2555.         yield from         $this->loadTemplate("components/modals/edit.html.twig""role/user/warehouse/sheet.html.twig"1097)->unwrap()->yield(CoreExtension::merge($context, ["type" => "warehouse""form" => (isset($context["formEdit"]) || array_key_exists("formEdit"$context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.'1097$this->source); })()), "text" => "Magazzino""modalBody" => (isset($context["editWarehouseModalBody"]) || array_key_exists("editWarehouseModalBody"$context) ? $context["editWarehouseModalBody"] : (function () { throw new RuntimeError('Variable "editWarehouseModalBody" does not exist.'1097$this->source); })()), "scriptBody" => (isset($context["editWarehouseScriptBody"]) || array_key_exists("editWarehouseScriptBody"$context) ? $context["editWarehouseScriptBody"] : (function () { throw new RuntimeError('Variable "editWarehouseScriptBody" does not exist.'1097$this->source); })()), "openModal" => "openEditModal""id" => ""]));
  2556.         
  2557.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  2558.         
  2559.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  2560.         return; yield '';
  2561.     }
  2562.     // line 1100
  2563.     public function block_javascripts($context, array $blocks = [])
  2564.     {
  2565.         $macros $this->macros;
  2566.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  2567.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  2568.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2569.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  2570.         // line 1101
  2571.         yield from $this->yieldParentBlock("javascripts"$context$blocks);
  2572.         yield "
  2573. ";
  2574.         // line 1102
  2575.         yield from         $this->loadTemplate("components/js/upload_file_js.html.twig""role/user/warehouse/sheet.html.twig"1102)->unwrap()->yield(CoreExtension::merge($context, ["number" => "1""file" => "form_transfer_receive_file""path" => "form_transfer_receive_ddtPath"]));
  2576.         // line 1103
  2577.         yield from         $this->loadTemplate("components/js/upload_file_js.html.twig""role/user/warehouse/sheet.html.twig"1103)->unwrap()->yield(CoreExtension::merge($context, ["number" => "2""file" => "form_import_inventory_file""path" => "form_import_inventory_path"]));
  2578.         // line 1104
  2579.         yield from         $this->loadTemplate("components/js/sort_js.html.twig""role/user/warehouse/sheet.html.twig"1104)->unwrap()->yield(CoreExtension::merge($context, ["number" => 0"actualSortField" => CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1104$this->source); })()), "sortField_0", [], "any"falsefalsefalse1104), "actualSortOrder" => CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1104$this->source); })()), "sortOrder_0", [], "any"falsefalsefalse1104), "sort_field" => "sort_field_0""sort_order" => "sort_order_0""formName" => "formFilter_0""arrowClass" => "filter_arrow_0"]));
  2580.         // line 1105
  2581.         yield from         $this->loadTemplate("components/js/sort_js.html.twig""role/user/warehouse/sheet.html.twig"1105)->unwrap()->yield(CoreExtension::merge($context, ["number" => 1"actualSortField" => CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1105$this->source); })()), "sortField_1", [], "any"falsefalsefalse1105), "actualSortOrder" => CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1105$this->source); })()), "sortOrder_1", [], "any"falsefalsefalse1105), "sort_field" => "sort_field_1""sort_order" => "sort_order_1""formName" => "formFilter_1""arrowClass" => "filter_arrow_1"]));
  2582.         // line 1106
  2583.         yield from         $this->loadTemplate("components/js/sort_js.html.twig""role/user/warehouse/sheet.html.twig"1106)->unwrap()->yield(CoreExtension::merge($context, ["number" => 2"actualSortField" => CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1106$this->source); })()), "sortField_2", [], "any"falsefalsefalse1106), "actualSortOrder" => CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1106$this->source); })()), "sortOrder_2", [], "any"falsefalsefalse1106), "sort_field" => "sort_field_2""sort_order" => "sort_order_2""formName" => "formFilter_2""arrowClass" => "filter_arrow_2"]));
  2584.         // line 1107
  2585.         yield from         $this->loadTemplate("components/js/sort_js.html.twig""role/user/warehouse/sheet.html.twig"1107)->unwrap()->yield(CoreExtension::merge($context, ["number" => 3"actualSortField" => CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1107$this->source); })()), "sortField_3", [], "any"falsefalsefalse1107), "actualSortOrder" => CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1107$this->source); })()), "sortOrder_3", [], "any"falsefalsefalse1107), "sort_field" => "sort_field_3""sort_order" => "sort_order_3""formName" => "formFilter_3""arrowClass" => "filter_arrow_3"]));
  2586.         // line 1108
  2587.         yield from         $this->loadTemplate("components/js/filter_supplier_js.html.twig""role/user/warehouse/sheet.html.twig"1108)->unwrap()->yield(CoreExtension::merge($context, ["number" => 0"suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers"$context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.'1108$this->source); })()), "filterSupplier" => CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1108$this->source); })()), "supplier_0", [], "any"falsefalsefalse1108)]));
  2588.         // line 1109
  2589.         yield from         $this->loadTemplate("components/js/filter_supplier_js.html.twig""role/user/warehouse/sheet.html.twig"1109)->unwrap()->yield(CoreExtension::merge($context, ["number" => 1"suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers"$context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.'1109$this->source); })()), "filterSupplier" => CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1109$this->source); })()), "supplier_1", [], "any"falsefalsefalse1109)]));
  2590.         // line 1110
  2591.         yield from         $this->loadTemplate("components/js/filter_supplier_js.html.twig""role/user/warehouse/sheet.html.twig"1110)->unwrap()->yield(CoreExtension::merge($context, ["number" => 2"suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers"$context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.'1110$this->source); })()), "filterSupplier" => CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1110$this->source); })()), "supplier_1", [], "any"falsefalsefalse1110)]));
  2592.         // line 1111
  2593.         yield from         $this->loadTemplate("components/js/filter_supplier_js.html.twig""role/user/warehouse/sheet.html.twig"1111)->unwrap()->yield(CoreExtension::merge($context, ["number" => 3"suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers"$context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.'1111$this->source); })()), "filterSupplier" => CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1111$this->source); })()), "supplier_1", [], "any"falsefalsefalse1111)]));
  2594.         // line 1112
  2595.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1112)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange1last_1""format" => "DD-MM-YYYY HH:mm"]));
  2596.         // line 1113
  2597.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1113)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange1last_2""format" => "DD-MM-YYYY HH:mm"]));
  2598.         // line 1114
  2599.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1114)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange1last_3""format" => "DD-MM-YYYY HH:mm"]));
  2600.         // line 1115
  2601.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1115)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2creation_1""format" => "DD-MM-YYYY HH:mm"]));
  2602.         // line 1116
  2603.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1116)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2send_1""format" => "DD-MM-YYYY HH:mm"]));
  2604.         // line 1117
  2605.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1117)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2completion_1""format" => "DD-MM-YYYY HH:mm"]));
  2606.         // line 1118
  2607.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1118)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2creation_2""format" => "DD-MM-YYYY HH:mm"]));
  2608.         // line 1119
  2609.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1119)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2send_2""format" => "DD-MM-YYYY HH:mm"]));
  2610.         // line 1120
  2611.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1120)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2completion_2""format" => "DD-MM-YYYY HH:mm"]));
  2612.         // line 1121
  2613.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1121)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2creation_3""format" => "DD-MM-YYYY HH:mm"]));
  2614.         // line 1122
  2615.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1122)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2send_3""format" => "DD-MM-YYYY HH:mm"]));
  2616.         // line 1123
  2617.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1123)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2completion_3""format" => "DD-MM-YYYY HH:mm"]));
  2618.         // line 1124
  2619.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1124)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange3_1""format" => "DD-MM-YYYY HH:mm"]));
  2620.         // line 1125
  2621.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1125)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange3_2""format" => "DD-MM-YYYY HH:mm"]));
  2622.         // line 1126
  2623.         yield from         $this->loadTemplate("components/js/daterangepicker_js.html.twig""role/user/warehouse/sheet.html.twig"1126)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange3_3""format" => "DD-MM-YYYY HH:mm"]));
  2624.         // line 1127
  2625.         yield "<script>
  2626. \t\$(document).ready(function(){
  2627. \t\t// Inventory
  2628. \t\t";
  2629.         // line 1130
  2630.         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1130$this->source); })()), "session", [], "any"falsefalsefalse1130), "get", ["openStockInventoryModal"], "method"falsefalsefalse1130)) {
  2631.             // line 1131
  2632.             yield "\t\t\tstockInventory();
  2633. \t\t\t";
  2634.             // line 1132
  2635.             CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1132$this->source); })()), "session", [], "any"falsefalsefalse1132), "remove", ["openStockInventoryModal"], "method"falsefalsefalse1132);
  2636.             // line 1133
  2637.             yield "\t\t";
  2638.         }
  2639.         // line 1134
  2640.         yield "\t\t// Receive
  2641. \t\t";
  2642.         // line 1135
  2643.         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1135$this->source); })()), "session", [], "any"falsefalsefalse1135), "get", ["openTransferReceiveModal"], "method"falsefalsefalse1135)) {
  2644.             // line 1136
  2645.             yield "\t\t\ttransferReceive();
  2646. \t\t\t";
  2647.             // line 1137
  2648.             CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1137$this->source); })()), "session", [], "any"falsefalsefalse1137), "remove", ["openTransferReceiveModal"], "method"falsefalsefalse1137);
  2649.             // line 1138
  2650.             yield "\t\t";
  2651.         }
  2652.         // line 1139
  2653.         yield "\t\t// Invia
  2654. \t\t";
  2655.         // line 1140
  2656.         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1140$this->source); })()), "session", [], "any"falsefalsefalse1140), "get", ["openTransferSendModal"], "method"falsefalsefalse1140)) {
  2657.             // line 1141
  2658.             yield "\t\t\ttransferSend();
  2659. \t\t\t";
  2660.             // line 1142
  2661.             CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1142$this->source); })()), "session", [], "any"falsefalsefalse1142), "remove", ["openTransferSendModal"], "method"falsefalsefalse1142);
  2662.             // line 1143
  2663.             yield "\t\t";
  2664.         }
  2665.         // line 1144
  2666.         yield "\t\t";
  2667.         if (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1144$this->source); })()), "session", [], "any"falsefalsefalse1144), "get", ["transferStocksIds"], "method"falsefalsefalse1144)) {
  2668.             // line 1145
  2669.             yield "\t\t\t";
  2670.             CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1145$this->source); })()), "session", [], "any"falsefalsefalse1145), "remove", ["transferStocksIds"], "method"falsefalsefalse1145);
  2671.             // line 1146
  2672.             yield "\t\t";
  2673.         }
  2674.         // line 1147
  2675.         yield "
  2676. \t\tvar dateRanges1last = document.getElementsByClassName('daterange1last');
  2677. \t\t";
  2678.         // line 1149
  2679.         if (((CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1149$this->source); })()), "dateLastTransfer_1", [], "any"falsefalsefalse1149) != null) && (CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1149$this->source); })()), "dateLastTransfer_1", [], "any"falsefalsefalse1149) != ""))) {
  2680.             // line 1150
  2681.             yield "\t\t\tfor(i=0; i<dateRanges1last.length; i++){
  2682. \t\t\t\tdateRanges1last[i].value = \"";
  2683.             // line 1151
  2684.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1151$this->source); })()), "dateLastTransfer_1", [], "any"falsefalsefalse1151), "html"nulltrue);
  2685.             yield "\";
  2686. \t\t\t}
  2687. \t\t";
  2688.         } else {
  2689.             // line 1154
  2690.             yield "\t\t\tfor(i=0; i<dateRanges1last.length; i++){
  2691. \t\t\t\tdateRanges1last[i].value = \"\";
  2692. \t\t\t}
  2693. \t\t";
  2694.         }
  2695.         // line 1158
  2696.         yield "
  2697. \t\tvar dateRanges2creation = document.getElementsByClassName('daterange2creation');
  2698. \t\t";
  2699.         // line 1160
  2700.         if (((CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1160$this->source); })()), "datetimeCreation_2", [], "any"falsefalsefalse1160) != null) && (CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1160$this->source); })()), "datetimeCreation_2", [], "any"falsefalsefalse1160) != ""))) {
  2701.             // line 1161
  2702.             yield "\t\t\tfor(i=0; i<dateRanges2creation.length; i++){
  2703. \t\t\t\tdateRanges2creation[i].value = \"";
  2704.             // line 1162
  2705.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1162$this->source); })()), "datetimeCreation_2", [], "any"falsefalsefalse1162), "html"nulltrue);
  2706.             yield "\";
  2707. \t\t\t}
  2708. \t\t";
  2709.         } else {
  2710.             // line 1165
  2711.             yield "\t\t\tfor(i=0; i<dateRanges2creation.length; i++){
  2712. \t\t\t\tdateRanges2creation[i].value = \"\";
  2713. \t\t\t}
  2714. \t\t";
  2715.         }
  2716.         // line 1169
  2717.         yield "\t\t
  2718. \t\tvar dateRanges2send = document.getElementsByClassName('daterange2send');
  2719. \t\t";
  2720.         // line 1171
  2721.         if (((CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1171$this->source); })()), "datetimeSend_2", [], "any"falsefalsefalse1171) != null) && (CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1171$this->source); })()), "datetimeSend_2", [], "any"falsefalsefalse1171) != ""))) {
  2722.             // line 1172
  2723.             yield "\t\t\tfor(i=0; i<dateRanges2send.length; i++){
  2724. \t\t\t\tdateRanges2send[i].value = \"";
  2725.             // line 1173
  2726.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1173$this->source); })()), "datetimeSend_2", [], "any"falsefalsefalse1173), "html"nulltrue);
  2727.             yield "\";
  2728. \t\t\t}
  2729. \t\t";
  2730.         } else {
  2731.             // line 1176
  2732.             yield "\t\t\tfor(i=0; i<dateRanges2send.length; i++){
  2733. \t\t\t\tdateRanges2send[i].value = \"\";
  2734. \t\t\t}
  2735. \t\t";
  2736.         }
  2737.         // line 1180
  2738.         yield "\t\t
  2739. \t\tvar dateRanges2completion = document.getElementsByClassName('daterange2completion');
  2740. \t\t";
  2741.         // line 1182
  2742.         if (((CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1182$this->source); })()), "datetimeCompletion_2", [], "any"falsefalsefalse1182) != null) && (CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1182$this->source); })()), "datetimeCompletion_2", [], "any"falsefalsefalse1182) != ""))) {
  2743.             // line 1183
  2744.             yield "\t\t\tfor(i=0; i<dateRanges2completion.length; i++){
  2745. \t\t\t\tdateRanges2completion[i].value = \"";
  2746.             // line 1184
  2747.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1184$this->source); })()), "datetimeCompletion_2", [], "any"falsefalsefalse1184), "html"nulltrue);
  2748.             yield "\";
  2749. \t\t\t}
  2750. \t\t";
  2751.         } else {
  2752.             // line 1187
  2753.             yield "\t\t\tfor(i=0; i<dateRanges2completion.length; i++){
  2754. \t\t\t\tdateRanges2completion[i].value = \"\";
  2755. \t\t\t}
  2756. \t\t";
  2757.         }
  2758.         // line 1191
  2759.         yield "
  2760. \t\tvar dateRanges3 = document.getElementsByClassName('daterange3');
  2761. \t\t";
  2762.         // line 1193
  2763.         if (((CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1193$this->source); })()), "date_3", [], "any"falsefalsefalse1193) != null) && (CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1193$this->source); })()), "date_3", [], "any"falsefalsefalse1193) != ""))) {
  2764.             // line 1194
  2765.             yield "\t\t\tfor(i=0; i<dateRanges3.length; i++){
  2766. \t\t\t\tdateRanges3[i].value = \"";
  2767.             // line 1195
  2768.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["filters"]) || array_key_exists("filters"$context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.'1195$this->source); })()), "date_3", [], "any"falsefalsefalse1195), "html"nulltrue);
  2769.             yield "\";
  2770. \t\t\t}
  2771. \t\t";
  2772.         } else {
  2773.             // line 1198
  2774.             yield "\t\t\tfor(i=0; i<dateRanges3.length; i++){
  2775. \t\t\t\tdateRanges3[i].value = \"\";
  2776. \t\t\t}
  2777. \t\t";
  2778.         }
  2779.         // line 1202
  2780.         yield "\t});
  2781. \tfunction selectAll(index, tab){
  2782. \t\tvar checkboxes = document.getElementsByClassName('stock_' + index + '_checkbox');
  2783. \t\tvar isSelect = document.getElementById('stock_' + index + '_all_checkboxes').checked;
  2784. \t\tfor(i=0; i<checkboxes.length; i++)
  2785. \t\t\tcheckboxes[i].checked = isSelect;
  2786. \t\tupdateButtons(index, tab);
  2787. \t}
  2788. \t
  2789. \tfunction updateButtons(index, tab){
  2790. \t\tvar inputSelectAll = document.getElementById('stock_' + index + '_all_checkboxes');
  2791. \t\tvar checkboxes = document.getElementsByClassName('stock_' + index + '_checkbox');
  2792. \t\tvar buttonCondition = document.getElementById('button_' + index + '_condition');
  2793. \t\tif(tab == 's_to_manage')
  2794. \t\t\tvar buttonManaged = document.getElementById('button_' + index + '_managed');
  2795. \t\t";
  2796.         // line 1218
  2797.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1218$this->source); })()), "user", [], "any"falsefalsefalse1218), "getAccountTypology", [], "any"falsefalsefalse1218) != "technician")) {
  2798.             // line 1219
  2799.             yield "\t\t\tif(tab == 's_to_manage' || tab == 's_available' || tab == 's_not_available')
  2800. \t\t\t\tvar buttonSupplier = document.getElementById('button_' + index + '_supplier');
  2801. \t\t";
  2802.         }
  2803.         // line 1222
  2804.         yield "\t\tif(tab == 's_available' || tab == 's_not_available')
  2805. \t\t\tvar buttonSend = document.getElementById('button_' + index + '_send');
  2806. \t\tvar isAllSelected = true;
  2807. \t\tconst array = [];
  2808. \t\tfor(i=0; i<checkboxes.length; i++){
  2809. \t\t\tif(checkboxes[i].checked){
  2810. \t\t\t\tarray.push(checkboxes[i].value);
  2811. \t\t\t}
  2812. \t\t\telse
  2813. \t\t\t\tisAllSelected = false;
  2814. \t\t}
  2815. \t\t
  2816. \t\tif(!isAllSelected)
  2817. \t\t\tinputSelectAll.checked = false;
  2818. \t\t
  2819. \t\tif(array.length > 0){
  2820. \t\t\tbuttonCondition.className = \"button button-3d button-mini button-green f_right m_b_10p\";
  2821. \t\t\tbuttonCondition.href = \"javascript: sendAction('condition', \" + index + \", '\" + tab + \"')\";
  2822. \t\t\tif(tab == 's_to_manage'){
  2823. \t\t\t\tbuttonManaged.className = \"button button-3d button-mini button-green f_right m_b_10p\";
  2824. \t\t\t\tbuttonManaged.href = \"javascript: sendAction('managed', \" + index + \", '\" + tab + \"')\";
  2825. \t\t\t}
  2826. \t\t\t";
  2827.         // line 1245
  2828.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1245$this->source); })()), "user", [], "any"falsefalsefalse1245), "getAccountTypology", [], "any"falsefalsefalse1245) != "technician")) {
  2829.             // line 1246
  2830.             yield "\t\t\t\tif(tab == 's_to_manage' || tab == 's_available' || tab == 's_not_available'){
  2831. \t\t\t\t\tbuttonSupplier.className = \"button button-3d button-mini button-green f_right m_b_10p\";
  2832. \t\t\t\t\tbuttonSupplier.href = \"javascript: sendAction('supplier', \" + index + \", '\" + tab + \"')\";
  2833. \t\t\t\t}
  2834. \t\t\t";
  2835.         }
  2836.         // line 1251
  2837.         yield "\t\t\tif(tab == 's_available' || tab == 's_not_available'){
  2838. \t\t\t\tbuttonSend.className = \"button button-3d button-mini button-green f_right m_b_10p\";
  2839. \t\t\t\tbuttonSend.href = \"javascript: sendAction('send', \" + index + \", '\" + tab + \"')\";
  2840. \t\t\t}
  2841. \t\t}
  2842. \t\telse{
  2843. \t\t\tbuttonCondition.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
  2844. \t\t\tbuttonCondition.href = \"javascript: void(0)\";
  2845. \t\t\tif(tab == 's_to_manage'){
  2846. \t\t\t\tbuttonManaged.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
  2847. \t\t\t\tbuttonManaged.href = \"javascript: void(0)\";
  2848. \t\t\t}
  2849. \t\t\t";
  2850.         // line 1263
  2851.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1263$this->source); })()), "user", [], "any"falsefalsefalse1263), "getAccountTypology", [], "any"falsefalsefalse1263) != "technician")) {
  2852.             // line 1264
  2853.             yield "\t\t\t\tif(tab == 's_to_manage' || tab == 's_available' || tab == 's_not_available'){
  2854. \t\t\t\t\tbuttonSupplier.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
  2855. \t\t\t\t\tbuttonSupplier.href = \"javascript: void(0)\";
  2856. \t\t\t\t}
  2857. \t\t\t";
  2858.         }
  2859.         // line 1269
  2860.         yield "\t\t\tif(tab == 's_available' || tab == 's_not_available'){
  2861. \t\t\t\tbuttonSend.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
  2862. \t\t\t\tbuttonSend.href = \"javascript: void(0)\";
  2863. \t\t\t}
  2864. \t\t}
  2865. \t}
  2866. \tfunction sendAction(action, index, tab){
  2867. \t\tvar checkboxes = document.getElementsByClassName('stock_' + index + '_checkbox');
  2868. \t\tconst array = [];
  2869. \t\tfor(i=0; i<checkboxes.length; i++){
  2870. \t\t\tif(checkboxes[i].checked)
  2871. \t\t\t\tarray.push(checkboxes[i].value);
  2872. \t\t}
  2873. \t\tswitch(action){
  2874. \t\t\tcase 'managed':
  2875. \t\t\t\tdocument.getElementById('managedStocksIds').value = array;
  2876. \t\t\t\tdocument.getElementById('managedAction').value = action;
  2877. \t\t\t\t\$('#stockManagedModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  2878. \t\t\t\tbreak;
  2879. \t\t\tcase 'supplier':
  2880. \t\t\t\tvar checkboxes = document.getElementsByClassName('supplier_checkboxes');
  2881. \t\t\t\tfor(i=0; i<checkboxes.length; i++){
  2882. \t\t\t\t\tcheckboxes[i].removeAttribute(\"checked\");
  2883. \t\t\t\t\tcheckboxes[i].checked = false;
  2884. \t\t\t\t}
  2885. \t\t\t\tdocument.getElementById('supplierStocksIds').value = array;
  2886. \t\t\t\tdocument.getElementById('supplierAction').value = action;
  2887. \t\t\t\t\$('#stockSupplierModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  2888. \t\t\t\tbreak;
  2889. \t\t\tcase 'condition':
  2890. \t\t\t\tdocument.getElementById('conditionAction').value = action;
  2891. \t\t\t\tdocument.getElementById('conditionStocksIds').value = array;
  2892. \t\t\t\tswitch(index){
  2893. \t\t\t\t\tcase 0: document.getElementById('stockTab').value = 'to_manage'; break;
  2894. \t\t\t\t\tcase 1: document.getElementById('stockTab').value = 'available'; break;
  2895. \t\t\t\t\tcase 2: document.getElementById('stockTab').value = 'not_available'; break;
  2896. \t\t\t\t\tdefault: break;
  2897. \t\t\t\t}
  2898. \t\t\t\t\$('#stockConditionModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  2899. \t\t\t\tbreak;
  2900. \t\t\tcase 'send':
  2901. \t\t\t\tvar a = document.getElementById('a_send_technician');
  2902. \t\t\t\tif(tab == 's_not_available'){
  2903. \t\t\t\t\ta.href = \"javascript: void(0)\";
  2904. \t\t\t\t\ta.className = \"button button-3d button-mini button-grey width_200p txt_a_c\";
  2905. \t\t\t\t}
  2906. \t\t\t\telse{
  2907. \t\t\t\t\ta.href = \"javascript: transferSendSetType('technician')\";
  2908. \t\t\t\t\ta.className = \"button button-3d button-mini button-pr width_200p txt_a_c\";
  2909. \t\t\t\t}
  2910. \t\t\t\tdocument.getElementById('form_transfer_send_sendStocksIds').value = array;
  2911. \t\t\t\ttransferSend();
  2912. \t\t\t\tbreak;
  2913. \t\t\tdefault: break;
  2914. \t\t}
  2915. \t}
  2916. \tfunction checkSubmit(action){
  2917. \t\tswitch(action){
  2918. \t\t\tcase 'managed':
  2919. \t\t\t\ttriggerLoading();
  2920. \t\t\t\t\$('#formManaged').submit();
  2921. \t\t\t\tbreak;
  2922. \t\t\tcase 'supplier':
  2923. \t\t\t\tvar valid = false;
  2924. \t\t\t\tvar checkboxes = document.getElementsByClassName('supplier_checkboxes');
  2925. \t\t\t\tfor(i=0; i<checkboxes.length; i++){
  2926. \t\t\t\t\tif(checkboxes[i].checked){
  2927. \t\t\t\t\t\tvalid = true;
  2928. \t\t\t\t\t\tbreak;
  2929. \t\t\t\t\t}
  2930. \t\t\t\t}
  2931. \t\t\t\tif(valid){
  2932. \t\t\t\t\ttriggerLoading();
  2933. \t\t\t\t\t\$('#formSupplier').submit();
  2934. \t\t\t\t}
  2935. \t\t\t\telse{
  2936. \t\t\t\t\tvar divError = document.getElementById('divErrorSupplier');
  2937. \t\t\t\t\tdivError.className = 'error';
  2938. \t\t\t\t\tdivError.children[0].setAttribute('data-bs-toggle', 'tooltip');
  2939. \t\t\t\t\tdivError.children[0].setAttribute('title', 'Campo obbligatorio');
  2940. \t\t\t\t}
  2941. \t\t\t\tbreak;
  2942. \t\t\tcase 'condition':
  2943. \t\t\t\tif(document.getElementById('select_product_condition').value != 0){
  2944. \t\t\t\t\ttriggerLoading();
  2945. \t\t\t\t\t\$('#formCondition').submit();
  2946. \t\t\t\t}
  2947. \t\t\t\telse{
  2948. \t\t\t\t\tvar divError = document.getElementById('divErrorCondition');
  2949. \t\t\t\t\tdivError.className = 'error';
  2950. \t\t\t\t\tdivError.children[0].setAttribute('data-bs-toggle', 'tooltip');
  2951. \t\t\t\t\tdivError.children[0].setAttribute('title', 'Campo obbligatorio');
  2952. \t\t\t\t}
  2953. \t\t\t\tbreak;
  2954. \t\t\tdefault: break;
  2955. \t\t}
  2956. \t\t\$('[data-bs-toggle=\"tooltip\"]').tooltip();
  2957. \t}
  2958. \tfunction stockInventory(){
  2959. \t\t\$('#stockInventoryModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  2960. \t}
  2961. \t// RICEVI MATERIALE
  2962. \t\$('#form_transfer_receive_date').datepicker({ autoclose: true, todayHighlight: true, format: \"dd-mm-yyyy\", startDate: \"today\" });
  2963.     function transferReceive(){
  2964.         \$('#transferReceiveModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  2965.     }
  2966. \tfunction tranferReceiveShowHideDDT(){
  2967. \t\tif(document.getElementById('form_transfer_receive_ddtMandatory').checked == true){
  2968. \t\t\tdocument.getElementById('row_receive_ddt').style.display = 'flex';
  2969. \t\t}
  2970. \t\telse{
  2971. \t\t\tdocument.getElementById('row_receive_ddt').style.display = 'none';
  2972. \t\t}
  2973. \t}
  2974. \t// INVIA MATERIALE
  2975. \t\$('#form_transfer_send_date').datepicker({ autoclose: true, todayHighlight: true, format: \"dd-mm-yyyy\", startDate: \"today\" });
  2976.     function transferSend(){
  2977. \t\tdocument.getElementById('form_transfer_send_productRequestId').value = '';
  2978. \t\tdocument.getElementById('row_select_type').style.display = 'flex';
  2979. \t\tdocument.getElementById('row_warehouse_select').style.display = 'block';
  2980. \t\tdocument.getElementById('row_warehouse_selected').style.display = 'none';
  2981. \t\tdocument.getElementById('row_send_data').className = 'row m_t_30p';
  2982.         \$('#transferSendModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  2983.     }
  2984. \t
  2985. \tfunction transferSendSetType(type){
  2986. \t\tdocument.getElementById('form_transfer_send_type').value = type;
  2987. \t\t\$.post('";
  2988.         // line 1405
  2989.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_transfer_update_warehouses", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'1405$this->source); })()), "id", [], "any"falsefalsefalse1405)]), "html"nulltrue);
  2990.         yield "', {type: type}, function(response){ 
  2991. \t\t\tif(response.code == 200 && response.success){
  2992. \t\t\t\tswitch(type){
  2993. \t\t\t\t\tcase 'technician': 
  2994. \t\t\t\t\t\tupdateTechnicianWarehouses();
  2995. \t\t\t\t\t\tdocument.getElementById('span_send_type').innerHTML = 'Tecnico';
  2996. \t\t\t\t\t\tdocument.getElementById('div_send_supplier').style.display = 'none';
  2997. \t\t\t\t\t\tdocument.getElementById('div_send_ddt_mandatory').style.display = 'block';
  2998. \t\t\t\t\t\tdocument.getElementById('row_user_to_select').style.display = 'block';
  2999. \t\t\t\t\t\t";
  3000.         // line 1414
  3001.         if (((CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'1414$this->source); })()), "headquarter", [], "any"falsefalsefalse1414) == 0) && (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1414$this->source); })()), "user", [], "any"falsefalsefalse1414), "getAccountTypology", [], "any"falsefalsefalse1414) != "technician"))) {
  3002.             // line 1415
  3003.             yield "\t\t\t\t\t\t\tdocument.getElementById('row_user_from_select').style.display = 'block';
  3004. \t\t\t\t\t\t";
  3005.         }
  3006.         // line 1417
  3007.         yield "\t\t\t\t\t\tbreak;
  3008. \t\t\t\t\tcase 'destination':
  3009. \t\t\t\t\t\tdocument.getElementById('span_send_type').innerHTML = 'Destinazione esterna';
  3010. \t\t\t\t\t\tdocument.getElementById('div_send_supplier').style.display = 'block';
  3011. \t\t\t\t\t\tdocument.getElementById('div_send_ddt_mandatory').style.display = 'none';
  3012. \t\t\t\t\t\tdocument.getElementById('row_user_to_select').style.display = 'none';
  3013. \t\t\t\t\t\tbreak;
  3014. \t\t\t\t\tcase 'main':
  3015. \t\t\t\t\t\tdocument.getElementById('span_send_type').innerHTML = 'Sede centrale';
  3016. \t\t\t\t\t\tdocument.getElementById('div_send_supplier').style.display = 'none';
  3017. \t\t\t\t\t\tdocument.getElementById('div_send_ddt_mandatory').style.display = 'none';
  3018. \t\t\t\t\t\tdocument.getElementById('row_user_to_select').style.display = 'none';
  3019. \t\t\t\t\t\t";
  3020.         // line 1429
  3021.         if (((CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'1429$this->source); })()), "headquarter", [], "any"falsefalsefalse1429) == 0) && (CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1429$this->source); })()), "user", [], "any"falsefalsefalse1429), "getAccountTypology", [], "any"falsefalsefalse1429) != "technician"))) {
  3022.             // line 1430
  3023.             yield "\t\t\t\t\t\t\tdocument.getElementById('row_user_from_select').style.display = 'block';
  3024. \t\t\t\t\t\t";
  3025.         }
  3026.         // line 1432
  3027.         yield "\t\t\t\t\t\tbreak;
  3028. \t\t\t\t\tdefault: break;
  3029. \t\t\t\t}
  3030. \t\t\t\tvar select = document.getElementById('form_transfer_send_warehouse');
  3031. \t\t\t\twhile(select.options.length){
  3032. \t\t\t\t\tselect.remove(0);
  3033. \t\t\t\t}
  3034. \t\t\t\tvar warehouses = JSON.parse(response.warehouses);
  3035. \t\t\t\tfor(var i = 0; i < warehouses.length; i++){
  3036. \t\t\t\t\tvar option = new Option(warehouses[i]['nickname'], warehouses[i]['id']);
  3037. \t\t\t\t\tselect.options.add(option);
  3038. \t\t\t\t}
  3039. \t\t\t\tdocument.getElementById('row_send_data').style.display = 'flex';
  3040. \t\t\t\tdocument.getElementById('button_send_submit').className = 'button button-3d button-mini button-green f_right';
  3041. \t\t\t\tdocument.getElementById('button_send_submit').href = 'javascript: transferSendSubmit()';
  3042. \t\t\t}
  3043. \t\t}, \"json\");
  3044. \t}
  3045. \tfunction showHideDivestment(){
  3046. \t\tvar select = document.getElementById('form_transfer_send_supplier');
  3047. \t\tvar options = select.children;
  3048. \t\tif(options[select.selectedIndex].innerHTML == 'NEXI BOOK MONETICA' || options[select.selectedIndex].innerHTML == 'NEXI BOOK MEPS' || options[select.selectedIndex].innerHTML == 'NEXI BOOK SIA' || options[select.selectedIndex].innerHTML == 'DS - NEXI BOOK MONETICA' || options[select.selectedIndex].innerHTML == 'DS - NEXI BOOK MEPS' || options[select.selectedIndex].innerHTML == 'DS - NEXI BOOK SIA')
  3049. \t\t\tdocument.getElementById('div_send_divestment').style.display = 'block';
  3050. \t\telse
  3051. \t\t\tdocument.getElementById('div_send_divestment').style.display = 'none';
  3052. \t}
  3053. \tfunction updateTechnicianWarehouses(){
  3054. \t\ttechnicianId = document.getElementById('form_transfer_send_userTo').value;
  3055. \t\t\$.post('";
  3056.         // line 1463
  3057.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_transfer_update_technician_warehouses", ["warehouseId" => CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'1463$this->source); })()), "id", [], "any"falsefalsefalse1463)]), "html"nulltrue);
  3058.         yield "', {technicianId: technicianId}, function(response){ 
  3059. \t\t\tif(response.code == 200 && response.success){
  3060. \t\t\t\tvar select = document.getElementById('form_transfer_send_warehouse');
  3061. \t\t\t\twhile(select.options.length){
  3062. \t\t\t\t\tselect.remove(0);
  3063. \t\t\t\t}
  3064. \t\t\t\tvar warehouses = JSON.parse(response.warehouses);
  3065. \t\t\t\tfor(var i = 0; i < warehouses.length; i++){
  3066. \t\t\t\t\tvar option = new Option(warehouses[i]['nickname'], warehouses[i]['id']);
  3067. \t\t\t\t\tselect.options.add(option);
  3068. \t\t\t\t}
  3069. \t\t\t\tdocument.getElementById('row_send_data').style.display = 'flex';
  3070. \t\t\t}
  3071. \t\t}, \"json\");
  3072. \t}
  3073. \tfunction transferSendSubmit(){
  3074. \t\t\$('#formSend').submit();
  3075. \t}
  3076.     function transferDelete(id){
  3077.         document.getElementById(\"transferDeleteId\").value = id;
  3078.         \$('#transferDeleteModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  3079.     }
  3080. \t
  3081. \t// GESTISCI RICHIESTE TECNICI
  3082. \tfunction productRequestSheet(id){
  3083. \t\tdocument.getElementById('request_sheet_datetime').innerHTML = document.getElementById('request_' + id + '_datetime').value;
  3084. \t\tdocument.getElementById('request_sheet_technician').innerHTML = document.getElementById('request_' + id + '_technician').value;
  3085. \t\tdocument.getElementById('request_sheet_warehouse').innerHTML = document.getElementById('request_' + id + '_warehouse').value;
  3086. \t\tdocument.getElementById('request_sheet_warehouse_headquarter').innerHTML = document.getElementById('request_' + id + '_warehouse_headquarter').value;
  3087. \t\tdocument.getElementById('request_sheet_notes').innerHTML = document.getElementById('request_' + id + '_notes').value;
  3088. \t\t\$('#productRequestSheetModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  3089. \t}
  3090. \tfunction productRequestDelete(id){
  3091. \t\tdocument.getElementById('product_request_delete_id').value = id;
  3092. \t\t\$('#productRequestDeleteModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  3093. \t}
  3094. \t";
  3095.         // line 1504
  3096.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["warehouse"]) || array_key_exists("warehouse"$context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.'1504$this->source); })()), "headquarter", [], "any"falsefalsefalse1504)) {
  3097.             // line 1505
  3098.             yield "\t\tfunction productRequestTakeCharge(id){
  3099. \t\t\tdocument.getElementById('product_request_take_charge_id').value = id;
  3100. \t\t\t\$('#productRequestTakeChargeModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  3101. \t\t}
  3102. \t\t
  3103. \t\tfunction productRequestManaged(id){
  3104. \t\t\tdocument.getElementById('product_request_managed_id').value = id;
  3105. \t\t\t\$('#productRequestManagedModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  3106. \t\t}
  3107. \t";
  3108.         }
  3109.         // line 1515
  3110.         yield "</script>
  3111. ";
  3112.         
  3113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  3114.         
  3115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  3116.         return; yield '';
  3117.     }
  3118.     /**
  3119.      * @codeCoverageIgnore
  3120.      */
  3121.     public function getTemplateName()
  3122.     {
  3123.         return "role/user/warehouse/sheet.html.twig";
  3124.     }
  3125.     /**
  3126.      * @codeCoverageIgnore
  3127.      */
  3128.     public function isTraitable()
  3129.     {
  3130.         return false;
  3131.     }
  3132.     /**
  3133.      * @codeCoverageIgnore
  3134.      */
  3135.     public function getDebugInfo()
  3136.     {
  3137.         return array (  3196 => 1515,  3184 => 1505,  3182 => 1504,  3138 => 1463,  3105 => 1432,  3101 => 1430,  3099 => 1429,  3085 => 1417,  3081 => 1415,  3079 => 1414,  3067 => 1405,  2929 => 1269,  2922 => 1264,  2920 => 1263,  2906 => 1251,  2899 => 1246,  2897 => 1245,  2872 => 1222,  2867 => 1219,  2865 => 1218,  2847 => 1202,  2841 => 1198,  2835 => 1195,  2832 => 1194,  2830 => 1193,  2826 => 1191,  2820 => 1187,  2814 => 1184,  2811 => 1183,  2809 => 1182,  2805 => 1180,  2799 => 1176,  2793 => 1173,  2790 => 1172,  2788 => 1171,  2784 => 1169,  2778 => 1165,  2772 => 1162,  2769 => 1161,  2767 => 1160,  2763 => 1158,  2757 => 1154,  2751 => 1151,  2748 => 1150,  2746 => 1149,  2742 => 1147,  2739 => 1146,  2736 => 1145,  2733 => 1144,  2730 => 1143,  2728 => 1142,  2725 => 1141,  2723 => 1140,  2720 => 1139,  2717 => 1138,  2715 => 1137,  2712 => 1136,  2710 => 1135,  2707 => 1134,  2704 => 1133,  2702 => 1132,  2699 => 1131,  2697 => 1130,  2692 => 1127,  2690 => 1126,  2688 => 1125,  2686 => 1124,  2684 => 1123,  2682 => 1122,  2680 => 1121,  2678 => 1120,  2676 => 1119,  2674 => 1118,  2672 => 1117,  2670 => 1116,  2668 => 1115,  2666 => 1114,  2664 => 1113,  2662 => 1112,  2660 => 1111,  2658 => 1110,  2656 => 1109,  2654 => 1108,  2652 => 1107,  2650 => 1106,  2648 => 1105,  2646 => 1104,  2644 => 1103,  2642 => 1102,  2638 => 1101,  2628 => 1100,  2616 => 1097,  2611 => 1096,  2597 => 1088,  2590 => 1084,  2577 => 1076,  2570 => 1072,  2562 => 1067,  2558 => 1066,  2550 => 1061,  2546 => 1060,  2540 => 1056,  2537 => 1055,  2534 => 1053,  2531 => 1052,  2528 => 1051,  2525 => 1050,  2522 => 1049,  2512 => 1048,  2497 => 583,  2491 => 579,  2488 => 578,  2485 => 577,  2482 => 576,  2475 => 574,  2467 => 572,  2465 => 571,  2458 => 570,  2456 => 569,  2449 => 568,  2447 => 567,  2441 => 566,  2437 => 565,  2432 => 564,  2426 => 562,  2420 => 560,  2418 => 559,  2414 => 558,  2410 => 557,  2403 => 555,  2397 => 554,  2391 => 553,  2385 => 552,  2379 => 551,  2375 => 550,  2370 => 549,  2365 => 548,  2363 => 547,  2358 => 544,  2354 => 543,  2349 => 540,  2345 => 538,  2341 => 536,  2339 => 535,  2330 => 529,  2326 => 528,  2322 => 527,  2318 => 526,  2314 => 525,  2310 => 524,  2306 => 523,  2300 => 522,  2296 => 521,  2289 => 516,  2279 => 515,  2264 => 414,  2258 => 410,  2255 => 409,  2252 => 408,  2249 => 407,  2242 => 405,  2238 => 403,  2235 => 402,  2227 => 400,  2221 => 398,  2218 => 397,  2215 => 396,  2207 => 394,  2204 => 393,  2202 => 392,  2199 => 391,  2197 => 390,  2189 => 389,  2181 => 388,  2173 => 387,  2165 => 386,  2157 => 385,  2149 => 384,  2145 => 383,  2141 => 382,  2135 => 381,  2132 => 380,  2127 => 379,  2125 => 378,  2116 => 374,  2097 => 358,  2093 => 357,  2089 => 356,  2085 => 355,  2081 => 354,  2077 => 353,  2073 => 352,  2069 => 351,  2065 => 350,  2061 => 349,  2057 => 348,  2051 => 347,  2047 => 346,  2040 => 341,  2030 => 340,  2015 => 289,  2009 => 285,  2006 => 284,  2003 => 283,  2000 => 282,  1991 => 279,  1987 => 278,  1983 => 277,  1977 => 276,  1973 => 275,  1970 => 274,  1962 => 273,  1958 => 272,  1954 => 271,  1948 => 270,  1941 => 269,  1934 => 265,  1922 => 264,  1918 => 262,  1916 => 261,  1910 => 260,  1902 => 259,  1897 => 258,  1891 => 257,  1888 => 256,  1881 => 255,  1876 => 254,  1873 => 253,  1870 => 252,  1865 => 251,  1863 => 250,  1849 => 238,  1842 => 234,  1834 => 233,  1830 => 231,  1828 => 230,  1820 => 225,  1816 => 224,  1812 => 223,  1805 => 221,  1801 => 220,  1796 => 218,  1792 => 217,  1788 => 216,  1784 => 215,  1780 => 214,  1776 => 213,  1766 => 212,  1762 => 211,  1758 => 210,  1748 => 209,  1744 => 208,  1737 => 203,  1734 => 202,  1727 => 201,  1720 => 200,  1713 => 199,  1706 => 198,  1704 => 197,  1700 => 195,  1690 => 194,  1659 => 1027,  1654 => 1024,  1631 => 1003,  1626 => 1000,  1603 => 979,  1598 => 976,  1559 => 938,  1539 => 920,  1532 => 916,  1527 => 913,  1511 => 898,  1500 => 896,  1496 => 895,  1481 => 883,  1476 => 880,  1461 => 866,  1451 => 862,  1443 => 861,  1439 => 859,  1435 => 858,  1423 => 849,  1418 => 846,  1394 => 824,  1389 => 821,  1381 => 815,  1373 => 810,  1369 => 809,  1356 => 801,  1348 => 796,  1336 => 789,  1330 => 785,  1327 => 784,  1324 => 783,  1321 => 782,  1319 => 781,  1315 => 780,  1308 => 776,  1304 => 775,  1292 => 766,  1288 => 765,  1280 => 760,  1276 => 759,  1268 => 754,  1264 => 753,  1252 => 744,  1247 => 741,  1241 => 737,  1235 => 733,  1233 => 732,  1223 => 725,  1218 => 722,  1210 => 716,  1194 => 703,  1190 => 702,  1186 => 701,  1178 => 696,  1174 => 695,  1159 => 685,  1152 => 681,  1144 => 676,  1140 => 675,  1132 => 670,  1128 => 669,  1119 => 663,  1114 => 660,  1106 => 654,  1090 => 641,  1086 => 640,  1082 => 639,  1074 => 634,  1070 => 633,  1062 => 628,  1058 => 627,  1049 => 621,  1044 => 618,  1036 => 611,  1024 => 603,  1021 => 602,  1018 => 601,  1015 => 600,  1013 => 599,  1006 => 596,  1003 => 595,  1000 => 594,  997 => 593,  994 => 592,  991 => 591,  988 => 590,  986 => 589,  982 => 587,  979 => 515,  976 => 514,  973 => 513,  970 => 512,  967 => 511,  964 => 510,  961 => 509,  958 => 508,  955 => 507,  953 => 506,  940 => 502,  930 => 501,  920 => 500,  914 => 496,  908 => 494,  906 => 493,  902 => 492,  897 => 489,  894 => 488,  887 => 482,  874 => 479,  870 => 478,  866 => 477,  863 => 476,  859 => 475,  836 => 459,  829 => 455,  818 => 451,  807 => 447,  800 => 443,  793 => 438,  787 => 436,  785 => 435,  779 => 431,  768 => 423,  765 => 422,  762 => 421,  760 => 420,  756 => 418,  753 => 340,  750 => 339,  747 => 338,  745 => 337,  736 => 333,  730 => 332,  721 => 325,  710 => 317,  707 => 316,  704 => 315,  701 => 314,  698 => 313,  695 => 312,  693 => 311,  686 => 308,  683 => 307,  680 => 306,  677 => 305,  674 => 304,  671 => 303,  668 => 302,  665 => 301,  662 => 300,  659 => 299,  656 => 298,  653 => 297,  650 => 296,  648 => 295,  644 => 293,  641 => 194,  638 => 193,  635 => 192,  632 => 191,  629 => 190,  626 => 189,  623 => 188,  620 => 187,  617 => 186,  614 => 185,  611 => 184,  608 => 183,  606 => 182,  603 => 181,  595 => 176,  589 => 172,  586 => 171,  583 => 170,  580 => 169,  571 => 166,  567 => 165,  561 => 164,  557 => 163,  551 => 162,  547 => 161,  543 => 160,  539 => 159,  533 => 158,  525 => 157,  521 => 156,  515 => 153,  509 => 152,  501 => 149,  493 => 148,  488 => 147,  482 => 146,  479 => 145,  472 => 144,  467 => 143,  464 => 142,  461 => 141,  456 => 140,  454 => 139,  426 => 114,  422 => 113,  417 => 111,  413 => 110,  409 => 109,  405 => 108,  401 => 107,  397 => 106,  393 => 105,  389 => 104,  385 => 103,  381 => 102,  377 => 101,  371 => 100,  367 => 99,  354 => 88,  352 => 87,  344 => 84,  338 => 83,  331 => 82,  323 => 80,  321 => 79,  313 => 73,  309 => 71,  306 => 70,  303 => 69,  297 => 67,  294 => 66,  288 => 64,  285 => 63,  283 => 62,  279 => 61,  273 => 57,  269 => 54,  261 => 52,  259 => 51,  249 => 44,  244 => 41,  241 => 40,  238 => 39,  235 => 38,  232 => 37,  229 => 36,  226 => 35,  223 => 34,  220 => 33,  217 => 32,  214 => 31,  211 => 30,  201 => 29,  188 => 25,  184 => 23,  181 => 22,  178 => 21,  168 => 20,  153 => 16,  147 => 14,  144 => 13,  134 => 12,  119 => 8,  109 => 7,  89 => 5,  69 => 3,  46 => 1,);
  3138.     }
  3139.     public function getSourceContext()
  3140.     {
  3141.         return new Source("{% extends 'role/user/index.html.twig' %}
  3142. {% block title %}Magazzino - Scheda{% endblock %}
  3143. {% block pageTitleH1 %}Magazzino - Scheda{% endblock %}
  3144. {% block pageTitleBreadcrumb %}
  3145. \t<li class=\"breadcrumb-item\"><a href=\"{{ path('user_warehouse_list') }}\">Magazzini</a></li>
  3146. \t<li class=\"breadcrumb-item\"><a href=\"javascript:void(0)\">Scheda</a></li>
  3147. {% endblock %}
  3148. {% block subMenuLeft %}
  3149. \t{% if app.user.warehouses|length == 1 %}
  3150. \t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"{{ path ('user_index') }}\">Scrivania</a></li>
  3151. \t{% else %}
  3152. \t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"{{ path ('user_warehouse_list') }}\">Magazzini</a></li>
  3153. \t{% endif %}
  3154. {% endblock %}
  3155. {% block subMenuRight %}
  3156. \t{% if app.user.canWrite('warehouse') or (warehouse.jtUser(app.user.id) is not null and warehouse.jtUser(app.user.id).permission == 'RW') %}
  3157. \t\t{% if warehouse.headquarter and (app.user.canWrite('warehouse') or app.user.canWrite('warehouse_receive_material')) %}
  3158. \t\t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"javascript: transferReceive()\">Ricevi materiale</a></li>
  3159. \t\t{% endif %}
  3160. \t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"javascript: transferSend()\">Invia materiale</a></li>
  3161. \t{% endif %}
  3162. {% endblock %}
  3163. {% block content %}
  3164. \t{% if app.user.getAccountTypology == 'agency' or app.user.getAccountTypology == 'warehouse' %}
  3165. \t\t{% set prReqTitle = \"Richieste tecnici\" %}
  3166. \t\t{% set prReqInserted = \"Da gestire\" %}
  3167. \t\t{% set prReqTakeCharge = \"Prese in carico\" %}
  3168. \t\t{% set prReqCompleted = \"Gestite\" %}
  3169. \t{% elseif app.user.getAccountTypology == 'technician' %}
  3170. \t\t{% set prReqTitle = \"Le tue richieste\" %}
  3171. \t\t{% set prReqInserted = \"Inviate\" %}
  3172. \t\t{% set prReqTakeCharge = \"Prese in carico\" %}
  3173. \t\t{% set prReqCompleted = \"Completate\" %}
  3174. \t{% endif %}
  3175. \t<section class=\"p_lr_30p m_tb_40p\">
  3176. \t\t<div class=\"row\">
  3177. \t\t\t<div class=\"col-12\">
  3178. \t\t\t\t<h3 class=\"form_title\">Magazzino: {{ warehouse.nickname }}</h3>
  3179. \t\t\t\t<hr class=\"m_t_none\">
  3180. \t\t\t\t<div class=\"tabs clearfix\">
  3181. \t\t\t\t\t<ul class=\"tab-nav clearfix\">
  3182. \t\t\t\t\t\t<li><a id=\"btn_tab_stocks\" href=\"#stocks\" class=\"tab_session\" data-filterTab=\"stocks\"><i class=\"icon-warehouse d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"Scorte\"></i><span class=\"d-none d-md-block\">Scorte</span></a></li>
  3183. \t\t\t\t\t\t<li><a id=\"btn_tab_transfers\" href=\"#transfers\" class=\"tab_session\" data-filterTab=\"transfers\"><i class=\"icon-exchange d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"Trasferimenti\"></i><span class=\"d-none d-md-block\">Trasferimenti</span></a></li>
  3184. \t\t\t\t\t\t<li><a id=\"btn_tab_data\" href=\"#data\" class=\"tab_session\" data-filterTab=\"data\"><i class=\"icon-users d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"Dati e utenti\"></i><span class=\"d-none d-md-block\">Dati e utenti</span></a></li>
  3185. \t\t\t\t\t\t{% if (warehouse.headquarter and (app.user.getAccountTypology == 'agency' or app.user.getAccountTypology == 'warehouse')) or app.user.getAccountTypology == 'technician' %}
  3186. \t\t\t\t\t\t\t<li><a id=\"btn_tab_request\" href=\"#technicianRequests\" class=\"tab_session\" data-filterTab=\"request\"><i class=\"icon-question d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"{{ prReqTitle }}\"></i><span class=\"d-none d-md-block\">{{ prReqTitle }}</span></a></li>
  3187. \t\t\t\t\t\t{% endif %}
  3188. \t\t\t\t\t</ul>
  3189. \t\t\t\t\t<div class=\"tab-container\">
  3190. \t\t\t\t\t\t{# Scorte #}
  3191. \t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"stocks\">
  3192. \t\t\t\t\t\t\t<div class=\"row\">
  3193. \t\t\t\t\t\t\t\t<div class=\"col-12\">
  3194. \t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Scorte in magazzino
  3195. \t\t\t\t\t\t\t\t\t\t<a href=\"{{ path ('user_warehouse_stocks_export_csv', {'warehouseId':warehouse.id}) }}\" class=\"button button-3d button-mini button-pr m_t_none m_b_none f_right\"><i class=\"icon-file-excel d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Esporta in csv\"></i><span class=\"d-none d-lg-block\">Esporta in csv</span></a>
  3196. \t\t\t\t\t\t\t\t\t\t{% if (app.user.getAccountTypology == 'agency' or app.user.getAccountTypology == 'warehouse') %}
  3197. \t\t\t\t\t\t\t\t\t\t\t{% if warehouse.headquarter and settingRecoverStock.value == 1 %}
  3198. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path ('user_warehouse_stocks_recover', {'warehouseId':warehouse.id}) }}\" class=\"button button-3d button-mini button-green m_t_none m_b_none f_right\"><i class=\"icon-barcode d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Rientra scorte\"></i><span class=\"d-none d-lg-block\">Rientra scorte</span></a>
  3199. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3200. \t\t\t\t\t\t\t\t\t\t\t{% if settingRegisterStock.value == 1 %}
  3201. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path ('user_warehouse_stocks_register', {'warehouseId':warehouse.id}) }}\" class=\"button button-3d button-mini button-green m_t_none m_b_none f_right\"><i class=\"icon-barcode d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Registra scorte\"></i><span class=\"d-none d-lg-block\">Registra scorte</span></a>
  3202. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3203. \t\t\t\t\t\t\t\t\t\t{% endif %}
  3204. \t\t\t\t\t\t\t\t\t\t{% if app.user.canWrite('warehouse_inventory') %}
  3205. \t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript: stockInventory()\" class=\"button button-3d button-mini button-amber m_t_none m_b_none f_right\"><i class=\"icon-boxes d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Inventario\"></i><span class=\"d-none d-lg-block\">Inventario</span></a>
  3206. \t\t\t\t\t\t\t\t\t\t{% endif %}
  3207. \t\t\t\t\t\t\t\t\t</h4>
  3208. \t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
  3209. \t\t\t\t\t\t\t\t</div>
  3210. \t\t\t\t\t\t\t\t<div class=\"col-12\">
  3211. \t\t\t\t\t\t\t\t\t<div class=\"tabs clearfix\">
  3212. \t\t\t\t\t\t\t\t\t\t<ul class=\"tab-nav clearfix\">
  3213. \t\t\t\t\t\t\t\t\t\t\t{% if warehouse.headquarter %}
  3214. \t\t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_s_to_manage\" href=\"#to_manage\" class=\"tab_session2\" data-filterTab=\"s_to_manage\"><i class=\"icon-question d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"Da gestire ({{ toManageProducts.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">Da gestire ({{ toManageProducts.getTotalItemCount }})</span></a></li>
  3215. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3216. \t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_s_available\" href=\"#available\" class=\"tab_session2\" data-filterTab=\"s_available\"><i class=\"icon-check d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"Disponibili ({{ availableProducts.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">Disponibili ({{ availableProducts.getTotalItemCount }})</span></a></li>
  3217. \t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_s_not_available\" href=\"#not_available\" class=\"tab_session2\" data-filterTab=\"s_not_available\"><i class=\"icon-minus d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"Non disponibili ({{ notAvailableProducts.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">Non disponibili ({{ notAvailableProducts.getTotalItemCount }})</span></a></li>
  3218. \t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_s_transfer\" href=\"#transfer\" class=\"tab_session2\" data-filterTab=\"s_transfer\"><i class=\"icon-exchange d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"In trasferimento ({{ transferProducts.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">In trasferimento ({{ transferProducts.getTotalItemCount }})</span></a></li>
  3219. \t\t\t\t\t\t\t\t\t\t</ul>
  3220. \t\t\t\t\t\t\t\t\t\t<div class=\"tab-container\">
  3221. \t\t\t\t\t\t\t\t\t\t\t{% if warehouse.headquarter %}
  3222. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"to_manage\">
  3223. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
  3224. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12\">
  3225. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a id=\"button_0_condition\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-line-alert-circle d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Cambia condizione\"></i><span class=\"d-none d-lg-block\">Cambia condizione</span></a>
  3226. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a id=\"button_0_supplier\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-hand-holding d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Aggiungi fornitori\"></i><span class=\"d-none d-lg-block\">Aggiungi fornitori</span></a>
  3227. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a id=\"button_0_managed\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-wrench d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Gestito\"></i><span class=\"d-none d-lg-block\">Gestito</span></a>
  3228. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3229. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
  3230. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table class=\"table table-sm table-bordered responsive_font_size\">
  3231. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
  3232. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  3233. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<form method=\"get\" action=\"{{ path ('user_warehouse_sheet', {'warehouseId':warehouse.id}) }}\" id=\"formFilter_0\">
  3234. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"3\"><a href=\"{{ path ('remove_filter', {'route':app.request.attributes.get('_route'), 'route_params':app.request.attributes.get('_route_params')}) }}\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Escludi filtri\"><img class=\"icon_action icon_red\" src=\"{{ asset (icon_delete) }}\"></a></td>
  3235. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_150p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"codeProducer_0\" value=\"{{ filters.codeProducer_0|default() }}\"/></td>
  3236. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_180p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"model_0\" value=\"{{ filters.model_0|default() }}\"/></td>
  3237. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" class=\"form-control\" id=\"filter_supplier_value_0\" readonly onClick=\"filterSuppliers0()\" data-bs-toggle=\"tooltip\"/><input type=\"hidden\" id=\"filter_supplier_id_0\" name=\"supplier_0\" value=\"{{ filters.supplier_0|default() }}\"/></td>
  3238. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"condition_0\" value=\"{{ filters.condition_0|default() }}\"/></td>
  3239. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"producer_0\" value=\"{{ filters.producer_0|default() }}\"/></td>
  3240. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_150p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"codeSupplier_0\" value=\"{{ filters.codeSupplier_0|default() }}\"/></td>
  3241. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"sku_0\" value=\"{{ filters.sku_0|default() }}\"/></td>
  3242. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"technician_0\" value=\"{{ filters.technician_0|default() }}\"/></td>
  3243. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_60p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"ddt_0\" value=\"{{ filters.ddt_0|default() }}\"/></td>
  3244. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"lastUser_0\" value=\"{{ filters.lastUser_0|default() }}\"/></td>
  3245. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_20p\"><button type=\"submit\" class=\"btn bg_w f_left p_0p\" data-bs-toggle=\"tooltip\" title=\"Filtra\"><img class=\"icon_green icon_action\" src=\"{{ asset (icon_search) }}\"></button></td>
  3246. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"filter_tab\" value=\"s_to_manage\">
  3247. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_field_0\" type=\"hidden\" name=\"sortField_0\" value=\"{{ filters.sortField_0|default() }}\"/>
  3248. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_order_0\" type=\"hidden\" name=\"sortOrder_0\" value=\"{{ filters.sortOrder_0|default() }}\"/>
  3249. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
  3250. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  3251. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
  3252. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\"></th>
  3253. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\">
  3254. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"switch\" data-bs-toggle=\"tooltip\" title=\"Seleziona tutti\">
  3255. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"stock_0_all_checkboxes\" class=\"switch-toggle switch-flat-mini switch-toggle-flat\" type=\"checkbox\" onChange=\"javascript: selectAll(0, 's_to_manage')\">
  3256. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"stock_0_all_checkboxes\" class=\"m_b_none\"></label>
  3257. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3258. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</th>
  3259. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_40p txt_a_c\">Ptà<button type=\"button\" onClick=\"setOrderBy0('p.toManagePriority')\" data-orderField=\"p.toManagePriority\" class=\"f_right filter_arrow_0\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3260. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Matr. produttore<button type=\"button\" onClick=\"setOrderBy0('p.codeProducer')\" data-orderField=\"p.codeProducer\" class=\"f_right filter_arrow_0\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3261. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Modello<button type=\"button\" onClick=\"setOrderBy0('m.name')\" data-orderField=\"m.name\" class=\"f_right filter_arrow_0\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3262. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Fornitori</th>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
  3263. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Condizione<button type=\"button\" onClick=\"setOrderBy0('c.value')\" data-orderField=\"c.value\" class=\"f_right filter_arrow_0\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3264. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Produttore<button type=\"button\" onClick=\"setOrderBy0('pr.name')\" data-orderField=\"pr.name\" class=\"f_right filter_arrow_0\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3265. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Matr. fornitore<button type=\"button\" onClick=\"setOrderBy0('p.codeSupplier')\" data-orderField=\"p.codeSupplier\" class=\"f_right filter_arrow_0\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3266. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>SKU<button type=\"button\" onClick=\"setOrderBy0('m.sku')\" data-orderField=\"m.sku\" class=\"f_right filter_arrow_0\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3267. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Tecnico</th>
  3268. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>DDT</th>
  3269. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th colspan=\"2\">Ultimo utente log</th>
  3270. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  3271. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
  3272. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
  3273. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if toManageProducts|length > 0 %}
  3274. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for product in toManageProducts %}
  3275. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set first = true %}
  3276. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set suppliersString = '' %}
  3277. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for supplier in product.suppliers %}
  3278. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if first %}{% set first = false %}{% else %}{% set suppliersString = suppliersString ~ '-' %}{% endif %}
  3279. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set suppliersString = suppliersString ~ supplier.id %}
  3280. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  3281. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"suppliers_ids_string\" value=\"{{ suppliersString }}\">
  3282. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr {% if product.toManage %}class=\"bg_to_manage_{{ product.toManagePriority }}\"{% endif %}>
  3283. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\"><a href=\"{{ path ('user_product_sheet', {'productId':product.id}) }}\" data-bs-toggle=\"tooltip\" title=\"Scheda\"><img class=\"icon_action icon_pr\" src=\"{{ asset(icon_sheet) }}\"></a></td>
  3284. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>
  3285. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"switch\">
  3286. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"stock_checkbox_{{ product.id }}\" class=\"switch-toggle switch-flat-mini switch-toggle-flat stock_0_checkbox\" type=\"checkbox\" value=\"{{ product.id }}\" onChange=\"javascript: updateButtons(0, 's_to_manage')\">
  3287. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"stock_checkbox_{{ product.id }}\" class=\"m_b_none\"></label>
  3288. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3289. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
  3290. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">{{ product.toManagePriority }}</td>
  3291. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_codeProducer_{{ product.id }}\"><a href=\"{{ path ('user_product_sheet', {'productId':product.id}) }}\" class=\"underline\" target=\"_blank\">{{ product.codeProducer|default('---') }}</a></td>
  3292. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_model_{{ product.id }}\">{{ product.model.name }}</td>
  3293. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ product.displaySuppliers()|raw }}</td>
  3294. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ product.displayCondition('string-short') }}</td>
  3295. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ product.model.producer }}</td>
  3296. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_codeSupplier_{{ product.id }}\">{{ product.codeSupplier|default('---') }}</td>
  3297. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ product.model.sku }}</td>
  3298. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{% if product.getLastTransfer is not null %}{{ product.getLastTransfer().userFrom }}{% endif %}</td>
  3299. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ product.displayTransfersDdt()|raw }}</td>
  3300. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\">{{ product.lastUserLog }}</td>
  3301. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  3302. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  3303. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  3304. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% include 'components/twig/notice_no_values.html.twig' with {'message':'Nessun prodotto in questo stato'} %}
  3305. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3306. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
  3307. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
  3308. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3309. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
  3310. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ knp_pagination_render(toManageProducts) }}
  3311. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3312. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3313. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  3314. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3315. \t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"available\">
  3316. \t\t\t\t\t\t\t\t\t\t\t\t{% set number = 1 %}
  3317. \t\t\t\t\t\t\t\t\t\t\t\t{% set tab = 's_available' %}
  3318. \t\t\t\t\t\t\t\t\t\t\t\t{% set status = 'available' %}
  3319. \t\t\t\t\t\t\t\t\t\t\t\t{% set products = availableProducts %}
  3320. \t\t\t\t\t\t\t\t\t\t\t\t{% set multipleSelection = [false, 1, []] %}
  3321. \t\t\t\t\t\t\t\t\t\t\t\t{% if app.user.canWrite('warehouse') or (warehouse.jtUser(app.user.id) != null and warehouse.jtUser(app.user.id).permission == 'RW') %}
  3322. \t\t\t\t\t\t\t\t\t\t\t\t\t{% if app.user.getAccountTypology != 'technician' %}
  3323. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set multipleSelection = [true, 1, ['supplier', 'condition', 'send', 'export']] %}
  3324. \t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  3325. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set multipleSelection = [true, 1, ['condition', 'send', 'export']] %}
  3326. \t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3327. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3328. \t\t\t\t\t\t\t\t\t\t\t\t{% block tableStocks %}
  3329. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
  3330. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12\">
  3331. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if multipleSelection[0] %}
  3332. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if 'condition' in multipleSelection[2] %}<a id=\"button_{{ multipleSelection[1] }}_condition\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-line-alert-circle d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Cambia condizione\"></i><span class=\"d-none d-lg-block\">Cambia condizione</span></a>{% endif %}
  3333. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if 'supplier' in multipleSelection[2] %}<a id=\"button_{{ multipleSelection[1] }}_supplier\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-hand-holding d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Aggiungi fornitori\"></i><span class=\"d-none d-lg-block\">Aggiungi fornitori</span></a>{% endif %}
  3334. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if 'send' in multipleSelection[2] %}<a id=\"button_{{ multipleSelection[1] }}_send\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-line-send d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Invia materiale\"></i><span class=\"d-none d-lg-block\">Invia materiale</span></a>{% endif %}
  3335. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if 'export' in multipleSelection[2] %}<a href=\"{{ path ('user_warehouse_stocks_export_csv_for_send', {'warehouseId':warehouse.id, 'status':status}) }}\" class=\"button button-3d button-mini button-amber f_right m_b_10p p_tb4_lr6\"><i class=\"icon-line-send d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Esporta per invio\"></i><span class=\"d-none d-lg-block\">Esporta per invio</span></a>{% endif %}
  3336. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3337. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3338. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
  3339. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table class=\"table table-sm table-bordered responsive_font_size v_a_m\">
  3340. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
  3341. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  3342. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<form method=\"get\" action=\"{{ path ('user_warehouse_sheet', {'warehouseId':warehouse.id}) }}\" id=\"formFilter_1\">
  3343. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td {% if multipleSelection[0] %}colspan=\"2\"{% endif %}><a href=\"{{ path ('remove_filter', {'route':app.request.attributes.get('_route'), 'route_params':app.request.attributes.get('_route_params')}) }}\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Escludi filtro\"><img class=\"icon_action icon_red\" src=\"{{ asset (icon_delete) }}\"></a></td>
  3344. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_150p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"codeProducer_1\" value=\"{{ filters.codeProducer_1|default() }}\"/></td>
  3345. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_180p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"model_1\" value=\"{{ filters.model_1|default() }}\"/></td>
  3346. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" class=\"form-control\" id=\"filter_supplier_value_{{ number }}\" readonly onClick=\"filterSuppliers{{ number }}()\" data-bs-toggle=\"tooltip\"/><input type=\"hidden\" id=\"filter_supplier_id_{{ number }}\" name=\"supplier_1\" value=\"{{ filters.supplier_1|default() }}\"/></td>
  3347. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"condition_1\" value=\"{{ filters.condition_1|default() }}\"/></td>
  3348. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_90p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"producer_1\" value=\"{{ filters.producer_1|default() }}\"/></td>
  3349. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_150p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"codeSupplier_1\" value=\"{{ filters.codeSupplier_1|default() }}\"/></td>
  3350. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"sku_1\" value=\"{{ filters.sku_1|default() }}\"/></td>
  3351. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p\"><input type=\"text\" class=\"form-control daterange1last font_12\" id=\"daterange1last_{{ number }}\" inputmode=\"search\" autocomplete=\"off\" name=\"dateLastTransfer_1\" style=\"height: 38px\" date-filter=\"range\"/></td>
  3352. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_60p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"ddt_1\" value=\"{{ filters.ddt_1|default() }}\"/></td>
  3353. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_60p\">
  3354. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn bg_w f_left p_0p\" data-bs-toggle=\"tooltip\" title=\"Filtra\"><img class=\"icon_action icon_green\" src=\"{{ asset (icon_search) }}\"></button>
  3355. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path ('user_warehouse_stocks_export_csv_filtered', {'warehouseId':warehouse.id, 'status':status}) }}\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Esporta filtrati\"><img class=\"icon_action icon_amber\" src=\"{{ asset (icon_xls) }}\"></a>
  3356. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
  3357. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"filter_tab\" value=\"{{ tab }}\">
  3358. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_field_1\" type=\"hidden\" name=\"sortField_1\" value=\"{{ filters.sortField_1|default() }}\"/>
  3359. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_order_1\" type=\"hidden\" name=\"sortOrder_1\" value=\"{{ filters.sortOrder_1|default() }}\"/>
  3360. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
  3361. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  3362. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
  3363. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\"></th>
  3364. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if multipleSelection[0] %}
  3365. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\">
  3366. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"switch\" data-bs-toggle=\"tooltip\" title=\"Seleziona tutti\">
  3367. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"stock_{{ multipleSelection[1] }}_all_checkboxes\" class=\"switch-toggle switch-flat-mini switch-toggle-flat\" type=\"checkbox\" onChange=\"javascript: selectAll({{ multipleSelection[1] }}, '{{ tab }}')\">
  3368. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"stock_{{ multipleSelection[1] }}_all_checkboxes\" class=\"m_b_none\"></label>
  3369. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3370. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</th>
  3371. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3372. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Matr. produttore<button type=\"button\" onClick=\"setOrderBy1('p.codeProducer')\" data-orderField=\"p.codeProducer\" class=\"f_right filter_arrow_1\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3373. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Modello<button type=\"button\" onClick=\"setOrderBy1('m.name')\" data-orderField=\"m.name\" class=\"f_right filter_arrow_1\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3374. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Fornitori</th>
  3375. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Condizione<br>(Ultimi riferimenti)<button type=\"button\" onClick=\"setOrderBy1('c.value')\" data-orderField=\"c.value\" class=\"f_right filter_arrow_1\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3376. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Produttore<button type=\"button\" onClick=\"setOrderBy1('pr.name')\" data-orderField=\"pr.name\" class=\"f_right filter_arrow_1\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3377. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Matr. fornitore<button type=\"button\" onClick=\"setOrderBy1('p.codeSupplier')\" data-orderField=\"p.codeSupplier\" class=\"f_right filter_arrow_1\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3378. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>SKU<button type=\"button\" onClick=\"setOrderBy1('m.sku')\" data-orderField=\"m.sku\" class=\"f_right filter_arrow_1\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3379. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Data ultimo trasf.<button type=\"button\" onClick=\"setOrderBy1('p.dateLastTransfer')\" data-orderField=\"p.dateLastTransfer\" class=\"f_right filter_arrow_1\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3380. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th colspan=\"2\">DDT</th>
  3381. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  3382. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
  3383. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
  3384. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if products|length > 0 %}
  3385. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for product in products %}
  3386. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set first = true %}
  3387. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set suppliersString = '' %}
  3388. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for supplier in product.suppliers %}
  3389. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if first %}{% set first = false %}{% else %}{% set suppliersString = suppliersString ~ '-' %}{% endif %}
  3390. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set suppliersString = suppliersString ~ supplier.id %}
  3391. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  3392. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"suppliers_ids_string\" value=\"{{ suppliersString }}\">
  3393. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr {% if product.toManage %}class=\"bg_to_manage_{{ product.toManagePriority }}\"{% endif %}>
  3394. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\"><a href=\"{{ path ('user_product_sheet', {'productId':product.id}) }}\" data-bs-toggle=\"tooltip\" title=\"Scheda\"><img class=\"icon_action icon_pr\" src=\"{{ asset(icon_sheet) }}\"></a></td>
  3395. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if multipleSelection[0] %}
  3396. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>
  3397. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"switch\">
  3398. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"stock_checkbox_{{ product.id }}\" class=\"switch-toggle switch-flat-mini switch-toggle-flat stock_{{ multipleSelection[1] }}_checkbox\" type=\"checkbox\" value=\"{{ product.id }}\" onChange=\"javascript: updateButtons({{ multipleSelection[1] }}, '{{ tab }}')\">
  3399. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"stock_checkbox_{{ product.id }}\" class=\"m_b_none\"></label>
  3400. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3401. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
  3402. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3403. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_codeProducer_{{ product.id }}\">{{ product.codeProducer|default('---') }}</td>
  3404. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_model_{{ product.id }}\">{{ product.model.name }}</td>
  3405. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ product.displaySuppliers()|raw }}</td>
  3406. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ product.displayCondition('string-short') }}
  3407. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if product.getLastTicket is not null and tab == \"s_not_available\" %}<a href=\"{{ path('user_ticket_sheet', {'ticketId': product.getLastTicket.id }) }}\" target=\"_blank\">{{ product.displayLastRefs|raw }}</a>{% endif %}
  3408. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
  3409. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ product.model.producer }}</td>
  3410. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_codeSupplier_{{ product.id }}\">{{ product.codeSupplier|default('---') }}</td>
  3411. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ product.model.sku }}</td>
  3412. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ product.dateLastTransfer|date('d-m-Y H:i') }}</td>
  3413. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\">{{ product.displayTransfersDdt()|raw }}</td>
  3414. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  3415. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  3416. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  3417. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% include 'components/twig/notice_no_values.html.twig' with {'message':'Nessun prodotto in questo stato'} %}
  3418. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3419. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
  3420. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
  3421. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3422. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
  3423. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ knp_pagination_render(products) }}
  3424. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3425. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3426. \t\t\t\t\t\t\t\t\t\t\t\t{% endblock %}
  3427. \t\t\t\t\t\t\t\t\t\t\t</div>
  3428. \t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"not_available\">
  3429. \t\t\t\t\t\t\t\t\t\t\t\t{% set number = 2 %}
  3430. \t\t\t\t\t\t\t\t\t\t\t\t{% set tab = 's_not_available' %}
  3431. \t\t\t\t\t\t\t\t\t\t\t\t{% set status = 'not_available' %}
  3432. \t\t\t\t\t\t\t\t\t\t\t\t{% set products = notAvailableProducts %}
  3433. \t\t\t\t\t\t\t\t\t\t\t\t{% set index = 1 %}
  3434. \t\t\t\t\t\t\t\t\t\t\t\t{% set multipleSelection = [false, 2, []] %}
  3435. \t\t\t\t\t\t\t\t\t\t\t\t{% if app.user.canWrite('warehouse') or (warehouse.jtUser(app.user.id) != null and warehouse.jtUser(app.user.id).permission == 'RW') %}
  3436. \t\t\t\t\t\t\t\t\t\t\t\t\t{% if app.user.getAccountTypology != 'technician' %}
  3437. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set multipleSelection = [true, 2, ['supplier', 'condition', 'send', 'export']] %}
  3438. \t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  3439. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set multipleSelection = [true, 2, ['condition', 'send', 'export']] %}
  3440. \t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3441. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3442. \t\t\t\t\t\t\t\t\t\t\t\t{{ block('tableStocks') }}
  3443. \t\t\t\t\t\t\t\t\t\t\t</div>
  3444. \t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"transfer\">
  3445. \t\t\t\t\t\t\t\t\t\t\t\t{% set number = 3 %}
  3446. \t\t\t\t\t\t\t\t\t\t\t\t{% set tab = 's_transfer' %}
  3447. \t\t\t\t\t\t\t\t\t\t\t\t{% set status = 'transfer' %}
  3448. \t\t\t\t\t\t\t\t\t\t\t\t{% set products = transferProducts %}
  3449. \t\t\t\t\t\t\t\t\t\t\t\t{% set index = 1 %}
  3450. \t\t\t\t\t\t\t\t\t\t\t\t{% set multipleSelection = [false, null, []] %}
  3451. \t\t\t\t\t\t\t\t\t\t\t\t{{ block('tableStocks') }}
  3452. \t\t\t\t\t\t\t\t\t\t\t</div>
  3453. \t\t\t\t\t\t\t\t\t\t</div>
  3454. \t\t\t\t\t\t\t\t\t</div>
  3455. \t\t\t\t\t\t\t\t</div>
  3456. \t\t\t\t\t\t\t</div>
  3457. \t\t\t\t\t\t</div>
  3458. \t\t\t\t\t\t{# Trasferimenti #}
  3459. \t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"transfers\">
  3460. \t\t\t\t\t\t\t<div class=\"row\">
  3461. \t\t\t\t\t\t\t\t<div class=\"col-12\">
  3462. \t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Trasferimenti</h4>
  3463. \t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
  3464. \t\t\t\t\t\t\t\t\t<div class=\"tabs clearfix\">
  3465. \t\t\t\t\t\t\t\t\t\t<ul class=\"tab-nav clearfix\">
  3466. \t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_pt_incoming\" href=\"#incoming\" class=\"tab_session2\" data-filterTab=\"pt_incoming\"><i class=\"icon-download d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"In entrata ({{ incomingTransfers.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">In entrata ({{ incomingTransfers.getTotalItemCount }})</span></a></li>
  3467. \t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_pt_output\" href=\"#output\" class=\"tab_session2\" data-filterTab=\"pt_output\"><i class=\"icon-upload d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"In uscita ({{ outputTransfers.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">In uscita ({{ outputTransfers.getTotalItemCount }})</span></a></li>
  3468. \t\t\t\t\t\t\t\t\t\t</ul>
  3469. \t\t\t\t\t\t\t\t\t\t<div class=\"tab-container\">
  3470. \t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"incoming\">
  3471. \t\t\t\t\t\t\t\t\t\t\t\t{% set transfers = incomingTransfers %}
  3472. \t\t\t\t\t\t\t\t\t\t\t\t{% set number = 1 %}
  3473. \t\t\t\t\t\t\t\t\t\t\t\t{% set tabType = 'pt_incoming' %}
  3474. \t\t\t\t\t\t\t\t\t\t\t\t{% block tableTransfers %}
  3475. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
  3476. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
  3477. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table class=\"table table-bordered table-hover responsive_font_size\">
  3478. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
  3479. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  3480. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<form method=\"get\" action=\"{{ path ('user_warehouse_sheet', {'warehouseId':warehouse.id}) }}\" id=\"formFilter_2\">
  3481. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\"><a href=\"{{ path ('remove_filter', {'route':app.request.attributes.get('_route'), 'route_params':app.request.attributes.get('_route_params') }) }}\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Escludi filtro\"><img class=\"icon_action icon_red\" src=\"{{ asset (icon_delete) }}\"></a></td>
  3482. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_100p\"><input type=\"text\" class=\"form-control daterange2creation font_12\" id=\"daterange2creation_{{ number }}\" inputmode=\"search\" autocomplete=\"off\" name=\"datetimeCreation_2\" style=\"height: 38px\" date-filter=\"range\"/></td>
  3483. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_100p\"><input type=\"text\" class=\"form-control daterange2send font_12\" id=\"daterange2send_{{ number }}\" inputmode=\"search\" autocomplete=\"off\" name=\"datetimeSend_2\" style=\"height: 38px\" date-filter=\"range\"/></td>
  3484. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_100p\"><input type=\"text\" class=\"form-control daterange2completion font_12\" id=\"daterange2completion_{{ number }}\" inputmode=\"search\" autocomplete=\"off\" name=\"datetimeCompletion_2\" style=\"height: 38px\" date-filter=\"range\"/></td>
  3485. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_200p\"><input type=\"text\" class=\"form-control\" inputmode=\"search\" name=\"warehouseFrom_2\" value=\"{{ filters.warehouseFrom_2|default() }}\"/></td>
  3486. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_200p\"><input type=\"text\" class=\"form-control\" inputmode=\"search\" name=\"warehouseTo_2\" value=\"{{ filters.warehouseTo_2|default() }}\"/></td>
  3487. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_80p\"><input type=\"text\" class=\"form-control\" inputmode=\"search\" name=\"ddt_2\" value=\"{{ filters.ddt_2|default() }}\"/></td>
  3488. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_100p\"><input type=\"text\" class=\"form-control\" inputmode=\"search\" name=\"stockOrder_2\" value=\"{{ filters.stockOrder_2|default() }}\"/></td>
  3489. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_20p\"><button type=\"submit\" class=\"btn bg_w f_left p_0p\" data-bs-toggle=\"tooltip\" title=\"Filtra\"><img class=\"icon_action icon_green\" src=\"{{ asset (icon_search) }}\"></button></td>\t
  3490. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"filter_tab\" value=\"{{ tabType }}\">
  3491. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_field_2\" type=\"hidden\" name=\"sortField_2\" value=\"{{ filters.sortField_2|default() }}\"/>
  3492. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_order_2\" type=\"hidden\" name=\"sortOrder_2\" value=\"{{ filters.sortOrder_2|default() }}\"/>
  3493. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
  3494. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  3495. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
  3496. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\" class=\"td_w_20p\"></th>
  3497. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\" class=\"td_w_100p v_a_m\">Fase<button type=\"button\" onClick=\"setOrderBy2('p.phase')\" data-orderField=\"p.phase\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3498. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th colspan=\"3\" class=\"txt_a_c p_025rem\">Data/ora</th>
  3499. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\" class=\"v_a_m\">Mag. partenza<button type=\"button\" onClick=\"setOrderBy2('wf.nickname')\" data-orderField=\"wf.nickname\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3500. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\" class=\"v_a_m\">Mag. arrivo<button type=\"button\" onClick=\"setOrderBy2('wt.nickname')\" data-orderField=\"wt.nickname\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3501. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\" class=\"v_a_m txt_a_c\">DDT<button type=\"button\" onClick=\"setOrderBy2('p.ddt')\" data-orderField=\"p.ddt\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3502. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\" class=\"v_a_m\">Stock order<button type=\"button\" onClick=\"setOrderBy2('p.stockOrder')\" data-orderField=\"p.stockOrder\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3503. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\"></th>
  3504. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  3505. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
  3506. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"p_025rem txt_a_c\">Creazione<button type=\"button\" onClick=\"setOrderBy2('p.datetimeCreation')\" data-orderField=\"p.datetimeCreation\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3507. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"p_025rem txt_a_c\">Invio<button type=\"button\" onClick=\"setOrderBy2('p.datetimeSend')\" data-orderField=\"p.datetimeSend\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3508. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"p_025rem txt_a_c\">Completam{% if app.user.getAccountTypology() != 'technician' %}ento{% endif %}<button type=\"button\" onClick=\"setOrderBy2('p.datetimeCompletion')\" data-orderField=\"p.datetimeCompletion\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3509. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  3510. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
  3511. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
  3512. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if transfers|length > 0 %}
  3513. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for pt in transfers %}
  3514. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  3515. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\"><a href=\"{{ path ('user_warehouse_transfer_sheet', {'warehouseId':warehouse.id, 'transferId':pt.id}) }}\" data-bs-toggle=\"tooltip\" title=\"Scheda\"><img class=\"icon_action icon_pr\" src=\"{{ asset (icon_sheet) }}\"></a></td>
  3516. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ pt.displayPhase('string')|raw }}</td>
  3517. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">{{ pt.datetimeCreation|date('d-m-Y H:i') }}</td>
  3518. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">{% if pt.datetimeSend != null %}{{ pt.datetimeSend|date('d-m-Y H:i') }}{% else %}---{% endif %}</td>
  3519. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">{% if pt.datetimeCompletion != null %}{{ pt.datetimeCompletion|date('d-m-Y H:i') }}{% else %}---{% endif %}</td>
  3520. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{% if pt.warehouseFrom != null %}{{ pt.warehouseFrom }}{% else %}---{% endif %}</td>
  3521. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{% if pt.warehouseTo != null %}{{ pt.warehouseTo }}{% else %}---{% endif %}</td>
  3522. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">{% if pt.ddtPath != null %}{{ pt.ddt }}{% else %}---{% endif %}</td>
  3523. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{% if pt.stockOrder != null %}{{ pt.stockOrder }}{% else %}---{% endif %}</td>
  3524. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if (warehouse.jtUser(app.user.id) != null and warehouse.jtUser(app.user.id).permission == 'RW') or app.user.canWrite('warehouse') %}
  3525. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">
  3526. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if tabType == 'pt_incoming' %}
  3527. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if pt.type == 'destination' %}
  3528. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript: transferDelete({{ pt.id }})\" data-bs-toggle=\"tooltip\" title=\"Elimina trasferimento\"><img class=\"icon_action icon_red\" src=\"{{ asset (icon_delete) }}\"></a>
  3529. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3530. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% elseif tabType == 'pt_output' %}
  3531. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if pt.hasProductsTransfered %}
  3532. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript: void(0)\" data-bs-toggle=\"tooltip\" title=\"Impossibile eliminare, alcuni prodotti sono stati già trasferiti!\"><img class=\"icon_action icon_grey\" src=\"{{ asset (icon_delete) }}\"></a>
  3533. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  3534. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript: transferDelete({{ pt.id }})\" data-bs-toggle=\"tooltip\" title=\"Elimina trasferimento\"><img class=\"icon_action icon_red\" src=\"{{ asset (icon_delete) }}\"></a>
  3535. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3536. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3537. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
  3538. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3539. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  3540. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  3541. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  3542. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% include 'components/twig/notice_no_values.html.twig' with {'message':'Nessuno trasferimento in questo stato'} %}
  3543. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3544. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
  3545. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
  3546. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3547. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
  3548. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ knp_pagination_render(transfers) }}
  3549. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3550. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3551. \t\t\t\t\t\t\t\t\t\t\t\t{% endblock %}
  3552. \t\t\t\t\t\t\t\t\t\t\t</div>
  3553. \t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"output\">
  3554. \t\t\t\t\t\t\t\t\t\t\t\t{% set transfers = outputTransfers %}
  3555. \t\t\t\t\t\t\t\t\t\t\t\t{% set number = 2 %}
  3556. \t\t\t\t\t\t\t\t\t\t\t\t{% set tabType = 'pt_output' %}
  3557. \t\t\t\t\t\t\t\t\t\t\t\t{{ block('tableTransfers') }}
  3558. \t\t\t\t\t\t\t\t\t\t\t</div>
  3559. \t\t\t\t\t\t\t\t\t\t</div>
  3560. \t\t\t\t\t\t\t\t\t</div>
  3561. \t\t\t\t\t\t\t\t</div>
  3562. \t\t\t\t\t\t\t</div>
  3563. \t\t\t\t\t\t</div>
  3564. \t\t\t\t\t\t{# Dati e utenti #}
  3565. \t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"data\">
  3566. \t\t\t\t\t\t\t<div class=\"row\">
  3567. \t\t\t\t\t\t\t\t<div class=\"col-12 col-lg-6\">
  3568. \t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Dati generici
  3569. \t\t\t\t\t\t\t\t\t\t{% if app.user.canWrite('warehouse') %}
  3570. \t\t\t\t\t\t\t\t\t\t\t<a href=\"javascript: warehouseEdit()\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Modifica\"><img class=\"icon_action icon_amber\" src=\"{{ asset (icon_edit) }}\"></a>
  3571. \t\t\t\t\t\t\t\t\t\t{% endif %}
  3572. \t\t\t\t\t\t\t\t\t</h4>
  3573. \t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
  3574. \t\t\t\t\t\t\t\t\t<table class=\"table table-hover responsive_font_size\">
  3575. \t\t\t\t\t\t\t\t\t\t<tr>
  3576. \t\t\t\t\t\t\t\t\t\t\t<th>Nickname</th>
  3577. \t\t\t\t\t\t\t\t\t\t\t<td>{{ warehouse.nickname }}</td>
  3578. \t\t\t\t\t\t\t\t\t\t</tr>
  3579. \t\t\t\t\t\t\t\t\t\t<tr>
  3580. \t\t\t\t\t\t\t\t\t\t\t<th>Attivo</th>
  3581. \t\t\t\t\t\t\t\t\t\t\t<td>{% if warehouse.active %}Sì{% else %}No{% endif %}</td>
  3582. \t\t\t\t\t\t\t\t\t\t</tr>
  3583. \t\t\t\t\t\t\t\t\t\t<tr>
  3584. \t\t\t\t\t\t\t\t\t\t\t<th>Sede</th>
  3585. \t\t\t\t\t\t\t\t\t\t\t<td>{% if warehouse.headquarter %}Sì{% else %}No{% endif %}</td>
  3586. \t\t\t\t\t\t\t\t\t\t</tr>
  3587. \t\t\t\t\t\t\t\t\t\t<tr>
  3588. \t\t\t\t\t\t\t\t\t\t\t<th>Indirizzo DDT</th>
  3589. \t\t\t\t\t\t\t\t\t\t\t<td>{{ warehouse.address }}</td>
  3590. \t\t\t\t\t\t\t\t\t\t</tr>
  3591. \t\t\t\t\t\t\t\t\t\t<tr>
  3592. \t\t\t\t\t\t\t\t\t\t\t<th>Fisso/Mobile</th>
  3593. \t\t\t\t\t\t\t\t\t\t\t<td>{% if warehouse.movable %}Mobile{% else %}Fisso{% endif %}</td>
  3594. \t\t\t\t\t\t\t\t\t\t</tr>
  3595. \t\t\t\t\t\t\t\t\t</table>
  3596. \t\t\t\t\t\t\t\t</div>
  3597. \t\t\t\t\t\t\t\t<div class=\"col-12 col-lg-6\">
  3598. \t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Utenti</h4>
  3599. \t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
  3600. \t\t\t\t\t\t\t\t\t<table class=\"table table-hover responsive_font_size\">
  3601. \t\t\t\t\t\t\t\t\t\t<thead>
  3602. \t\t\t\t\t\t\t\t\t\t\t<tr>
  3603. \t\t\t\t\t\t\t\t\t\t\t\t<th>Utente</th>
  3604. \t\t\t\t\t\t\t\t\t\t\t\t<th>Permessi</th>
  3605. \t\t\t\t\t\t\t\t\t\t\t\t<th class=\"txt_a_c\">Principale</th>
  3606. \t\t\t\t\t\t\t\t\t\t\t</tr>
  3607. \t\t\t\t\t\t\t\t\t\t</thead>
  3608. \t\t\t\t\t\t\t\t\t\t<tbody>
  3609. \t\t\t\t\t\t\t\t\t\t\t{% for jtuw in warehouse.users %}
  3610. \t\t\t\t\t\t\t\t\t\t\t\t<tr>
  3611. \t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ jtuw.user }}</td>
  3612. \t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ jtuw.displayPermission }}</td>
  3613. \t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">{% if jtuw.main %}Sì{% else %}No{% endif %}</td>
  3614. \t\t\t\t\t\t\t\t\t\t\t\t</tr>
  3615. \t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  3616. \t\t\t\t\t\t\t\t\t\t</tbody>
  3617. \t\t\t\t\t\t\t\t\t</table>
  3618. \t\t\t\t\t\t\t\t</div>
  3619. \t\t\t\t\t\t\t</div>
  3620. \t\t\t\t\t\t</div>
  3621. \t\t\t\t\t\t{# Richieste tecnici #}
  3622. \t\t\t\t\t\t{% if (warehouse.headquarter and (app.user.getAccountTypology == 'agency' or app.user.getAccountTypology == 'warehouse')) or app.user.getAccountTypology == 'technician' %}
  3623. \t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"technicianRequests\">
  3624. \t\t\t\t\t\t\t\t<div class=\"row\">
  3625. \t\t\t\t\t\t\t\t\t<div class=\"col-12\">
  3626. \t\t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">{{ prReqTitle }}
  3627. \t\t\t\t\t\t\t\t\t\t\t{% if app.user.getAccountTypology == 'technician' %}
  3628. \t\t\t\t\t\t\t\t\t\t\t\t<a href=\"{{ path ('user_warehouse_product_request_new', {'warehouseId':warehouse.id}) }}\" class=\"button button-3d button-mini button-green m_t_none m_b_none f_right\"><i class=\"icon-plus d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Richiedi materiale\"></i><span class=\"d-none d-lg-block\">Richiedi materiale</span></a></li>
  3629. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3630. \t\t\t\t\t\t\t\t\t\t</h4>
  3631. \t\t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
  3632. \t\t\t\t\t\t\t\t\t\t<div class=\"tabs clearfix\">
  3633. \t\t\t\t\t\t\t\t\t\t\t<ul class=\"tab-nav clearfix\">
  3634. \t\t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_pr_inserted\" href=\"#inserted\" class=\"tab_session2\" data-filterTab=\"pr_inserted\"><i class=\"icon-line-send d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"{{ prReqInserted }} ({{ insertedProductRequests.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">{{ prReqInserted }} ({{ insertedProductRequests.getTotalItemCount }})</span></a></li>
  3635. \t\t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_pr_take_charge\" href=\"#take_charge\" class=\"tab_session2\" data-filterTab=\"pr_take_charge\"><i class=\"icon-cog d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"{{ prReqTakeCharge }} ({{ takeChargeProductRequests.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">{{ prReqTakeCharge }} ({{ takeChargeProductRequests.getTotalItemCount }})</span></a></li>
  3636. \t\t\t\t\t\t\t\t\t\t\t\t<li><a id=\"btn_tab_pr_completed\" href=\"#completed\" class=\"tab_session2\" data-filterTab=\"pr_completed\"><i class=\"icon-checkmark d-block d-md-none\" data-bs-toggle=\"tooltip\" title=\"{{ prReqCompleted }} ({{ completedProductRequests.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">{{ prReqCompleted }} ({{ completedProductRequests.getTotalItemCount }})</span></a></li>
  3637. \t\t\t\t\t\t\t\t\t\t\t</ul>
  3638. \t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-container\">
  3639. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"inserted\">
  3640. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set requests = insertedProductRequests %}
  3641. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabType = 'pr_inserted' %}
  3642. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set number = 1 %}
  3643. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabAction = '' %}
  3644. \t\t\t\t\t\t\t\t\t\t\t\t\t{% if app.user.getAccountTypology == 'agency' or app.user.getAccountTypology == 'warehouse' and warehouse.headquarter %}
  3645. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabAction = 'take_charge' %}
  3646. \t\t\t\t\t\t\t\t\t\t\t\t\t{% elseif app.user.getAccountTypology == 'technician' %}
  3647. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabAction = 'delete' %}
  3648. \t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3649. \t\t\t\t\t\t\t\t\t\t\t\t\t{% block tableRequests %}
  3650. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
  3651. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
  3652. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<table class=\"table table-bordered table-hover responsive_font_size\">
  3653. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
  3654. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  3655. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<form method=\"get\" action=\"{{ path ('user_warehouse_sheet', {'warehouseId':warehouse.id}) }}\" id=\"formFilter_3\">
  3656. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p txt_a_c\"><a href=\"{{ path ('remove_filter', {'route':app.request.attributes.get('_route'), 'route_params':app.request.attributes.get('_route_params') }) }}\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Escludi filtro\"><img class=\"icon_action icon_red\" src=\"{{ asset (icon_delete) }}\"></a></td>
  3657. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_140p\"><input type=\"text\" class=\"form-control daterange3 font_12\" id=\"daterange3_{{ number }}\" inputmode=\"search\" autocomplete=\"off\" name=\"date_3\" style=\"height: 38px\" date-filter=\"range\"/></td>
  3658. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><input type=\"text\" class=\"form-control\" inputmode=\"search\" name=\"technician_3\" value=\"{{ filters.technician_3|default() }}\"/></td>
  3659. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><input type=\"text\" class=\"form-control\" inputmode=\"search\" name=\"warehouse_3\" value=\"{{ filters.warehouse_3|default() }}\"/></td>
  3660. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"4\" class=\"td_action\"><button type=\"submit\" class=\"btn bg_w f_left p_0p\" data-bs-toggle=\"tooltip\" title=\"Filtra\"><img class=\"icon_green\" src=\"{{ asset (icon_search) }}\"></button></td>\t
  3661. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"filter_tab\" value=\"{{ tabType }}\">
  3662. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_field_3\" type=\"hidden\" name=\"sortField_3\" value=\"{{ filters.sortField_3|default() }}\"/>
  3663. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"sort_order_3\" type=\"hidden\" name=\"sortOrder_3\" value=\"{{ filters.sortOrder_3|default() }}\"/>
  3664. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
  3665. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  3666. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
  3667. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th colspan=\"2\" class=\"txt_a_c\">Data/Ora<button type=\"button\" onClick=\"setOrderBy3('pr.datetime')\" data-orderField=\"pr.datetime\" class=\"f_right filter_arrow_3\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3668. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_200p\">Tecnico<button type=\"button\" onClick=\"setOrderBy3('p.surname')\" data-orderField=\"p.surname\" class=\"f_right filter_arrow_3\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3669. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if warehouse.headquarter %}
  3670. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_200p\">Mag. Tecnico<button type=\"button\" onClick=\"setOrderBy3('w.nickname')\" data-orderField=\"w.nickname\" class=\"f_right filter_arrow_3\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3671. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  3672. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_200p\">Mag. Sede<button type=\"button\" onClick=\"setOrderBy3('wh.nickname')\" data-orderField=\"wh.nickname\" class=\"f_right filter_arrow_3\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
  3673. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3674. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_500p\">Prodotti</th>
  3675. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_300p\">Note</th>
  3676. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_action\"></th>
  3677. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if tabAction == 'delete' or tabAction == 'take_charge' or tabAction == 'complete' %}<th colspan=\"2\"></th>{% endif %}
  3678. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  3679. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
  3680. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
  3681. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if requests|length > 0 %}
  3682. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for pr in requests %}
  3683. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_warehouse_id\" value=\"{{ pr.warehouse.id }}\">
  3684. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_warehouse_nickname\" value=\"{{ pr.warehouse.nickname }}\">
  3685. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_{{ pr.id }}_datetime\" value=\"{{ pr.datetime|date('d-m-Y H:i') }}\">
  3686. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_{{ pr.id }}_technician\" value=\"{{ pr.technician }}\">
  3687. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_{{ pr.id }}_warehouse\" value=\"{{ pr.warehouse.nickname }}\">
  3688. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_{{ pr.id }}_warehouse_headquarter\" value=\"{{ pr.warehouseHeadquarter.nickname }}\">
  3689. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_{{ pr.id }}_notes\" value=\"{{ pr.notes }}\">
  3690. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
  3691. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\" class=\"txt_a_c\">{{ pr.datetime|date('d-m-Y H:i') }}</td>
  3692. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ pr.technician }}</td>
  3693. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if warehouse.headquarter %}
  3694. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ pr.warehouse }}</td>
  3695. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  3696. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ pr.warehouseHeadquarter }}</td>
  3697. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3698. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ pr.displayDetails|raw }}</td>
  3699. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ pr.notes }}</td>
  3700. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_action\"><a href=\"javascript: productRequestSheet({{ pr.id }})\" data-bs-toggle=\"tooltip\" title=\"Scheda\"><img class=\"icon_pr\" src=\"{{ asset (icon_sheet) }}\"></a></td>
  3701. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if tabAction == 'delete' %}
  3702. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_action\"><a href=\"javascript: productRequestDelete({{ pr.id }})\" data-bs-toggle=\"tooltip\" title=\"Elimina\"><img class=\"icon_red\" src=\"{{ asset (icon_delete) }}\"></a></td>
  3703. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% elseif tabAction == 'take_charge' %}
  3704. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_action\"><a href=\"javascript: productRequestTakeCharge({{ pr.id }})\" data-bs-toggle=\"tooltip\" title=\"Prendi in carico\"><img class=\"icon_green\" src=\"{{ asset (icon_thumb_up) }}\"></a></td>
  3705. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% elseif tabAction == 'complete' %}
  3706. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_action\"><a href=\"javascript: productRequestManaged({{ pr.id }})\" data-bs-toggle=\"tooltip\" title=\"Richiesta gestita\"><img class=\"icon_green\" src=\"{{ asset (icon_select) }}\"></a></td>
  3707. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3708. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
  3709. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  3710. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  3711. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% include 'components/twig/notice_no_values.html.twig' with {'message':'Nessuna richiesta in questa fase'} %}
  3712. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3713. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
  3714. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
  3715. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3716. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
  3717. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ knp_pagination_render(requests) }}
  3718. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3719. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  3720. \t\t\t\t\t\t\t\t\t\t\t\t\t{% endblock %}
  3721. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  3722. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"take_charge\">
  3723. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set requests = takeChargeProductRequests %}
  3724. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabType = 'pr_take_charge' %}
  3725. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set number = 2 %}
  3726. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabAction = '' %}
  3727. \t\t\t\t\t\t\t\t\t\t\t\t\t{% if app.user.getAccountTypology == 'agency' or app.user.getAccountTypology == 'warehouse' and warehouse.headquarter %}
  3728. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabAction = 'complete' %}
  3729. \t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  3730. \t\t\t\t\t\t\t\t\t\t\t\t\t{{ block('tableRequests') }}
  3731. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  3732. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"completed\">
  3733. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set requests = completedProductRequests %}
  3734. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabType = 'pr_completed' %}
  3735. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set number = 3 %}
  3736. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabAction = '' %}
  3737. \t\t\t\t\t\t\t\t\t\t\t\t\t{{ block('tableRequests') }}
  3738. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  3739. \t\t\t\t\t\t\t\t\t\t\t</div>
  3740. \t\t\t\t\t\t\t\t\t\t</div>
  3741. \t\t\t\t\t\t\t\t\t</div>
  3742. \t\t\t\t\t\t\t\t</div>
  3743. \t\t\t\t\t\t\t</div>
  3744. \t\t\t\t\t\t{% endif %}
  3745. \t\t\t\t\t</div>
  3746. \t\t\t\t</div>
  3747. \t\t\t</div>
  3748. \t\t</div>
  3749. \t</section>
  3750. \t{# Inventario #}
  3751. \t<div id=\"stockInventoryModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  3752. \t\t<div class=\"modal-dialog\" role=\"document\">
  3753. \t\t\t<div class=\"modal-content\">
  3754. \t\t\t\t{{ form_start(formInventory, {'attr': {'novalidate': 'novalidate'}}) }}
  3755. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Verifica inventario</h3></div>
  3756. \t\t\t\t\t<div class=\"modal-body\">
  3757. \t\t\t\t\t\t<div class=\"row\">
  3758. \t\t\t\t\t\t\t<div class=\"col-12 form-group\">
  3759. \t\t\t\t\t\t\t\t<label class=\"form_label\">Fornitore*</label>
  3760. \t\t\t\t\t\t\t\t<div {{ form_errors(formInventory.supplier) }}>
  3761. \t\t\t\t\t\t\t\t\t{{ form_widget(formInventory.supplier, {'attr':{'class':'form-control form-select'}}) }}
  3762. \t\t\t\t\t\t\t\t</div>
  3763. \t\t\t\t\t\t\t</div>
  3764. \t\t\t\t\t\t\t<div class=\"col-12 form-group\">
  3765. \t\t\t\t\t\t\t\t<label class=\"form_label\">Stato*</label>
  3766. \t\t\t\t\t\t\t\t<div {{ form_errors(formInventory.status) }}>
  3767. \t\t\t\t\t\t\t\t\t{{ form_widget(formInventory.status, {'attr':{'class':'form-control form-select'}}) }}
  3768. \t\t\t\t\t\t\t\t</div>
  3769. \t\t\t\t\t\t\t</div>
  3770. \t\t\t\t\t\t\t<div class=\"col-12\">
  3771. \t\t\t\t\t\t\t\t<label class=\"form_label\">File*</label>
  3772. \t\t\t\t\t\t\t\t<div {{ form_errors(formInventory.path) }}>
  3773. \t\t\t\t\t\t\t\t\t{{ form_widget(formInventory.path, {'attr': {'class':'display_n'}}) }}
  3774. \t\t\t\t\t\t\t\t\t{{ form_widget(formInventory.file, {'attr': {'class':'display_n'}}) }}
  3775. \t\t\t\t\t\t\t\t\t<div class=\"input-group\">
  3776. \t\t\t\t\t\t\t\t\t\t<span class=\"input-group-btn\"><button id=\"selectFile2\" class=\"button button-3d button-small button-rounded button-pr button_input_group\" type=\"button\">Seleziona</button></span>
  3777. \t\t\t\t\t\t\t\t\t\t<input id=\"filename2\" type=\"text\" class=\"form-control\" readonly>
  3778. \t\t\t\t\t\t\t\t\t</div>
  3779. \t\t\t\t\t\t\t\t</div>
  3780. \t\t\t\t\t\t\t</div>
  3781. \t\t\t\t\t\t</div>
  3782. \t\t\t\t\t</div>
  3783. \t\t\t\t\t<div class=\"modal-footer\">
  3784. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  3785. \t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Prosegui</button>
  3786. \t\t\t\t\t</div>
  3787. \t\t\t\t{{ form_end(formInventory) }}
  3788. \t\t\t</div>
  3789. \t\t</div>
  3790. \t</div>
  3791. \t
  3792. \t{# Ricevi #}
  3793. \t<div id=\"transferReceiveModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  3794. \t\t<div class=\"modal-dialog\" role=\"document\">
  3795. \t\t\t<div class=\"modal-content\">
  3796. \t\t\t\t{{ form_start(formReceive, {'attr': {'novalidate': 'novalidate'}}) }} 
  3797. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Ricevi materiale</h3></div>
  3798. \t\t\t\t\t<div class=\"modal-body\">
  3799. \t\t\t\t\t\t<div class=\"row\">
  3800. \t\t\t\t\t\t\t<div class=\"col-12 form-group\">
  3801. \t\t\t\t\t\t\t\t<label class=\"form_label\">Magazzino di provenienza*</label>
  3802. \t\t\t\t\t\t\t\t<div {{ form_errors(formReceive.warehouse) }}>
  3803. \t\t\t\t\t\t\t\t\t{{ form_widget(formReceive.warehouse, {'attr':{'class':'form-control form-select'}}) }}
  3804. \t\t\t\t\t\t\t\t</div>
  3805. \t\t\t\t\t\t\t</div>
  3806. \t\t\t\t\t\t\t<div class=\"col-6 form-group\">
  3807. \t\t\t\t\t\t\t\t<label class=\"form_label\">Stock order</label>
  3808. \t\t\t\t\t\t\t\t<div {{ form_errors(formReceive.stockOrder) }}>
  3809. \t\t\t\t\t\t\t\t\t{{ form_widget(formReceive.stockOrder) }}
  3810. \t\t\t\t\t\t\t\t</div>
  3811. \t\t\t\t\t\t\t</div>
  3812. \t\t\t\t\t\t\t<div class=\"col-6 form-group\">
  3813. \t\t\t\t\t\t\t\t<label class=\"form_label\">Inserire DDT?</label>
  3814. \t\t\t\t\t\t\t\t<div {{ form_errors(formReceive.ddtMandatory) }}>
  3815. \t\t\t\t\t\t\t\t\t<table class=\"m_none\">
  3816. \t\t\t\t\t\t\t\t\t\t<tr>
  3817. \t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_l\"><label class=\"m_b_none m_r_10p l_s_none f_w_500\">No</label></td>
  3818. \t\t\t\t\t\t\t\t\t\t\t<td>{{ form_widget(formReceive.ddtMandatory, {'attr': {'class':'switch-toggle switch-flat-mini switch-toggle-flat', 'onChange':'javascript: tranferReceiveShowHideDDT()', 'checked':true}}) }}<label class=\"m_auto\" for=\"{{ formReceive.ddtMandatory.vars.id }}\"></label></td>
  3819. \t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_l\"><label class=\"m_b_none m_l_10p l_s_none f_w_500\">Sì</label></td>
  3820. \t\t\t\t\t\t\t\t\t\t</tr>
  3821. \t\t\t\t\t\t\t\t\t</table>
  3822. \t\t\t\t\t\t\t\t</div>
  3823. \t\t\t\t\t\t\t</div>
  3824. \t\t\t\t\t\t</div>
  3825. \t\t\t\t\t\t<div class=\"row\" id=\"row_receive_ddt\">
  3826. \t\t\t\t\t\t\t<div class=\"col-6 form-group\">
  3827. \t\t\t\t\t\t\t\t<label class=\"form_label\">Numero DDT*</label>
  3828. \t\t\t\t\t\t\t\t<div {{ form_errors(formReceive.ddt) }}>
  3829. \t\t\t\t\t\t\t\t\t{{ form_widget(formReceive.ddt) }}
  3830. \t\t\t\t\t\t\t\t</div>
  3831. \t\t\t\t\t\t\t</div>
  3832. \t\t\t\t\t\t\t<div class=\"col-6 form-group\">
  3833. \t\t\t\t\t\t\t\t<label class=\"form_label\">DDT*</label>
  3834. \t\t\t\t\t\t\t\t<div {{ form_errors(formReceive.ddtPath) }}>
  3835. \t\t\t\t\t\t\t\t\t{{ form_widget(formReceive.ddtPath, {'attr': {'class':'display_n'}}) }}
  3836. \t\t\t\t\t\t\t\t\t{{ form_widget(formReceive.file, {'attr': {'class':'display_n'}}) }}
  3837. \t\t\t\t\t\t\t\t\t<div class=\"input-group\">
  3838. \t\t\t\t\t\t\t\t\t\t<span class=\"input-group-btn\"><button id=\"selectFile1\" class=\"button button-3d button-small button-rounded button-pr button_input_group\" type=\"button\">Seleziona</button></span>
  3839. \t\t\t\t\t\t\t\t\t\t<input id=\"filename1\" type=\"text\" class=\"form-control\" readonly>
  3840. \t\t\t\t\t\t\t\t\t</div>
  3841. \t\t\t\t\t\t\t\t</div>
  3842. \t\t\t\t\t\t\t</div>
  3843. \t\t\t\t\t\t</div>
  3844. \t\t\t\t\t</div>
  3845. \t\t\t\t\t<div class=\"modal-footer\">
  3846. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  3847. \t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Continua</button>
  3848. \t\t\t\t\t</div>
  3849. \t\t\t\t{{ form_end(formReceive) }}
  3850. \t\t\t</div>
  3851. \t\t</div>
  3852. \t</div>
  3853. \t
  3854. \t{# Invia #}
  3855. \t<div id=\"transferSendModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  3856. \t\t<div class=\"modal-dialog\" role=\"document\">
  3857. \t\t\t<div class=\"modal-content\">
  3858. \t\t\t\t{{ form_start(formSend, {'attr': {'novalidate': 'novalidate', 'id':'formSend'}}) }}
  3859. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Invia materiale</h3></div>
  3860. \t\t\t\t\t<div class=\"modal-body\">
  3861. \t\t\t\t\t\t<div class=\"row\" id=\"row_select_type\">
  3862. \t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
  3863. \t\t\t\t\t\t\t\t<label class=\"form_label\">A chi stai inviando il materiale?</label>
  3864. \t\t\t\t\t\t\t</div>
  3865. \t\t\t\t\t\t\t{% if warehouse.headquarter %}
  3866. \t\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 txt_a_c\">
  3867. \t\t\t\t\t\t\t\t\t<a href=\"javascript: transferSendSetType('destination')\" class=\"button button-3d button-mini button-pr width_200p txt_a_c\">Destinazione esterna</a>
  3868. \t\t\t\t\t\t\t\t</div>
  3869. \t\t\t\t\t\t\t{% else %}
  3870. \t\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 txt_a_c\">
  3871. \t\t\t\t\t\t\t\t\t<a href=\"javascript: transferSendSetType('main')\" class=\"button button-3d button-mini button-pr width_200p txt_a_c\">Sede centrale</a>
  3872. \t\t\t\t\t\t\t\t</div>
  3873. \t\t\t\t\t\t\t{% endif %}
  3874. \t\t\t\t\t\t\t<div class=\"col-12 col-md-6 txt_a_c\">
  3875. \t\t\t\t\t\t\t\t<a href=\"javascript: transferSendSetType('technician')\" class=\"button button-3d button-mini button-pr width_200p txt_a_c\" id=\"a_send_technician\">Tecnico</a>
  3876. \t\t\t\t\t\t\t</div>
  3877. \t\t\t\t\t\t\t{{ form_widget(formSend.type, {'attr':{'class':'display_n'}}) }}
  3878. \t\t\t\t\t\t</div>
  3879. \t\t\t\t\t\t<div class=\"row m_t_30p\" id=\"row_send_data\" style=\"display: none\">
  3880. \t\t\t\t\t\t\t<div class=\"col-12\">
  3881. \t\t\t\t\t\t\t\t<h4 class=\"form_title\">Invia materiale a: <span id=\"span_send_type\" class=\"f_w_b\"></span></h4>
  3882. \t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
  3883. \t\t\t\t\t\t\t</div>
  3884. \t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_user_from_select\" style=\"display: none\">
  3885. \t\t\t\t\t\t\t\t<label class=\"form_label\">Tecnico di partenza*</label>
  3886. \t\t\t\t\t\t\t\t<div {{ form_errors(formSend.userFrom) }}>
  3887. \t\t\t\t\t\t\t\t\t{{ form_widget(formSend.userFrom, {'attr':{'class':'form-control form-select'}}) }}
  3888. \t\t\t\t\t\t\t\t</div>
  3889. \t\t\t\t\t\t\t</div>
  3890. \t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_user_to_select\">
  3891. \t\t\t\t\t\t\t\t<label class=\"form_label\">Tecnico di destinazione*</label>
  3892. \t\t\t\t\t\t\t\t<div {{ form_errors(formSend.userTo) }}>
  3893. \t\t\t\t\t\t\t\t\t{{ form_widget(formSend.userTo, {'attr':{'class':'form-control form-select', 'onchange':'updateTechnicianWarehouses()'}}) }}
  3894. \t\t\t\t\t\t\t\t</div>
  3895. \t\t\t\t\t\t\t</div>
  3896. \t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_warehouse_select\">
  3897. \t\t\t\t\t\t\t\t<label class=\"form_label\">Magazzino di destinazione*</label>
  3898. \t\t\t\t\t\t\t\t<div {{ form_errors(formSend.warehouse) }}>
  3899. \t\t\t\t\t\t\t\t\t{{ form_widget(formSend.warehouse, {'attr':{'class':'form-control form-select'}}) }}
  3900. \t\t\t\t\t\t\t\t</div>
  3901. \t\t\t\t\t\t\t</div>
  3902. \t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_warehouse_selected\" style=\"display: none\">
  3903. \t\t\t\t\t\t\t\t<label class=\"form_label\">Magazzino di destinazione*</label>
  3904. \t\t\t\t\t\t\t\t<input type=\"text\" readonly=\"true\" class=\"form-control\" id=\"input_warehouse_display\">
  3905. \t\t\t\t\t\t\t</div>
  3906. \t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"div_send_supplier\">
  3907. \t\t\t\t\t\t\t\t<label class=\"form_label\">Fornitore*</label>
  3908. \t\t\t\t\t\t\t\t<div {{ form_errors(formSend.supplier) }}>
  3909. \t\t\t\t\t\t\t\t\t{{ form_widget(formSend.supplier, {'attr':{'class':'form-control form-select', 'onChange':'showHideDivestment()'}}) }}
  3910. \t\t\t\t\t\t\t\t</div>
  3911. \t\t\t\t\t\t\t</div>
  3912. \t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"div_send_ddt_mandatory\" style=\"display: none\">
  3913. \t\t\t\t\t\t\t\t<div {{ form_errors(formSend.ddtMandatory) }}>
  3914. \t\t\t\t\t\t\t\t\t{% set checked = false %}
  3915. \t\t\t\t\t\t\t\t\t{% if settingDdtMandatory.value %}
  3916. \t\t\t\t\t\t\t\t\t\t{% set checked = true %}
  3917. \t\t\t\t\t\t\t\t\t{% endif %}
  3918. \t\t\t\t\t\t\t\t\t<table class=\"table table-sm b_none m_b_none\">
  3919. \t\t\t\t\t\t\t\t\t\t<tr>
  3920. \t\t\t\t\t\t\t\t\t\t\t<td><label class=\"form_label m_b_none\">Caricamento DDT firmato obbligatorio?</label></td>
  3921. \t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p txt_a_r\"><label class=\"m_b_none m_r_10p l_s_none f_w_500\">No</label></td>
  3922. \t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p\">{{ form_widget(formSend.ddtMandatory, {'attr': {'class':'switch-toggle switch-flat-mini switch-toggle-flat', 'checked':checked}}) }}<label class=\"m_auto\" for=\"{{ formSend.ddtMandatory.vars.id }}\"></label></td>
  3923. \t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p txt_a_l\"><label class=\"m_b_none m_l_10p l_s_none f_w_500\">Sì</label></td>
  3924. \t\t\t\t\t\t\t\t\t\t</tr>
  3925. \t\t\t\t\t\t\t\t\t</table>
  3926. \t\t\t\t\t\t\t\t</div>
  3927. \t\t\t\t\t\t\t</div>
  3928. \t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"div_send_divestment\" style=\"display: none\">
  3929. \t\t\t\t\t\t\t\t<div {{ form_errors(formSend.divestment) }}>
  3930. \t\t\t\t\t\t\t\t\t<table class=\"table table-sm b_none m_b_none\">
  3931. \t\t\t\t\t\t\t\t\t\t<tr>
  3932. \t\t\t\t\t\t\t\t\t\t\t<td><label class=\"form_label m_b_none\">è dismissione?</label></td>
  3933. \t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p txt_a_r\"><label class=\"m_b_none m_r_10p l_s_none f_w_500\">No</label></td>
  3934. \t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p\">{{ form_widget(formSend.divestment, {'attr': {'class':'switch-toggle switch-flat-mini switch-toggle-flat'}}) }}<label class=\"m_auto\" for=\"{{ formSend.divestment.vars.id }}\"></label></td>
  3935. \t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p txt_a_l\"><label class=\"m_b_none m_l_10p l_s_none f_w_500\">Sì</label></td>
  3936. \t\t\t\t\t\t\t\t\t\t</tr>
  3937. \t\t\t\t\t\t\t\t\t</table>
  3938. \t\t\t\t\t\t\t\t</div>
  3939. \t\t\t\t\t\t\t</div>
  3940. \t\t\t\t\t\t</div>
  3941. \t\t\t\t\t</div>
  3942. \t\t\t\t\t{{ form_widget(formSend.sendStocksIds, {'attr':{'class':'display_n'}}) }}
  3943. \t\t\t\t\t{{ form_widget(formSend.productRequestId, {'attr':{'class':'display_n'}}) }}
  3944. \t\t\t\t\t<div class=\"modal-footer\">
  3945. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  3946. \t\t\t\t\t\t<a id=\"button_send_submit\" href=\"javascript:void(0)\" class=\"button button-3d button-mini button-grey f_right\">Continua</a>
  3947. \t\t\t\t\t</div>
  3948. \t\t\t\t{{ form_end(formSend) }}
  3949. \t\t\t</div>
  3950. \t\t</div>
  3951. \t</div>
  3952. \t
  3953. \t{# Stock - Gestito #}
  3954. \t<div id=\"stockManagedModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  3955. \t\t<div class=\"modal-dialog\" role=\"document\">
  3956. \t\t\t<div class=\"modal-content\">
  3957. \t\t\t\t<form action=\"{{ path ('user_warehouse_stock_multiple_select_action', {'warehouseId':warehouse.id}) }}\" method=\"post\" id=\"formManaged\">
  3958. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Prodotti gestiti</h3></div>\t\t\t\t\t\t
  3959. \t\t\t\t\t<div class=\"modal-body\">
  3960. \t\t\t\t\t\t<input type=\"hidden\" id=\"managedStocksIds\" name=\"ids\">
  3961. \t\t\t\t\t\t<input type=\"hidden\" id=\"managedAction\" name=\"action\">
  3962. \t\t\t\t\t\t<div class=\"row\">
  3963. \t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
  3964. \t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
  3965. \t\t\t\t\t\t\t\t<p class=\"modal_paragraph\">Cliccando sul bottone <a class='button button-3d button-mini button-green' href='javascript:void(0)'>conferma</a> i prodotti selezionati verranno segnati come gestiti.<br>Si Ã¨ sicuri di voler proseguire?</p>
  3966. \t\t\t\t\t\t\t</div>
  3967. \t\t\t\t\t\t</div>
  3968. \t\t\t\t\t</div>
  3969. \t\t\t\t\t<div class=\"modal-footer\">
  3970. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  3971. \t\t\t\t\t\t<button type=\"button\" class=\"button button-3d button-mini button-green f_right\" onclick=\"javascript: checkSubmit('managed')\">Conferma</button>
  3972. \t\t\t\t\t</div>
  3973. \t\t\t\t</form>
  3974. \t\t\t</div>
  3975. \t\t</div>
  3976. \t</div>
  3977. \t
  3978. \t{# Stock - Aggiungi fornitori #}
  3979. \t<div id=\"stockSupplierModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  3980. \t\t<div class=\"modal-dialog\" role=\"document\">
  3981. \t\t\t<div class=\"modal-content\">
  3982. \t\t\t\t<form action=\"{{ path ('user_warehouse_stock_multiple_select_action', {'warehouseId':warehouse.id}) }}\" method=\"post\" id=\"formSupplier\">
  3983. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Aggiungi fornitori per i prodotti</h3></div>\t\t\t\t\t\t
  3984. \t\t\t\t\t<div class=\"modal-body\">
  3985. \t\t\t\t\t\t<input type=\"hidden\" id=\"supplierStocksIds\" name=\"ids\">
  3986. \t\t\t\t\t\t<input type=\"hidden\" id=\"supplierAction\" name=\"action\">
  3987. \t\t\t\t\t\t<div class=\"row\">
  3988. \t\t\t\t\t\t\t<div class=\"col-12\">
  3989. \t\t\t\t\t\t\t\t<label class=\"form_label\">Seleziona i fornitori da aggiungere</label>
  3990. \t\t\t\t\t\t\t\t<div id=\"divErrorSupplier\">
  3991. \t\t\t\t\t\t\t\t\t{% for s in suppliers %}
  3992. \t\t\t\t\t\t\t\t\t\t<table class=\"table table_no_padding b_none m_b_none\">
  3993. \t\t\t\t\t\t\t\t\t\t\t<tr>
  3994. \t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p\"><input id=\"input_supplier_{{ s.id }}\" type=\"checkbox\" class=\"switch-toggle switch-flat-mini switch-toggle-flat supplier_checkboxes\" name=\"supplier_{{ s.id }}\"><label class=\"m_b_none\" for=\"input_supplier_{{ s.id }}\"></label></td>
  3995. \t\t\t\t\t\t\t\t\t\t\t\t<td><label class=\"m_b_none form_label\">{{ s.name }}</label></td>
  3996. \t\t\t\t\t\t\t\t\t\t\t</tr>
  3997. \t\t\t\t\t\t\t\t\t\t</table>
  3998. \t\t\t\t\t\t\t\t\t{% endfor %}
  3999. \t\t\t\t\t\t\t\t</div>
  4000. \t\t\t\t\t\t\t</div>
  4001. \t\t\t\t\t\t</div>
  4002. \t\t\t\t\t</div>
  4003. \t\t\t\t\t<div class=\"modal-footer\">
  4004. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  4005. \t\t\t\t\t\t<button type=\"button\" class=\"button button-3d button-mini button-green f_right\" onclick=\"javascript: checkSubmit('supplier')\">Conferma</button>
  4006. \t\t\t\t\t</div>
  4007. \t\t\t\t</form>
  4008. \t\t\t</div>
  4009. \t\t</div>
  4010. \t</div>
  4011. \t{# Stock - Cambio condizione #}
  4012. \t<div id=\"stockConditionModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  4013. \t\t<div class=\"modal-dialog\" role=\"document\">
  4014. \t\t\t<div class=\"modal-content\">
  4015. \t\t\t\t<form action=\"{{ path ('user_warehouse_stock_multiple_select_action', {'warehouseId':warehouse.id}) }}\" method=\"post\" id=\"formCondition\">
  4016. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Cambia condizione prodotti</h3></div>
  4017. \t\t\t\t\t<div class=\"modal-body\">
  4018. \t\t\t\t\t\t<input type=\"hidden\" id=\"conditionStocksIds\" name=\"ids\">
  4019. \t\t\t\t\t\t<input type=\"hidden\" id=\"conditionAction\" name=\"action\">
  4020. \t\t\t\t\t\t<input type=\"hidden\" id=\"stockTab\" name=\"tab\">
  4021. \t\t\t\t\t\t<div class=\"row\">
  4022. \t\t\t\t\t\t\t<div class=\"col-12\">
  4023. \t\t\t\t\t\t\t\t<label class=\"form_label\">Seleziona nuova condizione</label>
  4024. \t\t\t\t\t\t\t\t<div id=\"divErrorCondition\">
  4025. \t\t\t\t\t\t\t\t\t<select class=\"form-control form-select\" id=\"select_product_condition\" name=\"productCondition\">
  4026. \t\t\t\t\t\t\t\t\t\t<option></option>
  4027. \t\t\t\t\t\t\t\t\t\t{% for condition in productConditions %}
  4028. \t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ condition.id }}\">{{ condition.value }}</option>
  4029. \t\t\t\t\t\t\t\t\t\t{% endfor %}
  4030. \t\t\t\t\t\t\t\t\t</select>
  4031. \t\t\t\t\t\t\t\t</div>
  4032. \t\t\t\t\t\t\t</div>
  4033. \t\t\t\t\t\t</div>
  4034. \t\t\t\t\t</div>
  4035. \t\t\t\t\t<div class=\"modal-footer\">
  4036. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  4037. \t\t\t\t\t\t<button type=\"button\" class=\"button button-3d button-mini button-green f_right\" onclick=\"javascript: checkSubmit('condition')\">Conferma</button>
  4038. \t\t\t\t\t</div>
  4039. \t\t\t\t</form>
  4040. \t\t\t</div>
  4041. \t\t</div>
  4042. \t</div>
  4043. \t
  4044. \t{# Transfer - Elimina #}
  4045. \t<div id=\"transferDeleteModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  4046. \t\t<div class=\"modal-dialog\" role=\"document\">
  4047. \t\t\t<div class=\"modal-content\">
  4048. \t\t\t\t<form action=\"{{ path ('user_warehouse_transfer_delete', {'warehouseId':warehouse.id}) }}\" method=\"post\">
  4049. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Trasferimento - Elimina</h3></div>
  4050. \t\t\t\t\t<div class=\"modal-body\">
  4051. \t\t\t\t\t\t<input type=\"hidden\" id=\"transferDeleteId\" name=\"transferDelId\"/>
  4052. \t\t\t\t\t\t<input type=\"hidden\" name=\"warehouseId\" value=\"{{ warehouse.id }}\"/>
  4053. \t\t\t\t\t\t<div class=\"row\">
  4054. \t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
  4055. \t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label>
  4056. \t\t\t\t\t\t\t\t<p class=\"modal_paragraph\">Cliccando sul bottone <a class='button button-3d button-mini button-red' href='javascript:void(0)'>conferma</a> eliminerai il trasferimento.<br>Si Ã¨ sicuri di voler proseguire?</p>
  4057. \t\t\t\t\t\t\t</div>
  4058. \t\t\t\t\t\t</div>
  4059. \t\t\t\t\t</div>
  4060. \t\t\t\t\t<div class=\"modal-footer\">
  4061. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-green f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  4062. \t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-red f_right\">Conferma</button>
  4063. \t\t\t\t\t</div>
  4064. \t\t\t\t</form>
  4065. \t\t\t</div>
  4066. \t\t</div>
  4067. \t</div>\t
  4068. \t
  4069. \t{# Product request - Sheet #}
  4070. \t<div id=\"productRequestSheetModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  4071. \t\t<div class=\"modal-dialog\" role=\"document\">
  4072. \t\t\t<div class=\"modal-content\">
  4073. \t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richiesta materiale - Dettaglio</h3></div>
  4074. \t\t\t\t<div class=\"modal-body\">
  4075. \t\t\t\t\t<table class=\"table table-sm responsive_font_size\">
  4076. \t\t\t\t\t\t<tr>
  4077. \t\t\t\t\t\t\t<th class=\"td_w_150p\">Data/Ora</th>
  4078. \t\t\t\t\t\t\t<td id=\"request_sheet_datetime\"></td>
  4079. \t\t\t\t\t\t</tr>
  4080. \t\t\t\t\t\t<tr>
  4081. \t\t\t\t\t\t\t<th>Tecnico</th>
  4082. \t\t\t\t\t\t\t<td id=\"request_sheet_technician\"></td>
  4083. \t\t\t\t\t\t</tr>
  4084. \t\t\t\t\t\t</tr>
  4085. \t\t\t\t\t\t\t<th>Magazzino tecnico</th>
  4086. \t\t\t\t\t\t\t<td id=\"request_sheet_warehouse\"></td>
  4087. \t\t\t\t\t\t</tr>
  4088. \t\t\t\t\t\t</tr>
  4089. \t\t\t\t\t\t\t<th>Magazzino richiesta</th>
  4090. \t\t\t\t\t\t\t<td id=\"request_sheet_warehouse_headquarter\"></td>
  4091. \t\t\t\t\t\t</tr>
  4092. \t\t\t\t\t\t<tr>
  4093. \t\t\t\t\t\t\t<th colspan=\"2\" style=\"border:0px\">Note</th>
  4094. \t\t\t\t\t\t</tr>
  4095. \t\t\t\t\t\t<tr>
  4096. \t\t\t\t\t\t\t<td colspan=\"2\" id=\"request_sheet_notes\"></td>
  4097. \t\t\t\t\t\t</tr>
  4098. \t\t\t\t\t</table>
  4099. \t\t\t\t</div>
  4100. \t\t\t\t<div class=\"modal-footer txt_a_c\">
  4101. \t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red\" data-bs-dismiss=\"modal\">Chiudi</a>
  4102. \t\t\t\t</div>
  4103. \t\t\t</div>
  4104. \t\t</div>
  4105. \t</div>
  4106. \t{# Product request - Take charge #}
  4107. \t<div id=\"productRequestTakeChargeModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  4108. \t\t<div class=\"modal-dialog\" role=\"document\">
  4109. \t\t\t<div class=\"modal-content\">
  4110. \t\t\t\t<form action=\"{{ path ('user_warehouse_product_request_take_charge', {'warehouseId':warehouse.id}) }}\" method=\"post\">
  4111. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richiesta prodotti - Prendi in carico</h3></div>
  4112. \t\t\t\t\t<div class=\"modal-body\">
  4113. \t\t\t\t\t\t<input type=\"hidden\" id=\"product_request_take_charge_id\" name=\"productRequestId\">
  4114. \t\t\t\t\t\t<div class=\"row\">
  4115. \t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
  4116. \t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
  4117. \t\t\t\t\t\t\t\t<p class=\"modal_paragraph\">Cliccando sul bottone <a class='button button-3d button-mini button-green' href='javascript:void(0)'>conferma</a> prenderai in carico la richiesta.<br>Si Ã¨ sicuri di voler proseguire?</p>
  4118. \t\t\t\t\t\t\t</div>
  4119. \t\t\t\t\t\t</div>
  4120. \t\t\t\t\t</div>
  4121. \t\t\t\t\t<div class=\"modal-footer\">
  4122. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  4123. \t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Conferma</button>
  4124. \t\t\t\t\t</div>
  4125. \t\t\t\t</form>
  4126. \t\t\t</div>
  4127. \t\t</div>
  4128. \t</div>
  4129. \t
  4130. \t{# Product request - Take charge #}
  4131. \t<div id=\"productRequestManagedModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  4132. \t\t<div class=\"modal-dialog\" role=\"document\">
  4133. \t\t\t<div class=\"modal-content\">
  4134. \t\t\t\t<form action=\"{{ path ('user_warehouse_product_request_managed', {'warehouseId':warehouse.id}) }}\" method=\"post\">
  4135. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richiesta prodotti - Gestita</h3></div>
  4136. \t\t\t\t\t<div class=\"modal-body\">
  4137. \t\t\t\t\t\t<input type=\"hidden\" id=\"product_request_managed_id\" name=\"productRequestId\">
  4138. \t\t\t\t\t\t<div class=\"row\">
  4139. \t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
  4140. \t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
  4141. \t\t\t\t\t\t\t\t<p class=\"modal_paragraph\">Cliccando sul bottone <a class='button button-3d button-mini button-green' href='javascript:void(0)'>conferma</a> dichiarerai gestita la richiesta.<br>Si Ã¨ sicuri di voler proseguire?</p>
  4142. \t\t\t\t\t\t\t</div>
  4143. \t\t\t\t\t\t</div>
  4144. \t\t\t\t\t</div>
  4145. \t\t\t\t\t<div class=\"modal-footer\">
  4146. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  4147. \t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Conferma</button>
  4148. \t\t\t\t\t</div>
  4149. \t\t\t\t</form>
  4150. \t\t\t</div>
  4151. \t\t</div>
  4152. \t</div>
  4153. \t
  4154. \t{# Product request - Delete #}
  4155. \t<div id=\"productRequestDeleteModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
  4156. \t\t<div class=\"modal-dialog\" role=\"document\">
  4157. \t\t\t<div class=\"modal-content\">
  4158. \t\t\t\t<form action=\"{{ path ('user_warehouse_product_request_delete', {'warehouseId':warehouse.id}) }}\" method=\"post\">
  4159. \t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richieste prodotto - Elimina</h3></div>
  4160. \t\t\t\t\t<div class=\"modal-body\">
  4161. \t\t\t\t\t\t<input type=\"hidden\" id=\"product_request_delete_id\" name=\"productRequestId\">
  4162. \t\t\t\t\t\t<div class=\"row\">
  4163. \t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
  4164. \t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
  4165. \t\t\t\t\t\t\t\t<p class=\"modal_paragraph\">Cliccando sul bottone <a class='button button-3d button-mini button-red' href='javascript:void(0)'>conferma</a> eliminerai la richiesta.<br>Si Ã¨ sicuri di voler proseguire?</p>
  4166. \t\t\t\t\t\t\t</div>
  4167. \t\t\t\t\t\t</div>
  4168. \t\t\t\t\t</div>
  4169. \t\t\t\t\t<div class=\"modal-footer\">
  4170. \t\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-green f_left\" data-bs-dismiss=\"modal\">Annulla</a>
  4171. \t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-red f_right\">Conferma</button>
  4172. \t\t\t\t\t</div>
  4173. \t\t\t\t</form>
  4174. \t\t\t</div>
  4175. \t\t</div>
  4176. \t</div>
  4177. {% endblock %}
  4178. {% block modals %}
  4179. \t{% include 'components/modals/filter_supplier.html.twig' with {'number':0, 'suppliers':suppliers} %}
  4180. \t{% include 'components/modals/filter_supplier.html.twig' with {'number':1, 'suppliers':suppliers} %}
  4181. \t{% include 'components/modals/filter_supplier.html.twig' with {'number':2, 'suppliers':suppliers} %}
  4182. \t{% include 'components/modals/filter_supplier.html.twig' with {'number':3, 'suppliers':suppliers} %}
  4183. \t{# Dati magazzino #}
  4184. \t{% set editWarehouseModalBody %}
  4185. \t\t<input type=\"hidden\" id=\"warehouseEditId\" name=\"warehouseEditId\"/>
  4186. \t\t<div class=\"row\">
  4187. \t\t\t<div class=\"col-12 form-group\">
  4188. \t\t\t\t<label class=\"form_label\">Nome*</label>
  4189. \t\t\t\t<div {{ form_errors(formEdit.nickname) }}>
  4190. \t\t\t\t\t{{ form_widget(formEdit.nickname) }}
  4191. \t\t\t\t</div>
  4192. \t\t\t</div>
  4193. \t\t\t<div class=\"col-12 form-group\">
  4194. \t\t\t\t<label class=\"form_label\">Indirizzo DDT*</label>
  4195. \t\t\t\t<div {{ form_errors(formEdit.address) }}>
  4196. \t\t\t\t\t{{ form_widget(formEdit.address) }}
  4197. \t\t\t\t</div>
  4198. \t\t\t</div>
  4199. \t\t\t<div class=\"col-12 col-md-6 form-group\">
  4200. \t\t\t\t<label class=\"form_label\">Sede centrale</label>
  4201. \t\t\t\t<div {{ form_errors(formEdit.headquarter) }}>
  4202. \t\t\t\t\t<table class=\"m_none\">
  4203. \t\t\t\t\t\t<tr>
  4204. \t\t\t\t\t\t\t<td class=\"txt_a_l\"><label class=\"m_b_none m_r_10p l_s_none f_w_500\">No</label></td>
  4205. \t\t\t\t\t\t\t<td>{{ form_widget(formEdit.headquarter, {'attr': {'class':'switch-toggle switch-flat-mini switch-toggle-flat'}}) }}<label class=\"m_auto\" for=\"{{ formEdit.headquarter.vars.id }}\"></label></td>
  4206. \t\t\t\t\t\t\t<td class=\"txt_a_l\"><label class=\"m_b_none m_l_10p l_s_none f_w_500\">Sì</label></td>
  4207. \t\t\t\t\t\t</tr>
  4208. \t\t\t\t\t</table>
  4209. \t\t\t\t</div>
  4210. \t\t\t</div>
  4211. \t\t\t<div class=\"col-12 col-md-6 form-group\">
  4212. \t\t\t\t<label class=\"form_label\">Magazzino mobile</label>
  4213. \t\t\t\t<div {{ form_errors(formEdit.movable) }}>
  4214. \t\t\t\t\t<table class=\"m_none\">
  4215. \t\t\t\t\t\t<tr>
  4216. \t\t\t\t\t\t\t<td class=\"txt_a_l\"><label class=\"m_b_none m_r_10p l_s_none f_w_500\">No</label></td>
  4217. \t\t\t\t\t\t\t<td>{{ form_widget(formEdit.movable, {'attr': {'class':'switch-toggle switch-flat-mini switch-toggle-flat'}}) }}<label class=\"m_auto\" for=\"{{ formEdit.movable.vars.id }}\"></label></td>
  4218. \t\t\t\t\t\t\t<td class=\"txt_a_l\"><label class=\"m_b_none m_l_10p l_s_none f_w_500\">Sì</label></td>
  4219. \t\t\t\t\t\t</tr>
  4220. \t\t\t\t\t</table>
  4221. \t\t\t\t</div>
  4222. \t\t\t</div>
  4223. \t\t</div>
  4224. \t{% endset %}
  4225. \t{% set editWarehouseScriptBody %}{% endset %}
  4226. \t{% include 'components/modals/edit.html.twig' with {'type':'warehouse', 'form':formEdit, 'text':'Magazzino', 'modalBody':editWarehouseModalBody, 'scriptBody':editWarehouseScriptBody, 'openModal':'openEditModal', 'id':''} %}
  4227. {% endblock %}
  4228. {% block javascripts %}
  4229. {{ parent() }}
  4230. {% include 'components/js/upload_file_js.html.twig' with {'number':'1', 'file':'form_transfer_receive_file', 'path':'form_transfer_receive_ddtPath'} %}
  4231. {% include 'components/js/upload_file_js.html.twig' with {'number':'2', 'file':'form_import_inventory_file', 'path':'form_import_inventory_path'} %}
  4232. {% include 'components/js/sort_js.html.twig' with {'number':0, 'actualSortField':filters.sortField_0, 'actualSortOrder':filters.sortOrder_0, 'sort_field':'sort_field_0', 'sort_order':'sort_order_0', 'formName':'formFilter_0', 'arrowClass':'filter_arrow_0'} %}
  4233. {% include 'components/js/sort_js.html.twig' with {'number':1, 'actualSortField':filters.sortField_1, 'actualSortOrder':filters.sortOrder_1, 'sort_field':'sort_field_1', 'sort_order':'sort_order_1', 'formName':'formFilter_1', 'arrowClass':'filter_arrow_1'} %}
  4234. {% include 'components/js/sort_js.html.twig' with {'number':2, 'actualSortField':filters.sortField_2, 'actualSortOrder':filters.sortOrder_2, 'sort_field':'sort_field_2', 'sort_order':'sort_order_2', 'formName':'formFilter_2', 'arrowClass':'filter_arrow_2'} %}
  4235. {% include 'components/js/sort_js.html.twig' with {'number':3, 'actualSortField':filters.sortField_3, 'actualSortOrder':filters.sortOrder_3, 'sort_field':'sort_field_3', 'sort_order':'sort_order_3', 'formName':'formFilter_3', 'arrowClass':'filter_arrow_3'} %}
  4236. {% include 'components/js/filter_supplier_js.html.twig' with {'number':0, 'suppliers':suppliers, 'filterSupplier':filters.supplier_0} %}
  4237. {% include 'components/js/filter_supplier_js.html.twig' with {'number':1, 'suppliers':suppliers, 'filterSupplier':filters.supplier_1} %}
  4238. {% include 'components/js/filter_supplier_js.html.twig' with {'number':2, 'suppliers':suppliers, 'filterSupplier':filters.supplier_1} %}
  4239. {% include 'components/js/filter_supplier_js.html.twig' with {'number':3, 'suppliers':suppliers, 'filterSupplier':filters.supplier_1} %}
  4240. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange1last_1', 'format':'DD-MM-YYYY HH:mm'} %}
  4241. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange1last_2', 'format':'DD-MM-YYYY HH:mm'} %}
  4242. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange1last_3', 'format':'DD-MM-YYYY HH:mm'} %}
  4243. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2creation_1', 'format':'DD-MM-YYYY HH:mm'} %}
  4244. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2send_1', 'format':'DD-MM-YYYY HH:mm'} %}
  4245. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2completion_1', 'format':'DD-MM-YYYY HH:mm'} %}
  4246. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2creation_2', 'format':'DD-MM-YYYY HH:mm'} %}
  4247. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2send_2', 'format':'DD-MM-YYYY HH:mm'} %}
  4248. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2completion_2', 'format':'DD-MM-YYYY HH:mm'} %}
  4249. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2creation_3', 'format':'DD-MM-YYYY HH:mm'} %}
  4250. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2send_3', 'format':'DD-MM-YYYY HH:mm'} %}
  4251. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2completion_3', 'format':'DD-MM-YYYY HH:mm'} %}
  4252. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange3_1', 'format':'DD-MM-YYYY HH:mm'} %}
  4253. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange3_2', 'format':'DD-MM-YYYY HH:mm'} %}
  4254. {% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange3_3', 'format':'DD-MM-YYYY HH:mm'} %}
  4255. <script>
  4256. \t\$(document).ready(function(){
  4257. \t\t// Inventory
  4258. \t\t{% if app.session.get('openStockInventoryModal') %}
  4259. \t\t\tstockInventory();
  4260. \t\t\t{% do app.session.remove('openStockInventoryModal') %}
  4261. \t\t{% endif %}
  4262. \t\t// Receive
  4263. \t\t{% if app.session.get('openTransferReceiveModal') %}
  4264. \t\t\ttransferReceive();
  4265. \t\t\t{% do app.session.remove('openTransferReceiveModal') %}
  4266. \t\t{% endif %}
  4267. \t\t// Invia
  4268. \t\t{% if app.session.get('openTransferSendModal') %}
  4269. \t\t\ttransferSend();
  4270. \t\t\t{% do app.session.remove('openTransferSendModal') %}
  4271. \t\t{% endif %}
  4272. \t\t{% if app.session.get('transferStocksIds') %}
  4273. \t\t\t{% do app.session.remove('transferStocksIds') %}
  4274. \t\t{% endif %}
  4275. \t\tvar dateRanges1last = document.getElementsByClassName('daterange1last');
  4276. \t\t{% if filters.dateLastTransfer_1 != null and filters.dateLastTransfer_1 != '' %}
  4277. \t\t\tfor(i=0; i<dateRanges1last.length; i++){
  4278. \t\t\t\tdateRanges1last[i].value = \"{{ filters.dateLastTransfer_1 }}\";
  4279. \t\t\t}
  4280. \t\t{% else %}
  4281. \t\t\tfor(i=0; i<dateRanges1last.length; i++){
  4282. \t\t\t\tdateRanges1last[i].value = \"\";
  4283. \t\t\t}
  4284. \t\t{% endif %}
  4285. \t\tvar dateRanges2creation = document.getElementsByClassName('daterange2creation');
  4286. \t\t{% if filters.datetimeCreation_2 != null and filters.datetimeCreation_2 != '' %}
  4287. \t\t\tfor(i=0; i<dateRanges2creation.length; i++){
  4288. \t\t\t\tdateRanges2creation[i].value = \"{{ filters.datetimeCreation_2 }}\";
  4289. \t\t\t}
  4290. \t\t{% else %}
  4291. \t\t\tfor(i=0; i<dateRanges2creation.length; i++){
  4292. \t\t\t\tdateRanges2creation[i].value = \"\";
  4293. \t\t\t}
  4294. \t\t{% endif %}
  4295. \t\t
  4296. \t\tvar dateRanges2send = document.getElementsByClassName('daterange2send');
  4297. \t\t{% if filters.datetimeSend_2 != null and filters.datetimeSend_2 != '' %}
  4298. \t\t\tfor(i=0; i<dateRanges2send.length; i++){
  4299. \t\t\t\tdateRanges2send[i].value = \"{{ filters.datetimeSend_2 }}\";
  4300. \t\t\t}
  4301. \t\t{% else %}
  4302. \t\t\tfor(i=0; i<dateRanges2send.length; i++){
  4303. \t\t\t\tdateRanges2send[i].value = \"\";
  4304. \t\t\t}
  4305. \t\t{% endif %}
  4306. \t\t
  4307. \t\tvar dateRanges2completion = document.getElementsByClassName('daterange2completion');
  4308. \t\t{% if filters.datetimeCompletion_2 != null and filters.datetimeCompletion_2 != '' %}
  4309. \t\t\tfor(i=0; i<dateRanges2completion.length; i++){
  4310. \t\t\t\tdateRanges2completion[i].value = \"{{ filters.datetimeCompletion_2 }}\";
  4311. \t\t\t}
  4312. \t\t{% else %}
  4313. \t\t\tfor(i=0; i<dateRanges2completion.length; i++){
  4314. \t\t\t\tdateRanges2completion[i].value = \"\";
  4315. \t\t\t}
  4316. \t\t{% endif %}
  4317. \t\tvar dateRanges3 = document.getElementsByClassName('daterange3');
  4318. \t\t{% if filters.date_3 != null and filters.date_3 != '' %}
  4319. \t\t\tfor(i=0; i<dateRanges3.length; i++){
  4320. \t\t\t\tdateRanges3[i].value = \"{{ filters.date_3 }}\";
  4321. \t\t\t}
  4322. \t\t{% else %}
  4323. \t\t\tfor(i=0; i<dateRanges3.length; i++){
  4324. \t\t\t\tdateRanges3[i].value = \"\";
  4325. \t\t\t}
  4326. \t\t{% endif %}
  4327. \t});
  4328. \tfunction selectAll(index, tab){
  4329. \t\tvar checkboxes = document.getElementsByClassName('stock_' + index + '_checkbox');
  4330. \t\tvar isSelect = document.getElementById('stock_' + index + '_all_checkboxes').checked;
  4331. \t\tfor(i=0; i<checkboxes.length; i++)
  4332. \t\t\tcheckboxes[i].checked = isSelect;
  4333. \t\tupdateButtons(index, tab);
  4334. \t}
  4335. \t
  4336. \tfunction updateButtons(index, tab){
  4337. \t\tvar inputSelectAll = document.getElementById('stock_' + index + '_all_checkboxes');
  4338. \t\tvar checkboxes = document.getElementsByClassName('stock_' + index + '_checkbox');
  4339. \t\tvar buttonCondition = document.getElementById('button_' + index + '_condition');
  4340. \t\tif(tab == 's_to_manage')
  4341. \t\t\tvar buttonManaged = document.getElementById('button_' + index + '_managed');
  4342. \t\t{% if app.user.getAccountTypology != 'technician' %}
  4343. \t\t\tif(tab == 's_to_manage' || tab == 's_available' || tab == 's_not_available')
  4344. \t\t\t\tvar buttonSupplier = document.getElementById('button_' + index + '_supplier');
  4345. \t\t{% endif %}
  4346. \t\tif(tab == 's_available' || tab == 's_not_available')
  4347. \t\t\tvar buttonSend = document.getElementById('button_' + index + '_send');
  4348. \t\tvar isAllSelected = true;
  4349. \t\tconst array = [];
  4350. \t\tfor(i=0; i<checkboxes.length; i++){
  4351. \t\t\tif(checkboxes[i].checked){
  4352. \t\t\t\tarray.push(checkboxes[i].value);
  4353. \t\t\t}
  4354. \t\t\telse
  4355. \t\t\t\tisAllSelected = false;
  4356. \t\t}
  4357. \t\t
  4358. \t\tif(!isAllSelected)
  4359. \t\t\tinputSelectAll.checked = false;
  4360. \t\t
  4361. \t\tif(array.length > 0){
  4362. \t\t\tbuttonCondition.className = \"button button-3d button-mini button-green f_right m_b_10p\";
  4363. \t\t\tbuttonCondition.href = \"javascript: sendAction('condition', \" + index + \", '\" + tab + \"')\";
  4364. \t\t\tif(tab == 's_to_manage'){
  4365. \t\t\t\tbuttonManaged.className = \"button button-3d button-mini button-green f_right m_b_10p\";
  4366. \t\t\t\tbuttonManaged.href = \"javascript: sendAction('managed', \" + index + \", '\" + tab + \"')\";
  4367. \t\t\t}
  4368. \t\t\t{% if app.user.getAccountTypology != 'technician' %}
  4369. \t\t\t\tif(tab == 's_to_manage' || tab == 's_available' || tab == 's_not_available'){
  4370. \t\t\t\t\tbuttonSupplier.className = \"button button-3d button-mini button-green f_right m_b_10p\";
  4371. \t\t\t\t\tbuttonSupplier.href = \"javascript: sendAction('supplier', \" + index + \", '\" + tab + \"')\";
  4372. \t\t\t\t}
  4373. \t\t\t{% endif %}
  4374. \t\t\tif(tab == 's_available' || tab == 's_not_available'){
  4375. \t\t\t\tbuttonSend.className = \"button button-3d button-mini button-green f_right m_b_10p\";
  4376. \t\t\t\tbuttonSend.href = \"javascript: sendAction('send', \" + index + \", '\" + tab + \"')\";
  4377. \t\t\t}
  4378. \t\t}
  4379. \t\telse{
  4380. \t\t\tbuttonCondition.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
  4381. \t\t\tbuttonCondition.href = \"javascript: void(0)\";
  4382. \t\t\tif(tab == 's_to_manage'){
  4383. \t\t\t\tbuttonManaged.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
  4384. \t\t\t\tbuttonManaged.href = \"javascript: void(0)\";
  4385. \t\t\t}
  4386. \t\t\t{% if app.user.getAccountTypology != 'technician' %}
  4387. \t\t\t\tif(tab == 's_to_manage' || tab == 's_available' || tab == 's_not_available'){
  4388. \t\t\t\t\tbuttonSupplier.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
  4389. \t\t\t\t\tbuttonSupplier.href = \"javascript: void(0)\";
  4390. \t\t\t\t}
  4391. \t\t\t{% endif %}
  4392. \t\t\tif(tab == 's_available' || tab == 's_not_available'){
  4393. \t\t\t\tbuttonSend.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
  4394. \t\t\t\tbuttonSend.href = \"javascript: void(0)\";
  4395. \t\t\t}
  4396. \t\t}
  4397. \t}
  4398. \tfunction sendAction(action, index, tab){
  4399. \t\tvar checkboxes = document.getElementsByClassName('stock_' + index + '_checkbox');
  4400. \t\tconst array = [];
  4401. \t\tfor(i=0; i<checkboxes.length; i++){
  4402. \t\t\tif(checkboxes[i].checked)
  4403. \t\t\t\tarray.push(checkboxes[i].value);
  4404. \t\t}
  4405. \t\tswitch(action){
  4406. \t\t\tcase 'managed':
  4407. \t\t\t\tdocument.getElementById('managedStocksIds').value = array;
  4408. \t\t\t\tdocument.getElementById('managedAction').value = action;
  4409. \t\t\t\t\$('#stockManagedModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  4410. \t\t\t\tbreak;
  4411. \t\t\tcase 'supplier':
  4412. \t\t\t\tvar checkboxes = document.getElementsByClassName('supplier_checkboxes');
  4413. \t\t\t\tfor(i=0; i<checkboxes.length; i++){
  4414. \t\t\t\t\tcheckboxes[i].removeAttribute(\"checked\");
  4415. \t\t\t\t\tcheckboxes[i].checked = false;
  4416. \t\t\t\t}
  4417. \t\t\t\tdocument.getElementById('supplierStocksIds').value = array;
  4418. \t\t\t\tdocument.getElementById('supplierAction').value = action;
  4419. \t\t\t\t\$('#stockSupplierModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  4420. \t\t\t\tbreak;
  4421. \t\t\tcase 'condition':
  4422. \t\t\t\tdocument.getElementById('conditionAction').value = action;
  4423. \t\t\t\tdocument.getElementById('conditionStocksIds').value = array;
  4424. \t\t\t\tswitch(index){
  4425. \t\t\t\t\tcase 0: document.getElementById('stockTab').value = 'to_manage'; break;
  4426. \t\t\t\t\tcase 1: document.getElementById('stockTab').value = 'available'; break;
  4427. \t\t\t\t\tcase 2: document.getElementById('stockTab').value = 'not_available'; break;
  4428. \t\t\t\t\tdefault: break;
  4429. \t\t\t\t}
  4430. \t\t\t\t\$('#stockConditionModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  4431. \t\t\t\tbreak;
  4432. \t\t\tcase 'send':
  4433. \t\t\t\tvar a = document.getElementById('a_send_technician');
  4434. \t\t\t\tif(tab == 's_not_available'){
  4435. \t\t\t\t\ta.href = \"javascript: void(0)\";
  4436. \t\t\t\t\ta.className = \"button button-3d button-mini button-grey width_200p txt_a_c\";
  4437. \t\t\t\t}
  4438. \t\t\t\telse{
  4439. \t\t\t\t\ta.href = \"javascript: transferSendSetType('technician')\";
  4440. \t\t\t\t\ta.className = \"button button-3d button-mini button-pr width_200p txt_a_c\";
  4441. \t\t\t\t}
  4442. \t\t\t\tdocument.getElementById('form_transfer_send_sendStocksIds').value = array;
  4443. \t\t\t\ttransferSend();
  4444. \t\t\t\tbreak;
  4445. \t\t\tdefault: break;
  4446. \t\t}
  4447. \t}
  4448. \tfunction checkSubmit(action){
  4449. \t\tswitch(action){
  4450. \t\t\tcase 'managed':
  4451. \t\t\t\ttriggerLoading();
  4452. \t\t\t\t\$('#formManaged').submit();
  4453. \t\t\t\tbreak;
  4454. \t\t\tcase 'supplier':
  4455. \t\t\t\tvar valid = false;
  4456. \t\t\t\tvar checkboxes = document.getElementsByClassName('supplier_checkboxes');
  4457. \t\t\t\tfor(i=0; i<checkboxes.length; i++){
  4458. \t\t\t\t\tif(checkboxes[i].checked){
  4459. \t\t\t\t\t\tvalid = true;
  4460. \t\t\t\t\t\tbreak;
  4461. \t\t\t\t\t}
  4462. \t\t\t\t}
  4463. \t\t\t\tif(valid){
  4464. \t\t\t\t\ttriggerLoading();
  4465. \t\t\t\t\t\$('#formSupplier').submit();
  4466. \t\t\t\t}
  4467. \t\t\t\telse{
  4468. \t\t\t\t\tvar divError = document.getElementById('divErrorSupplier');
  4469. \t\t\t\t\tdivError.className = 'error';
  4470. \t\t\t\t\tdivError.children[0].setAttribute('data-bs-toggle', 'tooltip');
  4471. \t\t\t\t\tdivError.children[0].setAttribute('title', 'Campo obbligatorio');
  4472. \t\t\t\t}
  4473. \t\t\t\tbreak;
  4474. \t\t\tcase 'condition':
  4475. \t\t\t\tif(document.getElementById('select_product_condition').value != 0){
  4476. \t\t\t\t\ttriggerLoading();
  4477. \t\t\t\t\t\$('#formCondition').submit();
  4478. \t\t\t\t}
  4479. \t\t\t\telse{
  4480. \t\t\t\t\tvar divError = document.getElementById('divErrorCondition');
  4481. \t\t\t\t\tdivError.className = 'error';
  4482. \t\t\t\t\tdivError.children[0].setAttribute('data-bs-toggle', 'tooltip');
  4483. \t\t\t\t\tdivError.children[0].setAttribute('title', 'Campo obbligatorio');
  4484. \t\t\t\t}
  4485. \t\t\t\tbreak;
  4486. \t\t\tdefault: break;
  4487. \t\t}
  4488. \t\t\$('[data-bs-toggle=\"tooltip\"]').tooltip();
  4489. \t}
  4490. \tfunction stockInventory(){
  4491. \t\t\$('#stockInventoryModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  4492. \t}
  4493. \t// RICEVI MATERIALE
  4494. \t\$('#form_transfer_receive_date').datepicker({ autoclose: true, todayHighlight: true, format: \"dd-mm-yyyy\", startDate: \"today\" });
  4495.     function transferReceive(){
  4496.         \$('#transferReceiveModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  4497.     }
  4498. \tfunction tranferReceiveShowHideDDT(){
  4499. \t\tif(document.getElementById('form_transfer_receive_ddtMandatory').checked == true){
  4500. \t\t\tdocument.getElementById('row_receive_ddt').style.display = 'flex';
  4501. \t\t}
  4502. \t\telse{
  4503. \t\t\tdocument.getElementById('row_receive_ddt').style.display = 'none';
  4504. \t\t}
  4505. \t}
  4506. \t// INVIA MATERIALE
  4507. \t\$('#form_transfer_send_date').datepicker({ autoclose: true, todayHighlight: true, format: \"dd-mm-yyyy\", startDate: \"today\" });
  4508.     function transferSend(){
  4509. \t\tdocument.getElementById('form_transfer_send_productRequestId').value = '';
  4510. \t\tdocument.getElementById('row_select_type').style.display = 'flex';
  4511. \t\tdocument.getElementById('row_warehouse_select').style.display = 'block';
  4512. \t\tdocument.getElementById('row_warehouse_selected').style.display = 'none';
  4513. \t\tdocument.getElementById('row_send_data').className = 'row m_t_30p';
  4514.         \$('#transferSendModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  4515.     }
  4516. \t
  4517. \tfunction transferSendSetType(type){
  4518. \t\tdocument.getElementById('form_transfer_send_type').value = type;
  4519. \t\t\$.post('{{ path (\"user_warehouse_transfer_update_warehouses\", {\"warehouseId\":warehouse.id}) }}', {type: type}, function(response){ 
  4520. \t\t\tif(response.code == 200 && response.success){
  4521. \t\t\t\tswitch(type){
  4522. \t\t\t\t\tcase 'technician': 
  4523. \t\t\t\t\t\tupdateTechnicianWarehouses();
  4524. \t\t\t\t\t\tdocument.getElementById('span_send_type').innerHTML = 'Tecnico';
  4525. \t\t\t\t\t\tdocument.getElementById('div_send_supplier').style.display = 'none';
  4526. \t\t\t\t\t\tdocument.getElementById('div_send_ddt_mandatory').style.display = 'block';
  4527. \t\t\t\t\t\tdocument.getElementById('row_user_to_select').style.display = 'block';
  4528. \t\t\t\t\t\t{% if warehouse.headquarter == 0 and app.user.getAccountTypology != 'technician' %}
  4529. \t\t\t\t\t\t\tdocument.getElementById('row_user_from_select').style.display = 'block';
  4530. \t\t\t\t\t\t{% endif %}
  4531. \t\t\t\t\t\tbreak;
  4532. \t\t\t\t\tcase 'destination':
  4533. \t\t\t\t\t\tdocument.getElementById('span_send_type').innerHTML = 'Destinazione esterna';
  4534. \t\t\t\t\t\tdocument.getElementById('div_send_supplier').style.display = 'block';
  4535. \t\t\t\t\t\tdocument.getElementById('div_send_ddt_mandatory').style.display = 'none';
  4536. \t\t\t\t\t\tdocument.getElementById('row_user_to_select').style.display = 'none';
  4537. \t\t\t\t\t\tbreak;
  4538. \t\t\t\t\tcase 'main':
  4539. \t\t\t\t\t\tdocument.getElementById('span_send_type').innerHTML = 'Sede centrale';
  4540. \t\t\t\t\t\tdocument.getElementById('div_send_supplier').style.display = 'none';
  4541. \t\t\t\t\t\tdocument.getElementById('div_send_ddt_mandatory').style.display = 'none';
  4542. \t\t\t\t\t\tdocument.getElementById('row_user_to_select').style.display = 'none';
  4543. \t\t\t\t\t\t{% if warehouse.headquarter == 0 and app.user.getAccountTypology != 'technician' %}
  4544. \t\t\t\t\t\t\tdocument.getElementById('row_user_from_select').style.display = 'block';
  4545. \t\t\t\t\t\t{% endif %}
  4546. \t\t\t\t\t\tbreak;
  4547. \t\t\t\t\tdefault: break;
  4548. \t\t\t\t}
  4549. \t\t\t\tvar select = document.getElementById('form_transfer_send_warehouse');
  4550. \t\t\t\twhile(select.options.length){
  4551. \t\t\t\t\tselect.remove(0);
  4552. \t\t\t\t}
  4553. \t\t\t\tvar warehouses = JSON.parse(response.warehouses);
  4554. \t\t\t\tfor(var i = 0; i < warehouses.length; i++){
  4555. \t\t\t\t\tvar option = new Option(warehouses[i]['nickname'], warehouses[i]['id']);
  4556. \t\t\t\t\tselect.options.add(option);
  4557. \t\t\t\t}
  4558. \t\t\t\tdocument.getElementById('row_send_data').style.display = 'flex';
  4559. \t\t\t\tdocument.getElementById('button_send_submit').className = 'button button-3d button-mini button-green f_right';
  4560. \t\t\t\tdocument.getElementById('button_send_submit').href = 'javascript: transferSendSubmit()';
  4561. \t\t\t}
  4562. \t\t}, \"json\");
  4563. \t}
  4564. \tfunction showHideDivestment(){
  4565. \t\tvar select = document.getElementById('form_transfer_send_supplier');
  4566. \t\tvar options = select.children;
  4567. \t\tif(options[select.selectedIndex].innerHTML == 'NEXI BOOK MONETICA' || options[select.selectedIndex].innerHTML == 'NEXI BOOK MEPS' || options[select.selectedIndex].innerHTML == 'NEXI BOOK SIA' || options[select.selectedIndex].innerHTML == 'DS - NEXI BOOK MONETICA' || options[select.selectedIndex].innerHTML == 'DS - NEXI BOOK MEPS' || options[select.selectedIndex].innerHTML == 'DS - NEXI BOOK SIA')
  4568. \t\t\tdocument.getElementById('div_send_divestment').style.display = 'block';
  4569. \t\telse
  4570. \t\t\tdocument.getElementById('div_send_divestment').style.display = 'none';
  4571. \t}
  4572. \tfunction updateTechnicianWarehouses(){
  4573. \t\ttechnicianId = document.getElementById('form_transfer_send_userTo').value;
  4574. \t\t\$.post('{{ path (\"user_warehouse_transfer_update_technician_warehouses\", {\"warehouseId\":warehouse.id}) }}', {technicianId: technicianId}, function(response){ 
  4575. \t\t\tif(response.code == 200 && response.success){
  4576. \t\t\t\tvar select = document.getElementById('form_transfer_send_warehouse');
  4577. \t\t\t\twhile(select.options.length){
  4578. \t\t\t\t\tselect.remove(0);
  4579. \t\t\t\t}
  4580. \t\t\t\tvar warehouses = JSON.parse(response.warehouses);
  4581. \t\t\t\tfor(var i = 0; i < warehouses.length; i++){
  4582. \t\t\t\t\tvar option = new Option(warehouses[i]['nickname'], warehouses[i]['id']);
  4583. \t\t\t\t\tselect.options.add(option);
  4584. \t\t\t\t}
  4585. \t\t\t\tdocument.getElementById('row_send_data').style.display = 'flex';
  4586. \t\t\t}
  4587. \t\t}, \"json\");
  4588. \t}
  4589. \tfunction transferSendSubmit(){
  4590. \t\t\$('#formSend').submit();
  4591. \t}
  4592.     function transferDelete(id){
  4593.         document.getElementById(\"transferDeleteId\").value = id;
  4594.         \$('#transferDeleteModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  4595.     }
  4596. \t
  4597. \t// GESTISCI RICHIESTE TECNICI
  4598. \tfunction productRequestSheet(id){
  4599. \t\tdocument.getElementById('request_sheet_datetime').innerHTML = document.getElementById('request_' + id + '_datetime').value;
  4600. \t\tdocument.getElementById('request_sheet_technician').innerHTML = document.getElementById('request_' + id + '_technician').value;
  4601. \t\tdocument.getElementById('request_sheet_warehouse').innerHTML = document.getElementById('request_' + id + '_warehouse').value;
  4602. \t\tdocument.getElementById('request_sheet_warehouse_headquarter').innerHTML = document.getElementById('request_' + id + '_warehouse_headquarter').value;
  4603. \t\tdocument.getElementById('request_sheet_notes').innerHTML = document.getElementById('request_' + id + '_notes').value;
  4604. \t\t\$('#productRequestSheetModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  4605. \t}
  4606. \tfunction productRequestDelete(id){
  4607. \t\tdocument.getElementById('product_request_delete_id').value = id;
  4608. \t\t\$('#productRequestDeleteModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  4609. \t}
  4610. \t{% if warehouse.headquarter %}
  4611. \t\tfunction productRequestTakeCharge(id){
  4612. \t\t\tdocument.getElementById('product_request_take_charge_id').value = id;
  4613. \t\t\t\$('#productRequestTakeChargeModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  4614. \t\t}
  4615. \t\t
  4616. \t\tfunction productRequestManaged(id){
  4617. \t\t\tdocument.getElementById('product_request_managed_id').value = id;
  4618. \t\t\t\$('#productRequestManagedModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
  4619. \t\t}
  4620. \t{% endif %}
  4621. </script>
  4622. {% endblock %}""role/user/warehouse/sheet.html.twig""/var/www/vhosts/eposmanager.software/templates/role/user/warehouse/sheet.html.twig");
  4623.     }
  4624. }