<?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(CoreExtension::getAttribute($this->env, $this->source, (isset($context["toManageProducts"]) || array_key_exists("toManageProducts", $context) ? $context["toManageProducts"] : (function () { throw new RuntimeError('Variable "toManageProducts" does not exist.', 80, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 80), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">Da gestire (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["toManageProducts"]) || array_key_exists("toManageProducts", $context) ? $context["toManageProducts"] : (function () { throw new RuntimeError('Variable "toManageProducts" does not exist.', 80, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 80), "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(CoreExtension::getAttribute($this->env, $this->source, (isset($context["availableProducts"]) || array_key_exists("availableProducts", $context) ? $context["availableProducts"] : (function () { throw new RuntimeError('Variable "availableProducts" does not exist.', 82, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 82), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">Disponibili (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["availableProducts"]) || array_key_exists("availableProducts", $context) ? $context["availableProducts"] : (function () { throw new RuntimeError('Variable "availableProducts" does not exist.', 82, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 82), "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(CoreExtension::getAttribute($this->env, $this->source, (isset($context["notAvailableProducts"]) || array_key_exists("notAvailableProducts", $context) ? $context["notAvailableProducts"] : (function () { throw new RuntimeError('Variable "notAvailableProducts" does not exist.', 83, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 83), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">Non disponibili (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["notAvailableProducts"]) || array_key_exists("notAvailableProducts", $context) ? $context["notAvailableProducts"] : (function () { throw new RuntimeError('Variable "notAvailableProducts" does not exist.', 83, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 83), "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(CoreExtension::getAttribute($this->env, $this->source, (isset($context["transferProducts"]) || array_key_exists("transferProducts", $context) ? $context["transferProducts"] : (function () { throw new RuntimeError('Variable "transferProducts" does not exist.', 84, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 84), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">In trasferimento (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["transferProducts"]) || array_key_exists("transferProducts", $context) ? $context["transferProducts"] : (function () { throw new RuntimeError('Variable "transferProducts" does not exist.', 84, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 84), "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\"><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\"><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_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"lastUser_0\" value=\"";
// line 110
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "lastUser_0", [], "any", true, true, false, 110)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "lastUser_0", [], "any", false, false, false, 110))) : ("")), "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 111
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_search"]) || array_key_exists("icon_search", $context) ? $context["icon_search"] : (function () { throw new RuntimeError('Variable "icon_search" does not exist.', 111, $this->source); })())), "html", 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 113
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_0", [], "any", true, true, false, 113)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_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\t<input id=\"sort_order_0\" type=\"hidden\" name=\"sortOrder_0\" value=\"";
// line 114
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_0", [], "any", true, true, false, 114)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_0", [], "any", false, false, false, 114))) : ("")), "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>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>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>DDT</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th colspan=\"2\">Ultimo utente log</th>
\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 139
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["toManageProducts"]) || array_key_exists("toManageProducts", $context) ? $context["toManageProducts"] : (function () { throw new RuntimeError('Variable "toManageProducts" does not exist.', 139, $this->source); })())) > 0)) {
// line 140
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.', 140, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 141
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["first"] = true;
// line 142
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["suppliersString"] = "";
// line 143
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, 143));
foreach ($context['_seq'] as $context["_key"] => $context["supplier"]) {
// line 144
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.', 144, $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.', 144, $this->source); })()) . "-");
}
// line 145
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.', 145, $this->source); })()) . CoreExtension::getAttribute($this->env, $this->source, $context["supplier"], "id", [], "any", false, false, false, 145));
// line 146
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 147
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.', 147, $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 148
if (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "toManage", [], "any", false, false, false, 148)) {
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, 148), "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 149
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, 149)]), "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.', 149, $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 152
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 152), "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, 152), "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 153
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 153), "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 156
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "toManagePriority", [], "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 id=\"product_codeProducer_";
// line 157
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 157), "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, 157)]), "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, 157)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeProducer", [], "any", false, false, false, 157), "---")) : ("---")), "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 158
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 158), "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, 158), "name", [], "any", 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>";
// line 159
yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displaySuppliers", [], "method", false, false, false, 159);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 160
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displayCondition", ["string-short"], "method", 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>";
// 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), "producer", [], "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 id=\"product_codeSupplier_";
// line 162
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 162), "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, 162)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeSupplier", [], "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>";
// line 163
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, 163), "sku", [], "any", false, false, false, 163), "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 164
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, $context["product"], "getLastTransfer", [], "any", false, false, false, 164))) {
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, 164), "userFrom", [], "any", false, false, false, 164), "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 165
yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displayTransfersDdt", [], "method", false, false, false, 165);
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 166
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "lastUserLog", [], "any", false, false, false, 166), "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 169
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 170
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", 170)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessun prodotto in questo stato"]));
// line 171
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 172
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 176
yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["toManageProducts"]) || array_key_exists("toManageProducts", $context) ? $context["toManageProducts"] : (function () { throw new RuntimeError('Variable "toManageProducts" does not exist.', 176, $this->source); })()));
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 181
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 182
$context["number"] = 1;
// line 183
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tab"] = "s_available";
// line 184
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["status"] = "available";
// line 185
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.', 185, $this->source); })());
// line 186
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [false, 1, []];
// line 187
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.', 187, $this->source); })()), "user", [], "any", false, false, false, 187), "canWrite", ["warehouse"], "method", false, false, false, 187) || ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 187, $this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env, $this->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.', 187, $this->source); })()), "user", [], "any", false, false, false, 187), "id", [], "any", false, false, false, 187)], "method", false, false, false, 187) != 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.', 187, $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.', 187, $this->source); })()), "user", [], "any", false, false, false, 187), "id", [], "any", false, false, false, 187)], "method", false, false, false, 187), "permission", [], "any", false, false, false, 187) == "RW")))) {
// line 188
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.', 188, $this->source); })()), "user", [], "any", false, false, false, 188), "getAccountTypology", [], "any", false, false, false, 188) != "technician")) {
// line 189
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [true, 1, ["supplier", "condition", "send", "export"]];
// line 190
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 191
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [true, 1, ["condition", "send", "export"]];
// line 192
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 193
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 194
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock('tableStocks', $context, $blocks);
// line 293
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 295
$context["number"] = 2;
// line 296
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tab"] = "s_not_available";
// line 297
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["status"] = "not_available";
// line 298
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.', 298, $this->source); })());
// line 299
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["index"] = 1;
// line 300
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [false, 2, []];
// line 301
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.', 301, $this->source); })()), "user", [], "any", false, false, false, 301), "canWrite", ["warehouse"], "method", false, false, false, 301) || ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 301, $this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env, $this->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.', 301, $this->source); })()), "user", [], "any", false, false, false, 301), "id", [], "any", false, false, false, 301)], "method", false, false, false, 301) != 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.', 301, $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.', 301, $this->source); })()), "user", [], "any", false, false, false, 301), "id", [], "any", false, false, false, 301)], "method", false, false, false, 301), "permission", [], "any", false, false, false, 301) == "RW")))) {
// line 302
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.', 302, $this->source); })()), "user", [], "any", false, false, false, 302), "getAccountTypology", [], "any", false, false, false, 302) != "technician")) {
// line 303
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [true, 2, ["supplier", "condition", "send", "export"]];
// line 304
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 305
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [true, 2, ["condition", "send", "export"]];
// line 306
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 307
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 308
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 311
$context["number"] = 3;
// line 312
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tab"] = "s_transfer";
// line 313
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["status"] = "transfer";
// line 314
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.', 314, $this->source); })());
// line 315
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["index"] = 1;
// line 316
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [false, null, []];
// line 317
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 325
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 332
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["incomingTransfers"]) || array_key_exists("incomingTransfers", $context) ? $context["incomingTransfers"] : (function () { throw new RuntimeError('Variable "incomingTransfers" does not exist.', 332, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 332), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">In entrata (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["incomingTransfers"]) || array_key_exists("incomingTransfers", $context) ? $context["incomingTransfers"] : (function () { throw new RuntimeError('Variable "incomingTransfers" does not exist.', 332, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 332), "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 333
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["outputTransfers"]) || array_key_exists("outputTransfers", $context) ? $context["outputTransfers"] : (function () { throw new RuntimeError('Variable "outputTransfers" does not exist.', 333, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 333), "html", null, true);
yield ")\"></i><span class=\"d-none d-md-block\">In uscita (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["outputTransfers"]) || array_key_exists("outputTransfers", $context) ? $context["outputTransfers"] : (function () { throw new RuntimeError('Variable "outputTransfers" does not exist.', 333, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 333), "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 337
$context["transfers"] = (isset($context["incomingTransfers"]) || array_key_exists("incomingTransfers", $context) ? $context["incomingTransfers"] : (function () { throw new RuntimeError('Variable "incomingTransfers" does not exist.', 337, $this->source); })());
// line 338
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 1;
// line 339
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pt_incoming";
// line 340
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock('tableTransfers', $context, $blocks);
// line 418
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 420
$context["transfers"] = (isset($context["outputTransfers"]) || array_key_exists("outputTransfers", $context) ? $context["outputTransfers"] : (function () { throw new RuntimeError('Variable "outputTransfers" does not exist.', 420, $this->source); })());
// line 421
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 2;
// line 422
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pt_output";
// line 423
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 431
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 435
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.', 435, $this->source); })()), "user", [], "any", false, false, false, 435), "canWrite", ["warehouse"], "method", false, false, false, 435)) {
// line 436
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.', 436, $this->source); })())), "html", null, true);
yield "\"></a>
\t\t\t\t\t\t\t\t\t\t";
}
// line 438
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 443
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 443, $this->source); })()), "nickname", [], "any", false, false, false, 443), "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 447
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 447, $this->source); })()), "active", [], "any", false, false, false, 447)) {
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 451
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 451, $this->source); })()), "headquarter", [], "any", false, false, false, 451)) {
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 455
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 455, $this->source); })()), "address", [], "any", false, false, false, 455), "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 459
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 459, $this->source); })()), "movable", [], "any", false, false, false, 459)) {
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 475
$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.', 475, $this->source); })()), "users", [], "any", false, false, false, 475));
foreach ($context['_seq'] as $context["_key"] => $context["jtuw"]) {
// line 476
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 477
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["jtuw"], "user", [], "any", false, false, false, 477), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 478
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["jtuw"], "displayPermission", [], "any", false, false, false, 478), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">";
// line 479
if (CoreExtension::getAttribute($this->env, $this->source, $context["jtuw"], "main", [], "any", false, false, false, 479)) {
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 482
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 488
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.', 488, $this->source); })()), "headquarter", [], "any", false, false, false, 488) && ((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.', 488, $this->source); })()), "user", [], "any", false, false, false, 488), "getAccountTypology", [], "any", false, false, false, 488) == "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.', 488, $this->source); })()), "user", [], "any", false, false, false, 488), "getAccountTypology", [], "any", false, false, false, 488) == "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.', 488, $this->source); })()), "user", [], "any", false, false, false, 488), "getAccountTypology", [], "any", false, false, false, 488) == "technician"))) {
// line 489
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 492
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prReqTitle"]) || array_key_exists("prReqTitle", $context) ? $context["prReqTitle"] : (function () { throw new RuntimeError('Variable "prReqTitle" does not exist.', 492, $this->source); })()), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t";
// line 493
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.', 493, $this->source); })()), "user", [], "any", false, false, false, 493), "getAccountTypology", [], "any", false, false, false, 493) == "technician")) {
// line 494
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.', 494, $this->source); })()), "id", [], "any", false, false, false, 494)]), "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 496
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 500
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prReqInserted"]) || array_key_exists("prReqInserted", $context) ? $context["prReqInserted"] : (function () { throw new RuntimeError('Variable "prReqInserted" does not exist.', 500, $this->source); })()), "html", null, true);
yield " (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["insertedProductRequests"]) || array_key_exists("insertedProductRequests", $context) ? $context["insertedProductRequests"] : (function () { throw new RuntimeError('Variable "insertedProductRequests" does not exist.', 500, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 500), "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.', 500, $this->source); })()), "html", null, true);
yield " (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["insertedProductRequests"]) || array_key_exists("insertedProductRequests", $context) ? $context["insertedProductRequests"] : (function () { throw new RuntimeError('Variable "insertedProductRequests" does not exist.', 500, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 500), "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 501
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prReqTakeCharge"]) || array_key_exists("prReqTakeCharge", $context) ? $context["prReqTakeCharge"] : (function () { throw new RuntimeError('Variable "prReqTakeCharge" does not exist.', 501, $this->source); })()), "html", null, true);
yield " (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["takeChargeProductRequests"]) || array_key_exists("takeChargeProductRequests", $context) ? $context["takeChargeProductRequests"] : (function () { throw new RuntimeError('Variable "takeChargeProductRequests" does not exist.', 501, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 501), "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.', 501, $this->source); })()), "html", null, true);
yield " (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["takeChargeProductRequests"]) || array_key_exists("takeChargeProductRequests", $context) ? $context["takeChargeProductRequests"] : (function () { throw new RuntimeError('Variable "takeChargeProductRequests" does not exist.', 501, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 501), "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 502
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["prReqCompleted"]) || array_key_exists("prReqCompleted", $context) ? $context["prReqCompleted"] : (function () { throw new RuntimeError('Variable "prReqCompleted" does not exist.', 502, $this->source); })()), "html", null, true);
yield " (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["completedProductRequests"]) || array_key_exists("completedProductRequests", $context) ? $context["completedProductRequests"] : (function () { throw new RuntimeError('Variable "completedProductRequests" does not exist.', 502, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 502), "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.', 502, $this->source); })()), "html", null, true);
yield " (";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["completedProductRequests"]) || array_key_exists("completedProductRequests", $context) ? $context["completedProductRequests"] : (function () { throw new RuntimeError('Variable "completedProductRequests" does not exist.', 502, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 502), "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 506
$context["requests"] = (isset($context["insertedProductRequests"]) || array_key_exists("insertedProductRequests", $context) ? $context["insertedProductRequests"] : (function () { throw new RuntimeError('Variable "insertedProductRequests" does not exist.', 506, $this->source); })());
// line 507
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pr_inserted";
// line 508
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 1;
// line 509
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "";
// line 510
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.', 510, $this->source); })()), "user", [], "any", false, false, false, 510), "getAccountTypology", [], "any", false, false, false, 510) == "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.', 510, $this->source); })()), "user", [], "any", false, false, false, 510), "getAccountTypology", [], "any", false, false, false, 510) == "warehouse") && CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 510, $this->source); })()), "headquarter", [], "any", false, false, false, 510)))) {
// line 511
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "take_charge";
// line 512
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.', 512, $this->source); })()), "user", [], "any", false, false, false, 512), "getAccountTypology", [], "any", false, false, false, 512) == "technician")) {
// line 513
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "delete";
// line 514
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 515
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock('tableRequests', $context, $blocks);
// line 587
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 589
$context["requests"] = (isset($context["takeChargeProductRequests"]) || array_key_exists("takeChargeProductRequests", $context) ? $context["takeChargeProductRequests"] : (function () { throw new RuntimeError('Variable "takeChargeProductRequests" does not exist.', 589, $this->source); })());
// line 590
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pr_take_charge";
// line 591
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 2;
// line 592
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "";
// line 593
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.', 593, $this->source); })()), "user", [], "any", false, false, false, 593), "getAccountTypology", [], "any", false, false, false, 593) == "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.', 593, $this->source); })()), "user", [], "any", false, false, false, 593), "getAccountTypology", [], "any", false, false, false, 593) == "warehouse") && CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 593, $this->source); })()), "headquarter", [], "any", false, false, false, 593)))) {
// line 594
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "complete";
// line 595
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 596
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 599
$context["requests"] = (isset($context["completedProductRequests"]) || array_key_exists("completedProductRequests", $context) ? $context["completedProductRequests"] : (function () { throw new RuntimeError('Variable "completedProductRequests" does not exist.', 599, $this->source); })());
// line 600
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pr_completed";
// line 601
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 3;
// line 602
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "";
// line 603
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 611
yield "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</section>
\t";
// line 618
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 621
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formInventory"]) || array_key_exists("formInventory", $context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.', 621, $this->source); })()), 'form_start', ["attr" => ["novalidate" => "novalidate"]]);
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 627
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formInventory"]) || array_key_exists("formInventory", $context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.', 627, $this->source); })()), "supplier", [], "any", false, false, false, 627), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 628
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formInventory"]) || array_key_exists("formInventory", $context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.', 628, $this->source); })()), "supplier", [], "any", false, false, false, 628), '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 633
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formInventory"]) || array_key_exists("formInventory", $context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.', 633, $this->source); })()), "status", [], "any", false, false, false, 633), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 634
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formInventory"]) || array_key_exists("formInventory", $context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.', 634, $this->source); })()), "status", [], "any", false, false, false, 634), '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 639
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formInventory"]) || array_key_exists("formInventory", $context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.', 639, $this->source); })()), "path", [], "any", false, false, false, 639), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 640
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formInventory"]) || array_key_exists("formInventory", $context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.', 640, $this->source); })()), "path", [], "any", false, false, false, 640), 'widget', ["attr" => ["class" => "display_n"]]);
yield "
\t\t\t\t\t\t\t\t\t";
// line 641
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formInventory"]) || array_key_exists("formInventory", $context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.', 641, $this->source); })()), "file", [], "any", false, false, false, 641), '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 654
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formInventory"]) || array_key_exists("formInventory", $context) ? $context["formInventory"] : (function () { throw new RuntimeError('Variable "formInventory" does not exist.', 654, $this->source); })()), 'form_end');
yield "
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t";
// line 660
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 663
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formReceive"]) || array_key_exists("formReceive", $context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.', 663, $this->source); })()), 'form_start', ["attr" => ["novalidate" => "novalidate"]]);
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 669
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formReceive"]) || array_key_exists("formReceive", $context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.', 669, $this->source); })()), "warehouse", [], "any", false, false, false, 669), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 670
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formReceive"]) || array_key_exists("formReceive", $context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.', 670, $this->source); })()), "warehouse", [], "any", false, false, false, 670), '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 675
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formReceive"]) || array_key_exists("formReceive", $context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.', 675, $this->source); })()), "stockOrder", [], "any", false, false, false, 675), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// 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); })()), "stockOrder", [], "any", false, false, false, 676), '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 681
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formReceive"]) || array_key_exists("formReceive", $context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.', 681, $this->source); })()), "ddtMandatory", [], "any", false, false, false, 681), '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 685
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formReceive"]) || array_key_exists("formReceive", $context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.', 685, $this->source); })()), "ddtMandatory", [], "any", false, false, false, 685), '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.', 685, $this->source); })()), "ddtMandatory", [], "any", false, false, false, 685), "vars", [], "any", false, false, false, 685), "id", [], "any", false, false, false, 685), "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 695
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formReceive"]) || array_key_exists("formReceive", $context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.', 695, $this->source); })()), "ddt", [], "any", false, false, false, 695), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 696
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formReceive"]) || array_key_exists("formReceive", $context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.', 696, $this->source); })()), "ddt", [], "any", false, false, false, 696), '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 701
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formReceive"]) || array_key_exists("formReceive", $context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.', 701, $this->source); })()), "ddtPath", [], "any", false, false, false, 701), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 702
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formReceive"]) || array_key_exists("formReceive", $context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.', 702, $this->source); })()), "ddtPath", [], "any", false, false, false, 702), 'widget', ["attr" => ["class" => "display_n"]]);
yield "
\t\t\t\t\t\t\t\t\t";
// line 703
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formReceive"]) || array_key_exists("formReceive", $context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.', 703, $this->source); })()), "file", [], "any", false, false, false, 703), '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 716
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formReceive"]) || array_key_exists("formReceive", $context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.', 716, $this->source); })()), 'form_end');
yield "
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t";
// line 722
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 725
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 725, $this->source); })()), 'form_start', ["attr" => ["novalidate" => "novalidate", "id" => "formSend"]]);
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 732
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 732, $this->source); })()), "headquarter", [], "any", false, false, false, 732)) {
// line 733
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 737
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 741
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 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); })()), "type", [], "any", false, false, false, 744), '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 753
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 753, $this->source); })()), "userFrom", [], "any", false, false, false, 753), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 754
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 754, $this->source); })()), "userFrom", [], "any", false, false, false, 754), '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 759
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 759, $this->source); })()), "userTo", [], "any", false, false, false, 759), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 760
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 760, $this->source); })()), "userTo", [], "any", false, false, false, 760), '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 765
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 765, $this->source); })()), "warehouse", [], "any", false, false, false, 765), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// 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); })()), "warehouse", [], "any", false, false, false, 766), '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 775
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 775, $this->source); })()), "supplier", [], "any", false, false, false, 775), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 776
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 776, $this->source); })()), "supplier", [], "any", false, false, false, 776), '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 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), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 781
$context["checked"] = false;
// line 782
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.', 782, $this->source); })()), "value", [], "any", false, false, false, 782)) {
// line 783
yield "\t\t\t\t\t\t\t\t\t\t";
$context["checked"] = true;
// line 784
yield "\t\t\t\t\t\t\t\t\t";
}
// line 785
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 789
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 789, $this->source); })()), "ddtMandatory", [], "any", false, false, false, 789), 'widget', ["attr" => ["class" => "switch-toggle switch-flat-mini switch-toggle-flat", "checked" => (isset($context["checked"]) || array_key_exists("checked", $context) ? $context["checked"] : (function () { throw new RuntimeError('Variable "checked" does not exist.', 789, $this->source); })())]]);
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.', 789, $this->source); })()), "ddtMandatory", [], "any", false, false, false, 789), "vars", [], "any", false, false, false, 789), "id", [], "any", false, false, false, 789), "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 796
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 796, $this->source); })()), "divestment", [], "any", false, false, false, 796), '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 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); })()), "divestment", [], "any", false, false, false, 801), '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.', 801, $this->source); })()), "divestment", [], "any", false, false, false, 801), "vars", [], "any", false, false, false, 801), "id", [], "any", false, false, false, 801), "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 809
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 809, $this->source); })()), "sendStocksIds", [], "any", false, false, false, 809), 'widget', ["attr" => ["class" => "display_n"]]);
yield "
\t\t\t\t\t";
// line 810
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 810, $this->source); })()), "productRequestId", [], "any", false, false, false, 810), '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 815
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 815, $this->source); })()), 'form_end');
yield "
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t";
// line 821
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 824
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_stock_multiple_select_action", ["warehouseId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 824, $this->source); })()), "id", [], "any", false, false, false, 824)]), "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 846
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 849
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_stock_multiple_select_action", ["warehouseId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 849, $this->source); })()), "id", [], "any", false, false, false, 849)]), "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 858
$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.', 858, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["s"]) {
// line 859
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 861
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "id", [], "any", false, false, false, 861), "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, 861), "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, 861), "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 862
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "name", [], "any", false, false, false, 862), "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 866
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 880
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 883
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_stock_multiple_select_action", ["warehouseId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 883, $this->source); })()), "id", [], "any", false, false, false, 883)]), "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 895
$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.', 895, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["condition"]) {
// line 896
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, 896), "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, 896), "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 898
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 913
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 916
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_transfer_delete", ["warehouseId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 916, $this->source); })()), "id", [], "any", false, false, false, 916)]), "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 920
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 920, $this->source); })()), "id", [], "any", false, false, false, 920), "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 938
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 class=\"td_w_150p\">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<th colspan=\"2\" style=\"border:0px\">Note</th>
\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_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 976
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 979
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_product_request_take_charge", ["warehouseId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 979, $this->source); })()), "id", [], "any", false, false, false, 979)]), "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 1000
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 1003
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_product_request_managed", ["warehouseId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 1003, $this->source); })()), "id", [], "any", false, false, false, 1003)]), "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 1024
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 1027
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_product_request_delete", ["warehouseId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 1027, $this->source); })()), "id", [], "any", false, false, false, 1027)]), "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 194
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 195
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 197
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection", $context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.', 197, $this->source); })()), 0, [], "array", false, false, false, 197)) {
// line 198
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.', 198, $this->source); })()), 2, [], "array", false, false, false, 198))) {
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.', 198, $this->source); })()), 1, [], "array", false, false, false, 198), "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 199
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.', 199, $this->source); })()), 2, [], "array", false, false, false, 199))) {
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.', 199, $this->source); })()), 1, [], "array", false, false, false, 199), "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 200
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.', 200, $this->source); })()), 2, [], "array", false, false, false, 200))) {
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.', 200, $this->source); })()), 1, [], "array", false, false, false, 200), "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 201
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.', 201, $this->source); })()), 2, [], "array", false, false, false, 201))) {
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.', 201, $this->source); })()), "id", [], "any", false, false, false, 201), "status" => (isset($context["status"]) || array_key_exists("status", $context) ? $context["status"] : (function () { throw new RuntimeError('Variable "status" does not exist.', 201, $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 202
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 203
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 208
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_sheet", ["warehouseId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 208, $this->source); })()), "id", [], "any", false, false, false, 208)]), "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 209
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection", $context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.', 209, $this->source); })()), 0, [], "array", false, false, false, 209)) {
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.', 209, $this->source); })()), "request", [], "any", false, false, false, 209), "attributes", [], "any", false, false, false, 209), "get", ["_route"], "method", false, false, false, 209), "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.', 209, $this->source); })()), "request", [], "any", false, false, false, 209), "attributes", [], "any", false, false, false, 209), "get", ["_route_params"], "method", false, false, false, 209)]), "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.', 209, $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 210
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeProducer_1", [], "any", true, true, false, 210)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeProducer_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_180p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"model_1\" value=\"";
// line 211
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "model_1", [], "any", true, true, false, 211)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "model_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_120p\"><input type=\"text\" class=\"form-control\" id=\"filter_supplier_value_";
// line 212
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number", $context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.', 212, $this->source); })()), "html", 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.', 212, $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.', 212, $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, 212)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "supplier_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\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"condition_1\" value=\"";
// line 213
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "condition_1", [], "any", true, true, false, 213)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "condition_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_90p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"producer_1\" value=\"";
// line 214
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "producer_1", [], "any", true, true, false, 214)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "producer_1", [], "any", false, false, false, 214))) : ("")), "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 215
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeSupplier_1", [], "any", true, true, false, 215)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeSupplier_1", [], "any", false, false, false, 215))) : ("")), "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=\"sku_1\" value=\"";
// line 216
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sku_1", [], "any", true, true, false, 216)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sku_1", [], "any", false, false, false, 216))) : ("")), "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 daterange1last font_12\" id=\"daterange1last_";
// line 217
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number", $context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.', 217, $this->source); })()), "html", 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\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"ddt_1\" value=\"";
// line 218
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "ddt_1", [], "any", true, true, false, 218)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "ddt_1", [], "any", false, false, false, 218))) : ("")), "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\">
\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 220
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_search"]) || array_key_exists("icon_search", $context) ? $context["icon_search"] : (function () { throw new RuntimeError('Variable "icon_search" does not exist.', 220, $this->source); })())), "html", 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 221
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_stocks_export_csv_filtered", ["warehouseId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 221, $this->source); })()), "id", [], "any", false, false, false, 221), "status" => (isset($context["status"]) || array_key_exists("status", $context) ? $context["status"] : (function () { throw new RuntimeError('Variable "status" does not exist.', 221, $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.', 221, $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 223
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 223, $this->source); })()), "html", 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 224
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_1", [], "any", true, true, false, 224)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_1", [], "any", false, false, false, 224))) : ("")), "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 225
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_1", [], "any", true, true, false, 225)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_1", [], "any", false, false, false, 225))) : ("")), "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 230
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection", $context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.', 230, $this->source); })()), 0, [], "array", false, false, false, 230)) {
// line 231
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 233
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection", $context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.', 233, $this->source); })()), 1, [], "array", false, false, false, 233), "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.', 233, $this->source); })()), 1, [], "array", false, false, false, 233), "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.', 233, $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 234
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection", $context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.', 234, $this->source); })()), 1, [], "array", false, false, false, 234), "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 238
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>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>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\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 250
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 250, $this->source); })())) > 0)) {
// line 251
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.', 251, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 252
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["first"] = true;
// line 253
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["suppliersString"] = "";
// line 254
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, 254));
foreach ($context['_seq'] as $context["_key"] => $context["supplier"]) {
// line 255
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.', 255, $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.', 255, $this->source); })()) . "-");
}
// line 256
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.', 256, $this->source); })()) . CoreExtension::getAttribute($this->env, $this->source, $context["supplier"], "id", [], "any", 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";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['supplier'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 258
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.', 258, $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 259
if (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "toManage", [], "any", false, false, false, 259)) {
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, 259), "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 260
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, 260)]), "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.', 260, $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 261
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["multipleSelection"]) || array_key_exists("multipleSelection", $context) ? $context["multipleSelection"] : (function () { throw new RuntimeError('Variable "multipleSelection" does not exist.', 261, $this->source); })()), 0, [], "array", false, false, false, 261)) {
// line 262
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 264
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 "\" 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.', 264, $this->source); })()), 1, [], "array", false, false, false, 264), "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, 264), "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.', 264, $this->source); })()), 1, [], "array", false, false, false, 264), "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.', 264, $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 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 "\" 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 269
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, 269), "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, 269)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeProducer", [], "any", false, false, false, 269), "---")) : ("---")), "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 270
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 270), "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, 270), "name", [], "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>";
// line 271
yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displaySuppliers", [], "method", false, false, false, 271);
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, $context["product"], "displayCondition", ["string-short"], "method", false, false, false, 272), "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 273
if (( !(null === CoreExtension::getAttribute($this->env, $this->source, $context["product"], "getLastTicket", [], "any", false, false, false, 273)) && ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 273, $this->source); })()) == "s_not_available"))) {
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, 273), "id", [], "any", false, false, false, 273)]), "html", null, true);
yield "\" target=\"_blank\">";
yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displayLastRefs", [], "any", false, false, false, 273);
yield "</a>";
}
// line 274
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>";
// line 275
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, 275), "producer", [], "any", false, false, false, 275), "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 276
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 276), "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, 276)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeSupplier", [], "any", false, false, false, 276), "---")) : ("---")), "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 277
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, 277), "sku", [], "any", false, false, false, 277), "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 278
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, 278), "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 colspan=\"2\">";
// line 279
yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displayTransfersDdt", [], "method", false, false, false, 279);
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 282
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 283
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", 283)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessun prodotto in questo stato"]));
// line 284
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 285
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 289
yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["products"]) || array_key_exists("products", $context) ? $context["products"] : (function () { throw new RuntimeError('Variable "products" does not exist.', 289, $this->source); })()));
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 340
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 341
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 346
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_sheet", ["warehouseId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 346, $this->source); })()), "id", [], "any", false, false, false, 346)]), "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 347
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.', 347, $this->source); })()), "request", [], "any", false, false, false, 347), "attributes", [], "any", false, false, false, 347), "get", ["_route"], "method", false, false, false, 347), "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.', 347, $this->source); })()), "request", [], "any", false, false, false, 347), "attributes", [], "any", false, false, false, 347), "get", ["_route_params"], "method", false, false, false, 347)]), "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.', 347, $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 348
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number", $context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.', 348, $this->source); })()), "html", 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 349
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number", $context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.', 349, $this->source); })()), "html", 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 350
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number", $context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.', 350, $this->source); })()), "html", 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 351
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouseFrom_2", [], "any", true, true, false, 351)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouseFrom_2", [], "any", false, false, false, 351))) : ("")), "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 352
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouseTo_2", [], "any", true, true, false, 352)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouseTo_2", [], "any", false, false, false, 352))) : ("")), "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 353
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "ddt_2", [], "any", true, true, false, 353)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "ddt_2", [], "any", false, false, false, 353))) : ("")), "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 354
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "stockOrder_2", [], "any", true, true, false, 354)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "stockOrder_2", [], "any", false, false, false, 354))) : ("")), "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 355
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_search"]) || array_key_exists("icon_search", $context) ? $context["icon_search"] : (function () { throw new RuntimeError('Variable "icon_search" does not exist.', 355, $this->source); })())), "html", 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 356
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["tabType"]) || array_key_exists("tabType", $context) ? $context["tabType"] : (function () { throw new RuntimeError('Variable "tabType" does not exist.', 356, $this->source); })()), "html", 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 357
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_2", [], "any", true, true, false, 357)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_2", [], "any", false, false, false, 357))) : ("")), "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 358
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_2", [], "any", true, true, false, 358)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_2", [], "any", false, false, false, 358))) : ("")), "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 txt_a_c\">DDT<button type=\"button\" onClick=\"setOrderBy2('p.ddt')\" data-orderField=\"p.ddt\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
\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 374
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.', 374, $this->source); })()), "user", [], "any", false, false, false, 374), "getAccountTypology", [], "method", false, false, false, 374) != "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 378
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["transfers"]) || array_key_exists("transfers", $context) ? $context["transfers"] : (function () { throw new RuntimeError('Variable "transfers" does not exist.', 378, $this->source); })())) > 0)) {
// line 379
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.', 379, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["pt"]) {
// line 380
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 381
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_transfer_sheet", ["warehouseId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 381, $this->source); })()), "id", [], "any", false, false, false, 381), "transferId" => CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "id", [], "any", false, false, false, 381)]), "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.', 381, $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 382
yield CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "displayPhase", ["string"], "method", false, false, false, 382);
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 383
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, 383), "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 384
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "datetimeSend", [], "any", false, false, false, 384) != 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, 384), "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 385
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "datetimeCompletion", [], "any", false, false, false, 385) != 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, 385), "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 386
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "warehouseFrom", [], "any", false, false, false, 386) != null)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "warehouseFrom", [], "any", false, false, false, 386), "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 387
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "warehouseTo", [], "any", false, false, false, 387) != null)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "warehouseTo", [], "any", false, false, false, 387), "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 388
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "ddtPath", [], "any", false, false, false, 388) != null)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "ddt", [], "any", false, false, false, 388), "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 389
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "stockOrder", [], "any", false, false, false, 389) != null)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "stockOrder", [], "any", false, false, false, 389), "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 390
if ((((CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 390, $this->source); })()), "jtUser", [CoreExtension::getAttribute($this->env, $this->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.', 390, $this->source); })()), "user", [], "any", false, false, false, 390), "id", [], "any", false, false, false, 390)], "method", false, false, false, 390) != 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.', 390, $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.', 390, $this->source); })()), "user", [], "any", false, false, false, 390), "id", [], "any", false, false, false, 390)], "method", false, false, false, 390), "permission", [], "any", false, false, false, 390) == "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.', 390, $this->source); })()), "user", [], "any", false, false, false, 390), "canWrite", ["warehouse"], "method", false, false, false, 390))) {
// line 391
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 392
if (((isset($context["tabType"]) || array_key_exists("tabType", $context) ? $context["tabType"] : (function () { throw new RuntimeError('Variable "tabType" does not exist.', 392, $this->source); })()) == "pt_incoming")) {
// line 393
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, 393) == "destination")) {
// 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";
} elseif (((isset($context["tabType"]) || array_key_exists("tabType", $context) ? $context["tabType"] : (function () { throw new RuntimeError('Variable "tabType" does not exist.', 396, $this->source); })()) == "pt_output")) {
// line 397
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, 397)) {
// line 398
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.', 398, $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 400
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, 400), "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.', 400, $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 402
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 403
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 405
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 407
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 408
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", 408)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessuno trasferimento in questo stato"]));
// line 409
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 410
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 414
yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["transfers"]) || array_key_exists("transfers", $context) ? $context["transfers"] : (function () { throw new RuntimeError('Variable "transfers" does not exist.', 414, $this->source); })()));
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 515
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 516
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 521
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_sheet", ["warehouseId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 521, $this->source); })()), "id", [], "any", false, false, false, 521)]), "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 522
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.', 522, $this->source); })()), "request", [], "any", false, false, false, 522), "attributes", [], "any", false, false, false, 522), "get", ["_route"], "method", false, false, false, 522), "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.', 522, $this->source); })()), "request", [], "any", false, false, false, 522), "attributes", [], "any", false, false, false, 522), "get", ["_route_params"], "method", false, false, false, 522)]), "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.', 522, $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 523
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["number"]) || array_key_exists("number", $context) ? $context["number"] : (function () { throw new RuntimeError('Variable "number" does not exist.', 523, $this->source); })()), "html", 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 524
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "technician_3", [], "any", true, true, false, 524)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "technician_3", [], "any", false, false, false, 524))) : ("")), "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 525
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouse_3", [], "any", true, true, false, 525)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouse_3", [], "any", false, false, false, 525))) : ("")), "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=\"4\" class=\"td_action\"><button type=\"submit\" class=\"btn bg_w f_left p_0p\" data-bs-toggle=\"tooltip\" title=\"Filtra\"><img class=\"icon_green\" src=\"";
// line 526
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["icon_search"]) || array_key_exists("icon_search", $context) ? $context["icon_search"] : (function () { throw new RuntimeError('Variable "icon_search" does not exist.', 526, $this->source); })())), "html", 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 527
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["tabType"]) || array_key_exists("tabType", $context) ? $context["tabType"] : (function () { throw new RuntimeError('Variable "tabType" does not exist.', 527, $this->source); })()), "html", 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 528
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_3", [], "any", true, true, false, 528)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_3", [], "any", false, false, false, 528))) : ("")), "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 529
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_3", [], "any", true, true, false, 529)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_3", [], "any", false, false, false, 529))) : ("")), "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 535
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 535, $this->source); })()), "headquarter", [], "any", false, false, false, 535)) {
// line 536
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 538
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 540
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_500p\">Prodotti</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_300p\">Note</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_action\"></th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 543
if (((((isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 543, $this->source); })()) == "delete") || ((isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 543, $this->source); })()) == "take_charge")) || ((isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 543, $this->source); })()) == "complete"))) {
yield "<th colspan=\"2\"></th>";
}
// line 544
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 547
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["requests"]) || array_key_exists("requests", $context) ? $context["requests"] : (function () { throw new RuntimeError('Variable "requests" does not exist.', 547, $this->source); })())) > 0)) {
// line 548
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.', 548, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["pr"]) {
// line 549
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, 549), "id", [], "any", false, false, false, 549), "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 550
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, 550), "nickname", [], "any", false, false, false, 550), "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 551
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 "_datetime\" value=\"";
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, 551), "d-m-Y H:i"), "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 552
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 552), "html", null, true);
yield "_technician\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "technician", [], "any", false, false, false, 552), "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 553
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\" 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, 553), "nickname", [], "any", false, false, false, 553), "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 554
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 554), "html", null, true);
yield "_warehouse_headquarter\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "warehouseHeadquarter", [], "any", false, false, false, 554), "nickname", [], "any", false, false, false, 554), "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 555
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 555), "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, 555), "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 colspan=\"2\" class=\"txt_a_c\">";
// line 557
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, 557), "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>";
// line 558
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "technician", [], "any", false, false, false, 558), "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 559
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 559, $this->source); })()), "headquarter", [], "any", false, false, false, 559)) {
// line 560
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "warehouse", [], "any", false, false, false, 560), "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 562
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "warehouseHeadquarter", [], "any", false, false, false, 562), "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 564
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
yield CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "displayDetails", [], "any", false, false, false, 564);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 565
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "notes", [], "any", false, false, false, 565), "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 class=\"td_action\"><a href=\"javascript: productRequestSheet(";
// line 566
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 566), "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.', 566, $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 567
if (((isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 567, $this->source); })()) == "delete")) {
// line 568
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, 568), "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.', 568, $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 569
(isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 569, $this->source); })()) == "take_charge")) {
// line 570
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, 570), "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.', 570, $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 571
(isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 571, $this->source); })()) == "complete")) {
// line 572
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, 572), "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.', 572, $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 574
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 576
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 577
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", 577)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessuna richiesta in questa fase"]));
// line 578
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 579
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 583
yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["requests"]) || array_key_exists("requests", $context) ? $context["requests"] : (function () { throw new RuntimeError('Variable "requests" does not exist.', 583, $this->source); })()));
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 1048
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 1049
yield "\t";
yield from $this->loadTemplate("components/modals/filter_supplier.html.twig", "role/user/warehouse/sheet.html.twig", 1049)->unwrap()->yield(CoreExtension::merge($context, ["number" => 0, "suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers", $context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.', 1049, $this->source); })())]));
// line 1050
yield "\t";
yield from $this->loadTemplate("components/modals/filter_supplier.html.twig", "role/user/warehouse/sheet.html.twig", 1050)->unwrap()->yield(CoreExtension::merge($context, ["number" => 1, "suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers", $context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.', 1050, $this->source); })())]));
// line 1051
yield "\t";
yield from $this->loadTemplate("components/modals/filter_supplier.html.twig", "role/user/warehouse/sheet.html.twig", 1051)->unwrap()->yield(CoreExtension::merge($context, ["number" => 2, "suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers", $context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.', 1051, $this->source); })())]));
// line 1052
yield "\t";
yield from $this->loadTemplate("components/modals/filter_supplier.html.twig", "role/user/warehouse/sheet.html.twig", 1052)->unwrap()->yield(CoreExtension::merge($context, ["number" => 3, "suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers", $context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.', 1052, $this->source); })())]));
// line 1053
yield "
\t";
// line 1055
yield "\t";
$context["editWarehouseModalBody"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 1056
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 1060
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formEdit"]) || array_key_exists("formEdit", $context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.', 1060, $this->source); })()), "nickname", [], "any", false, false, false, 1060), 'errors');
yield ">
\t\t\t\t\t";
// line 1061
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formEdit"]) || array_key_exists("formEdit", $context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.', 1061, $this->source); })()), "nickname", [], "any", false, false, false, 1061), '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 1066
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formEdit"]) || array_key_exists("formEdit", $context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.', 1066, $this->source); })()), "address", [], "any", false, false, false, 1066), 'errors');
yield ">
\t\t\t\t\t";
// line 1067
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formEdit"]) || array_key_exists("formEdit", $context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.', 1067, $this->source); })()), "address", [], "any", false, false, false, 1067), '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 1072
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formEdit"]) || array_key_exists("formEdit", $context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.', 1072, $this->source); })()), "headquarter", [], "any", false, false, false, 1072), '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 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); })()), "headquarter", [], "any", false, false, false, 1076), '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.', 1076, $this->source); })()), "headquarter", [], "any", false, false, false, 1076), "vars", [], "any", false, false, false, 1076), "id", [], "any", false, false, false, 1076), "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 1084
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formEdit"]) || array_key_exists("formEdit", $context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.', 1084, $this->source); })()), "movable", [], "any", false, false, false, 1084), '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 1088
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formEdit"]) || array_key_exists("formEdit", $context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.', 1088, $this->source); })()), "movable", [], "any", false, false, false, 1088), '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.', 1088, $this->source); })()), "movable", [], "any", false, false, false, 1088), "vars", [], "any", false, false, false, 1088), "id", [], "any", false, false, false, 1088), "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 1096
yield "\t";
$context["editWarehouseScriptBody"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
return; yield '';
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 1097
yield "\t";
yield from $this->loadTemplate("components/modals/edit.html.twig", "role/user/warehouse/sheet.html.twig", 1097)->unwrap()->yield(CoreExtension::merge($context, ["type" => "warehouse", "form" => (isset($context["formEdit"]) || array_key_exists("formEdit", $context) ? $context["formEdit"] : (function () { throw new RuntimeError('Variable "formEdit" does not exist.', 1097, $this->source); })()), "text" => "Magazzino", "modalBody" => (isset($context["editWarehouseModalBody"]) || array_key_exists("editWarehouseModalBody", $context) ? $context["editWarehouseModalBody"] : (function () { throw new RuntimeError('Variable "editWarehouseModalBody" does not exist.', 1097, $this->source); })()), "scriptBody" => (isset($context["editWarehouseScriptBody"]) || array_key_exists("editWarehouseScriptBody", $context) ? $context["editWarehouseScriptBody"] : (function () { throw new RuntimeError('Variable "editWarehouseScriptBody" does not exist.', 1097, $this->source); })()), "openModal" => "openEditModal", "id" => ""]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 1100
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 1101
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
";
// line 1102
yield from $this->loadTemplate("components/js/upload_file_js.html.twig", "role/user/warehouse/sheet.html.twig", 1102)->unwrap()->yield(CoreExtension::merge($context, ["number" => "1", "file" => "form_transfer_receive_file", "path" => "form_transfer_receive_ddtPath"]));
// line 1103
yield from $this->loadTemplate("components/js/upload_file_js.html.twig", "role/user/warehouse/sheet.html.twig", 1103)->unwrap()->yield(CoreExtension::merge($context, ["number" => "2", "file" => "form_import_inventory_file", "path" => "form_import_inventory_path"]));
// line 1104
yield from $this->loadTemplate("components/js/sort_js.html.twig", "role/user/warehouse/sheet.html.twig", 1104)->unwrap()->yield(CoreExtension::merge($context, ["number" => 0, "actualSortField" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1104, $this->source); })()), "sortField_0", [], "any", false, false, false, 1104), "actualSortOrder" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1104, $this->source); })()), "sortOrder_0", [], "any", false, false, false, 1104), "sort_field" => "sort_field_0", "sort_order" => "sort_order_0", "formName" => "formFilter_0", "arrowClass" => "filter_arrow_0"]));
// line 1105
yield from $this->loadTemplate("components/js/sort_js.html.twig", "role/user/warehouse/sheet.html.twig", 1105)->unwrap()->yield(CoreExtension::merge($context, ["number" => 1, "actualSortField" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1105, $this->source); })()), "sortField_1", [], "any", false, false, false, 1105), "actualSortOrder" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1105, $this->source); })()), "sortOrder_1", [], "any", false, false, false, 1105), "sort_field" => "sort_field_1", "sort_order" => "sort_order_1", "formName" => "formFilter_1", "arrowClass" => "filter_arrow_1"]));
// line 1106
yield from $this->loadTemplate("components/js/sort_js.html.twig", "role/user/warehouse/sheet.html.twig", 1106)->unwrap()->yield(CoreExtension::merge($context, ["number" => 2, "actualSortField" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1106, $this->source); })()), "sortField_2", [], "any", false, false, false, 1106), "actualSortOrder" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1106, $this->source); })()), "sortOrder_2", [], "any", false, false, false, 1106), "sort_field" => "sort_field_2", "sort_order" => "sort_order_2", "formName" => "formFilter_2", "arrowClass" => "filter_arrow_2"]));
// line 1107
yield from $this->loadTemplate("components/js/sort_js.html.twig", "role/user/warehouse/sheet.html.twig", 1107)->unwrap()->yield(CoreExtension::merge($context, ["number" => 3, "actualSortField" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1107, $this->source); })()), "sortField_3", [], "any", false, false, false, 1107), "actualSortOrder" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1107, $this->source); })()), "sortOrder_3", [], "any", false, false, false, 1107), "sort_field" => "sort_field_3", "sort_order" => "sort_order_3", "formName" => "formFilter_3", "arrowClass" => "filter_arrow_3"]));
// line 1108
yield from $this->loadTemplate("components/js/filter_supplier_js.html.twig", "role/user/warehouse/sheet.html.twig", 1108)->unwrap()->yield(CoreExtension::merge($context, ["number" => 0, "suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers", $context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.', 1108, $this->source); })()), "filterSupplier" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1108, $this->source); })()), "supplier_0", [], "any", false, false, false, 1108)]));
// line 1109
yield from $this->loadTemplate("components/js/filter_supplier_js.html.twig", "role/user/warehouse/sheet.html.twig", 1109)->unwrap()->yield(CoreExtension::merge($context, ["number" => 1, "suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers", $context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.', 1109, $this->source); })()), "filterSupplier" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1109, $this->source); })()), "supplier_1", [], "any", false, false, false, 1109)]));
// line 1110
yield from $this->loadTemplate("components/js/filter_supplier_js.html.twig", "role/user/warehouse/sheet.html.twig", 1110)->unwrap()->yield(CoreExtension::merge($context, ["number" => 2, "suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers", $context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.', 1110, $this->source); })()), "filterSupplier" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1110, $this->source); })()), "supplier_1", [], "any", false, false, false, 1110)]));
// line 1111
yield from $this->loadTemplate("components/js/filter_supplier_js.html.twig", "role/user/warehouse/sheet.html.twig", 1111)->unwrap()->yield(CoreExtension::merge($context, ["number" => 3, "suppliers" => (isset($context["suppliers"]) || array_key_exists("suppliers", $context) ? $context["suppliers"] : (function () { throw new RuntimeError('Variable "suppliers" does not exist.', 1111, $this->source); })()), "filterSupplier" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1111, $this->source); })()), "supplier_1", [], "any", false, false, false, 1111)]));
// 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" => "daterange1last_1", "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" => "daterange1last_2", "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" => "daterange1last_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" => "daterange2creation_1", "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" => "daterange2send_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" => "daterange2completion_1", "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" => "daterange2creation_2", "format" => "DD-MM-YYYY HH:mm"]));
// line 1119
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1119)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2send_2", "format" => "DD-MM-YYYY HH:mm"]));
// line 1120
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1120)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2completion_2", "format" => "DD-MM-YYYY HH:mm"]));
// line 1121
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1121)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2creation_3", "format" => "DD-MM-YYYY HH:mm"]));
// line 1122
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1122)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2send_3", "format" => "DD-MM-YYYY HH:mm"]));
// line 1123
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1123)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2completion_3", "format" => "DD-MM-YYYY HH:mm"]));
// line 1124
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1124)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange3_1", "format" => "DD-MM-YYYY HH:mm"]));
// line 1125
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1125)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange3_2", "format" => "DD-MM-YYYY HH:mm"]));
// line 1126
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1126)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange3_3", "format" => "DD-MM-YYYY HH:mm"]));
// line 1127
yield "<script>
\t\$(document).ready(function(){
\t\t// Inventory
\t\t";
// line 1130
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.', 1130, $this->source); })()), "session", [], "any", false, false, false, 1130), "get", ["openStockInventoryModal"], "method", false, false, false, 1130)) {
// line 1131
yield "\t\t\tstockInventory();
\t\t\t";
// line 1132
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), "remove", ["openStockInventoryModal"], "method", false, false, false, 1132);
// line 1133
yield "\t\t";
}
// line 1134
yield "\t\t// Receive
\t\t";
// line 1135
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.', 1135, $this->source); })()), "session", [], "any", false, false, false, 1135), "get", ["openTransferReceiveModal"], "method", false, false, false, 1135)) {
// line 1136
yield "\t\t\ttransferReceive();
\t\t\t";
// line 1137
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", ["openTransferReceiveModal"], "method", false, false, false, 1137);
// line 1138
yield "\t\t";
}
// line 1139
yield "\t\t// Invia
\t\t";
// line 1140
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.', 1140, $this->source); })()), "session", [], "any", false, false, false, 1140), "get", ["openTransferSendModal"], "method", false, false, false, 1140)) {
// line 1141
yield "\t\t\ttransferSend();
\t\t\t";
// line 1142
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.', 1142, $this->source); })()), "session", [], "any", false, false, false, 1142), "remove", ["openTransferSendModal"], "method", false, false, false, 1142);
// line 1143
yield "\t\t";
}
// line 1144
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.', 1144, $this->source); })()), "session", [], "any", false, false, false, 1144), "get", ["transferStocksIds"], "method", false, false, false, 1144)) {
// line 1145
yield "\t\t\t";
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.', 1145, $this->source); })()), "session", [], "any", false, false, false, 1145), "remove", ["transferStocksIds"], "method", false, false, false, 1145);
// line 1146
yield "\t\t";
}
// line 1147
yield "
\t\tvar dateRanges1last = document.getElementsByClassName('daterange1last');
\t\t";
// line 1149
if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1149, $this->source); })()), "dateLastTransfer_1", [], "any", false, false, false, 1149) != null) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1149, $this->source); })()), "dateLastTransfer_1", [], "any", false, false, false, 1149) != ""))) {
// line 1150
yield "\t\t\tfor(i=0; i<dateRanges1last.length; i++){
\t\t\t\tdateRanges1last[i].value = \"";
// line 1151
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1151, $this->source); })()), "dateLastTransfer_1", [], "any", false, false, false, 1151), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1154
yield "\t\t\tfor(i=0; i<dateRanges1last.length; i++){
\t\t\t\tdateRanges1last[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1158
yield "
\t\tvar dateRanges2creation = document.getElementsByClassName('daterange2creation');
\t\t";
// line 1160
if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1160, $this->source); })()), "datetimeCreation_2", [], "any", false, false, false, 1160) != null) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1160, $this->source); })()), "datetimeCreation_2", [], "any", false, false, false, 1160) != ""))) {
// line 1161
yield "\t\t\tfor(i=0; i<dateRanges2creation.length; i++){
\t\t\t\tdateRanges2creation[i].value = \"";
// line 1162
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1162, $this->source); })()), "datetimeCreation_2", [], "any", false, false, false, 1162), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1165
yield "\t\t\tfor(i=0; i<dateRanges2creation.length; i++){
\t\t\t\tdateRanges2creation[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1169
yield "\t\t
\t\tvar dateRanges2send = document.getElementsByClassName('daterange2send');
\t\t";
// line 1171
if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1171, $this->source); })()), "datetimeSend_2", [], "any", false, false, false, 1171) != null) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1171, $this->source); })()), "datetimeSend_2", [], "any", false, false, false, 1171) != ""))) {
// line 1172
yield "\t\t\tfor(i=0; i<dateRanges2send.length; i++){
\t\t\t\tdateRanges2send[i].value = \"";
// line 1173
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1173, $this->source); })()), "datetimeSend_2", [], "any", false, false, false, 1173), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1176
yield "\t\t\tfor(i=0; i<dateRanges2send.length; i++){
\t\t\t\tdateRanges2send[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1180
yield "\t\t
\t\tvar dateRanges2completion = document.getElementsByClassName('daterange2completion');
\t\t";
// line 1182
if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1182, $this->source); })()), "datetimeCompletion_2", [], "any", false, false, false, 1182) != null) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1182, $this->source); })()), "datetimeCompletion_2", [], "any", false, false, false, 1182) != ""))) {
// line 1183
yield "\t\t\tfor(i=0; i<dateRanges2completion.length; i++){
\t\t\t\tdateRanges2completion[i].value = \"";
// line 1184
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1184, $this->source); })()), "datetimeCompletion_2", [], "any", false, false, false, 1184), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1187
yield "\t\t\tfor(i=0; i<dateRanges2completion.length; i++){
\t\t\t\tdateRanges2completion[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1191
yield "
\t\tvar dateRanges3 = document.getElementsByClassName('daterange3');
\t\t";
// line 1193
if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1193, $this->source); })()), "date_3", [], "any", false, false, false, 1193) != null) && (CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1193, $this->source); })()), "date_3", [], "any", false, false, false, 1193) != ""))) {
// line 1194
yield "\t\t\tfor(i=0; i<dateRanges3.length; i++){
\t\t\t\tdateRanges3[i].value = \"";
// line 1195
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["filters"]) || array_key_exists("filters", $context) ? $context["filters"] : (function () { throw new RuntimeError('Variable "filters" does not exist.', 1195, $this->source); })()), "date_3", [], "any", false, false, false, 1195), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1198
yield "\t\t\tfor(i=0; i<dateRanges3.length; i++){
\t\t\t\tdateRanges3[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1202
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 1218
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.', 1218, $this->source); })()), "user", [], "any", false, false, false, 1218), "getAccountTypology", [], "any", false, false, false, 1218) != "technician")) {
// line 1219
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 1222
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 1245
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.', 1245, $this->source); })()), "user", [], "any", false, false, false, 1245), "getAccountTypology", [], "any", false, false, false, 1245) != "technician")) {
// line 1246
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 1251
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 1263
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.', 1263, $this->source); })()), "user", [], "any", false, false, false, 1263), "getAccountTypology", [], "any", false, false, false, 1263) != "technician")) {
// line 1264
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 1269
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 1405
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_transfer_update_warehouses", ["warehouseId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 1405, $this->source); })()), "id", [], "any", false, false, false, 1405)]), "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 1414
if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 1414, $this->source); })()), "headquarter", [], "any", false, false, false, 1414) == 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.', 1414, $this->source); })()), "user", [], "any", false, false, false, 1414), "getAccountTypology", [], "any", false, false, false, 1414) != "technician"))) {
// line 1415
yield "\t\t\t\t\t\t\tdocument.getElementById('row_user_from_select').style.display = 'block';
\t\t\t\t\t\t";
}
// line 1417
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 1429
if (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 1429, $this->source); })()), "headquarter", [], "any", false, false, false, 1429) == 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.', 1429, $this->source); })()), "user", [], "any", false, false, false, 1429), "getAccountTypology", [], "any", false, false, false, 1429) != "technician"))) {
// line 1430
yield "\t\t\t\t\t\t\tdocument.getElementById('row_user_from_select').style.display = 'block';
\t\t\t\t\t\t";
}
// line 1432
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 1463
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_warehouse_transfer_update_technician_warehouses", ["warehouseId" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 1463, $this->source); })()), "id", [], "any", false, false, false, 1463)]), "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').value;
\t\tdocument.getElementById('request_sheet_technician').innerHTML = document.getElementById('request_' + id + '_technician').value;
\t\tdocument.getElementById('request_sheet_warehouse').innerHTML = document.getElementById('request_' + id + '_warehouse').value;
\t\tdocument.getElementById('request_sheet_warehouse_headquarter').innerHTML = document.getElementById('request_' + id + '_warehouse_headquarter').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 1504
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["warehouse"]) || array_key_exists("warehouse", $context) ? $context["warehouse"] : (function () { throw new RuntimeError('Variable "warehouse" does not exist.', 1504, $this->source); })()), "headquarter", [], "any", false, false, false, 1504)) {
// line 1505
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 1515
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 ( 3196 => 1515, 3184 => 1505, 3182 => 1504, 3138 => 1463, 3105 => 1432, 3101 => 1430, 3099 => 1429, 3085 => 1417, 3081 => 1415, 3079 => 1414, 3067 => 1405, 2929 => 1269, 2922 => 1264, 2920 => 1263, 2906 => 1251, 2899 => 1246, 2897 => 1245, 2872 => 1222, 2867 => 1219, 2865 => 1218, 2847 => 1202, 2841 => 1198, 2835 => 1195, 2832 => 1194, 2830 => 1193, 2826 => 1191, 2820 => 1187, 2814 => 1184, 2811 => 1183, 2809 => 1182, 2805 => 1180, 2799 => 1176, 2793 => 1173, 2790 => 1172, 2788 => 1171, 2784 => 1169, 2778 => 1165, 2772 => 1162, 2769 => 1161, 2767 => 1160, 2763 => 1158, 2757 => 1154, 2751 => 1151, 2748 => 1150, 2746 => 1149, 2742 => 1147, 2739 => 1146, 2736 => 1145, 2733 => 1144, 2730 => 1143, 2728 => 1142, 2725 => 1141, 2723 => 1140, 2720 => 1139, 2717 => 1138, 2715 => 1137, 2712 => 1136, 2710 => 1135, 2707 => 1134, 2704 => 1133, 2702 => 1132, 2699 => 1131, 2697 => 1130, 2692 => 1127, 2690 => 1126, 2688 => 1125, 2686 => 1124, 2684 => 1123, 2682 => 1122, 2680 => 1121, 2678 => 1120, 2676 => 1119, 2674 => 1118, 2672 => 1117, 2670 => 1116, 2668 => 1115, 2666 => 1114, 2664 => 1113, 2662 => 1112, 2660 => 1111, 2658 => 1110, 2656 => 1109, 2654 => 1108, 2652 => 1107, 2650 => 1106, 2648 => 1105, 2646 => 1104, 2644 => 1103, 2642 => 1102, 2638 => 1101, 2628 => 1100, 2616 => 1097, 2611 => 1096, 2597 => 1088, 2590 => 1084, 2577 => 1076, 2570 => 1072, 2562 => 1067, 2558 => 1066, 2550 => 1061, 2546 => 1060, 2540 => 1056, 2537 => 1055, 2534 => 1053, 2531 => 1052, 2528 => 1051, 2525 => 1050, 2522 => 1049, 2512 => 1048, 2497 => 583, 2491 => 579, 2488 => 578, 2485 => 577, 2482 => 576, 2475 => 574, 2467 => 572, 2465 => 571, 2458 => 570, 2456 => 569, 2449 => 568, 2447 => 567, 2441 => 566, 2437 => 565, 2432 => 564, 2426 => 562, 2420 => 560, 2418 => 559, 2414 => 558, 2410 => 557, 2403 => 555, 2397 => 554, 2391 => 553, 2385 => 552, 2379 => 551, 2375 => 550, 2370 => 549, 2365 => 548, 2363 => 547, 2358 => 544, 2354 => 543, 2349 => 540, 2345 => 538, 2341 => 536, 2339 => 535, 2330 => 529, 2326 => 528, 2322 => 527, 2318 => 526, 2314 => 525, 2310 => 524, 2306 => 523, 2300 => 522, 2296 => 521, 2289 => 516, 2279 => 515, 2264 => 414, 2258 => 410, 2255 => 409, 2252 => 408, 2249 => 407, 2242 => 405, 2238 => 403, 2235 => 402, 2227 => 400, 2221 => 398, 2218 => 397, 2215 => 396, 2207 => 394, 2204 => 393, 2202 => 392, 2199 => 391, 2197 => 390, 2189 => 389, 2181 => 388, 2173 => 387, 2165 => 386, 2157 => 385, 2149 => 384, 2145 => 383, 2141 => 382, 2135 => 381, 2132 => 380, 2127 => 379, 2125 => 378, 2116 => 374, 2097 => 358, 2093 => 357, 2089 => 356, 2085 => 355, 2081 => 354, 2077 => 353, 2073 => 352, 2069 => 351, 2065 => 350, 2061 => 349, 2057 => 348, 2051 => 347, 2047 => 346, 2040 => 341, 2030 => 340, 2015 => 289, 2009 => 285, 2006 => 284, 2003 => 283, 2000 => 282, 1991 => 279, 1987 => 278, 1983 => 277, 1977 => 276, 1973 => 275, 1970 => 274, 1962 => 273, 1958 => 272, 1954 => 271, 1948 => 270, 1941 => 269, 1934 => 265, 1922 => 264, 1918 => 262, 1916 => 261, 1910 => 260, 1902 => 259, 1897 => 258, 1891 => 257, 1888 => 256, 1881 => 255, 1876 => 254, 1873 => 253, 1870 => 252, 1865 => 251, 1863 => 250, 1849 => 238, 1842 => 234, 1834 => 233, 1830 => 231, 1828 => 230, 1820 => 225, 1816 => 224, 1812 => 223, 1805 => 221, 1801 => 220, 1796 => 218, 1792 => 217, 1788 => 216, 1784 => 215, 1780 => 214, 1776 => 213, 1766 => 212, 1762 => 211, 1758 => 210, 1748 => 209, 1744 => 208, 1737 => 203, 1734 => 202, 1727 => 201, 1720 => 200, 1713 => 199, 1706 => 198, 1704 => 197, 1700 => 195, 1690 => 194, 1659 => 1027, 1654 => 1024, 1631 => 1003, 1626 => 1000, 1603 => 979, 1598 => 976, 1559 => 938, 1539 => 920, 1532 => 916, 1527 => 913, 1511 => 898, 1500 => 896, 1496 => 895, 1481 => 883, 1476 => 880, 1461 => 866, 1451 => 862, 1443 => 861, 1439 => 859, 1435 => 858, 1423 => 849, 1418 => 846, 1394 => 824, 1389 => 821, 1381 => 815, 1373 => 810, 1369 => 809, 1356 => 801, 1348 => 796, 1336 => 789, 1330 => 785, 1327 => 784, 1324 => 783, 1321 => 782, 1319 => 781, 1315 => 780, 1308 => 776, 1304 => 775, 1292 => 766, 1288 => 765, 1280 => 760, 1276 => 759, 1268 => 754, 1264 => 753, 1252 => 744, 1247 => 741, 1241 => 737, 1235 => 733, 1233 => 732, 1223 => 725, 1218 => 722, 1210 => 716, 1194 => 703, 1190 => 702, 1186 => 701, 1178 => 696, 1174 => 695, 1159 => 685, 1152 => 681, 1144 => 676, 1140 => 675, 1132 => 670, 1128 => 669, 1119 => 663, 1114 => 660, 1106 => 654, 1090 => 641, 1086 => 640, 1082 => 639, 1074 => 634, 1070 => 633, 1062 => 628, 1058 => 627, 1049 => 621, 1044 => 618, 1036 => 611, 1024 => 603, 1021 => 602, 1018 => 601, 1015 => 600, 1013 => 599, 1006 => 596, 1003 => 595, 1000 => 594, 997 => 593, 994 => 592, 991 => 591, 988 => 590, 986 => 589, 982 => 587, 979 => 515, 976 => 514, 973 => 513, 970 => 512, 967 => 511, 964 => 510, 961 => 509, 958 => 508, 955 => 507, 953 => 506, 940 => 502, 930 => 501, 920 => 500, 914 => 496, 908 => 494, 906 => 493, 902 => 492, 897 => 489, 894 => 488, 887 => 482, 874 => 479, 870 => 478, 866 => 477, 863 => 476, 859 => 475, 836 => 459, 829 => 455, 818 => 451, 807 => 447, 800 => 443, 793 => 438, 787 => 436, 785 => 435, 779 => 431, 768 => 423, 765 => 422, 762 => 421, 760 => 420, 756 => 418, 753 => 340, 750 => 339, 747 => 338, 745 => 337, 736 => 333, 730 => 332, 721 => 325, 710 => 317, 707 => 316, 704 => 315, 701 => 314, 698 => 313, 695 => 312, 693 => 311, 686 => 308, 683 => 307, 680 => 306, 677 => 305, 674 => 304, 671 => 303, 668 => 302, 665 => 301, 662 => 300, 659 => 299, 656 => 298, 653 => 297, 650 => 296, 648 => 295, 644 => 293, 641 => 194, 638 => 193, 635 => 192, 632 => 191, 629 => 190, 626 => 189, 623 => 188, 620 => 187, 617 => 186, 614 => 185, 611 => 184, 608 => 183, 606 => 182, 603 => 181, 595 => 176, 589 => 172, 586 => 171, 583 => 170, 580 => 169, 571 => 166, 567 => 165, 561 => 164, 557 => 163, 551 => 162, 547 => 161, 543 => 160, 539 => 159, 533 => 158, 525 => 157, 521 => 156, 515 => 153, 509 => 152, 501 => 149, 493 => 148, 488 => 147, 482 => 146, 479 => 145, 472 => 144, 467 => 143, 464 => 142, 461 => 141, 456 => 140, 454 => 139, 426 => 114, 422 => 113, 417 => 111, 413 => 110, 409 => 109, 405 => 108, 401 => 107, 397 => 106, 393 => 105, 389 => 104, 385 => 103, 381 => 102, 377 => 101, 371 => 100, 367 => 99, 354 => 88, 352 => 87, 344 => 84, 338 => 83, 331 => 82, 323 => 80, 321 => 79, 313 => 73, 309 => 71, 306 => 70, 303 => 69, 297 => 67, 294 => 66, 288 => 64, 285 => 63, 283 => 62, 279 => 61, 273 => 57, 269 => 54, 261 => 52, 259 => 51, 249 => 44, 244 => 41, 241 => 40, 238 => 39, 235 => 38, 232 => 37, 229 => 36, 226 => 35, 223 => 34, 220 => 33, 217 => 32, 214 => 31, 211 => 30, 201 => 29, 188 => 25, 184 => 23, 181 => 22, 178 => 21, 168 => 20, 153 => 16, 147 => 14, 144 => 13, 134 => 12, 119 => 8, 109 => 7, 89 => 5, 69 => 3, 46 => 1,);
}
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 ({{ toManageProducts.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">Da gestire ({{ toManageProducts.getTotalItemCount }})</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 ({{ availableProducts.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">Disponibili ({{ availableProducts.getTotalItemCount }})</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 ({{ notAvailableProducts.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">Non disponibili ({{ notAvailableProducts.getTotalItemCount }})</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 ({{ transferProducts.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">In trasferimento ({{ transferProducts.getTotalItemCount }})</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\"><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\"><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_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"lastUser_0\" value=\"{{ filters.lastUser_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>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>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>DDT</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th colspan=\"2\">Ultimo utente log</th>
\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>{{ 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>{% 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>{{ product.displayTransfersDdt()|raw }}</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.lastUserLog }}</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\"><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\"><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\"><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\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"ddt_1\" value=\"{{ filters.ddt_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_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>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>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\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 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>{{ 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>{{ 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\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(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.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">In entrata ({{ incomingTransfers.getTotalItemCount }})</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.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">In uscita ({{ outputTransfers.getTotalItemCount }})</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 txt_a_c\">DDT<button type=\"button\" onClick=\"setOrderBy2('p.ddt')\" data-orderField=\"p.ddt\" class=\"f_right filter_arrow_2\"><img width=\"18\" data-bs-toggle=\"tooltip\" title=\"Ordina in ordine alfabetico\"></button></th>
\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 class=\"txt_a_c\">{% if pt.ddtPath != null %}{{ 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 }} ({{ insertedProductRequests.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">{{ prReqInserted }} ({{ insertedProductRequests.getTotalItemCount }})</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 }} ({{ takeChargeProductRequests.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">{{ prReqTakeCharge }} ({{ takeChargeProductRequests.getTotalItemCount }})</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 }} ({{ completedProductRequests.getTotalItemCount }})\"></i><span class=\"d-none d-md-block\">{{ prReqCompleted }} ({{ completedProductRequests.getTotalItemCount }})</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=\"4\" class=\"td_action\"><button type=\"submit\" class=\"btn bg_w f_left p_0p\" data-bs-toggle=\"tooltip\" title=\"Filtra\"><img class=\"icon_green\" src=\"{{ asset (icon_search) }}\"></button></td>\t
\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=\"td_w_500p\">Prodotti</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_w_300p\">Note</th>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<th class=\"td_action\"></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 }}_datetime\" value=\"{{ pr.datetime|date('d-m-Y H:i') }}\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_{{ pr.id }}_technician\" value=\"{{ pr.technician }}\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_{{ pr.id }}_warehouse\" value=\"{{ pr.warehouse.nickname }}\">
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" id=\"request_{{ pr.id }}_warehouse_headquarter\" value=\"{{ pr.warehouseHeadquarter.nickname }}\">
\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 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>{{ 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>{{ 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>{{ 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>{{ 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>{{ pr.notes }}</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\"><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 class=\"td_w_150p\">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<th colspan=\"2\" style=\"border:0px\">Note</th>
\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_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{% do app.session.remove('openStockInventoryModal') %}
\t\t{% endif %}
\t\t// Receive
\t\t{% if app.session.get('openTransferReceiveModal') %}
\t\t\ttransferReceive();
\t\t\t{% do app.session.remove('openTransferReceiveModal') %}
\t\t{% endif %}
\t\t// Invia
\t\t{% if app.session.get('openTransferSendModal') %}
\t\t\ttransferSend();
\t\t\t{% do app.session.remove('openTransferSendModal') %}
\t\t{% endif %}
\t\t{% if app.session.get('transferStocksIds') %}
\t\t\t{% do 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').value;
\t\tdocument.getElementById('request_sheet_technician').innerHTML = document.getElementById('request_' + id + '_technician').value;
\t\tdocument.getElementById('request_sheet_warehouse').innerHTML = document.getElementById('request_' + id + '_warehouse').value;
\t\tdocument.getElementById('request_sheet_warehouse_headquarter').innerHTML = document.getElementById('request_' + id + '_warehouse_headquarter').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");
}
}