<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* role/user/warehouse/sheet.html.twig */
class __TwigTemplate_02b4364e834ca0e3b081089f332b5fa2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'pageTitleH1' => [$this, 'block_pageTitleH1'],
'pageTitleBreadcrumb' => [$this, 'block_pageTitleBreadcrumb'],
'subMenuLeft' => [$this, 'block_subMenuLeft'],
'subMenuRight' => [$this, 'block_subMenuRight'],
'content' => [$this, 'block_content'],
'tableStocks' => [$this, 'block_tableStocks'],
'tableTransfers' => [$this, 'block_tableTransfers'],
'tableRequests' => [$this, 'block_tableRequests'],
'modals' => [$this, 'block_modals'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "role/user/index.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "role/user/warehouse/sheet.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "role/user/warehouse/sheet.html.twig"));
$this->parent = $this->loadTemplate("role/user/index.html.twig", "role/user/warehouse/sheet.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield "Magazzino - Scheda";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 5
public function block_pageTitleH1($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageTitleH1"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageTitleH1"));
yield "Magazzino - Scheda";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 7
public function block_pageTitleBreadcrumb($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageTitleBreadcrumb"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "pageTitleBreadcrumb"));
// line 8
yield "\t<li class=\"breadcrumb-item\"><a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_list");
yield "\">Magazzini</a></li>
\t<li class=\"breadcrumb-item\"><a href=\"javascript:void(0)\">Scheda</a></li>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 12
public function block_subMenuLeft($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "subMenuLeft"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "subMenuLeft"));
// line 13
yield "\t";
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 13), "warehouses", [], "any", false, false, false, 13)) == 1)) {
// line 14
yield "\t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_index");
yield "\">Scrivania</a></li>
\t";
} else {
// line 16
yield "\t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_list");
yield "\">Magazzini</a></li>
\t";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 20
public function block_subMenuRight($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "subMenuRight"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "subMenuRight"));
// line 21
yield "\t";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 21), "canWrite", ["warehouse"], "method", false, false, false, 21) || ( !(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->source, CoreExtension::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", false, false, false, 21), "id", [], "any", false, false, false, 21)], "method", false, false, false, 21)) && (CoreExtension::getAttribute($this->env, $this->source, 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->source, CoreExtension::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", false, false, false, 21), "id", [], "any", false, false, false, 21)], "method", false, false, false, 21), "permission", [], "any", false, false, false, 21) == "RW")))) {
// line 22
yield "\t\t";
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", false, false, false, 22) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 22), "canWrite", ["warehouse"], "method", false, false, false, 22) || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 22), "canWrite", ["warehouse_receive_material"], "method", false, false, false, 22)))) {
// line 23
yield "\t\t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"javascript: transferReceive()\">Ricevi materiale</a></li>
\t\t";
}
// line 25
yield "\t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"javascript: transferSend()\">Invia materiale</a></li>
\t";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 29
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 30
yield "\t";
if (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 30), "getAccountTypology", [], "any", false, false, false, 30) == "agency") || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 30), "getAccountTypology", [], "any", false, false, false, 30) == "warehouse"))) {
// line 31
yield "\t\t";
$context["prReqTitle"] = "Richieste tecnici";
// line 32
yield "\t\t";
$context["prReqInserted"] = "Da gestire";
// line 33
yield "\t\t";
$context["prReqTakeCharge"] = "Prese in carico";
// line 34
yield "\t\t";
$context["prReqCompleted"] = "Gestite";
// line 35
yield "\t";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 35), "getAccountTypology", [], "any", false, false, false, 35) == "technician")) {
// line 36
yield "\t\t";
$context["prReqTitle"] = "Le tue richieste";
// line 37
yield "\t\t";
$context["prReqInserted"] = "Inviate";
// line 38
yield "\t\t";
$context["prReqTakeCharge"] = "Prese in carico";
// line 39
yield "\t\t";
$context["prReqCompleted"] = "Completate";
// line 40
yield "\t";
}
// line 41
yield "\t<section class=\"p_lr_30p m_tb_40p\">
\t\t<div class=\"row\">
\t\t\t<div class=\"col-12\">
\t\t\t\t<h3 class=\"form_title\">Magazzino: ";
// line 44
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", false, false, false, 44), "html", null, true);
yield "</h3>
\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t<div class=\"tabs clearfix\">
\t\t\t\t\t<ul class=\"tab-nav clearfix\">
\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>
\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>
\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>
\t\t\t\t\t\t";
// line 51
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", false, false, false, 51) && ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 51), "getAccountTypology", [], "any", false, false, false, 51) == "agency") || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 51), "getAccountTypology", [], "any", false, false, false, 51) == "warehouse"))) || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 51), "getAccountTypology", [], "any", false, false, false, 51) == "technician"))) {
// line 52
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=\"";
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", null, true);
yield "\"></i><span class=\"d-none d-md-block\">";
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", null, true);
yield "</span></a></li>
\t\t\t\t\t\t";
}
// line 54
yield "\t\t\t\t\t</ul>
\t\t\t\t\t<div class=\"tab-container\">
\t\t\t\t\t\t";
// line 57
yield "\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"stocks\">
\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Scorte in magazzino
\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 61
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", false, false, false, 61)]), "html", null, true);
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>
\t\t\t\t\t\t\t\t\t\t";
// line 62
if (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 62), "getAccountTypology", [], "any", false, false, false, 62) == "agency") || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 62), "getAccountTypology", [], "any", false, false, false, 62) == "warehouse"))) {
// line 63
yield "\t\t\t\t\t\t\t\t\t\t\t";
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", false, false, false, 63) && (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", false, false, false, 63) == 1))) {
// line 64
yield "\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
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", false, false, false, 64)]), "html", null, true);
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>
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 66
yield "\t\t\t\t\t\t\t\t\t\t\t";
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", false, false, false, 66) == 1)) {
// line 67
yield "\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
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", false, false, false, 67)]), "html", null, true);
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>
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 69
yield "\t\t\t\t\t\t\t\t\t\t";
}
// line 70
yield "\t\t\t\t\t\t\t\t\t\t";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 70), "canWrite", ["warehouse_inventory"], "method", false, false, false, 70)) {
// line 71
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>
\t\t\t\t\t\t\t\t\t\t";
}
// line 73
yield "\t\t\t\t\t\t\t\t\t</h4>
\t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t\t<div class=\"tabs clearfix\">
\t\t\t\t\t\t\t\t\t\t<ul class=\"tab-nav clearfix\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 79
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", false, false, false, 79)) {
// line 80
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 (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["toManageProductsCount"]) || array_key_exists("toManageProductsCount", $context) ? $context["toManageProductsCount"] : (function () { throw new RuntimeError('Variable "toManageProductsCount" does not exist.', 80, $this->source); })()), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">Da gestire (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["toManageProductsCount"]) || array_key_exists("toManageProductsCount", $context) ? $context["toManageProductsCount"] : (function () { throw new RuntimeError('Variable "toManageProductsCount" does not exist.', 80, $this->source); })()), "html", null, true);
yield ")</span></a></li>
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 82
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 (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["availableProductsCount"]) || array_key_exists("availableProductsCount", $context) ? $context["availableProductsCount"] : (function () { throw new RuntimeError('Variable "availableProductsCount" does not exist.', 82, $this->source); })()), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">Disponibili (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["availableProductsCount"]) || array_key_exists("availableProductsCount", $context) ? $context["availableProductsCount"] : (function () { throw new RuntimeError('Variable "availableProductsCount" does not exist.', 82, $this->source); })()), "html", null, true);
yield ")</span></a></li>
\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 (";
// line 83
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["notAvailableProductsCount"]) || array_key_exists("notAvailableProductsCount", $context) ? $context["notAvailableProductsCount"] : (function () { throw new RuntimeError('Variable "notAvailableProductsCount" does not exist.', 83, $this->source); })()), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">Non disponibili (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["notAvailableProductsCount"]) || array_key_exists("notAvailableProductsCount", $context) ? $context["notAvailableProductsCount"] : (function () { throw new RuntimeError('Variable "notAvailableProductsCount" does not exist.', 83, $this->source); })()), "html", null, true);
yield ")</span></a></li>
\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 (";
// line 84
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["transferProductsCount"]) || array_key_exists("transferProductsCount", $context) ? $context["transferProductsCount"] : (function () { throw new RuntimeError('Variable "transferProductsCount" does not exist.', 84, $this->source); })()), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">In trasferimento (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["transferProductsCount"]) || array_key_exists("transferProductsCount", $context) ? $context["transferProductsCount"] : (function () { throw new RuntimeError('Variable "transferProductsCount" does not exist.', 84, $this->source); })()), "html", null, true);
yield ")</span></a></li>
\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t<div class=\"tab-container\">
\t\t\t\t\t\t\t\t\t\t\t";
// line 87
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", false, false, false, 87)) {
// line 88
yield "\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"to_manage\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12\">
\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>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
\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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<form method=\"get\" action=\"";
// line 99
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", false, false, false, 99)]), "html", null, true);
yield "\" id=\"formFilter_0\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"3\"><a href=\"";
// line 100
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("remove_filter", ["route" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 100), "attributes", [], "any", false, false, false, 100), "get", ["_route"], "method", false, false, false, 100), "route_params" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 100), "attributes", [], "any", false, false, false, 100), "get", ["_route_params"], "method", false, false, false, 100)]), "html", null, true);
yield "\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Escludi filtri\"><img class=\"icon_action icon_red\" src=\"";
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", null, true);
yield "\"></a></td>
\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=\"";
// line 101
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeProducer_0", [], "any", true, true, false, 101)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeProducer_0", [], "any", false, false, false, 101))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 102
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "model_0", [], "any", true, true, false, 102)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "model_0", [], "any", false, false, false, 102))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 103
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "supplier_0", [], "any", true, true, false, 103)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "supplier_0", [], "any", false, false, false, 103))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 104
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "condition_0", [], "any", true, true, false, 104)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "condition_0", [], "any", false, false, false, 104))) : ("")), "html", null, true);
yield "\"/></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p d-none d-lg-table-cell\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"producer_0\" value=\"";
// line 105
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "producer_0", [], "any", true, true, false, 105)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "producer_0", [], "any", false, false, false, 105))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 106
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeSupplier_0", [], "any", true, true, false, 106)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeSupplier_0", [], "any", false, false, false, 106))) : ("")), "html", null, true);
yield "\"/></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p d-none d-lg-table-cell\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"sku_0\" value=\"";
// line 107
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sku_0", [], "any", true, true, false, 107)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sku_0", [], "any", false, false, false, 107))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 108
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "technician_0", [], "any", true, true, false, 108)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "technician_0", [], "any", false, false, false, 108))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 109
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "ddt_0", [], "any", true, true, false, 109)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "ddt_0", [], "any", false, false, false, 109))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 110
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.', 110, $this->source); })())), "html", null, true);
yield "\"></button></td>
\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\">
\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=\"";
// line 112
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_0", [], "any", true, true, false, 112)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_0", [], "any", false, false, false, 112))) : ("")), "html", null, true);
yield "\"/>
\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=\"";
// line 113
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_0", [], "any", true, true, false, 113)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_0", [], "any", false, false, false, 113))) : ("")), "html", null, true);
yield "\"/>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\"></th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\">
\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\">
\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')\">
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</th>
\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>
\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>
\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>
\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
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"d-none d-lg-table-cell\">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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"d-none d-lg-table-cell\">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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Tecnico</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th colspan=\"2\">DDT</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 137
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.', 137, $this->source); })())) > 0)) {
// line 138
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["toManageProducts"]) || array_key_exists("toManageProducts", $context) ? $context["toManageProducts"] : (function () { throw new RuntimeError('Variable "toManageProducts" does not exist.', 138, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 139
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["first"] = true;
// line 140
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["suppliersString"] = "";
// line 141
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "suppliers", [], "any", false, false, false, 141));
foreach ($context['_seq'] as $context["_key"] => $context["supplier"]) {
// line 142
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ((isset($context["first"]) || array_key_exists("first", $context) ? $context["first"] : (function () { throw new RuntimeError('Variable "first" does not exist.', 142, $this->source); })())) {
$context["first"] = false;
} else {
$context["suppliersString"] = ((isset($context["suppliersString"]) || array_key_exists("suppliersString", $context) ? $context["suppliersString"] : (function () { throw new RuntimeError('Variable "suppliersString" does not exist.', 142, $this->source); })()) . "-");
}
// line 143
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["suppliersString"] = ((isset($context["suppliersString"]) || array_key_exists("suppliersString", $context) ? $context["suppliersString"] : (function () { throw new RuntimeError('Variable "suppliersString" does not exist.', 143, $this->source); })()) . CoreExtension::getAttribute($this->env, $this->source, $context["supplier"], "id", [], "any", false, false, false, 143));
// line 144
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['supplier'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 145
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=\"";
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.', 145, $this->source); })()), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr ";
// line 146
if (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "toManage", [], "any", false, false, false, 146)) {
yield "class=\"bg_to_manage_";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "toManagePriority", [], "any", false, false, false, 146), "html", null, true);
yield "\"";
}
yield ">
\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=\"";
// line 147
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", false, false, false, 147)]), "html", null, true);
yield "\" data-bs-toggle=\"tooltip\" title=\"Scheda\"><img class=\"icon_action icon_pr\" src=\"";
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.', 147, $this->source); })())), "html", null, true);
yield "\"></a></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"switch\">
\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_";
// line 150
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 150), "html", null, true);
yield "\" class=\"switch-toggle switch-flat-mini switch-toggle-flat stock_0_checkbox\" type=\"checkbox\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 150), "html", null, true);
yield "\" onChange=\"javascript: updateButtons(0, 's_to_manage')\">
\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_";
// line 151
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 151), "html", null, true);
yield "\" class=\"m_b_none\"></label>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
\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\">";
// line 154
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "toManagePriority", [], "any", false, false, false, 154), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_codeProducer_";
// line 155
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 155), "html", null, true);
yield "\"><a href=\"";
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", false, false, false, 155)]), "html", null, true);
yield "\" class=\"underline\" target=\"_blank\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeProducer", [], "any", true, true, false, 155)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeProducer", [], "any", false, false, false, 155), "---")) : ("---")), "html", null, true);
yield "</a></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_model_";
// line 156
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 156), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "model", [], "any", false, false, false, 156), "name", [], "any", false, false, false, 156), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 157
yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displaySuppliers", [], "method", false, false, false, 157);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 158
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displayCondition", ["string-short"], "method", false, false, false, 158), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"d-none d-lg-table-cell\">";
// line 159
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "model", [], "any", false, false, false, 159), "producer", [], "any", false, false, false, 159), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_codeSupplier_";
// line 160
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 160), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeSupplier", [], "any", true, true, false, 160)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeSupplier", [], "any", false, false, false, 160), "---")) : ("---")), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"d-none d-lg-table-cell\">";
// line 161
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "model", [], "any", false, false, false, 161), "sku", [], "any", false, false, false, 161), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 162
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, $context["product"], "getLastTransfer", [], "any", false, false, false, 162))) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "getLastTransfer", [], "method", false, false, false, 162), "userFrom", [], "any", false, false, false, 162), "html", null, true);
}
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\">";
// line 163
yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displayTransfersDdt", [], "method", false, false, false, 163);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 166
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 167
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->loadTemplate("components/twig/notice_no_values.html.twig", "role/user/warehouse/sheet.html.twig", 167)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessun prodotto in questo stato"]));
// line 168
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 169
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 173
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.', 173, $this->source); })()));
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 178
yield "\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"available\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 179
$context["number"] = 1;
// line 180
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tab"] = "s_available";
// line 181
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["status"] = "available";
// line 182
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["products"] = (isset($context["availableProducts"]) || array_key_exists("availableProducts", $context) ? $context["availableProducts"] : (function () { throw new RuntimeError('Variable "availableProducts" does not exist.', 182, $this->source); })());
// line 183
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [false, 1, []];
// line 184
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 184, $this->source); })()), "user", [], "any", false, false, false, 184), "canWrite", ["warehouse"], "method", false, false, false, 184) || ((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.', 184, $this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 184, $this->source); })()), "user", [], "any", false, false, false, 184), "id", [], "any", false, false, false, 184)], "method", false, false, false, 184) != null) && (CoreExtension::getAttribute($this->env, $this->source, 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.', 184, $this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 184, $this->source); })()), "user", [], "any", false, false, false, 184), "id", [], "any", false, false, false, 184)], "method", false, false, false, 184), "permission", [], "any", false, false, false, 184) == "RW")))) {
// line 185
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 185, $this->source); })()), "user", [], "any", false, false, false, 185), "getAccountTypology", [], "any", false, false, false, 185) != "technician")) {
// line 186
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [true, 1, ["supplier", "condition", "send", "export"]];
// line 187
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 188
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [true, 1, ["condition", "send", "export"]];
// line 189
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 190
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 191
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock('tableStocks', $context, $blocks);
// line 287
yield "\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"not_available\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 289
$context["number"] = 2;
// line 290
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tab"] = "s_not_available";
// line 291
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["status"] = "not_available";
// line 292
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["products"] = (isset($context["notAvailableProducts"]) || array_key_exists("notAvailableProducts", $context) ? $context["notAvailableProducts"] : (function () { throw new RuntimeError('Variable "notAvailableProducts" does not exist.', 292, $this->source); })());
// line 293
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["index"] = 1;
// line 294
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [false, 2, []];
// line 295
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 295, $this->source); })()), "user", [], "any", false, false, false, 295), "canWrite", ["warehouse"], "method", false, false, false, 295) || ((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.', 295, $this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 295, $this->source); })()), "user", [], "any", false, false, false, 295), "id", [], "any", false, false, false, 295)], "method", false, false, false, 295) != null) && (CoreExtension::getAttribute($this->env, $this->source, 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.', 295, $this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 295, $this->source); })()), "user", [], "any", false, false, false, 295), "id", [], "any", false, false, false, 295)], "method", false, false, false, 295), "permission", [], "any", false, false, false, 295) == "RW")))) {
// line 296
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 296, $this->source); })()), "user", [], "any", false, false, false, 296), "getAccountTypology", [], "any", false, false, false, 296) != "technician")) {
// line 297
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [true, 2, ["supplier", "condition", "send", "export"]];
// line 298
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 299
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [true, 2, ["condition", "send", "export"]];
// line 300
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 301
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 302
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock("tableStocks", $context, $blocks);
yield "
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"transfer\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 305
$context["number"] = 3;
// line 306
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tab"] = "s_transfer";
// line 307
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["status"] = "transfer";
// line 308
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["products"] = (isset($context["transferProducts"]) || array_key_exists("transferProducts", $context) ? $context["transferProducts"] : (function () { throw new RuntimeError('Variable "transferProducts" does not exist.', 308, $this->source); })());
// line 309
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["index"] = 1;
// line 310
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [false, null, []];
// line 311
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock("tableStocks", $context, $blocks);
yield "
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
// line 319
yield "\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"transfers\">
\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Trasferimenti</h4>
\t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t\t\t\t\t\t<div class=\"tabs clearfix\">
\t\t\t\t\t\t\t\t\t\t<ul class=\"tab-nav clearfix\">
\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 (";
// line 326
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["incomingTransfers"]) || array_key_exists("incomingTransfers", $context) ? $context["incomingTransfers"] : (function () { throw new RuntimeError('Variable "incomingTransfers" does not exist.', 326, $this->source); })())), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">In entrata (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["incomingTransfers"]) || array_key_exists("incomingTransfers", $context) ? $context["incomingTransfers"] : (function () { throw new RuntimeError('Variable "incomingTransfers" does not exist.', 326, $this->source); })())), "html", null, true);
yield ")</span></a></li>
\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 (";
// line 327
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["outputTransfers"]) || array_key_exists("outputTransfers", $context) ? $context["outputTransfers"] : (function () { throw new RuntimeError('Variable "outputTransfers" does not exist.', 327, $this->source); })())), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">In uscita (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["outputTransfers"]) || array_key_exists("outputTransfers", $context) ? $context["outputTransfers"] : (function () { throw new RuntimeError('Variable "outputTransfers" does not exist.', 327, $this->source); })())), "html", null, true);
yield ")</span></a></li>
\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t<div class=\"tab-container\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"incoming\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 331
$context["transfers"] = (isset($context["incomingTransfers"]) || array_key_exists("incomingTransfers", $context) ? $context["incomingTransfers"] : (function () { throw new RuntimeError('Variable "incomingTransfers" does not exist.', 331, $this->source); })());
// line 332
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 1;
// line 333
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pt_incoming";
// line 334
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock('tableTransfers', $context, $blocks);
// line 412
yield "\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"output\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 414
$context["transfers"] = (isset($context["outputTransfers"]) || array_key_exists("outputTransfers", $context) ? $context["outputTransfers"] : (function () { throw new RuntimeError('Variable "outputTransfers" does not exist.', 414, $this->source); })());
// line 415
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 2;
// line 416
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pt_output";
// line 417
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock("tableTransfers", $context, $blocks);
yield "
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
// line 425
yield "\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"data\">
\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t<div class=\"col-12 col-lg-6\">
\t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Dati generici
\t\t\t\t\t\t\t\t\t\t";
// line 429
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 429, $this->source); })()), "user", [], "any", false, false, false, 429), "canWrite", ["warehouse"], "method", false, false, false, 429)) {
// line 430
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=\"";
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.', 430, $this->source); })())), "html", null, true);
yield "\"></a>
\t\t\t\t\t\t\t\t\t\t";
}
// line 432
yield "\t\t\t\t\t\t\t\t\t</h4>
\t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t\t\t\t\t\t<table class=\"table table-hover responsive_font_size\">
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<th>Nickname</th>
\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 437
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.', 437, $this->source); })()), "nickname", [], "any", false, false, false, 437), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<th>Attivo</th>
\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 441
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.', 441, $this->source); })()), "active", [], "any", false, false, false, 441)) {
yield "Sì";
} else {
yield "No";
}
yield "</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<th>Sede</th>
\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 445
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.', 445, $this->source); })()), "headquarter", [], "any", false, false, false, 445)) {
yield "Sì";
} else {
yield "No";
}
yield "</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<th>Indirizzo DDT</th>
\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 449
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.', 449, $this->source); })()), "address", [], "any", false, false, false, 449), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<th>Fisso/Mobile</th>
\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 453
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.', 453, $this->source); })()), "movable", [], "any", false, false, false, 453)) {
yield "Mobile";
} else {
yield "Fisso";
}
yield "</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"col-12 col-lg-6\">
\t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Utenti</h4>
\t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t\t\t\t\t\t<table class=\"table table-hover responsive_font_size\">
\t\t\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t\t<th>Utente</th>
\t\t\t\t\t\t\t\t\t\t\t\t<th>Permessi</th>
\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"txt_a_c\">Principale</th>
\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t\t";
// line 469
$context['_parent'] = $context;
$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.', 469, $this->source); })()), "users", [], "any", false, false, false, 469));
foreach ($context['_seq'] as $context["_key"] => $context["jtuw"]) {
// line 470
yield "\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 471
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["jtuw"], "user", [], "any", false, false, false, 471), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 472
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["jtuw"], "displayPermission", [], "any", false, false, false, 472), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">";
// line 473
if (CoreExtension::getAttribute($this->env, $this->source, $context["jtuw"], "main", [], "any", false, false, false, 473)) {
yield "Sì";
} else {
yield "No";
}
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['jtuw'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 476
yield "\t\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
// line 482
yield "\t\t\t\t\t\t";
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.', 482, $this->source); })()), "headquarter", [], "any", false, false, false, 482) && ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 482, $this->source); })()), "user", [], "any", false, false, false, 482), "getAccountTypology", [], "any", false, false, false, 482) == "agency") || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 482, $this->source); })()), "user", [], "any", false, false, false, 482), "getAccountTypology", [], "any", false, false, false, 482) == "warehouse"))) || (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 482, $this->source); })()), "user", [], "any", false, false, false, 482), "getAccountTypology", [], "any", false, false, false, 482) == "technician"))) {
// line 483
yield "\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"technicianRequests\">
\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">";
// line 486
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.', 486, $this->source); })()), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t";
// line 487
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 487, $this->source); })()), "user", [], "any", false, false, false, 487), "getAccountTypology", [], "any", false, false, false, 487) == "technician")) {
// line 488
yield "\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
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.', 488, $this->source); })()), "id", [], "any", false, false, false, 488)]), "html", null, true);
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>
\t\t\t\t\t\t\t\t\t\t\t";
}
// line 490
yield "\t\t\t\t\t\t\t\t\t\t</h4>
\t\t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t\t\t\t\t\t\t<div class=\"tabs clearfix\">
\t\t\t\t\t\t\t\t\t\t\t<ul class=\"tab-nav clearfix\">
\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=\"";
// line 494
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.', 494, $this->source); })()), "html", null, true);
yield " (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["insertedProductRequestsCount"]) || array_key_exists("insertedProductRequestsCount", $context) ? $context["insertedProductRequestsCount"] : (function () { throw new RuntimeError('Variable "insertedProductRequestsCount" does not exist.', 494, $this->source); })()), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">";
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.', 494, $this->source); })()), "html", null, true);
yield " (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["insertedProductRequestsCount"]) || array_key_exists("insertedProductRequestsCount", $context) ? $context["insertedProductRequestsCount"] : (function () { throw new RuntimeError('Variable "insertedProductRequestsCount" does not exist.', 494, $this->source); })()), "html", null, true);
yield ")</span></a></li>
\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=\"";
// line 495
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.', 495, $this->source); })()), "html", null, true);
yield " (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["takeChargeProductRequestsCount"]) || array_key_exists("takeChargeProductRequestsCount", $context) ? $context["takeChargeProductRequestsCount"] : (function () { throw new RuntimeError('Variable "takeChargeProductRequestsCount" does not exist.', 495, $this->source); })()), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">";
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.', 495, $this->source); })()), "html", null, true);
yield " (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["takeChargeProductRequestsCount"]) || array_key_exists("takeChargeProductRequestsCount", $context) ? $context["takeChargeProductRequestsCount"] : (function () { throw new RuntimeError('Variable "takeChargeProductRequestsCount" does not exist.', 495, $this->source); })()), "html", null, true);
yield ")</span></a></li>
\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=\"";
// line 496
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.', 496, $this->source); })()), "html", null, true);
yield " (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["completedProductRequestsCount"]) || array_key_exists("completedProductRequestsCount", $context) ? $context["completedProductRequestsCount"] : (function () { throw new RuntimeError('Variable "completedProductRequestsCount" does not exist.', 496, $this->source); })()), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">";
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.', 496, $this->source); })()), "html", null, true);
yield " (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["completedProductRequestsCount"]) || array_key_exists("completedProductRequestsCount", $context) ? $context["completedProductRequestsCount"] : (function () { throw new RuntimeError('Variable "completedProductRequestsCount" does not exist.', 496, $this->source); })()), "html", null, true);
yield ")</span></a></li>
\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-container\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"inserted\">
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 500
$context["requests"] = (isset($context["insertedProductRequests"]) || array_key_exists("insertedProductRequests", $context) ? $context["insertedProductRequests"] : (function () { throw new RuntimeError('Variable "insertedProductRequests" does not exist.', 500, $this->source); })());
// line 501
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pr_inserted";
// line 502
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 1;
// line 503
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "";
// line 504
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 504, $this->source); })()), "user", [], "any", false, false, false, 504), "getAccountTypology", [], "any", false, false, false, 504) == "agency") || ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 504, $this->source); })()), "user", [], "any", false, false, false, 504), "getAccountTypology", [], "any", false, false, false, 504) == "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.', 504, $this->source); })()), "headquarter", [], "any", false, false, false, 504)))) {
// line 505
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "take_charge";
// line 506
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 506, $this->source); })()), "user", [], "any", false, false, false, 506), "getAccountTypology", [], "any", false, false, false, 506) == "technician")) {
// line 507
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "delete";
// line 508
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 509
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock('tableRequests', $context, $blocks);
// line 578
yield "\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"take_charge\">
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 580
$context["requests"] = (isset($context["takeChargeProductRequests"]) || array_key_exists("takeChargeProductRequests", $context) ? $context["takeChargeProductRequests"] : (function () { throw new RuntimeError('Variable "takeChargeProductRequests" does not exist.', 580, $this->source); })());
// line 581
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pr_take_charge";
// line 582
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 2;
// line 583
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "";
// line 584
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 584, $this->source); })()), "user", [], "any", false, false, false, 584), "getAccountTypology", [], "any", false, false, false, 584) == "agency") || ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 584, $this->source); })()), "user", [], "any", false, false, false, 584), "getAccountTypology", [], "any", false, false, false, 584) == "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.', 584, $this->source); })()), "headquarter", [], "any", false, false, false, 584)))) {
// line 585
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "complete";
// line 586
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 587
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock("tableRequests", $context, $blocks);
yield "
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"completed\">
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 590
$context["requests"] = (isset($context["completedProductRequests"]) || array_key_exists("completedProductRequests", $context) ? $context["completedProductRequests"] : (function () { throw new RuntimeError('Variable "completedProductRequests" does not exist.', 590, $this->source); })());
// line 591
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pr_completed";
// line 592
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 3;
// line 593
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "";
// line 594
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock("tableRequests", $context, $blocks);
yield "
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 602
yield "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</section>
\t";
// line 609
yield "\t<div id=\"stockInventoryModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t";
// line 612
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.', 612, $this->source); })()), 'form_start', ["attr" => ["novalidate" => "novalidate"]]);
yield "
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Verifica inventario</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 form-group\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Fornitore*</label>
\t\t\t\t\t\t\t\t<div ";
// line 618
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.', 618, $this->source); })()), "supplier", [], "any", false, false, false, 618), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 619
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.', 619, $this->source); })()), "supplier", [], "any", false, false, false, 619), 'widget', ["attr" => ["class" => "form-control form-select"]]);
yield "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Stato*</label>
\t\t\t\t\t\t\t\t<div ";
// line 624
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.', 624, $this->source); })()), "status", [], "any", false, false, false, 624), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 625
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.', 625, $this->source); })()), "status", [], "any", false, false, false, 625), 'widget', ["attr" => ["class" => "form-control form-select"]]);
yield "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">File*</label>
\t\t\t\t\t\t\t\t<div ";
// line 630
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.', 630, $this->source); })()), "path", [], "any", false, false, false, 630), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 631
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.', 631, $this->source); })()), "path", [], "any", false, false, false, 631), 'widget', ["attr" => ["class" => "display_n"]]);
yield "
\t\t\t\t\t\t\t\t\t";
// line 632
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.', 632, $this->source); })()), "file", [], "any", false, false, false, 632), 'widget', ["attr" => ["class" => "display_n"]]);
yield "
\t\t\t\t\t\t\t\t\t<div class=\"input-group\">
\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>
\t\t\t\t\t\t\t\t\t\t<input id=\"filename2\" type=\"text\" class=\"form-control\" readonly>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Prosegui</button>
\t\t\t\t\t</div>
\t\t\t\t";
// line 645
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.', 645, $this->source); })()), 'form_end');
yield "
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t";
// line 651
yield "\t<div id=\"transferReceiveModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t";
// line 654
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.', 654, $this->source); })()), 'form_start', ["attr" => ["novalidate" => "novalidate"]]);
yield "
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Ricevi materiale</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 form-group\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Magazzino di provenienza*</label>
\t\t\t\t\t\t\t\t<div ";
// line 660
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.', 660, $this->source); })()), "warehouse", [], "any", false, false, false, 660), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 661
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.', 661, $this->source); })()), "warehouse", [], "any", false, false, false, 661), 'widget', ["attr" => ["class" => "form-control form-select"]]);
yield "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-6 form-group\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Stock order</label>
\t\t\t\t\t\t\t\t<div ";
// line 666
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.', 666, $this->source); })()), "stockOrder", [], "any", false, false, false, 666), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 667
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.', 667, $this->source); })()), "stockOrder", [], "any", false, false, false, 667), 'widget');
yield "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-6 form-group\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Inserire DDT?</label>
\t\t\t\t\t\t\t\t<div ";
// line 672
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.', 672, $this->source); })()), "ddtMandatory", [], "any", false, false, false, 672), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t<table class=\"m_none\">
\t\t\t\t\t\t\t\t\t\t<tr>
\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>
\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 676
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); })()), "ddtMandatory", [], "any", false, false, false, 676), 'widget', ["attr" => ["class" => "switch-toggle switch-flat-mini switch-toggle-flat", "onChange" => "javascript: tranferReceiveShowHideDDT()", "checked" => true]]);
yield "<label class=\"m_auto\" for=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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); })()), "ddtMandatory", [], "any", false, false, false, 676), "vars", [], "any", false, false, false, 676), "id", [], "any", false, false, false, 676), "html", null, true);
yield "\"></label></td>
\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>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"row\" id=\"row_receive_ddt\">
\t\t\t\t\t\t\t<div class=\"col-6 form-group\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Numero DDT*</label>
\t\t\t\t\t\t\t\t<div ";
// line 686
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.', 686, $this->source); })()), "ddt", [], "any", false, false, false, 686), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 687
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.', 687, $this->source); })()), "ddt", [], "any", false, false, false, 687), 'widget');
yield "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-6 form-group\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">DDT*</label>
\t\t\t\t\t\t\t\t<div ";
// line 692
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.', 692, $this->source); })()), "ddtPath", [], "any", false, false, false, 692), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 693
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.', 693, $this->source); })()), "ddtPath", [], "any", false, false, false, 693), 'widget', ["attr" => ["class" => "display_n"]]);
yield "
\t\t\t\t\t\t\t\t\t";
// line 694
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.', 694, $this->source); })()), "file", [], "any", false, false, false, 694), 'widget', ["attr" => ["class" => "display_n"]]);
yield "
\t\t\t\t\t\t\t\t\t<div class=\"input-group\">
\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>
\t\t\t\t\t\t\t\t\t\t<input id=\"filename1\" type=\"text\" class=\"form-control\" readonly>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Continua</button>
\t\t\t\t\t</div>
\t\t\t\t";
// line 707
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.', 707, $this->source); })()), 'form_end');
yield "
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t";
// line 713
yield "\t<div id=\"transferSendModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t";
// line 716
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.', 716, $this->source); })()), 'form_start', ["attr" => ["novalidate" => "novalidate", "id" => "formSend"]]);
yield "
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Invia materiale</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<div class=\"row\" id=\"row_select_type\">
\t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">A chi stai inviando il materiale?</label>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
// line 723
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.', 723, $this->source); })()), "headquarter", [], "any", false, false, false, 723)) {
// line 724
yield "\t\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 txt_a_c\">
\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>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
} else {
// line 728
yield "\t\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 txt_a_c\">
\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>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
}
// line 732
yield "\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 txt_a_c\">
\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>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
// line 735
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.', 735, $this->source); })()), "type", [], "any", false, false, false, 735), 'widget', ["attr" => ["class" => "display_n"]]);
yield "
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"row m_t_30p\" id=\"row_send_data\" style=\"display: none\">
\t\t\t\t\t\t\t<div class=\"col-12\">
\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>
\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_user_from_select\" style=\"display: none\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Tecnico di partenza*</label>
\t\t\t\t\t\t\t\t<div ";
// line 744
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); })()), "userFrom", [], "any", false, false, false, 744), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 745
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.', 745, $this->source); })()), "userFrom", [], "any", false, false, false, 745), 'widget', ["attr" => ["class" => "form-control form-select"]]);
yield "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_user_to_select\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Tecnico di destinazione*</label>
\t\t\t\t\t\t\t\t<div ";
// line 750
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.', 750, $this->source); })()), "userTo", [], "any", false, false, false, 750), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 751
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.', 751, $this->source); })()), "userTo", [], "any", false, false, false, 751), 'widget', ["attr" => ["class" => "form-control form-select", "onchange" => "updateTechnicianWarehouses()"]]);
yield "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_warehouse_select\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Magazzino di destinazione*</label>
\t\t\t\t\t\t\t\t<div ";
// line 756
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.', 756, $this->source); })()), "warehouse", [], "any", false, false, false, 756), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 757
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.', 757, $this->source); })()), "warehouse", [], "any", false, false, false, 757), 'widget', ["attr" => ["class" => "form-control form-select"]]);
yield "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_warehouse_selected\" style=\"display: none\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Magazzino di destinazione*</label>
\t\t\t\t\t\t\t\t<input type=\"text\" readonly=\"true\" class=\"form-control\" id=\"input_warehouse_display\">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"div_send_supplier\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Fornitore*</label>
\t\t\t\t\t\t\t\t<div ";
// line 766
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); })()), "supplier", [], "any", false, false, false, 766), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 767
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.', 767, $this->source); })()), "supplier", [], "any", false, false, false, 767), 'widget', ["attr" => ["class" => "form-control form-select", "onChange" => "showHideDivestment()"]]);
yield "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"div_send_ddt_mandatory\" style=\"display: none\">
\t\t\t\t\t\t\t\t<div ";
// line 771
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.', 771, $this->source); })()), "ddtMandatory", [], "any", false, false, false, 771), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 772
$context["checked"] = false;
// line 773
yield "\t\t\t\t\t\t\t\t\t";
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.', 773, $this->source); })()), "value", [], "any", false, false, false, 773)) {
// line 774
yield "\t\t\t\t\t\t\t\t\t\t";
$context["checked"] = true;
// line 775
yield "\t\t\t\t\t\t\t\t\t";
}
// line 776
yield "\t\t\t\t\t\t\t\t\t<table class=\"table table-sm b_none m_b_none\">
\t\t\t\t\t\t\t\t\t\t<tr>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p\">";
// line 780
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", false, false, false, 780), '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.', 780, $this->source); })())]]);
yield "<label class=\"m_auto\" for=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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", false, false, false, 780), "vars", [], "any", false, false, false, 780), "id", [], "any", false, false, false, 780), "html", null, true);
yield "\"></label></td>
\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>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"div_send_divestment\" style=\"display: none\">
\t\t\t\t\t\t\t\t<div ";
// line 787
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.', 787, $this->source); })()), "divestment", [], "any", false, false, false, 787), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t<table class=\"table table-sm b_none m_b_none\">
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<td><label class=\"form_label m_b_none\">è dismissione?</label></td>
\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>
\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p\">";
// line 792
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.', 792, $this->source); })()), "divestment", [], "any", false, false, false, 792), 'widget', ["attr" => ["class" => "switch-toggle switch-flat-mini switch-toggle-flat"]]);
yield "<label class=\"m_auto\" for=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 792, $this->source); })()), "divestment", [], "any", false, false, false, 792), "vars", [], "any", false, false, false, 792), "id", [], "any", false, false, false, 792), "html", null, true);
yield "\"></label></td>
\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>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t";
// line 800
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.', 800, $this->source); })()), "sendStocksIds", [], "any", false, false, false, 800), 'widget', ["attr" => ["class" => "display_n"]]);
yield "
\t\t\t\t\t";
// line 801
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); })()), "productRequestId", [], "any", false, false, false, 801), 'widget', ["attr" => ["class" => "display_n"]]);
yield "
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\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>
\t\t\t\t\t</div>
\t\t\t\t";
// line 806
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.', 806, $this->source); })()), 'form_end');
yield "
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t";
// line 812
yield "\t<div id=\"stockManagedModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<form action=\"";
// line 815
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.', 815, $this->source); })()), "id", [], "any", false, false, false, 815)]), "html", null, true);
yield "\" method=\"post\" id=\"formManaged\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Prodotti gestiti</h3></div>\t\t\t\t\t\t
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"managedStocksIds\" name=\"ids\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"managedAction\" name=\"action\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
\t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
\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>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\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>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t";
// line 837
yield "\t<div id=\"stockSupplierModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<form action=\"";
// line 840
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.', 840, $this->source); })()), "id", [], "any", false, false, false, 840)]), "html", null, true);
yield "\" method=\"post\" id=\"formSupplier\">
\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
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"supplierStocksIds\" name=\"ids\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"supplierAction\" name=\"action\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Seleziona i fornitori da aggiungere</label>
\t\t\t\t\t\t\t\t<div id=\"divErrorSupplier\">
\t\t\t\t\t\t\t\t\t";
// line 849
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["suppliers"]) || array_key_exists("suppliers", $context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.', 849, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["s"]) {
// line 850
yield "\t\t\t\t\t\t\t\t\t\t<table class=\"table table_no_padding b_none m_b_none\">
\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_40p\"><input id=\"input_supplier_";
// line 852
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "id", [], "any", false, false, false, 852), "html", null, true);
yield "\" type=\"checkbox\" class=\"switch-toggle switch-flat-mini switch-toggle-flat supplier_checkboxes\" name=\"supplier_";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "id", [], "any", false, false, false, 852), "html", null, true);
yield "\"><label class=\"m_b_none\" for=\"input_supplier_";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "id", [], "any", false, false, false, 852), "html", null, true);
yield "\"></label></td>
\t\t\t\t\t\t\t\t\t\t\t\t<td><label class=\"m_b_none form_label\">";
// line 853
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "name", [], "any", false, false, false, 853), "html", null, true);
yield "</label></td>
\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['s'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 857
yield "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\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>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
\t";
// line 871
yield "\t<div id=\"stockConditionModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<form action=\"";
// line 874
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.', 874, $this->source); })()), "id", [], "any", false, false, false, 874)]), "html", null, true);
yield "\" method=\"post\" id=\"formCondition\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Cambia condizione prodotti</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"conditionStocksIds\" name=\"ids\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"conditionAction\" name=\"action\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"stockTab\" name=\"tab\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Seleziona nuova condizione</label>
\t\t\t\t\t\t\t\t<div id=\"divErrorCondition\">
\t\t\t\t\t\t\t\t\t<select class=\"form-control form-select\" id=\"select_product_condition\" name=\"productCondition\">
\t\t\t\t\t\t\t\t\t\t<option></option>
\t\t\t\t\t\t\t\t\t\t";
// line 886
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["productConditions"]) || array_key_exists("productConditions", $context) ? $context["productConditions"] : (function () { throw new RuntimeError('Variable "productConditions" does not exist.', 886, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["condition"]) {
// line 887
yield "\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["condition"], "id", [], "any", false, false, false, 887), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["condition"], "value", [], "any", false, false, false, 887), "html", null, true);
yield "</option>
\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['condition'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 889
yield "\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\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>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t";
// line 904
yield "\t<div id=\"transferDeleteModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<form action=\"";
// line 907
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.', 907, $this->source); })()), "id", [], "any", false, false, false, 907)]), "html", null, true);
yield "\" method=\"post\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Trasferimento - Elimina</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"transferDeleteId\" name=\"transferDelId\"/>
\t\t\t\t\t\t<input type=\"hidden\" name=\"warehouseId\" value=\"";
// line 911
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.', 911, $this->source); })()), "id", [], "any", false, false, false, 911), "html", null, true);
yield "\"/>
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
\t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label>
\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>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-red f_right\">Conferma</button>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>\t
\t
\t";
// line 929
yield "\t<div id=\"productRequestSheetModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richiesta materiale - Dettaglio</h3></div>
\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t<table class=\"table table-sm responsive_font_size\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>Data/Ora</th>
\t\t\t\t\t\t\t<td id=\"request_sheet_datetime\"></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>Tecnico</th>
\t\t\t\t\t\t\t<td id=\"request_sheet_technician\"></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<th>Magazzino tecnico</th>
\t\t\t\t\t\t\t<td id=\"request_sheet_warehouse\"></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<th>Magazzino richiesta</th>
\t\t\t\t\t\t\t<td id=\"request_sheet_warehouse_headquarter\"></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td colspan=\"2\" id=\"request_sheet_details\"></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>Note</th>
\t\t\t\t\t\t\t<td id=\"request_sheet_notes\"></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-footer txt_a_c\">
\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red\" data-bs-dismiss=\"modal\">Chiudi</a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t";
// line 968
yield "\t<div id=\"productRequestTakeChargeModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<form action=\"";
// line 971
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.', 971, $this->source); })()), "id", [], "any", false, false, false, 971)]), "html", null, true);
yield "\" method=\"post\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richiesta prodotti - Prendi in carico</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"product_request_take_charge_id\" name=\"productRequestId\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
\t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
\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>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Conferma</button>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t";
// line 992
yield "\t<div id=\"productRequestManagedModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<form action=\"";
// line 995
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.', 995, $this->source); })()), "id", [], "any", false, false, false, 995)]), "html", null, true);
yield "\" method=\"post\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richiesta prodotti - Gestita</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"product_request_managed_id\" name=\"productRequestId\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
\t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
\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>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Conferma</button>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t";
// line 1016
yield "\t<div id=\"productRequestDeleteModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<form action=\"";
// line 1019
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.', 1019, $this->source); })()), "id", [], "any", false, false, false, 1019)]), "html", null, true);
yield "\" method=\"post\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richieste prodotto - Elimina</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"product_request_delete_id\" name=\"productRequestId\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
\t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
\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>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-red f_right\">Conferma</button>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 191
public function block_tableStocks($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tableStocks"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tableStocks"));
// line 192
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 194
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.', 194, $this->source); })()), 0, [], "array", false, false, false, 194)) {
// line 195
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
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.', 195, $this->source); })()), 2, [], "array", false, false, false, 195))) {
yield "<a id=\"button_";
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.', 195, $this->source); })()), 1, [], "array", false, false, false, 195), "html", null, true);
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>";
}
// line 196
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
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.', 196, $this->source); })()), 2, [], "array", false, false, false, 196))) {
yield "<a id=\"button_";
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.', 196, $this->source); })()), 1, [], "array", false, false, false, 196), "html", null, true);
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>";
}
// line 197
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
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.', 197, $this->source); })()), 2, [], "array", false, false, false, 197))) {
yield "<a id=\"button_";
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.', 197, $this->source); })()), 1, [], "array", false, false, false, 197), "html", null, true);
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>";
}
// line 198
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
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.', 198, $this->source); })()), 2, [], "array", false, false, false, 198))) {
yield "<a href=\"";
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.', 198, $this->source); })()), "id", [], "any", false, false, false, 198), "status" => (isset($context["status"]) || array_key_exists("status", $context) ? $context["status"] : (function () { throw new RuntimeError('Variable "status" does not exist.', 198, $this->source); })())]), "html", null, true);
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>";
}
// line 199
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 200
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
\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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<form method=\"get\" action=\"";
// line 205
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.', 205, $this->source); })()), "id", [], "any", false, false, false, 205)]), "html", null, true);
yield "\" id=\"formFilter_1\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td ";
// line 206
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.', 206, $this->source); })()), 0, [], "array", false, false, false, 206)) {
yield "colspan=\"2\"";
}
yield "><a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("remove_filter", ["route" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 206, $this->source); })()), "request", [], "any", false, false, false, 206), "attributes", [], "any", false, false, false, 206), "get", ["_route"], "method", false, false, false, 206), "route_params" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 206, $this->source); })()), "request", [], "any", false, false, false, 206), "attributes", [], "any", false, false, false, 206), "get", ["_route_params"], "method", false, false, false, 206)]), "html", null, true);
yield "\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Escludi filtro\"><img class=\"icon_action icon_red\" src=\"";
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.', 206, $this->source); })())), "html", null, true);
yield "\"></a></td>
\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=\"";
// line 207
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeProducer_1", [], "any", true, true, false, 207)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeProducer_1", [], "any", false, false, false, 207))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 208
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "model_1", [], "any", true, true, false, 208)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "model_1", [], "any", false, false, false, 208))) : ("")), "html", null, true);
yield "\"/></td>
\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_";
// line 209
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.', 209, $this->source); })()), "html", null, true);
yield "\" readonly onClick=\"filterSuppliers";
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.', 209, $this->source); })()), "html", null, true);
yield "()\" data-bs-toggle=\"tooltip\"/><input type=\"hidden\" id=\"filter_supplier_id_";
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.', 209, $this->source); })()), "html", null, true);
yield "\" name=\"supplier_1\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "supplier_1", [], "any", true, true, false, 209)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "supplier_1", [], "any", false, false, false, 209))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 210
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "condition_1", [], "any", true, true, false, 210)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "condition_1", [], "any", false, false, false, 210))) : ("")), "html", null, true);
yield "\"/></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_90p d-none d-lg-table-cell\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"producer_1\" value=\"";
// line 211
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "producer_1", [], "any", true, true, false, 211)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "producer_1", [], "any", false, false, false, 211))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 212
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeSupplier_1", [], "any", true, true, false, 212)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeSupplier_1", [], "any", false, false, false, 212))) : ("")), "html", null, true);
yield "\"/></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p d-none d-lg-table-cell\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"sku_1\" value=\"";
// line 213
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sku_1", [], "any", true, true, false, 213)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sku_1", [], "any", false, false, false, 213))) : ("")), "html", null, true);
yield "\"/></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p d-none d-lg-table-cell\"><input type=\"text\" class=\"form-control daterange1last font_12\" id=\"daterange1last_";
// line 214
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.', 214, $this->source); })()), "html", null, true);
yield "\" inputmode=\"search\" autocomplete=\"off\" name=\"dateLastTransfer_1\" style=\"height: 38px\" date-filter=\"range\"/></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_60p\">
\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=\"";
// line 216
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.', 216, $this->source); })())), "html", null, true);
yield "\"></button>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"";
// line 217
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.', 217, $this->source); })()), "id", [], "any", false, false, false, 217), "status" => (isset($context["status"]) || array_key_exists("status", $context) ? $context["status"] : (function () { throw new RuntimeError('Variable "status" does not exist.', 217, $this->source); })())]), "html", null, true);
yield "\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Esporta filtrati\"><img class=\"icon_action icon_amber\" src=\"";
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.', 217, $this->source); })())), "html", null, true);
yield "\"></a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
\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=\"";
// line 219
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.', 219, $this->source); })()), "html", null, true);
yield "\">
\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=\"";
// line 220
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_1", [], "any", true, true, false, 220)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_1", [], "any", false, false, false, 220))) : ("")), "html", null, true);
yield "\"/>
\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=\"";
// line 221
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_1", [], "any", true, true, false, 221)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_1", [], "any", false, false, false, 221))) : ("")), "html", null, true);
yield "\"/>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\"></th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 226
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.', 226, $this->source); })()), 0, [], "array", false, false, false, 226)) {
// line 227
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\">
\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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input id=\"stock_";
// line 229
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.', 229, $this->source); })()), 1, [], "array", false, false, false, 229), "html", null, true);
yield "_all_checkboxes\" class=\"switch-toggle switch-flat-mini switch-toggle-flat\" type=\"checkbox\" onChange=\"javascript: selectAll(";
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.', 229, $this->source); })()), 1, [], "array", false, false, false, 229), "html", null, true);
yield ", '";
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.', 229, $this->source); })()), "html", null, true);
yield "')\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"stock_";
// line 230
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.', 230, $this->source); })()), 1, [], "array", false, false, false, 230), "html", null, true);
yield "_all_checkboxes\" class=\"m_b_none\"></label>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 234
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>
\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>
\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<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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"d-none d-lg-table-cell\">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>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th colspan=\"2\" class=\"d-none d-lg-table-cell\">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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 245
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.', 245, $this->source); })())) > 0)) {
// line 246
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 246, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 247
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["first"] = true;
// line 248
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["suppliersString"] = "";
// line 249
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "suppliers", [], "any", false, false, false, 249));
foreach ($context['_seq'] as $context["_key"] => $context["supplier"]) {
// line 250
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ((isset($context["first"]) || array_key_exists("first", $context) ? $context["first"] : (function () { throw new RuntimeError('Variable "first" does not exist.', 250, $this->source); })())) {
$context["first"] = false;
} else {
$context["suppliersString"] = ((isset($context["suppliersString"]) || array_key_exists("suppliersString", $context) ? $context["suppliersString"] : (function () { throw new RuntimeError('Variable "suppliersString" does not exist.', 250, $this->source); })()) . "-");
}
// line 251
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["suppliersString"] = ((isset($context["suppliersString"]) || array_key_exists("suppliersString", $context) ? $context["suppliersString"] : (function () { throw new RuntimeError('Variable "suppliersString" does not exist.', 251, $this->source); })()) . CoreExtension::getAttribute($this->env, $this->source, $context["supplier"], "id", [], "any", false, false, false, 251));
// line 252
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['supplier'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 253
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=\"";
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.', 253, $this->source); })()), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr ";
// line 254
if (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "toManage", [], "any", false, false, false, 254)) {
yield "class=\"bg_to_manage_";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "toManagePriority", [], "any", false, false, false, 254), "html", null, true);
yield "\"";
}
yield ">
\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=\"";
// line 255
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", false, false, false, 255)]), "html", null, true);
yield "\" data-bs-toggle=\"tooltip\" title=\"Scheda\"><img class=\"icon_action icon_pr\" src=\"";
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.', 255, $this->source); })())), "html", null, true);
yield "\"></a></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 256
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.', 256, $this->source); })()), 0, [], "array", false, false, false, 256)) {
// line 257
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>
\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\">
\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_";
// line 259
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 259), "html", null, true);
yield "\" class=\"switch-toggle switch-flat-mini switch-toggle-flat stock_";
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.', 259, $this->source); })()), 1, [], "array", false, false, false, 259), "html", null, true);
yield "_checkbox\" type=\"checkbox\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 259), "html", null, true);
yield "\" onChange=\"javascript: updateButtons(";
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.', 259, $this->source); })()), 1, [], "array", false, false, false, 259), "html", null, true);
yield ", '";
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.', 259, $this->source); })()), "html", null, true);
yield "')\">
\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_";
// line 260
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 260), "html", null, true);
yield "\" class=\"m_b_none\"></label>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 264
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_";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 264), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeProducer", [], "any", true, true, false, 264)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeProducer", [], "any", false, false, false, 264), "---")) : ("---")), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_model_";
// line 265
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 265), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "model", [], "any", false, false, false, 265), "name", [], "any", false, false, false, 265), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 266
yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displaySuppliers", [], "method", false, false, false, 266);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 267
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displayCondition", ["string-short"], "method", false, false, false, 267), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 268
if (( !(null === CoreExtension::getAttribute($this->env, $this->source, $context["product"], "getLastTicket", [], "any", false, false, false, 268)) && ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 268, $this->source); })()) == "s_not_available"))) {
yield "<a href=\"";
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->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "getLastTicket", [], "any", false, false, false, 268), "id", [], "any", false, false, false, 268)]), "html", null, true);
yield "\" target=\"_blank\">";
yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displayLastRefs", [], "any", false, false, false, 268);
yield "</a>";
}
// line 269
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"d-none d-lg-table-cell\">";
// line 270
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "model", [], "any", false, false, false, 270), "producer", [], "any", false, false, false, 270), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"product_codeSupplier_";
// line 271
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 271), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeSupplier", [], "any", true, true, false, 271)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeSupplier", [], "any", false, false, false, 271), "---")) : ("---")), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 272
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["product"], "model", [], "any", false, false, false, 272), "sku", [], "any", false, false, false, 272), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\" class=\"d-none d-lg-table-cell\">";
// line 273
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "dateLastTransfer", [], "any", false, false, false, 273), "d-m-Y H:i"), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['product'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 276
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 277
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->loadTemplate("components/twig/notice_no_values.html.twig", "role/user/warehouse/sheet.html.twig", 277)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessun prodotto in questo stato"]));
// line 278
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 279
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 283
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.', 283, $this->source); })()));
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 334
public function block_tableTransfers($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tableTransfers"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tableTransfers"));
// line 335
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
\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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<form method=\"get\" action=\"";
// line 340
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.', 340, $this->source); })()), "id", [], "any", false, false, false, 340)]), "html", null, true);
yield "\" id=\"formFilter_2\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\"><a href=\"";
// line 341
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("remove_filter", ["route" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 341, $this->source); })()), "request", [], "any", false, false, false, 341), "attributes", [], "any", false, false, false, 341), "get", ["_route"], "method", false, false, false, 341), "route_params" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 341, $this->source); })()), "request", [], "any", false, false, false, 341), "attributes", [], "any", false, false, false, 341), "get", ["_route_params"], "method", false, false, false, 341)]), "html", null, true);
yield "\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Escludi filtro\"><img class=\"icon_action icon_red\" src=\"";
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.', 341, $this->source); })())), "html", null, true);
yield "\"></a></td>
\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_";
// line 342
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.', 342, $this->source); })()), "html", null, true);
yield "\" inputmode=\"search\" autocomplete=\"off\" name=\"datetimeCreation_2\" style=\"height: 38px\" date-filter=\"range\"/></td>
\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_";
// line 343
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.', 343, $this->source); })()), "html", null, true);
yield "\" inputmode=\"search\" autocomplete=\"off\" name=\"datetimeSend_2\" style=\"height: 38px\" date-filter=\"range\"/></td>
\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_";
// line 344
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.', 344, $this->source); })()), "html", null, true);
yield "\" inputmode=\"search\" autocomplete=\"off\" name=\"datetimeCompletion_2\" style=\"height: 38px\" date-filter=\"range\"/></td>
\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=\"";
// line 345
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouseFrom_2", [], "any", true, true, false, 345)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouseFrom_2", [], "any", false, false, false, 345))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 346
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouseTo_2", [], "any", true, true, false, 346)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouseTo_2", [], "any", false, false, false, 346))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 347
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "ddt_2", [], "any", true, true, false, 347)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "ddt_2", [], "any", false, false, false, 347))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 348
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "stockOrder_2", [], "any", true, true, false, 348)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "stockOrder_2", [], "any", false, false, false, 348))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 349
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.', 349, $this->source); })())), "html", null, true);
yield "\"></button></td>\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=\"";
// line 350
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.', 350, $this->source); })()), "html", null, true);
yield "\">
\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=\"";
// line 351
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_2", [], "any", true, true, false, 351)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_2", [], "any", false, false, false, 351))) : ("")), "html", null, true);
yield "\"/>
\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=\"";
// line 352
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_2", [], "any", true, true, false, 352)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_2", [], "any", false, false, false, 352))) : ("")), "html", null, true);
yield "\"/>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
\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>
\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>
\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>
\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>
\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>
\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\">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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\"></th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
\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>
\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>
\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";
// line 368
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 368, $this->source); })()), "user", [], "any", false, false, false, 368), "getAccountTypology", [], "method", false, false, false, 368) != "technician")) {
yield "ento";
}
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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 372
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.', 372, $this->source); })())) > 0)) {
// line 373
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["transfers"]) || array_key_exists("transfers", $context) ? $context["transfers"] : (function () { throw new RuntimeError('Variable "transfers" does not exist.', 373, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["pt"]) {
// line 374
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\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=\"";
// line 375
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.', 375, $this->source); })()), "id", [], "any", false, false, false, 375), "transferId" => CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "id", [], "any", false, false, false, 375)]), "html", null, true);
yield "\" data-bs-toggle=\"tooltip\" title=\"Scheda\"><img class=\"icon_action icon_pr\" src=\"";
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.', 375, $this->source); })())), "html", null, true);
yield "\"></a></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 376
yield CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "displayPhase", ["string"], "method", false, false, false, 376);
yield "</td>
\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\">";
// line 377
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "datetimeCreation", [], "any", false, false, false, 377), "d-m-Y H:i"), "html", null, true);
yield "</td>
\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\">";
// line 378
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "datetimeSend", [], "any", false, false, false, 378) != null)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "datetimeSend", [], "any", false, false, false, 378), "d-m-Y H:i"), "html", null, true);
} else {
yield "---";
}
yield "</td>
\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\">";
// line 379
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "datetimeCompletion", [], "any", false, false, false, 379) != null)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "datetimeCompletion", [], "any", false, false, false, 379), "d-m-Y H:i"), "html", null, true);
} else {
yield "---";
}
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 380
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "warehouseFrom", [], "any", false, false, false, 380) != null)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "warehouseFrom", [], "any", false, false, false, 380), "html", null, true);
} else {
yield "---";
}
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 381
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "warehouseTo", [], "any", false, false, false, 381) != null)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "warehouseTo", [], "any", false, false, false, 381), "html", null, true);
} else {
yield "---";
}
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 382
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "ddtPath", [], "any", false, false, false, 382) != null)) {
yield "N° ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "ddt", [], "any", false, false, false, 382), "html", null, true);
} else {
yield "---";
}
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 383
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "stockOrder", [], "any", false, false, false, 383) != null)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "stockOrder", [], "any", false, false, false, 383), "html", null, true);
} else {
yield "---";
}
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 384
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.', 384, $this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 384, $this->source); })()), "user", [], "any", false, false, false, 384), "id", [], "any", false, false, false, 384)], "method", false, false, false, 384) != null) && (CoreExtension::getAttribute($this->env, $this->source, 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.', 384, $this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 384, $this->source); })()), "user", [], "any", false, false, false, 384), "id", [], "any", false, false, false, 384)], "method", false, false, false, 384), "permission", [], "any", false, false, false, 384) == "RW")) || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 384, $this->source); })()), "user", [], "any", false, false, false, 384), "canWrite", ["warehouse"], "method", false, false, false, 384))) {
// line 385
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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 386
if (((isset($context["tabType"]) || array_key_exists("tabType", $context) ? $context["tabType"] : (function () { throw new RuntimeError('Variable "tabType" does not exist.', 386, $this->source); })()) == "pt_incoming")) {
// line 387
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "type", [], "any", false, false, false, 387) == "destination")) {
// line 388
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(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "id", [], "any", false, false, false, 388), "html", null, true);
yield ")\" data-bs-toggle=\"tooltip\" title=\"Elimina trasferimento\"><img class=\"icon_action icon_red\" src=\"";
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.', 388, $this->source); })())), "html", null, true);
yield "\"></a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 390
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} elseif (((isset($context["tabType"]) || array_key_exists("tabType", $context) ? $context["tabType"] : (function () { throw new RuntimeError('Variable "tabType" does not exist.', 390, $this->source); })()) == "pt_output")) {
// line 391
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "hasProductsTransfered", [], "any", false, false, false, 391)) {
// line 392
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=\"";
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.', 392, $this->source); })())), "html", null, true);
yield "\"></a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 394
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(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "id", [], "any", false, false, false, 394), "html", null, true);
yield ")\" data-bs-toggle=\"tooltip\" title=\"Elimina trasferimento\"><img class=\"icon_action icon_red\" src=\"";
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", null, true);
yield "\"></a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 396
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 397
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 399
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pt'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 401
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 402
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->loadTemplate("components/twig/notice_no_values.html.twig", "role/user/warehouse/sheet.html.twig", 402)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessuno trasferimento in questo stato"]));
// line 403
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 404
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 408
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.', 408, $this->source); })()));
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 509
public function block_tableRequests($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tableRequests"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "tableRequests"));
// line 510
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
\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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<form method=\"get\" action=\"";
// line 515
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.', 515, $this->source); })()), "id", [], "any", false, false, false, 515)]), "html", null, true);
yield "\" id=\"formFilter_3\">
\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=\"";
// line 516
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("remove_filter", ["route" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 516, $this->source); })()), "request", [], "any", false, false, false, 516), "attributes", [], "any", false, false, false, 516), "get", ["_route"], "method", false, false, false, 516), "route_params" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 516, $this->source); })()), "request", [], "any", false, false, false, 516), "attributes", [], "any", false, false, false, 516), "get", ["_route_params"], "method", false, false, false, 516)]), "html", null, true);
yield "\" class=\"f_right\" data-bs-toggle=\"tooltip\" title=\"Escludi filtro\"><img class=\"icon_action icon_red\" src=\"";
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.', 516, $this->source); })())), "html", null, true);
yield "\"></a></td>
\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_";
// line 517
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.', 517, $this->source); })()), "html", null, true);
yield "\" inputmode=\"search\" autocomplete=\"off\" name=\"date_3\" style=\"height: 38px\" date-filter=\"range\"/></td>
\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=\"";
// line 518
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "technician_3", [], "any", true, true, false, 518)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "technician_3", [], "any", false, false, false, 518))) : ("")), "html", null, true);
yield "\"/></td>
\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=\"";
// line 519
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouse_3", [], "any", true, true, false, 519)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouse_3", [], "any", false, false, false, 519))) : ("")), "html", null, true);
yield "\"/></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"3\" 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=\"";
// line 520
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.', 520, $this->source); })())), "html", null, true);
yield "\"></button></td>\t
\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=\"";
// line 521
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.', 521, $this->source); })()), "html", null, true);
yield "\">
\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=\"";
// line 522
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_3", [], "any", true, true, false, 522)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_3", [], "any", false, false, false, 522))) : ("")), "html", null, true);
yield "\"/>
\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=\"";
// line 523
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_3", [], "any", true, true, false, 523)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_3", [], "any", false, false, false, 523))) : ("")), "html", null, true);
yield "\"/>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 529
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.', 529, $this->source); })()), "headquarter", [], "any", false, false, false, 529)) {
// line 530
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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 532
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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 534
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"d-none d-lg-table-cell\">Prodotti</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"d-none d-lg-table-cell\">Note</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_action d-table-cell d-lg-none\"></th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 537
if (((((isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 537, $this->source); })()) == "delete") || ((isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 537, $this->source); })()) == "take_charge")) || ((isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 537, $this->source); })()) == "complete"))) {
yield "<th colspan=\"2\"></th>";
}
// line 538
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 541
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.', 541, $this->source); })())) > 0)) {
// line 542
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["requests"]) || array_key_exists("requests", $context) ? $context["requests"] : (function () { throw new RuntimeError('Variable "requests" does not exist.', 542, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["pr"]) {
// line 543
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=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "warehouse", [], "any", false, false, false, 543), "id", [], "any", false, false, false, 543), "html", null, true);
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_nickname\" value=\"";
// line 544
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "warehouse", [], "any", false, false, false, 544), "nickname", [], "any", false, false, false, 544), "html", null, true);
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_";
// line 545
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 545), "html", null, true);
yield "_details\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "displayDetails", [], "any", false, false, false, 545), "html", null, true);
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_";
// line 546
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 546), "html", null, true);
yield "_notes\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "notes", [], "any", false, false, false, 546), "html", null, true);
yield "\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"request_";
// line 548
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 548), "html", null, true);
yield "_datetime\" colspan=\"2\" class=\"txt_a_c\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "datetime", [], "any", false, false, false, 548), "d-m-Y H:i"), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"request_";
// line 549
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 549), "html", null, true);
yield "_technician\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "technician", [], "any", false, false, false, 549), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 550
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.', 550, $this->source); })()), "headquarter", [], "any", false, false, false, 550)) {
// line 551
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"request_";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 551), "html", null, true);
yield "_warehouse\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "warehouse", [], "any", false, false, false, 551), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 553
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"request_";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 553), "html", null, true);
yield "_warehouse_headquarter\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "warehouseHeadquarter", [], "any", false, false, false, 553), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 555
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"d-none d-lg-table-cell\">";
yield CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "displayDetails", [], "any", false, false, false, 555);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"d-none d-lg-table-cell\">";
// line 556
yield CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "notes", [], "any", false, false, false, 556);
yield "</td>
\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 d-table-cell d-lg-none\"><a href=\"javascript: productRequestSheet(";
// line 557
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 557), "html", null, true);
yield ")\" data-bs-toggle=\"tooltip\" title=\"Scheda\"><img class=\"icon_pr\" src=\"";
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.', 557, $this->source); })())), "html", null, true);
yield "\"></a></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 558
if (((isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 558, $this->source); })()) == "delete")) {
// line 559
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(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 559), "html", null, true);
yield ")\" data-bs-toggle=\"tooltip\" title=\"Elimina\"><img class=\"icon_red\" src=\"";
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.', 559, $this->source); })())), "html", null, true);
yield "\"></a></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} elseif (( // line 560
(isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 560, $this->source); })()) == "take_charge")) {
// line 561
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(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 561), "html", null, true);
yield ")\" data-bs-toggle=\"tooltip\" title=\"Prendi in carico\"><img class=\"icon_green\" src=\"";
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.', 561, $this->source); })())), "html", null, true);
yield "\"></a></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} elseif (( // line 562
(isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 562, $this->source); })()) == "complete")) {
// line 563
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(";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 563), "html", null, true);
yield ")\" data-bs-toggle=\"tooltip\" title=\"Richiesta gestita\"><img class=\"icon_green\" src=\"";
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.', 563, $this->source); })())), "html", null, true);
yield "\"></a></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 565
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pr'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 567
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 568
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->loadTemplate("components/twig/notice_no_values.html.twig", "role/user/warehouse/sheet.html.twig", 568)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessuna richiesta in questa fase"]));
// line 569
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 570
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 574
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.', 574, $this->source); })()));
yield "
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 1040
public function block_modals($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modals"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "modals"));
// line 1041
yield "\t";
yield from $this->loadTemplate("components/modals/filter_supplier.html.twig", "role/user/warehouse/sheet.html.twig", 1041)->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.', 1041, $this->source); })())]));
// line 1042
yield "\t";
yield from $this->loadTemplate("components/modals/filter_supplier.html.twig", "role/user/warehouse/sheet.html.twig", 1042)->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.', 1042, $this->source); })())]));
// line 1043
yield "\t";
yield from $this->loadTemplate("components/modals/filter_supplier.html.twig", "role/user/warehouse/sheet.html.twig", 1043)->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.', 1043, $this->source); })())]));
// line 1044
yield "\t";
yield from $this->loadTemplate("components/modals/filter_supplier.html.twig", "role/user/warehouse/sheet.html.twig", 1044)->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.', 1044, $this->source); })())]));
// line 1045
yield "
\t";
// line 1047
yield "\t";
$context["editWarehouseModalBody"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 1048
yield "\t\t<input type=\"hidden\" id=\"warehouseEditId\" name=\"warehouseEditId\"/>
\t\t<div class=\"row\">
\t\t\t<div class=\"col-12 form-group\">
\t\t\t\t<label class=\"form_label\">Nome*</label>
\t\t\t\t<div ";
// line 1052
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.', 1052, $this->source); })()), "nickname", [], "any", false, false, false, 1052), 'errors');
yield ">
\t\t\t\t\t";
// line 1053
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.', 1053, $this->source); })()), "nickname", [], "any", false, false, false, 1053), 'widget');
yield "
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"col-12 form-group\">
\t\t\t\t<label class=\"form_label\">Indirizzo DDT*</label>
\t\t\t\t<div ";
// line 1058
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.', 1058, $this->source); })()), "address", [], "any", false, false, false, 1058), 'errors');
yield ">
\t\t\t\t\t";
// line 1059
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.', 1059, $this->source); })()), "address", [], "any", false, false, false, 1059), 'widget');
yield "
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"col-12 col-md-6 form-group\">
\t\t\t\t<label class=\"form_label\">Sede centrale</label>
\t\t\t\t<div ";
// line 1064
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.', 1064, $this->source); })()), "headquarter", [], "any", false, false, false, 1064), 'errors');
yield ">
\t\t\t\t\t<table class=\"m_none\">
\t\t\t\t\t\t<tr>
\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>
\t\t\t\t\t\t\t<td>";
// line 1068
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.', 1068, $this->source); })()), "headquarter", [], "any", false, false, false, 1068), 'widget', ["attr" => ["class" => "switch-toggle switch-flat-mini switch-toggle-flat"]]);
yield "<label class=\"m_auto\" for=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 1068, $this->source); })()), "headquarter", [], "any", false, false, false, 1068), "vars", [], "any", false, false, false, 1068), "id", [], "any", false, false, false, 1068), "html", null, true);
yield "\"></label></td>
\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>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"col-12 col-md-6 form-group\">
\t\t\t\t<label class=\"form_label\">Magazzino mobile</label>
\t\t\t\t<div ";
// line 1076
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); })()), "movable", [], "any", false, false, false, 1076), 'errors');
yield ">
\t\t\t\t\t<table class=\"m_none\">
\t\t\t\t\t\t<tr>
\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>
\t\t\t\t\t\t\t<td>";
// line 1080
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.', 1080, $this->source); })()), "movable", [], "any", false, false, false, 1080), 'widget', ["attr" => ["class" => "switch-toggle switch-flat-mini switch-toggle-flat"]]);
yield "<label class=\"m_auto\" for=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 1080, $this->source); })()), "movable", [], "any", false, false, false, 1080), "vars", [], "any", false, false, false, 1080), "id", [], "any", false, false, false, 1080), "html", null, true);
yield "\"></label></td>
\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>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t";
return; yield '';
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 1088
yield "\t";
$context["editWarehouseScriptBody"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
return; yield '';
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 1089
yield "\t";
yield from $this->loadTemplate("components/modals/edit.html.twig", "role/user/warehouse/sheet.html.twig", 1089)->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.', 1089, $this->source); })()), "text" => "Magazzino", "modalBody" => (isset($context["editWarehouseModalBody"]) || array_key_exists("editWarehouseModalBody", $context) ? $context["editWarehouseModalBody"] : (function () { throw new RuntimeError('Variable "editWarehouseModalBody" does not exist.', 1089, $this->source); })()), "scriptBody" => (isset($context["editWarehouseScriptBody"]) || array_key_exists("editWarehouseScriptBody", $context) ? $context["editWarehouseScriptBody"] : (function () { throw new RuntimeError('Variable "editWarehouseScriptBody" does not exist.', 1089, $this->source); })()), "openModal" => "openEditModal", "id" => ""]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 1092
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 1093
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
";
// line 1094
yield from $this->loadTemplate("components/js/upload_file_js.html.twig", "role/user/warehouse/sheet.html.twig", 1094)->unwrap()->yield(CoreExtension::merge($context, ["number" => "1", "file" => "form_transfer_receive_file", "path" => "form_transfer_receive_ddtPath"]));
// line 1095
yield from $this->loadTemplate("components/js/upload_file_js.html.twig", "role/user/warehouse/sheet.html.twig", 1095)->unwrap()->yield(CoreExtension::merge($context, ["number" => "2", "file" => "form_import_inventory_file", "path" => "form_import_inventory_path"]));
// line 1096
yield from $this->loadTemplate("components/js/sort_js.html.twig", "role/user/warehouse/sheet.html.twig", 1096)->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.', 1096, $this->source); })()), "sortField_0", [], "any", false, false, false, 1096), "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.', 1096, $this->source); })()), "sortOrder_0", [], "any", false, false, false, 1096), "sort_field" => "sort_field_0", "sort_order" => "sort_order_0", "formName" => "formFilter_0", "arrowClass" => "filter_arrow_0"]));
// line 1097
yield from $this->loadTemplate("components/js/sort_js.html.twig", "role/user/warehouse/sheet.html.twig", 1097)->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.', 1097, $this->source); })()), "sortField_1", [], "any", false, false, false, 1097), "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.', 1097, $this->source); })()), "sortOrder_1", [], "any", false, false, false, 1097), "sort_field" => "sort_field_1", "sort_order" => "sort_order_1", "formName" => "formFilter_1", "arrowClass" => "filter_arrow_1"]));
// line 1098
yield from $this->loadTemplate("components/js/sort_js.html.twig", "role/user/warehouse/sheet.html.twig", 1098)->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.', 1098, $this->source); })()), "sortField_2", [], "any", false, false, false, 1098), "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.', 1098, $this->source); })()), "sortOrder_2", [], "any", false, false, false, 1098), "sort_field" => "sort_field_2", "sort_order" => "sort_order_2", "formName" => "formFilter_2", "arrowClass" => "filter_arrow_2"]));
// line 1099
yield from $this->loadTemplate("components/js/sort_js.html.twig", "role/user/warehouse/sheet.html.twig", 1099)->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.', 1099, $this->source); })()), "sortField_3", [], "any", false, false, false, 1099), "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.', 1099, $this->source); })()), "sortOrder_3", [], "any", false, false, false, 1099), "sort_field" => "sort_field_3", "sort_order" => "sort_order_3", "formName" => "formFilter_3", "arrowClass" => "filter_arrow_3"]));
// line 1100
yield from $this->loadTemplate("components/js/filter_supplier_js.html.twig", "role/user/warehouse/sheet.html.twig", 1100)->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.', 1100, $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.', 1100, $this->source); })()), "supplier_0", [], "any", false, false, false, 1100)]));
// line 1101
yield from $this->loadTemplate("components/js/filter_supplier_js.html.twig", "role/user/warehouse/sheet.html.twig", 1101)->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.', 1101, $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.', 1101, $this->source); })()), "supplier_1", [], "any", false, false, false, 1101)]));
// line 1102
yield from $this->loadTemplate("components/js/filter_supplier_js.html.twig", "role/user/warehouse/sheet.html.twig", 1102)->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.', 1102, $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.', 1102, $this->source); })()), "supplier_1", [], "any", false, false, false, 1102)]));
// line 1103
yield from $this->loadTemplate("components/js/filter_supplier_js.html.twig", "role/user/warehouse/sheet.html.twig", 1103)->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.', 1103, $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.', 1103, $this->source); })()), "supplier_1", [], "any", false, false, false, 1103)]));
// line 1104
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1104)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange1last_1", "format" => "DD-MM-YYYY HH:mm"]));
// line 1105
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1105)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange1last_2", "format" => "DD-MM-YYYY HH:mm"]));
// line 1106
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1106)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange1last_3", "format" => "DD-MM-YYYY HH:mm"]));
// line 1107
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1107)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2creation_1", "format" => "DD-MM-YYYY HH:mm"]));
// line 1108
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1108)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2send_1", "format" => "DD-MM-YYYY HH:mm"]));
// line 1109
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1109)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2completion_1", "format" => "DD-MM-YYYY HH:mm"]));
// line 1110
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1110)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2creation_2", "format" => "DD-MM-YYYY HH:mm"]));
// line 1111
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1111)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2send_2", "format" => "DD-MM-YYYY HH:mm"]));
// line 1112
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1112)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2completion_2", "format" => "DD-MM-YYYY HH:mm"]));
// line 1113
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1113)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2creation_3", "format" => "DD-MM-YYYY HH:mm"]));
// line 1114
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1114)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2send_3", "format" => "DD-MM-YYYY HH:mm"]));
// line 1115
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1115)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2completion_3", "format" => "DD-MM-YYYY HH:mm"]));
// line 1116
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1116)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange3_1", "format" => "DD-MM-YYYY HH:mm"]));
// line 1117
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1117)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange3_2", "format" => "DD-MM-YYYY HH:mm"]));
// line 1118
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1118)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange3_3", "format" => "DD-MM-YYYY HH:mm"]));
// line 1119
yield "<script>
\t\$(document).ready(function(){
\t\t// Inventory
\t\t";
// line 1122
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1122, $this->source); })()), "session", [], "any", false, false, false, 1122), "get", ["openStockInventoryModal"], "method", false, false, false, 1122)) {
// line 1123
yield "\t\t\tstockInventory();
\t\t\t";
// line 1124
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1124, $this->source); })()), "session", [], "any", false, false, false, 1124), "remove", ["openStockInventoryModal"], "method", false, false, false, 1124), "html", null, true);
yield "
\t\t";
}
// line 1126
yield "\t\t// Receive
\t\t";
// line 1127
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1127, $this->source); })()), "session", [], "any", false, false, false, 1127), "get", ["openTransferReceiveModal"], "method", false, false, false, 1127)) {
// line 1128
yield "\t\t\ttransferReceive();
\t\t\t";
// line 1129
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1129, $this->source); })()), "session", [], "any", false, false, false, 1129), "remove", ["openTransferReceiveModal"], "method", false, false, false, 1129), "html", null, true);
yield "
\t\t";
}
// line 1131
yield "\t\t// Invia
\t\t";
// line 1132
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 1132), "get", ["openTransferSendModal"], "method", false, false, false, 1132)) {
// line 1133
yield "\t\t\ttransferSend();
\t\t\t";
// line 1134
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1134, $this->source); })()), "session", [], "any", false, false, false, 1134), "remove", ["openTransferSendModal"], "method", false, false, false, 1134), "html", null, true);
yield "
\t\t";
}
// line 1136
yield "\t\t";
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1136, $this->source); })()), "session", [], "any", false, false, false, 1136), "get", ["transferStocksIds"], "method", false, false, false, 1136)) {
// line 1137
yield "\t\t\t";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::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", false, false, false, 1137), "remove", ["transferStocksIds"], "method", false, false, false, 1137), "html", null, true);
yield "
\t\t";
}
// line 1139
yield "
\t\tvar dateRanges1last = document.getElementsByClassName('daterange1last');
\t\t";
// line 1141
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.', 1141, $this->source); })()), "dateLastTransfer_1", [], "any", false, false, false, 1141) != 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.', 1141, $this->source); })()), "dateLastTransfer_1", [], "any", false, false, false, 1141) != ""))) {
// line 1142
yield "\t\t\tfor(i=0; i<dateRanges1last.length; i++){
\t\t\t\tdateRanges1last[i].value = \"";
// line 1143
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.', 1143, $this->source); })()), "dateLastTransfer_1", [], "any", false, false, false, 1143), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1146
yield "\t\t\tfor(i=0; i<dateRanges1last.length; i++){
\t\t\t\tdateRanges1last[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1150
yield "
\t\tvar dateRanges2creation = document.getElementsByClassName('daterange2creation');
\t\t";
// line 1152
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.', 1152, $this->source); })()), "datetimeCreation_2", [], "any", false, false, false, 1152) != 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.', 1152, $this->source); })()), "datetimeCreation_2", [], "any", false, false, false, 1152) != ""))) {
// line 1153
yield "\t\t\tfor(i=0; i<dateRanges2creation.length; i++){
\t\t\t\tdateRanges2creation[i].value = \"";
// line 1154
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.', 1154, $this->source); })()), "datetimeCreation_2", [], "any", false, false, false, 1154), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1157
yield "\t\t\tfor(i=0; i<dateRanges2creation.length; i++){
\t\t\t\tdateRanges2creation[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1161
yield "\t\t
\t\tvar dateRanges2send = document.getElementsByClassName('daterange2send');
\t\t";
// line 1163
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.', 1163, $this->source); })()), "datetimeSend_2", [], "any", false, false, false, 1163) != 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.', 1163, $this->source); })()), "datetimeSend_2", [], "any", false, false, false, 1163) != ""))) {
// line 1164
yield "\t\t\tfor(i=0; i<dateRanges2send.length; i++){
\t\t\t\tdateRanges2send[i].value = \"";
// line 1165
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.', 1165, $this->source); })()), "datetimeSend_2", [], "any", false, false, false, 1165), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1168
yield "\t\t\tfor(i=0; i<dateRanges2send.length; i++){
\t\t\t\tdateRanges2send[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1172
yield "\t\t
\t\tvar dateRanges2completion = document.getElementsByClassName('daterange2completion');
\t\t";
// line 1174
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.', 1174, $this->source); })()), "datetimeCompletion_2", [], "any", false, false, false, 1174) != 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.', 1174, $this->source); })()), "datetimeCompletion_2", [], "any", false, false, false, 1174) != ""))) {
// line 1175
yield "\t\t\tfor(i=0; i<dateRanges2completion.length; i++){
\t\t\t\tdateRanges2completion[i].value = \"";
// line 1176
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.', 1176, $this->source); })()), "datetimeCompletion_2", [], "any", false, false, false, 1176), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1179
yield "\t\t\tfor(i=0; i<dateRanges2completion.length; i++){
\t\t\t\tdateRanges2completion[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1183
yield "
\t\tvar dateRanges3 = document.getElementsByClassName('daterange3');
\t\t";
// line 1185
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.', 1185, $this->source); })()), "date_3", [], "any", false, false, false, 1185) != 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.', 1185, $this->source); })()), "date_3", [], "any", false, false, false, 1185) != ""))) {
// line 1186
yield "\t\t\tfor(i=0; i<dateRanges3.length; i++){
\t\t\t\tdateRanges3[i].value = \"";
// line 1187
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.', 1187, $this->source); })()), "date_3", [], "any", false, false, false, 1187), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1190
yield "\t\t\tfor(i=0; i<dateRanges3.length; i++){
\t\t\t\tdateRanges3[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1194
yield "\t});
\tfunction selectAll(index, tab){
\t\tvar checkboxes = document.getElementsByClassName('stock_' + index + '_checkbox');
\t\tvar isSelect = document.getElementById('stock_' + index + '_all_checkboxes').checked;
\t\tfor(i=0; i<checkboxes.length; i++)
\t\t\tcheckboxes[i].checked = isSelect;
\t\tupdateButtons(index, tab);
\t}
\t
\tfunction updateButtons(index, tab){
\t\tvar inputSelectAll = document.getElementById('stock_' + index + '_all_checkboxes');
\t\tvar checkboxes = document.getElementsByClassName('stock_' + index + '_checkbox');
\t\tvar buttonCondition = document.getElementById('button_' + index + '_condition');
\t\tif(tab == 's_to_manage')
\t\t\tvar buttonManaged = document.getElementById('button_' + index + '_managed');
\t\t";
// line 1210
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1210, $this->source); })()), "user", [], "any", false, false, false, 1210), "getAccountTypology", [], "any", false, false, false, 1210) != "technician")) {
// line 1211
yield "\t\t\tif(tab == 's_to_manage' || tab == 's_available' || tab == 's_not_available')
\t\t\t\tvar buttonSupplier = document.getElementById('button_' + index + '_supplier');
\t\t";
}
// line 1214
yield "\t\tif(tab == 's_available' || tab == 's_not_available')
\t\t\tvar buttonSend = document.getElementById('button_' + index + '_send');
\t\tvar isAllSelected = true;
\t\tconst array = [];
\t\tfor(i=0; i<checkboxes.length; i++){
\t\t\tif(checkboxes[i].checked){
\t\t\t\tarray.push(checkboxes[i].value);
\t\t\t}
\t\t\telse
\t\t\t\tisAllSelected = false;
\t\t}
\t\t
\t\tif(!isAllSelected)
\t\t\tinputSelectAll.checked = false;
\t\t
\t\tif(array.length > 0){
\t\t\tbuttonCondition.className = \"button button-3d button-mini button-green f_right m_b_10p\";
\t\t\tbuttonCondition.href = \"javascript: sendAction('condition', \" + index + \", '\" + tab + \"')\";
\t\t\tif(tab == 's_to_manage'){
\t\t\t\tbuttonManaged.className = \"button button-3d button-mini button-green f_right m_b_10p\";
\t\t\t\tbuttonManaged.href = \"javascript: sendAction('managed', \" + index + \", '\" + tab + \"')\";
\t\t\t}
\t\t\t";
// line 1237
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1237, $this->source); })()), "user", [], "any", false, false, false, 1237), "getAccountTypology", [], "any", false, false, false, 1237) != "technician")) {
// line 1238
yield "\t\t\t\tif(tab == 's_to_manage' || tab == 's_available' || tab == 's_not_available'){
\t\t\t\t\tbuttonSupplier.className = \"button button-3d button-mini button-green f_right m_b_10p\";
\t\t\t\t\tbuttonSupplier.href = \"javascript: sendAction('supplier', \" + index + \", '\" + tab + \"')\";
\t\t\t\t}
\t\t\t";
}
// line 1243
yield "\t\t\tif(tab == 's_available' || tab == 's_not_available'){
\t\t\t\tbuttonSend.className = \"button button-3d button-mini button-green f_right m_b_10p\";
\t\t\t\tbuttonSend.href = \"javascript: sendAction('send', \" + index + \", '\" + tab + \"')\";
\t\t\t}
\t\t}
\t\telse{
\t\t\tbuttonCondition.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
\t\t\tbuttonCondition.href = \"javascript: void(0)\";
\t\t\tif(tab == 's_to_manage'){
\t\t\t\tbuttonManaged.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
\t\t\t\tbuttonManaged.href = \"javascript: void(0)\";
\t\t\t}
\t\t\t";
// line 1255
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1255, $this->source); })()), "user", [], "any", false, false, false, 1255), "getAccountTypology", [], "any", false, false, false, 1255) != "technician")) {
// line 1256
yield "\t\t\t\tif(tab == 's_to_manage' || tab == 's_available' || tab == 's_not_available'){
\t\t\t\t\tbuttonSupplier.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
\t\t\t\t\tbuttonSupplier.href = \"javascript: void(0)\";
\t\t\t\t}
\t\t\t";
}
// line 1261
yield "\t\t\tif(tab == 's_available' || tab == 's_not_available'){
\t\t\t\tbuttonSend.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
\t\t\t\tbuttonSend.href = \"javascript: void(0)\";
\t\t\t}
\t\t}
\t}
\tfunction sendAction(action, index, tab){
\t\tvar checkboxes = document.getElementsByClassName('stock_' + index + '_checkbox');
\t\tconst array = [];
\t\tfor(i=0; i<checkboxes.length; i++){
\t\t\tif(checkboxes[i].checked)
\t\t\t\tarray.push(checkboxes[i].value);
\t\t}
\t\tswitch(action){
\t\t\tcase 'managed':
\t\t\t\tdocument.getElementById('managedStocksIds').value = array;
\t\t\t\tdocument.getElementById('managedAction').value = action;
\t\t\t\t\$('#stockManagedModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t\t\t\tbreak;
\t\t\tcase 'supplier':
\t\t\t\tvar checkboxes = document.getElementsByClassName('supplier_checkboxes');
\t\t\t\tfor(i=0; i<checkboxes.length; i++){
\t\t\t\t\tcheckboxes[i].removeAttribute(\"checked\");
\t\t\t\t\tcheckboxes[i].checked = false;
\t\t\t\t}
\t\t\t\tdocument.getElementById('supplierStocksIds').value = array;
\t\t\t\tdocument.getElementById('supplierAction').value = action;
\t\t\t\t\$('#stockSupplierModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t\t\t\tbreak;
\t\t\tcase 'condition':
\t\t\t\tdocument.getElementById('conditionAction').value = action;
\t\t\t\tdocument.getElementById('conditionStocksIds').value = array;
\t\t\t\tswitch(index){
\t\t\t\t\tcase 0: document.getElementById('stockTab').value = 'to_manage'; break;
\t\t\t\t\tcase 1: document.getElementById('stockTab').value = 'available'; break;
\t\t\t\t\tcase 2: document.getElementById('stockTab').value = 'not_available'; break;
\t\t\t\t\tdefault: break;
\t\t\t\t}
\t\t\t\t\$('#stockConditionModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t\t\t\tbreak;
\t\t\tcase 'send':
\t\t\t\tvar a = document.getElementById('a_send_technician');
\t\t\t\tif(tab == 's_not_available'){
\t\t\t\t\ta.href = \"javascript: void(0)\";
\t\t\t\t\ta.className = \"button button-3d button-mini button-grey width_200p txt_a_c\";
\t\t\t\t}
\t\t\t\telse{
\t\t\t\t\ta.href = \"javascript: transferSendSetType('technician')\";
\t\t\t\t\ta.className = \"button button-3d button-mini button-pr width_200p txt_a_c\";
\t\t\t\t}
\t\t\t\tdocument.getElementById('form_transfer_send_sendStocksIds').value = array;
\t\t\t\ttransferSend();
\t\t\t\tbreak;
\t\t\tdefault: break;
\t\t}
\t}
\tfunction checkSubmit(action){
\t\tswitch(action){
\t\t\tcase 'managed':
\t\t\t\ttriggerLoading();
\t\t\t\t\$('#formManaged').submit();
\t\t\t\tbreak;
\t\t\tcase 'supplier':
\t\t\t\tvar valid = false;
\t\t\t\tvar checkboxes = document.getElementsByClassName('supplier_checkboxes');
\t\t\t\tfor(i=0; i<checkboxes.length; i++){
\t\t\t\t\tif(checkboxes[i].checked){
\t\t\t\t\t\tvalid = true;
\t\t\t\t\t\tbreak;
\t\t\t\t\t}
\t\t\t\t}
\t\t\t\tif(valid){
\t\t\t\t\ttriggerLoading();
\t\t\t\t\t\$('#formSupplier').submit();
\t\t\t\t}
\t\t\t\telse{
\t\t\t\t\tvar divError = document.getElementById('divErrorSupplier');
\t\t\t\t\tdivError.className = 'error';
\t\t\t\t\tdivError.children[0].setAttribute('data-bs-toggle', 'tooltip');
\t\t\t\t\tdivError.children[0].setAttribute('title', 'Campo obbligatorio');
\t\t\t\t}
\t\t\t\tbreak;
\t\t\tcase 'condition':
\t\t\t\tif(document.getElementById('select_product_condition').value != 0){
\t\t\t\t\ttriggerLoading();
\t\t\t\t\t\$('#formCondition').submit();
\t\t\t\t}
\t\t\t\telse{
\t\t\t\t\tvar divError = document.getElementById('divErrorCondition');
\t\t\t\t\tdivError.className = 'error';
\t\t\t\t\tdivError.children[0].setAttribute('data-bs-toggle', 'tooltip');
\t\t\t\t\tdivError.children[0].setAttribute('title', 'Campo obbligatorio');
\t\t\t\t}
\t\t\t\tbreak;
\t\t\tdefault: break;
\t\t}
\t\t\$('[data-bs-toggle=\"tooltip\"]').tooltip();
\t}
\tfunction stockInventory(){
\t\t\$('#stockInventoryModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t}
\t// RICEVI MATERIALE
\t\$('#form_transfer_receive_date').datepicker({ autoclose: true, todayHighlight: true, format: \"dd-mm-yyyy\", startDate: \"today\" });
function transferReceive(){
\$('#transferReceiveModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
}
\tfunction tranferReceiveShowHideDDT(){
\t\tif(document.getElementById('form_transfer_receive_ddtMandatory').checked == true){
\t\t\tdocument.getElementById('row_receive_ddt').style.display = 'flex';
\t\t}
\t\telse{
\t\t\tdocument.getElementById('row_receive_ddt').style.display = 'none';
\t\t}
\t}
\t// INVIA MATERIALE
\t\$('#form_transfer_send_date').datepicker({ autoclose: true, todayHighlight: true, format: \"dd-mm-yyyy\", startDate: \"today\" });
function transferSend(){
\t\tdocument.getElementById('form_transfer_send_productRequestId').value = '';
\t\tdocument.getElementById('row_select_type').style.display = 'flex';
\t\tdocument.getElementById('row_warehouse_select').style.display = 'block';
\t\tdocument.getElementById('row_warehouse_selected').style.display = 'none';
\t\tdocument.getElementById('row_send_data').className = 'row m_t_30p';
\$('#transferSendModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
}
\t
\tfunction transferSendSetType(type){
\t\tdocument.getElementById('form_transfer_send_type').value = type;
\t\t\$.post('";
// line 1397
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.', 1397, $this->source); })()), "id", [], "any", false, false, false, 1397)]), "html", null, true);
yield "', {type: type}, function(response){
\t\t\tif(response.code == 200 && response.success){
\t\t\t\tswitch(type){
\t\t\t\t\tcase 'technician':
\t\t\t\t\t\tupdateTechnicianWarehouses();
\t\t\t\t\t\tdocument.getElementById('span_send_type').innerHTML = 'Tecnico';
\t\t\t\t\t\tdocument.getElementById('div_send_supplier').style.display = 'none';
\t\t\t\t\t\tdocument.getElementById('div_send_ddt_mandatory').style.display = 'block';
\t\t\t\t\t\tdocument.getElementById('row_user_to_select').style.display = 'block';
\t\t\t\t\t\t";
// line 1406
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.', 1406, $this->source); })()), "headquarter", [], "any", false, false, false, 1406) == 0) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1406, $this->source); })()), "user", [], "any", false, false, false, 1406), "getAccountTypology", [], "any", false, false, false, 1406) != "technician"))) {
// line 1407
yield "\t\t\t\t\t\t\tdocument.getElementById('row_user_from_select').style.display = 'block';
\t\t\t\t\t\t";
}
// line 1409
yield "\t\t\t\t\t\tbreak;
\t\t\t\t\tcase 'destination':
\t\t\t\t\t\tdocument.getElementById('span_send_type').innerHTML = 'Destinazione esterna';
\t\t\t\t\t\tdocument.getElementById('div_send_supplier').style.display = 'block';
\t\t\t\t\t\tdocument.getElementById('div_send_ddt_mandatory').style.display = 'none';
\t\t\t\t\t\tdocument.getElementById('row_user_to_select').style.display = 'none';
\t\t\t\t\t\tbreak;
\t\t\t\t\tcase 'main':
\t\t\t\t\t\tdocument.getElementById('span_send_type').innerHTML = 'Sede centrale';
\t\t\t\t\t\tdocument.getElementById('div_send_supplier').style.display = 'none';
\t\t\t\t\t\tdocument.getElementById('div_send_ddt_mandatory').style.display = 'none';
\t\t\t\t\t\tdocument.getElementById('row_user_to_select').style.display = 'none';
\t\t\t\t\t\t";
// line 1421
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.', 1421, $this->source); })()), "headquarter", [], "any", false, false, false, 1421) == 0) && (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 1421, $this->source); })()), "user", [], "any", false, false, false, 1421), "getAccountTypology", [], "any", false, false, false, 1421) != "technician"))) {
// line 1422
yield "\t\t\t\t\t\t\tdocument.getElementById('row_user_from_select').style.display = 'block';
\t\t\t\t\t\t";
}
// line 1424
yield "\t\t\t\t\t\tbreak;
\t\t\t\t\tdefault: break;
\t\t\t\t}
\t\t\t\tvar select = document.getElementById('form_transfer_send_warehouse');
\t\t\t\twhile(select.options.length){
\t\t\t\t\tselect.remove(0);
\t\t\t\t}
\t\t\t\tvar warehouses = JSON.parse(response.warehouses);
\t\t\t\tfor(var i = 0; i < warehouses.length; i++){
\t\t\t\t\tvar option = new Option(warehouses[i]['nickname'], warehouses[i]['id']);
\t\t\t\t\tselect.options.add(option);
\t\t\t\t}
\t\t\t\tdocument.getElementById('row_send_data').style.display = 'flex';
\t\t\t\tdocument.getElementById('button_send_submit').className = 'button button-3d button-mini button-green f_right';
\t\t\t\tdocument.getElementById('button_send_submit').href = 'javascript: transferSendSubmit()';
\t\t\t}
\t\t}, \"json\");
\t}
\tfunction showHideDivestment(){
\t\tvar select = document.getElementById('form_transfer_send_supplier');
\t\tvar options = select.children;
\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')
\t\t\tdocument.getElementById('div_send_divestment').style.display = 'block';
\t\telse
\t\t\tdocument.getElementById('div_send_divestment').style.display = 'none';
\t}
\tfunction updateTechnicianWarehouses(){
\t\ttechnicianId = document.getElementById('form_transfer_send_userTo').value;
\t\t\$.post('";
// line 1455
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.', 1455, $this->source); })()), "id", [], "any", false, false, false, 1455)]), "html", null, true);
yield "', {technicianId: technicianId}, function(response){
\t\t\tif(response.code == 200 && response.success){
\t\t\t\tvar select = document.getElementById('form_transfer_send_warehouse');
\t\t\t\twhile(select.options.length){
\t\t\t\t\tselect.remove(0);
\t\t\t\t}
\t\t\t\tvar warehouses = JSON.parse(response.warehouses);
\t\t\t\tfor(var i = 0; i < warehouses.length; i++){
\t\t\t\t\tvar option = new Option(warehouses[i]['nickname'], warehouses[i]['id']);
\t\t\t\t\tselect.options.add(option);
\t\t\t\t}
\t\t\t\tdocument.getElementById('row_send_data').style.display = 'flex';
\t\t\t}
\t\t}, \"json\");
\t}
\tfunction transferSendSubmit(){
\t\t\$('#formSend').submit();
\t}
function transferDelete(id){
document.getElementById(\"transferDeleteId\").value = id;
\$('#transferDeleteModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
}
\t
\t// GESTISCI RICHIESTE TECNICI
\tfunction productRequestSheet(id){
\t\tdocument.getElementById('request_sheet_datetime').innerHTML = document.getElementById('request_' + id + '_datetime').innerHTML;
\t\tdocument.getElementById('request_sheet_technician').innerHTML = document.getElementById('request_' + id + '_technician').innerHTML;
\t\tdocument.getElementById('request_sheet_warehouse').innerHTML = document.getElementById('request_' + id + '_warehouse').innerHTML;
\t\tdocument.getElementById('request_sheet_warehouse_headquarter').innerHTML = document.getElementById('request_' + id + '_warehouse_headquarter').innerHTML;
\t\tdocument.getElementById('request_sheet_details').innerHTML = document.getElementById('request_' + id + '_details').value;
\t\tdocument.getElementById('request_sheet_notes').innerHTML = document.getElementById('request_' + id + '_notes').value;
\t\t\$('#productRequestSheetModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t}
\tfunction productRequestDelete(id){
\t\tdocument.getElementById('product_request_delete_id').value = id;
\t\t\$('#productRequestDeleteModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t}
\t";
// line 1497
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.', 1497, $this->source); })()), "headquarter", [], "any", false, false, false, 1497)) {
// line 1498
yield "\t\tfunction productRequestTakeCharge(id){
\t\t\tdocument.getElementById('product_request_take_charge_id').value = id;
\t\t\t\$('#productRequestTakeChargeModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t\t}
\t\t
\t\tfunction productRequestManaged(id){
\t\t\tdocument.getElementById('product_request_managed_id').value = id;
\t\t\t\$('#productRequestManagedModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t\t}
\t";
}
// line 1508
yield "</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "role/user/warehouse/sheet.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 3171 => 1508, 3159 => 1498, 3157 => 1497, 3112 => 1455, 3079 => 1424, 3075 => 1422, 3073 => 1421, 3059 => 1409, 3055 => 1407, 3053 => 1406, 3041 => 1397, 2903 => 1261, 2896 => 1256, 2894 => 1255, 2880 => 1243, 2873 => 1238, 2871 => 1237, 2846 => 1214, 2841 => 1211, 2839 => 1210, 2821 => 1194, 2815 => 1190, 2809 => 1187, 2806 => 1186, 2804 => 1185, 2800 => 1183, 2794 => 1179, 2788 => 1176, 2785 => 1175, 2783 => 1174, 2779 => 1172, 2773 => 1168, 2767 => 1165, 2764 => 1164, 2762 => 1163, 2758 => 1161, 2752 => 1157, 2746 => 1154, 2743 => 1153, 2741 => 1152, 2737 => 1150, 2731 => 1146, 2725 => 1143, 2722 => 1142, 2720 => 1141, 2716 => 1139, 2710 => 1137, 2707 => 1136, 2702 => 1134, 2699 => 1133, 2697 => 1132, 2694 => 1131, 2689 => 1129, 2686 => 1128, 2684 => 1127, 2681 => 1126, 2676 => 1124, 2673 => 1123, 2671 => 1122, 2666 => 1119, 2664 => 1118, 2662 => 1117, 2660 => 1116, 2658 => 1115, 2656 => 1114, 2654 => 1113, 2652 => 1112, 2650 => 1111, 2648 => 1110, 2646 => 1109, 2644 => 1108, 2642 => 1107, 2640 => 1106, 2638 => 1105, 2636 => 1104, 2634 => 1103, 2632 => 1102, 2630 => 1101, 2628 => 1100, 2626 => 1099, 2624 => 1098, 2622 => 1097, 2620 => 1096, 2618 => 1095, 2616 => 1094, 2612 => 1093, 2602 => 1092, 2590 => 1089, 2585 => 1088, 2571 => 1080, 2564 => 1076, 2551 => 1068, 2544 => 1064, 2536 => 1059, 2532 => 1058, 2524 => 1053, 2520 => 1052, 2514 => 1048, 2511 => 1047, 2508 => 1045, 2505 => 1044, 2502 => 1043, 2499 => 1042, 2496 => 1041, 2486 => 1040, 2471 => 574, 2465 => 570, 2462 => 569, 2459 => 568, 2456 => 567, 2449 => 565, 2441 => 563, 2439 => 562, 2432 => 561, 2430 => 560, 2423 => 559, 2421 => 558, 2415 => 557, 2411 => 556, 2406 => 555, 2398 => 553, 2390 => 551, 2388 => 550, 2382 => 549, 2376 => 548, 2369 => 546, 2363 => 545, 2359 => 544, 2354 => 543, 2349 => 542, 2347 => 541, 2342 => 538, 2338 => 537, 2333 => 534, 2329 => 532, 2325 => 530, 2323 => 529, 2314 => 523, 2310 => 522, 2306 => 521, 2302 => 520, 2298 => 519, 2294 => 518, 2290 => 517, 2284 => 516, 2280 => 515, 2273 => 510, 2263 => 509, 2248 => 408, 2242 => 404, 2239 => 403, 2236 => 402, 2233 => 401, 2226 => 399, 2222 => 397, 2219 => 396, 2211 => 394, 2205 => 392, 2202 => 391, 2199 => 390, 2191 => 388, 2188 => 387, 2186 => 386, 2183 => 385, 2181 => 384, 2173 => 383, 2164 => 382, 2156 => 381, 2148 => 380, 2140 => 379, 2132 => 378, 2128 => 377, 2124 => 376, 2118 => 375, 2115 => 374, 2110 => 373, 2108 => 372, 2099 => 368, 2080 => 352, 2076 => 351, 2072 => 350, 2068 => 349, 2064 => 348, 2060 => 347, 2056 => 346, 2052 => 345, 2048 => 344, 2044 => 343, 2040 => 342, 2034 => 341, 2030 => 340, 2023 => 335, 2013 => 334, 1998 => 283, 1992 => 279, 1989 => 278, 1986 => 277, 1983 => 276, 1974 => 273, 1970 => 272, 1964 => 271, 1960 => 270, 1957 => 269, 1949 => 268, 1945 => 267, 1941 => 266, 1935 => 265, 1928 => 264, 1921 => 260, 1909 => 259, 1905 => 257, 1903 => 256, 1897 => 255, 1889 => 254, 1884 => 253, 1878 => 252, 1875 => 251, 1868 => 250, 1863 => 249, 1860 => 248, 1857 => 247, 1852 => 246, 1850 => 245, 1837 => 234, 1830 => 230, 1822 => 229, 1818 => 227, 1816 => 226, 1808 => 221, 1804 => 220, 1800 => 219, 1793 => 217, 1789 => 216, 1784 => 214, 1780 => 213, 1776 => 212, 1772 => 211, 1768 => 210, 1758 => 209, 1754 => 208, 1750 => 207, 1740 => 206, 1736 => 205, 1729 => 200, 1726 => 199, 1719 => 198, 1712 => 197, 1705 => 196, 1698 => 195, 1696 => 194, 1692 => 192, 1682 => 191, 1651 => 1019, 1646 => 1016, 1623 => 995, 1618 => 992, 1595 => 971, 1590 => 968, 1550 => 929, 1530 => 911, 1523 => 907, 1518 => 904, 1502 => 889, 1491 => 887, 1487 => 886, 1472 => 874, 1467 => 871, 1452 => 857, 1442 => 853, 1434 => 852, 1430 => 850, 1426 => 849, 1414 => 840, 1409 => 837, 1385 => 815, 1380 => 812, 1372 => 806, 1364 => 801, 1360 => 800, 1347 => 792, 1339 => 787, 1327 => 780, 1321 => 776, 1318 => 775, 1315 => 774, 1312 => 773, 1310 => 772, 1306 => 771, 1299 => 767, 1295 => 766, 1283 => 757, 1279 => 756, 1271 => 751, 1267 => 750, 1259 => 745, 1255 => 744, 1243 => 735, 1238 => 732, 1232 => 728, 1226 => 724, 1224 => 723, 1214 => 716, 1209 => 713, 1201 => 707, 1185 => 694, 1181 => 693, 1177 => 692, 1169 => 687, 1165 => 686, 1150 => 676, 1143 => 672, 1135 => 667, 1131 => 666, 1123 => 661, 1119 => 660, 1110 => 654, 1105 => 651, 1097 => 645, 1081 => 632, 1077 => 631, 1073 => 630, 1065 => 625, 1061 => 624, 1053 => 619, 1049 => 618, 1040 => 612, 1035 => 609, 1027 => 602, 1015 => 594, 1012 => 593, 1009 => 592, 1006 => 591, 1004 => 590, 997 => 587, 994 => 586, 991 => 585, 988 => 584, 985 => 583, 982 => 582, 979 => 581, 977 => 580, 973 => 578, 970 => 509, 967 => 508, 964 => 507, 961 => 506, 958 => 505, 955 => 504, 952 => 503, 949 => 502, 946 => 501, 944 => 500, 931 => 496, 921 => 495, 911 => 494, 905 => 490, 899 => 488, 897 => 487, 893 => 486, 888 => 483, 885 => 482, 878 => 476, 865 => 473, 861 => 472, 857 => 471, 854 => 470, 850 => 469, 827 => 453, 820 => 449, 809 => 445, 798 => 441, 791 => 437, 784 => 432, 778 => 430, 776 => 429, 770 => 425, 759 => 417, 756 => 416, 753 => 415, 751 => 414, 747 => 412, 744 => 334, 741 => 333, 738 => 332, 736 => 331, 727 => 327, 721 => 326, 712 => 319, 701 => 311, 698 => 310, 695 => 309, 692 => 308, 689 => 307, 686 => 306, 684 => 305, 677 => 302, 674 => 301, 671 => 300, 668 => 299, 665 => 298, 662 => 297, 659 => 296, 656 => 295, 653 => 294, 650 => 293, 647 => 292, 644 => 291, 641 => 290, 639 => 289, 635 => 287, 632 => 191, 629 => 190, 626 => 189, 623 => 188, 620 => 187, 617 => 186, 614 => 185, 611 => 184, 608 => 183, 605 => 182, 602 => 181, 599 => 180, 597 => 179, 594 => 178, 586 => 173, 580 => 169, 577 => 168, 574 => 167, 571 => 166, 562 => 163, 556 => 162, 552 => 161, 546 => 160, 542 => 159, 538 => 158, 534 => 157, 528 => 156, 520 => 155, 516 => 154, 510 => 151, 504 => 150, 496 => 147, 488 => 146, 483 => 145, 477 => 144, 474 => 143, 467 => 142, 462 => 141, 459 => 140, 456 => 139, 451 => 138, 449 => 137, 422 => 113, 418 => 112, 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,);
}
public function getSourceContext()
{
return new Source("{% extends 'role/user/index.html.twig' %}
{% block title %}Magazzino - Scheda{% endblock %}
{% block pageTitleH1 %}Magazzino - Scheda{% endblock %}
{% block pageTitleBreadcrumb %}
\t<li class=\"breadcrumb-item\"><a href=\"{{ path('user_warehouse_list') }}\">Magazzini</a></li>
\t<li class=\"breadcrumb-item\"><a href=\"javascript:void(0)\">Scheda</a></li>
{% endblock %}
{% block subMenuLeft %}
\t{% if app.user.warehouses|length == 1 %}
\t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"{{ path ('user_index') }}\">Scrivania</a></li>
\t{% else %}
\t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"{{ path ('user_warehouse_list') }}\">Magazzini</a></li>
\t{% endif %}
{% endblock %}
{% block subMenuRight %}
\t{% if app.user.canWrite('warehouse') or (warehouse.jtUser(app.user.id) is not null and warehouse.jtUser(app.user.id).permission == 'RW') %}
\t\t{% if warehouse.headquarter and (app.user.canWrite('warehouse') or app.user.canWrite('warehouse_receive_material')) %}
\t\t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"javascript: transferReceive()\">Ricevi materiale</a></li>
\t\t{% endif %}
\t\t<li class=\"nav-item\"><a class=\"nav-link\" href=\"javascript: transferSend()\">Invia materiale</a></li>
\t{% endif %}
{% endblock %}
{% block content %}
\t{% if app.user.getAccountTypology == 'agency' or app.user.getAccountTypology == 'warehouse' %}
\t\t{% set prReqTitle = \"Richieste tecnici\" %}
\t\t{% set prReqInserted = \"Da gestire\" %}
\t\t{% set prReqTakeCharge = \"Prese in carico\" %}
\t\t{% set prReqCompleted = \"Gestite\" %}
\t{% elseif app.user.getAccountTypology == 'technician' %}
\t\t{% set prReqTitle = \"Le tue richieste\" %}
\t\t{% set prReqInserted = \"Inviate\" %}
\t\t{% set prReqTakeCharge = \"Prese in carico\" %}
\t\t{% set prReqCompleted = \"Completate\" %}
\t{% endif %}
\t<section class=\"p_lr_30p m_tb_40p\">
\t\t<div class=\"row\">
\t\t\t<div class=\"col-12\">
\t\t\t\t<h3 class=\"form_title\">Magazzino: {{ warehouse.nickname }}</h3>
\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t<div class=\"tabs clearfix\">
\t\t\t\t\t<ul class=\"tab-nav clearfix\">
\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>
\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>
\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>
\t\t\t\t\t\t{% if (warehouse.headquarter and (app.user.getAccountTypology == 'agency' or app.user.getAccountTypology == 'warehouse')) or app.user.getAccountTypology == 'technician' %}
\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>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</ul>
\t\t\t\t\t<div class=\"tab-container\">
\t\t\t\t\t\t{# Scorte #}
\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"stocks\">
\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Scorte in magazzino
\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>
\t\t\t\t\t\t\t\t\t\t{% if (app.user.getAccountTypology == 'agency' or app.user.getAccountTypology == 'warehouse') %}
\t\t\t\t\t\t\t\t\t\t\t{% if warehouse.headquarter and settingRecoverStock.value == 1 %}
\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>
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t{% if settingRegisterStock.value == 1 %}
\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>
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t{% if app.user.canWrite('warehouse_inventory') %}
\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>
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t</h4>
\t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t\t<div class=\"tabs clearfix\">
\t\t\t\t\t\t\t\t\t\t<ul class=\"tab-nav clearfix\">
\t\t\t\t\t\t\t\t\t\t\t{% if warehouse.headquarter %}
\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 ({{ toManageProductsCount }})\"></i><span class=\"d-none d-md-block\">Da gestire ({{ toManageProductsCount }})</span></a></li>
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\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 ({{ availableProductsCount }})\"></i><span class=\"d-none d-md-block\">Disponibili ({{ availableProductsCount }})</span></a></li>
\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 ({{ notAvailableProductsCount }})\"></i><span class=\"d-none d-md-block\">Non disponibili ({{ notAvailableProductsCount }})</span></a></li>
\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 ({{ transferProductsCount }})\"></i><span class=\"d-none d-md-block\">In trasferimento ({{ transferProductsCount }})</span></a></li>
\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t<div class=\"tab-container\">
\t\t\t\t\t\t\t\t\t\t\t{% if warehouse.headquarter %}
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"to_manage\">
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12\">
\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>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
\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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\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\">
\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>
\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>
\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>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p d-none d-lg-table-cell\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"producer_0\" value=\"{{ filters.producer_0|default() }}\"/></td>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p d-none d-lg-table-cell\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"sku_0\" value=\"{{ filters.sku_0|default() }}\"/></td>
\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>
\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>
\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>
\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\">
\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() }}\"/>
\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() }}\"/>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\"></th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\">
\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\">
\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')\">
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</th>
\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>
\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>
\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>
\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
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"d-none d-lg-table-cell\">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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"d-none d-lg-table-cell\">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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th>Tecnico</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th colspan=\"2\">DDT</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if toManageProducts|length > 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for product in toManageProducts %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set first = true %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set suppliersString = '' %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for supplier in product.suppliers %}
\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 %}
\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 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\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 }}\">
\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 %}>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"switch\">
\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')\">
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
\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>
\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>
\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>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"d-none d-lg-table-cell\">{{ product.model.producer }}</td>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"d-none d-lg-table-cell\">{{ product.model.sku }}</td>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\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'} %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ knp_pagination_render(toManageProducts) }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"available\">
\t\t\t\t\t\t\t\t\t\t\t\t{% set number = 1 %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set tab = 's_available' %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set status = 'available' %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set products = availableProducts %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set multipleSelection = [false, 1, []] %}
\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') %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% if app.user.getAccountTypology != 'technician' %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set multipleSelection = [true, 1, ['supplier', 'condition', 'send', 'export']] %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set multipleSelection = [true, 1, ['condition', 'send', 'export']] %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t{% block tableStocks %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if multipleSelection[0] %}
\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 %}
\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 %}
\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 %}
\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 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
\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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\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\">
\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>
\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>
\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>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_90p d-none d-lg-table-cell\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"producer_1\" value=\"{{ filters.producer_1|default() }}\"/></td>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p d-none d-lg-table-cell\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"sku_1\" value=\"{{ filters.sku_1|default() }}\"/></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_120p d-none d-lg-table-cell\"><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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"td_w_60p\">
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
\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 }}\">
\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() }}\"/>
\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() }}\"/>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\"></th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if multipleSelection[0] %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_20p\">
\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\">
\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 }}')\">
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\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>
\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>
\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<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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"d-none d-lg-table-cell\">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>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th colspan=\"2\" class=\"d-none d-lg-table-cell\">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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if products|length > 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for product in products %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set first = true %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set suppliersString = '' %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for supplier in product.suppliers %}
\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 %}
\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 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\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 }}\">
\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 %}>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if multipleSelection[0] %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>
\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\">
\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 }}')\">
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\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>
\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>
\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>
\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') }}
\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 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"d-none d-lg-table-cell\">{{ product.model.producer }}</td>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"2\" class=\"d-none d-lg-table-cell\">{{ product.dateLastTransfer|date('d-m-Y H:i') }}</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\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'} %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ knp_pagination_render(products) }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t{% endblock %}
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"not_available\">
\t\t\t\t\t\t\t\t\t\t\t\t{% set number = 2 %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set tab = 's_not_available' %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set status = 'not_available' %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set products = notAvailableProducts %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set index = 1 %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set multipleSelection = [false, 2, []] %}
\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') %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% if app.user.getAccountTypology != 'technician' %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set multipleSelection = [true, 2, ['supplier', 'condition', 'send', 'export']] %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set multipleSelection = [true, 2, ['condition', 'send', 'export']] %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ block('tableStocks') }}
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"transfer\">
\t\t\t\t\t\t\t\t\t\t\t\t{% set number = 3 %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set tab = 's_transfer' %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set status = 'transfer' %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set products = transferProducts %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set index = 1 %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set multipleSelection = [false, null, []] %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ block('tableStocks') }}
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t{# Trasferimenti #}
\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"transfers\">
\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Trasferimenti</h4>
\t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t\t\t\t\t\t<div class=\"tabs clearfix\">
\t\t\t\t\t\t\t\t\t\t<ul class=\"tab-nav clearfix\">
\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|length }})\"></i><span class=\"d-none d-md-block\">In entrata ({{ incomingTransfers|length }})</span></a></li>
\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|length }})\"></i><span class=\"d-none d-md-block\">In uscita ({{ outputTransfers|length }})</span></a></li>
\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t<div class=\"tab-container\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"incoming\">
\t\t\t\t\t\t\t\t\t\t\t\t{% set transfers = incomingTransfers %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set number = 1 %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set tabType = 'pt_incoming' %}
\t\t\t\t\t\t\t\t\t\t\t\t{% block tableTransfers %}
\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
\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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\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\">
\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>
\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>
\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>
\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>
\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>
\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>
\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>
\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>
\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
\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 }}\">
\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() }}\"/>
\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() }}\"/>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
\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>
\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>
\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>
\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>
\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>
\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\">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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th rowspan=\"2\"></th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
\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>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if transfers|length > 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for pt in transfers %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\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>
\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>
\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>
\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>
\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>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{% if pt.ddtPath != null %}N° {{ pt.ddt }}{% else %}---{% endif %}</td>
\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>
\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') %}
\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\">
\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' %}
\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' %}
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\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' %}
\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 %}
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\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'} %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ knp_pagination_render(transfers) }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t{% endblock %}
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"output\">
\t\t\t\t\t\t\t\t\t\t\t\t{% set transfers = outputTransfers %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set number = 2 %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set tabType = 'pt_output' %}
\t\t\t\t\t\t\t\t\t\t\t\t{{ block('tableTransfers') }}
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t{# Dati e utenti #}
\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"data\">
\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t<div class=\"col-12 col-lg-6\">
\t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Dati generici
\t\t\t\t\t\t\t\t\t\t{% if app.user.canWrite('warehouse') %}
\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>
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t</h4>
\t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t\t\t\t\t\t<table class=\"table table-hover responsive_font_size\">
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<th>Nickname</th>
\t\t\t\t\t\t\t\t\t\t\t<td>{{ warehouse.nickname }}</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<th>Attivo</th>
\t\t\t\t\t\t\t\t\t\t\t<td>{% if warehouse.active %}Sì{% else %}No{% endif %}</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<th>Sede</th>
\t\t\t\t\t\t\t\t\t\t\t<td>{% if warehouse.headquarter %}Sì{% else %}No{% endif %}</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<th>Indirizzo DDT</th>
\t\t\t\t\t\t\t\t\t\t\t<td>{{ warehouse.address }}</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<th>Fisso/Mobile</th>
\t\t\t\t\t\t\t\t\t\t\t<td>{% if warehouse.movable %}Mobile{% else %}Fisso{% endif %}</td>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"col-12 col-lg-6\">
\t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">Utenti</h4>
\t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t\t\t\t\t\t<table class=\"table table-hover responsive_font_size\">
\t\t\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t\t<th>Utente</th>
\t\t\t\t\t\t\t\t\t\t\t\t<th>Permessi</th>
\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"txt_a_c\">Principale</th>
\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t\t{% for jtuw in warehouse.users %}
\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ jtuw.user }}</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t<td>{{ jtuw.displayPermission }}</td>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t{# Richieste tecnici #}
\t\t\t\t\t\t{% if (warehouse.headquarter and (app.user.getAccountTypology == 'agency' or app.user.getAccountTypology == 'warehouse')) or app.user.getAccountTypology == 'technician' %}
\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"technicianRequests\">
\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t\t\t<h4 class=\"form_title\">{{ prReqTitle }}
\t\t\t\t\t\t\t\t\t\t\t{% if app.user.getAccountTypology == 'technician' %}
\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>
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t</h4>
\t\t\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t\t\t\t\t\t\t<div class=\"tabs clearfix\">
\t\t\t\t\t\t\t\t\t\t\t<ul class=\"tab-nav clearfix\">
\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 }} ({{ insertedProductRequestsCount }})\"></i><span class=\"d-none d-md-block\">{{ prReqInserted }} ({{ insertedProductRequestsCount }})</span></a></li>
\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 }} ({{ takeChargeProductRequestsCount }})\"></i><span class=\"d-none d-md-block\">{{ prReqTakeCharge }} ({{ takeChargeProductRequestsCount }})</span></a></li>
\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 }} ({{ completedProductRequestsCount }})\"></i><span class=\"d-none d-md-block\">{{ prReqCompleted }} ({{ completedProductRequestsCount }})</span></a></li>
\t\t\t\t\t\t\t\t\t\t\t</ul>
\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-container\">
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"inserted\">
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set requests = insertedProductRequests %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabType = 'pr_inserted' %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set number = 1 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabAction = '' %}
\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 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabAction = 'take_charge' %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% elseif app.user.getAccountTypology == 'technician' %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabAction = 'delete' %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% block tableRequests %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 overflow_a\">
\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\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\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\">
\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>
\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>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td colspan=\"3\" 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
\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 }}\">
\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() }}\"/>
\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() }}\"/>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</form>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr class=\"bg_pr color_w\">
\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>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if warehouse.headquarter %}
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"d-none d-lg-table-cell\">Prodotti</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"d-none d-lg-table-cell\">Note</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_action d-table-cell d-lg-none\"></th>
\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 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</thead>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if requests|length > 0 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for pr in requests %}
\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 }}\">
\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 }}\">
\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 }}_details\" value=\"{{ pr.displayDetails }}\">
\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 }}\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"request_{{ pr.id }}_datetime\" colspan=\"2\" class=\"txt_a_c\">{{ pr.datetime|date('d-m-Y H:i') }}</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"request_{{ pr.id }}_technician\">{{ pr.technician }}</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if warehouse.headquarter %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"request_{{ pr.id }}_warehouse\">{{ pr.warehouse }}</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td id=\"request_{{ pr.id }}_warehouse_headquarter\">{{ pr.warehouseHeadquarter }}</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"d-none d-lg-table-cell\">{{ pr.displayDetails|raw }}</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"d-none d-lg-table-cell\">{{ pr.notes|raw }}</td>
\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 d-table-cell d-lg-none\"><a href=\"javascript: productRequestSheet({{ pr.id }})\" data-bs-toggle=\"tooltip\" title=\"Scheda\"><img class=\"icon_pr\" src=\"{{ asset (icon_sheet) }}\"></a></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if tabAction == 'delete' %}
\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>
\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' %}
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% elseif tabAction == 'complete' %}
\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>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\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'} %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</tbody>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"col-12 navigation txt_a_r\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ knp_pagination_render(requests) }}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endblock %}
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"take_charge\">
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set requests = takeChargeProductRequests %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabType = 'pr_take_charge' %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set number = 2 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabAction = '' %}
\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 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabAction = 'complete' %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{{ block('tableRequests') }}
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"tab-content clearfix\" id=\"completed\">
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set requests = completedProductRequests %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabType = 'pr_completed' %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set number = 3 %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% set tabAction = '' %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{{ block('tableRequests') }}
\t\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</section>
\t{# Inventario #}
\t<div id=\"stockInventoryModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t{{ form_start(formInventory, {'attr': {'novalidate': 'novalidate'}}) }}
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Verifica inventario</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 form-group\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Fornitore*</label>
\t\t\t\t\t\t\t\t<div {{ form_errors(formInventory.supplier) }}>
\t\t\t\t\t\t\t\t\t{{ form_widget(formInventory.supplier, {'attr':{'class':'form-control form-select'}}) }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Stato*</label>
\t\t\t\t\t\t\t\t<div {{ form_errors(formInventory.status) }}>
\t\t\t\t\t\t\t\t\t{{ form_widget(formInventory.status, {'attr':{'class':'form-control form-select'}}) }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">File*</label>
\t\t\t\t\t\t\t\t<div {{ form_errors(formInventory.path) }}>
\t\t\t\t\t\t\t\t\t{{ form_widget(formInventory.path, {'attr': {'class':'display_n'}}) }}
\t\t\t\t\t\t\t\t\t{{ form_widget(formInventory.file, {'attr': {'class':'display_n'}}) }}
\t\t\t\t\t\t\t\t\t<div class=\"input-group\">
\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>
\t\t\t\t\t\t\t\t\t\t<input id=\"filename2\" type=\"text\" class=\"form-control\" readonly>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Prosegui</button>
\t\t\t\t\t</div>
\t\t\t\t{{ form_end(formInventory) }}
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t{# Ricevi #}
\t<div id=\"transferReceiveModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t{{ form_start(formReceive, {'attr': {'novalidate': 'novalidate'}}) }}
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Ricevi materiale</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 form-group\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Magazzino di provenienza*</label>
\t\t\t\t\t\t\t\t<div {{ form_errors(formReceive.warehouse) }}>
\t\t\t\t\t\t\t\t\t{{ form_widget(formReceive.warehouse, {'attr':{'class':'form-control form-select'}}) }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-6 form-group\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Stock order</label>
\t\t\t\t\t\t\t\t<div {{ form_errors(formReceive.stockOrder) }}>
\t\t\t\t\t\t\t\t\t{{ form_widget(formReceive.stockOrder) }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-6 form-group\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Inserire DDT?</label>
\t\t\t\t\t\t\t\t<div {{ form_errors(formReceive.ddtMandatory) }}>
\t\t\t\t\t\t\t\t\t<table class=\"m_none\">
\t\t\t\t\t\t\t\t\t\t<tr>
\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>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"row\" id=\"row_receive_ddt\">
\t\t\t\t\t\t\t<div class=\"col-6 form-group\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Numero DDT*</label>
\t\t\t\t\t\t\t\t<div {{ form_errors(formReceive.ddt) }}>
\t\t\t\t\t\t\t\t\t{{ form_widget(formReceive.ddt) }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-6 form-group\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">DDT*</label>
\t\t\t\t\t\t\t\t<div {{ form_errors(formReceive.ddtPath) }}>
\t\t\t\t\t\t\t\t\t{{ form_widget(formReceive.ddtPath, {'attr': {'class':'display_n'}}) }}
\t\t\t\t\t\t\t\t\t{{ form_widget(formReceive.file, {'attr': {'class':'display_n'}}) }}
\t\t\t\t\t\t\t\t\t<div class=\"input-group\">
\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>
\t\t\t\t\t\t\t\t\t\t<input id=\"filename1\" type=\"text\" class=\"form-control\" readonly>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Continua</button>
\t\t\t\t\t</div>
\t\t\t\t{{ form_end(formReceive) }}
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t{# Invia #}
\t<div id=\"transferSendModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t{{ form_start(formSend, {'attr': {'novalidate': 'novalidate', 'id':'formSend'}}) }}
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Invia materiale</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<div class=\"row\" id=\"row_select_type\">
\t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">A chi stai inviando il materiale?</label>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% if warehouse.headquarter %}
\t\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 txt_a_c\">
\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>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 txt_a_c\">
\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>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t<div class=\"col-12 col-md-6 txt_a_c\">
\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>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{{ form_widget(formSend.type, {'attr':{'class':'display_n'}}) }}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"row m_t_30p\" id=\"row_send_data\" style=\"display: none\">
\t\t\t\t\t\t\t<div class=\"col-12\">
\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>
\t\t\t\t\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_user_from_select\" style=\"display: none\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Tecnico di partenza*</label>
\t\t\t\t\t\t\t\t<div {{ form_errors(formSend.userFrom) }}>
\t\t\t\t\t\t\t\t\t{{ form_widget(formSend.userFrom, {'attr':{'class':'form-control form-select'}}) }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_user_to_select\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Tecnico di destinazione*</label>
\t\t\t\t\t\t\t\t<div {{ form_errors(formSend.userTo) }}>
\t\t\t\t\t\t\t\t\t{{ form_widget(formSend.userTo, {'attr':{'class':'form-control form-select', 'onchange':'updateTechnicianWarehouses()'}}) }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_warehouse_select\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Magazzino di destinazione*</label>
\t\t\t\t\t\t\t\t<div {{ form_errors(formSend.warehouse) }}>
\t\t\t\t\t\t\t\t\t{{ form_widget(formSend.warehouse, {'attr':{'class':'form-control form-select'}}) }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"row_warehouse_selected\" style=\"display: none\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Magazzino di destinazione*</label>
\t\t\t\t\t\t\t\t<input type=\"text\" readonly=\"true\" class=\"form-control\" id=\"input_warehouse_display\">
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"div_send_supplier\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Fornitore*</label>
\t\t\t\t\t\t\t\t<div {{ form_errors(formSend.supplier) }}>
\t\t\t\t\t\t\t\t\t{{ form_widget(formSend.supplier, {'attr':{'class':'form-control form-select', 'onChange':'showHideDivestment()'}}) }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"div_send_ddt_mandatory\" style=\"display: none\">
\t\t\t\t\t\t\t\t<div {{ form_errors(formSend.ddtMandatory) }}>
\t\t\t\t\t\t\t\t\t{% set checked = false %}
\t\t\t\t\t\t\t\t\t{% if settingDdtMandatory.value %}
\t\t\t\t\t\t\t\t\t\t{% set checked = true %}
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t<table class=\"table table-sm b_none m_b_none\">
\t\t\t\t\t\t\t\t\t\t<tr>
\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>
\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>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"col-12 form-group\" id=\"div_send_divestment\" style=\"display: none\">
\t\t\t\t\t\t\t\t<div {{ form_errors(formSend.divestment) }}>
\t\t\t\t\t\t\t\t\t<table class=\"table table-sm b_none m_b_none\">
\t\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t\t<td><label class=\"form_label m_b_none\">è dismissione?</label></td>
\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>
\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>
\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>
\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t{{ form_widget(formSend.sendStocksIds, {'attr':{'class':'display_n'}}) }}
\t\t\t\t\t{{ form_widget(formSend.productRequestId, {'attr':{'class':'display_n'}}) }}
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\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>
\t\t\t\t\t</div>
\t\t\t\t{{ form_end(formSend) }}
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t{# Stock - Gestito #}
\t<div id=\"stockManagedModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<form action=\"{{ path ('user_warehouse_stock_multiple_select_action', {'warehouseId':warehouse.id}) }}\" method=\"post\" id=\"formManaged\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Prodotti gestiti</h3></div>\t\t\t\t\t\t
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"managedStocksIds\" name=\"ids\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"managedAction\" name=\"action\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
\t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
\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>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\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>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t{# Stock - Aggiungi fornitori #}
\t<div id=\"stockSupplierModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<form action=\"{{ path ('user_warehouse_stock_multiple_select_action', {'warehouseId':warehouse.id}) }}\" method=\"post\" id=\"formSupplier\">
\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
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"supplierStocksIds\" name=\"ids\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"supplierAction\" name=\"action\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Seleziona i fornitori da aggiungere</label>
\t\t\t\t\t\t\t\t<div id=\"divErrorSupplier\">
\t\t\t\t\t\t\t\t\t{% for s in suppliers %}
\t\t\t\t\t\t\t\t\t\t<table class=\"table table_no_padding b_none m_b_none\">
\t\t\t\t\t\t\t\t\t\t\t<tr>
\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>
\t\t\t\t\t\t\t\t\t\t\t\t<td><label class=\"m_b_none form_label\">{{ s.name }}</label></td>
\t\t\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t\t\t</table>
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\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>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
\t{# Stock - Cambio condizione #}
\t<div id=\"stockConditionModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<form action=\"{{ path ('user_warehouse_stock_multiple_select_action', {'warehouseId':warehouse.id}) }}\" method=\"post\" id=\"formCondition\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Cambia condizione prodotti</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"conditionStocksIds\" name=\"ids\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"conditionAction\" name=\"action\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"stockTab\" name=\"tab\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t\t\t\t<label class=\"form_label\">Seleziona nuova condizione</label>
\t\t\t\t\t\t\t\t<div id=\"divErrorCondition\">
\t\t\t\t\t\t\t\t\t<select class=\"form-control form-select\" id=\"select_product_condition\" name=\"productCondition\">
\t\t\t\t\t\t\t\t\t\t<option></option>
\t\t\t\t\t\t\t\t\t\t{% for condition in productConditions %}
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ condition.id }}\">{{ condition.value }}</option>
\t\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\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>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t{# Transfer - Elimina #}
\t<div id=\"transferDeleteModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<form action=\"{{ path ('user_warehouse_transfer_delete', {'warehouseId':warehouse.id}) }}\" method=\"post\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Trasferimento - Elimina</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"transferDeleteId\" name=\"transferDelId\"/>
\t\t\t\t\t\t<input type=\"hidden\" name=\"warehouseId\" value=\"{{ warehouse.id }}\"/>
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
\t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label>
\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>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-red f_right\">Conferma</button>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>\t
\t
\t{# Product request - Sheet #}
\t<div id=\"productRequestSheetModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richiesta materiale - Dettaglio</h3></div>
\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t<table class=\"table table-sm responsive_font_size\">
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>Data/Ora</th>
\t\t\t\t\t\t\t<td id=\"request_sheet_datetime\"></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>Tecnico</th>
\t\t\t\t\t\t\t<td id=\"request_sheet_technician\"></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<th>Magazzino tecnico</th>
\t\t\t\t\t\t\t<td id=\"request_sheet_warehouse\"></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t<th>Magazzino richiesta</th>
\t\t\t\t\t\t\t<td id=\"request_sheet_warehouse_headquarter\"></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<td colspan=\"2\" id=\"request_sheet_details\"></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>Note</th>
\t\t\t\t\t\t\t<td id=\"request_sheet_notes\"></td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-footer txt_a_c\">
\t\t\t\t\t<a href=\"javascript:void(0)\" class=\"button button-3d button-mini button-red\" data-bs-dismiss=\"modal\">Chiudi</a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t{# Product request - Take charge #}
\t<div id=\"productRequestTakeChargeModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<form action=\"{{ path ('user_warehouse_product_request_take_charge', {'warehouseId':warehouse.id}) }}\" method=\"post\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richiesta prodotti - Prendi in carico</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"product_request_take_charge_id\" name=\"productRequestId\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
\t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
\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>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Conferma</button>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t{# Product request - Take charge #}
\t<div id=\"productRequestManagedModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<form action=\"{{ path ('user_warehouse_product_request_managed', {'warehouseId':warehouse.id}) }}\" method=\"post\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richiesta prodotti - Gestita</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"product_request_managed_id\" name=\"productRequestId\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
\t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
\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>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-green f_right\">Conferma</button>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t{# Product request - Delete #}
\t<div id=\"productRequestDeleteModal\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<form action=\"{{ path ('user_warehouse_product_request_delete', {'warehouseId':warehouse.id}) }}\" method=\"post\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Richieste prodotto - Elimina</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"product_request_delete_id\" name=\"productRequestId\">
\t\t\t\t\t\t<div class=\"row\">
\t\t\t\t\t\t\t<div class=\"col-12 txt_a_c\">
\t\t\t\t\t\t\t\t<label class=\"modal_subtitle\">Attenzione!</label><br>
\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>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"modal-footer\">
\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>
\t\t\t\t\t\t<button type=\"submit\" class=\"button button-3d button-mini button-red f_right\">Conferma</button>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
{% endblock %}
{% block modals %}
\t{% include 'components/modals/filter_supplier.html.twig' with {'number':0, 'suppliers':suppliers} %}
\t{% include 'components/modals/filter_supplier.html.twig' with {'number':1, 'suppliers':suppliers} %}
\t{% include 'components/modals/filter_supplier.html.twig' with {'number':2, 'suppliers':suppliers} %}
\t{% include 'components/modals/filter_supplier.html.twig' with {'number':3, 'suppliers':suppliers} %}
\t{# Dati magazzino #}
\t{% set editWarehouseModalBody %}
\t\t<input type=\"hidden\" id=\"warehouseEditId\" name=\"warehouseEditId\"/>
\t\t<div class=\"row\">
\t\t\t<div class=\"col-12 form-group\">
\t\t\t\t<label class=\"form_label\">Nome*</label>
\t\t\t\t<div {{ form_errors(formEdit.nickname) }}>
\t\t\t\t\t{{ form_widget(formEdit.nickname) }}
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"col-12 form-group\">
\t\t\t\t<label class=\"form_label\">Indirizzo DDT*</label>
\t\t\t\t<div {{ form_errors(formEdit.address) }}>
\t\t\t\t\t{{ form_widget(formEdit.address) }}
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"col-12 col-md-6 form-group\">
\t\t\t\t<label class=\"form_label\">Sede centrale</label>
\t\t\t\t<div {{ form_errors(formEdit.headquarter) }}>
\t\t\t\t\t<table class=\"m_none\">
\t\t\t\t\t\t<tr>
\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>
\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>
\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>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t</div>
\t\t\t<div class=\"col-12 col-md-6 form-group\">
\t\t\t\t<label class=\"form_label\">Magazzino mobile</label>
\t\t\t\t<div {{ form_errors(formEdit.movable) }}>
\t\t\t\t\t<table class=\"m_none\">
\t\t\t\t\t\t<tr>
\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>
\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>
\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>
\t\t\t\t\t\t</tr>
\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t{% endset %}
\t{% set editWarehouseScriptBody %}{% endset %}
\t{% include 'components/modals/edit.html.twig' with {'type':'warehouse', 'form':formEdit, 'text':'Magazzino', 'modalBody':editWarehouseModalBody, 'scriptBody':editWarehouseScriptBody, 'openModal':'openEditModal', 'id':''} %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% include 'components/js/upload_file_js.html.twig' with {'number':'1', 'file':'form_transfer_receive_file', 'path':'form_transfer_receive_ddtPath'} %}
{% include 'components/js/upload_file_js.html.twig' with {'number':'2', 'file':'form_import_inventory_file', 'path':'form_import_inventory_path'} %}
{% 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'} %}
{% 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'} %}
{% 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'} %}
{% 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'} %}
{% include 'components/js/filter_supplier_js.html.twig' with {'number':0, 'suppliers':suppliers, 'filterSupplier':filters.supplier_0} %}
{% include 'components/js/filter_supplier_js.html.twig' with {'number':1, 'suppliers':suppliers, 'filterSupplier':filters.supplier_1} %}
{% include 'components/js/filter_supplier_js.html.twig' with {'number':2, 'suppliers':suppliers, 'filterSupplier':filters.supplier_1} %}
{% include 'components/js/filter_supplier_js.html.twig' with {'number':3, 'suppliers':suppliers, 'filterSupplier':filters.supplier_1} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange1last_1', 'format':'DD-MM-YYYY HH:mm'} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange1last_2', 'format':'DD-MM-YYYY HH:mm'} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange1last_3', 'format':'DD-MM-YYYY HH:mm'} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2creation_1', 'format':'DD-MM-YYYY HH:mm'} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2send_1', 'format':'DD-MM-YYYY HH:mm'} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2completion_1', 'format':'DD-MM-YYYY HH:mm'} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2creation_2', 'format':'DD-MM-YYYY HH:mm'} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2send_2', 'format':'DD-MM-YYYY HH:mm'} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2completion_2', 'format':'DD-MM-YYYY HH:mm'} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2creation_3', 'format':'DD-MM-YYYY HH:mm'} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2send_3', 'format':'DD-MM-YYYY HH:mm'} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange2completion_3', 'format':'DD-MM-YYYY HH:mm'} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange3_1', 'format':'DD-MM-YYYY HH:mm'} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange3_2', 'format':'DD-MM-YYYY HH:mm'} %}
{% include 'components/js/daterangepicker_js.html.twig' with {'id':'daterange3_3', 'format':'DD-MM-YYYY HH:mm'} %}
<script>
\t\$(document).ready(function(){
\t\t// Inventory
\t\t{% if app.session.get('openStockInventoryModal') %}
\t\t\tstockInventory();
\t\t\t{{ app.session.remove('openStockInventoryModal') }}
\t\t{% endif %}
\t\t// Receive
\t\t{% if app.session.get('openTransferReceiveModal') %}
\t\t\ttransferReceive();
\t\t\t{{ app.session.remove('openTransferReceiveModal') }}
\t\t{% endif %}
\t\t// Invia
\t\t{% if app.session.get('openTransferSendModal') %}
\t\t\ttransferSend();
\t\t\t{{ app.session.remove('openTransferSendModal') }}
\t\t{% endif %}
\t\t{% if app.session.get('transferStocksIds') %}
\t\t\t{{ app.session.remove('transferStocksIds') }}
\t\t{% endif %}
\t\tvar dateRanges1last = document.getElementsByClassName('daterange1last');
\t\t{% if filters.dateLastTransfer_1 != null and filters.dateLastTransfer_1 != '' %}
\t\t\tfor(i=0; i<dateRanges1last.length; i++){
\t\t\t\tdateRanges1last[i].value = \"{{ filters.dateLastTransfer_1 }}\";
\t\t\t}
\t\t{% else %}
\t\t\tfor(i=0; i<dateRanges1last.length; i++){
\t\t\t\tdateRanges1last[i].value = \"\";
\t\t\t}
\t\t{% endif %}
\t\tvar dateRanges2creation = document.getElementsByClassName('daterange2creation');
\t\t{% if filters.datetimeCreation_2 != null and filters.datetimeCreation_2 != '' %}
\t\t\tfor(i=0; i<dateRanges2creation.length; i++){
\t\t\t\tdateRanges2creation[i].value = \"{{ filters.datetimeCreation_2 }}\";
\t\t\t}
\t\t{% else %}
\t\t\tfor(i=0; i<dateRanges2creation.length; i++){
\t\t\t\tdateRanges2creation[i].value = \"\";
\t\t\t}
\t\t{% endif %}
\t\t
\t\tvar dateRanges2send = document.getElementsByClassName('daterange2send');
\t\t{% if filters.datetimeSend_2 != null and filters.datetimeSend_2 != '' %}
\t\t\tfor(i=0; i<dateRanges2send.length; i++){
\t\t\t\tdateRanges2send[i].value = \"{{ filters.datetimeSend_2 }}\";
\t\t\t}
\t\t{% else %}
\t\t\tfor(i=0; i<dateRanges2send.length; i++){
\t\t\t\tdateRanges2send[i].value = \"\";
\t\t\t}
\t\t{% endif %}
\t\t
\t\tvar dateRanges2completion = document.getElementsByClassName('daterange2completion');
\t\t{% if filters.datetimeCompletion_2 != null and filters.datetimeCompletion_2 != '' %}
\t\t\tfor(i=0; i<dateRanges2completion.length; i++){
\t\t\t\tdateRanges2completion[i].value = \"{{ filters.datetimeCompletion_2 }}\";
\t\t\t}
\t\t{% else %}
\t\t\tfor(i=0; i<dateRanges2completion.length; i++){
\t\t\t\tdateRanges2completion[i].value = \"\";
\t\t\t}
\t\t{% endif %}
\t\tvar dateRanges3 = document.getElementsByClassName('daterange3');
\t\t{% if filters.date_3 != null and filters.date_3 != '' %}
\t\t\tfor(i=0; i<dateRanges3.length; i++){
\t\t\t\tdateRanges3[i].value = \"{{ filters.date_3 }}\";
\t\t\t}
\t\t{% else %}
\t\t\tfor(i=0; i<dateRanges3.length; i++){
\t\t\t\tdateRanges3[i].value = \"\";
\t\t\t}
\t\t{% endif %}
\t});
\tfunction selectAll(index, tab){
\t\tvar checkboxes = document.getElementsByClassName('stock_' + index + '_checkbox');
\t\tvar isSelect = document.getElementById('stock_' + index + '_all_checkboxes').checked;
\t\tfor(i=0; i<checkboxes.length; i++)
\t\t\tcheckboxes[i].checked = isSelect;
\t\tupdateButtons(index, tab);
\t}
\t
\tfunction updateButtons(index, tab){
\t\tvar inputSelectAll = document.getElementById('stock_' + index + '_all_checkboxes');
\t\tvar checkboxes = document.getElementsByClassName('stock_' + index + '_checkbox');
\t\tvar buttonCondition = document.getElementById('button_' + index + '_condition');
\t\tif(tab == 's_to_manage')
\t\t\tvar buttonManaged = document.getElementById('button_' + index + '_managed');
\t\t{% if app.user.getAccountTypology != 'technician' %}
\t\t\tif(tab == 's_to_manage' || tab == 's_available' || tab == 's_not_available')
\t\t\t\tvar buttonSupplier = document.getElementById('button_' + index + '_supplier');
\t\t{% endif %}
\t\tif(tab == 's_available' || tab == 's_not_available')
\t\t\tvar buttonSend = document.getElementById('button_' + index + '_send');
\t\tvar isAllSelected = true;
\t\tconst array = [];
\t\tfor(i=0; i<checkboxes.length; i++){
\t\t\tif(checkboxes[i].checked){
\t\t\t\tarray.push(checkboxes[i].value);
\t\t\t}
\t\t\telse
\t\t\t\tisAllSelected = false;
\t\t}
\t\t
\t\tif(!isAllSelected)
\t\t\tinputSelectAll.checked = false;
\t\t
\t\tif(array.length > 0){
\t\t\tbuttonCondition.className = \"button button-3d button-mini button-green f_right m_b_10p\";
\t\t\tbuttonCondition.href = \"javascript: sendAction('condition', \" + index + \", '\" + tab + \"')\";
\t\t\tif(tab == 's_to_manage'){
\t\t\t\tbuttonManaged.className = \"button button-3d button-mini button-green f_right m_b_10p\";
\t\t\t\tbuttonManaged.href = \"javascript: sendAction('managed', \" + index + \", '\" + tab + \"')\";
\t\t\t}
\t\t\t{% if app.user.getAccountTypology != 'technician' %}
\t\t\t\tif(tab == 's_to_manage' || tab == 's_available' || tab == 's_not_available'){
\t\t\t\t\tbuttonSupplier.className = \"button button-3d button-mini button-green f_right m_b_10p\";
\t\t\t\t\tbuttonSupplier.href = \"javascript: sendAction('supplier', \" + index + \", '\" + tab + \"')\";
\t\t\t\t}
\t\t\t{% endif %}
\t\t\tif(tab == 's_available' || tab == 's_not_available'){
\t\t\t\tbuttonSend.className = \"button button-3d button-mini button-green f_right m_b_10p\";
\t\t\t\tbuttonSend.href = \"javascript: sendAction('send', \" + index + \", '\" + tab + \"')\";
\t\t\t}
\t\t}
\t\telse{
\t\t\tbuttonCondition.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
\t\t\tbuttonCondition.href = \"javascript: void(0)\";
\t\t\tif(tab == 's_to_manage'){
\t\t\t\tbuttonManaged.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
\t\t\t\tbuttonManaged.href = \"javascript: void(0)\";
\t\t\t}
\t\t\t{% if app.user.getAccountTypology != 'technician' %}
\t\t\t\tif(tab == 's_to_manage' || tab == 's_available' || tab == 's_not_available'){
\t\t\t\t\tbuttonSupplier.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
\t\t\t\t\tbuttonSupplier.href = \"javascript: void(0)\";
\t\t\t\t}
\t\t\t{% endif %}
\t\t\tif(tab == 's_available' || tab == 's_not_available'){
\t\t\t\tbuttonSend.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
\t\t\t\tbuttonSend.href = \"javascript: void(0)\";
\t\t\t}
\t\t}
\t}
\tfunction sendAction(action, index, tab){
\t\tvar checkboxes = document.getElementsByClassName('stock_' + index + '_checkbox');
\t\tconst array = [];
\t\tfor(i=0; i<checkboxes.length; i++){
\t\t\tif(checkboxes[i].checked)
\t\t\t\tarray.push(checkboxes[i].value);
\t\t}
\t\tswitch(action){
\t\t\tcase 'managed':
\t\t\t\tdocument.getElementById('managedStocksIds').value = array;
\t\t\t\tdocument.getElementById('managedAction').value = action;
\t\t\t\t\$('#stockManagedModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t\t\t\tbreak;
\t\t\tcase 'supplier':
\t\t\t\tvar checkboxes = document.getElementsByClassName('supplier_checkboxes');
\t\t\t\tfor(i=0; i<checkboxes.length; i++){
\t\t\t\t\tcheckboxes[i].removeAttribute(\"checked\");
\t\t\t\t\tcheckboxes[i].checked = false;
\t\t\t\t}
\t\t\t\tdocument.getElementById('supplierStocksIds').value = array;
\t\t\t\tdocument.getElementById('supplierAction').value = action;
\t\t\t\t\$('#stockSupplierModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t\t\t\tbreak;
\t\t\tcase 'condition':
\t\t\t\tdocument.getElementById('conditionAction').value = action;
\t\t\t\tdocument.getElementById('conditionStocksIds').value = array;
\t\t\t\tswitch(index){
\t\t\t\t\tcase 0: document.getElementById('stockTab').value = 'to_manage'; break;
\t\t\t\t\tcase 1: document.getElementById('stockTab').value = 'available'; break;
\t\t\t\t\tcase 2: document.getElementById('stockTab').value = 'not_available'; break;
\t\t\t\t\tdefault: break;
\t\t\t\t}
\t\t\t\t\$('#stockConditionModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t\t\t\tbreak;
\t\t\tcase 'send':
\t\t\t\tvar a = document.getElementById('a_send_technician');
\t\t\t\tif(tab == 's_not_available'){
\t\t\t\t\ta.href = \"javascript: void(0)\";
\t\t\t\t\ta.className = \"button button-3d button-mini button-grey width_200p txt_a_c\";
\t\t\t\t}
\t\t\t\telse{
\t\t\t\t\ta.href = \"javascript: transferSendSetType('technician')\";
\t\t\t\t\ta.className = \"button button-3d button-mini button-pr width_200p txt_a_c\";
\t\t\t\t}
\t\t\t\tdocument.getElementById('form_transfer_send_sendStocksIds').value = array;
\t\t\t\ttransferSend();
\t\t\t\tbreak;
\t\t\tdefault: break;
\t\t}
\t}
\tfunction checkSubmit(action){
\t\tswitch(action){
\t\t\tcase 'managed':
\t\t\t\ttriggerLoading();
\t\t\t\t\$('#formManaged').submit();
\t\t\t\tbreak;
\t\t\tcase 'supplier':
\t\t\t\tvar valid = false;
\t\t\t\tvar checkboxes = document.getElementsByClassName('supplier_checkboxes');
\t\t\t\tfor(i=0; i<checkboxes.length; i++){
\t\t\t\t\tif(checkboxes[i].checked){
\t\t\t\t\t\tvalid = true;
\t\t\t\t\t\tbreak;
\t\t\t\t\t}
\t\t\t\t}
\t\t\t\tif(valid){
\t\t\t\t\ttriggerLoading();
\t\t\t\t\t\$('#formSupplier').submit();
\t\t\t\t}
\t\t\t\telse{
\t\t\t\t\tvar divError = document.getElementById('divErrorSupplier');
\t\t\t\t\tdivError.className = 'error';
\t\t\t\t\tdivError.children[0].setAttribute('data-bs-toggle', 'tooltip');
\t\t\t\t\tdivError.children[0].setAttribute('title', 'Campo obbligatorio');
\t\t\t\t}
\t\t\t\tbreak;
\t\t\tcase 'condition':
\t\t\t\tif(document.getElementById('select_product_condition').value != 0){
\t\t\t\t\ttriggerLoading();
\t\t\t\t\t\$('#formCondition').submit();
\t\t\t\t}
\t\t\t\telse{
\t\t\t\t\tvar divError = document.getElementById('divErrorCondition');
\t\t\t\t\tdivError.className = 'error';
\t\t\t\t\tdivError.children[0].setAttribute('data-bs-toggle', 'tooltip');
\t\t\t\t\tdivError.children[0].setAttribute('title', 'Campo obbligatorio');
\t\t\t\t}
\t\t\t\tbreak;
\t\t\tdefault: break;
\t\t}
\t\t\$('[data-bs-toggle=\"tooltip\"]').tooltip();
\t}
\tfunction stockInventory(){
\t\t\$('#stockInventoryModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t}
\t// RICEVI MATERIALE
\t\$('#form_transfer_receive_date').datepicker({ autoclose: true, todayHighlight: true, format: \"dd-mm-yyyy\", startDate: \"today\" });
function transferReceive(){
\$('#transferReceiveModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
}
\tfunction tranferReceiveShowHideDDT(){
\t\tif(document.getElementById('form_transfer_receive_ddtMandatory').checked == true){
\t\t\tdocument.getElementById('row_receive_ddt').style.display = 'flex';
\t\t}
\t\telse{
\t\t\tdocument.getElementById('row_receive_ddt').style.display = 'none';
\t\t}
\t}
\t// INVIA MATERIALE
\t\$('#form_transfer_send_date').datepicker({ autoclose: true, todayHighlight: true, format: \"dd-mm-yyyy\", startDate: \"today\" });
function transferSend(){
\t\tdocument.getElementById('form_transfer_send_productRequestId').value = '';
\t\tdocument.getElementById('row_select_type').style.display = 'flex';
\t\tdocument.getElementById('row_warehouse_select').style.display = 'block';
\t\tdocument.getElementById('row_warehouse_selected').style.display = 'none';
\t\tdocument.getElementById('row_send_data').className = 'row m_t_30p';
\$('#transferSendModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
}
\t
\tfunction transferSendSetType(type){
\t\tdocument.getElementById('form_transfer_send_type').value = type;
\t\t\$.post('{{ path (\"user_warehouse_transfer_update_warehouses\", {\"warehouseId\":warehouse.id}) }}', {type: type}, function(response){
\t\t\tif(response.code == 200 && response.success){
\t\t\t\tswitch(type){
\t\t\t\t\tcase 'technician':
\t\t\t\t\t\tupdateTechnicianWarehouses();
\t\t\t\t\t\tdocument.getElementById('span_send_type').innerHTML = 'Tecnico';
\t\t\t\t\t\tdocument.getElementById('div_send_supplier').style.display = 'none';
\t\t\t\t\t\tdocument.getElementById('div_send_ddt_mandatory').style.display = 'block';
\t\t\t\t\t\tdocument.getElementById('row_user_to_select').style.display = 'block';
\t\t\t\t\t\t{% if warehouse.headquarter == 0 and app.user.getAccountTypology != 'technician' %}
\t\t\t\t\t\t\tdocument.getElementById('row_user_from_select').style.display = 'block';
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\tbreak;
\t\t\t\t\tcase 'destination':
\t\t\t\t\t\tdocument.getElementById('span_send_type').innerHTML = 'Destinazione esterna';
\t\t\t\t\t\tdocument.getElementById('div_send_supplier').style.display = 'block';
\t\t\t\t\t\tdocument.getElementById('div_send_ddt_mandatory').style.display = 'none';
\t\t\t\t\t\tdocument.getElementById('row_user_to_select').style.display = 'none';
\t\t\t\t\t\tbreak;
\t\t\t\t\tcase 'main':
\t\t\t\t\t\tdocument.getElementById('span_send_type').innerHTML = 'Sede centrale';
\t\t\t\t\t\tdocument.getElementById('div_send_supplier').style.display = 'none';
\t\t\t\t\t\tdocument.getElementById('div_send_ddt_mandatory').style.display = 'none';
\t\t\t\t\t\tdocument.getElementById('row_user_to_select').style.display = 'none';
\t\t\t\t\t\t{% if warehouse.headquarter == 0 and app.user.getAccountTypology != 'technician' %}
\t\t\t\t\t\t\tdocument.getElementById('row_user_from_select').style.display = 'block';
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\tbreak;
\t\t\t\t\tdefault: break;
\t\t\t\t}
\t\t\t\tvar select = document.getElementById('form_transfer_send_warehouse');
\t\t\t\twhile(select.options.length){
\t\t\t\t\tselect.remove(0);
\t\t\t\t}
\t\t\t\tvar warehouses = JSON.parse(response.warehouses);
\t\t\t\tfor(var i = 0; i < warehouses.length; i++){
\t\t\t\t\tvar option = new Option(warehouses[i]['nickname'], warehouses[i]['id']);
\t\t\t\t\tselect.options.add(option);
\t\t\t\t}
\t\t\t\tdocument.getElementById('row_send_data').style.display = 'flex';
\t\t\t\tdocument.getElementById('button_send_submit').className = 'button button-3d button-mini button-green f_right';
\t\t\t\tdocument.getElementById('button_send_submit').href = 'javascript: transferSendSubmit()';
\t\t\t}
\t\t}, \"json\");
\t}
\tfunction showHideDivestment(){
\t\tvar select = document.getElementById('form_transfer_send_supplier');
\t\tvar options = select.children;
\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')
\t\t\tdocument.getElementById('div_send_divestment').style.display = 'block';
\t\telse
\t\t\tdocument.getElementById('div_send_divestment').style.display = 'none';
\t}
\tfunction updateTechnicianWarehouses(){
\t\ttechnicianId = document.getElementById('form_transfer_send_userTo').value;
\t\t\$.post('{{ path (\"user_warehouse_transfer_update_technician_warehouses\", {\"warehouseId\":warehouse.id}) }}', {technicianId: technicianId}, function(response){
\t\t\tif(response.code == 200 && response.success){
\t\t\t\tvar select = document.getElementById('form_transfer_send_warehouse');
\t\t\t\twhile(select.options.length){
\t\t\t\t\tselect.remove(0);
\t\t\t\t}
\t\t\t\tvar warehouses = JSON.parse(response.warehouses);
\t\t\t\tfor(var i = 0; i < warehouses.length; i++){
\t\t\t\t\tvar option = new Option(warehouses[i]['nickname'], warehouses[i]['id']);
\t\t\t\t\tselect.options.add(option);
\t\t\t\t}
\t\t\t\tdocument.getElementById('row_send_data').style.display = 'flex';
\t\t\t}
\t\t}, \"json\");
\t}
\tfunction transferSendSubmit(){
\t\t\$('#formSend').submit();
\t}
function transferDelete(id){
document.getElementById(\"transferDeleteId\").value = id;
\$('#transferDeleteModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
}
\t
\t// GESTISCI RICHIESTE TECNICI
\tfunction productRequestSheet(id){
\t\tdocument.getElementById('request_sheet_datetime').innerHTML = document.getElementById('request_' + id + '_datetime').innerHTML;
\t\tdocument.getElementById('request_sheet_technician').innerHTML = document.getElementById('request_' + id + '_technician').innerHTML;
\t\tdocument.getElementById('request_sheet_warehouse').innerHTML = document.getElementById('request_' + id + '_warehouse').innerHTML;
\t\tdocument.getElementById('request_sheet_warehouse_headquarter').innerHTML = document.getElementById('request_' + id + '_warehouse_headquarter').innerHTML;
\t\tdocument.getElementById('request_sheet_details').innerHTML = document.getElementById('request_' + id + '_details').value;
\t\tdocument.getElementById('request_sheet_notes').innerHTML = document.getElementById('request_' + id + '_notes').value;
\t\t\$('#productRequestSheetModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t}
\tfunction productRequestDelete(id){
\t\tdocument.getElementById('product_request_delete_id').value = id;
\t\t\$('#productRequestDeleteModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t}
\t{% if warehouse.headquarter %}
\t\tfunction productRequestTakeCharge(id){
\t\t\tdocument.getElementById('product_request_take_charge_id').value = id;
\t\t\t\$('#productRequestTakeChargeModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t\t}
\t\t
\t\tfunction productRequestManaged(id){
\t\t\tdocument.getElementById('product_request_managed_id').value = id;
\t\t\t\$('#productRequestManagedModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t\t}
\t{% endif %}
</script>
{% endblock %}", "role/user/warehouse/sheet.html.twig", "/var/www/vhosts/eposmanager.software/templates/role/user/warehouse/sheet.html.twig");
}
}