<?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_print\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-print d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Stampa etichette\"></i><span class=\"d-none d-lg-block\">Stampa etichette</span></a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a id=\"button_0_model\" 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 modello\"></i><span class=\"d-none d-lg-block\">Cambia modello</span></a>
\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=\"Modifica fornitori\"></i><span class=\"d-none d-lg-block\">Modifica 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 101
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.', 101, $this->source); })()), "id", [], "any", false, false, false, 101)]), "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 102
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.', 102, $this->source); })()), "request", [], "any", false, false, false, 102), "attributes", [], "any", false, false, false, 102), "get", ["_route"], "method", false, false, false, 102), "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.', 102, $this->source); })()), "request", [], "any", false, false, false, 102), "attributes", [], "any", false, false, false, 102), "get", ["_route_params"], "method", false, false, false, 102)]), "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.', 102, $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 103
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeProducer_0", [], "any", true, true, false, 103)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeProducer_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_180p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"model_0\" value=\"";
// line 104
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "model_0", [], "any", true, true, false, 104)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "model_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\" 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 105
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "supplier_0", [], "any", true, true, false, 105)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "supplier_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_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"condition_0\" value=\"";
// line 106
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "condition_0", [], "any", true, true, false, 106)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "condition_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=\"producer_0\" value=\"";
// line 107
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "producer_0", [], "any", true, true, false, 107)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "producer_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_150p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"codeSupplier_0\" value=\"";
// line 108
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeSupplier_0", [], "any", true, true, false, 108)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeSupplier_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_120p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"sku_0\" value=\"";
// line 109
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sku_0", [], "any", true, true, false, 109)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sku_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=\"technician_0\" value=\"";
// line 110
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "technician_0", [], "any", true, true, false, 110)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "technician_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_60p\"><input type=\"text\" inputmode=\"search\" class=\"form-control\" name=\"ddt_0\" value=\"";
// line 111
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "ddt_0", [], "any", true, true, false, 111)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "ddt_0", [], "any", false, false, false, 111))) : ("")), "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 112
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "lastUser_0", [], "any", true, true, false, 112)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "lastUser_0", [], "any", false, false, false, 112))) : ("")), "html", null, true);
yield "\"/></td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 114
yield "\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 115
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.', 115, $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 116
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.', 116, $this->source); })()), "id", [], "any", false, false, false, 116), "status" => "to_manage"]), "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.', 116, $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=\"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 119
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_0", [], "any", true, true, false, 119)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_0", [], "any", false, false, false, 119))) : ("")), "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 120
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_0", [], "any", true, true, false, 120)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_0", [], "any", false, false, false, 120))) : ("")), "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 145
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.', 145, $this->source); })())) > 0)) {
// line 146
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.', 146, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 147
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["first"] = true;
// line 148
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["suppliersString"] = "";
// line 149
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, 149));
foreach ($context['_seq'] as $context["_key"] => $context["supplier"]) {
// line 150
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.', 150, $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.', 150, $this->source); })()) . "-");
}
// line 151
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.', 151, $this->source); })()) . CoreExtension::getAttribute($this->env, $this->source, $context["supplier"], "id", [], "any", false, false, false, 151));
// line 152
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 153
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.', 153, $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 154
if (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "toManage", [], "any", false, false, false, 154)) {
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, 154), "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 155
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_product_sheet", ["productId" => CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 155)]), "html", null, true);
yield "\" 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.', 155, $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 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 "\" 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, 158), "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 159
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 159), "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 162
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "toManagePriority", [], "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 id=\"product_codeProducer_";
// line 163
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 163), "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, 163)]), "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, 163)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeProducer", [], "any", false, false, false, 163), "---")) : ("---")), "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 164
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 164), "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, 164), "name", [], "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"], "displaySuppliers", [], "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>";
// line 166
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displayCondition", ["string-short"], "method", 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\t<td>";
// line 167
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, 167), "producer", [], "any", false, false, false, 167), "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 168
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 168), "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, 168)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeSupplier", [], "any", false, false, false, 168), "---")) : ("---")), "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 169
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, 169), "sku", [], "any", false, false, false, 169), "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 170
if ( !(null === CoreExtension::getAttribute($this->env, $this->source, $context["product"], "getLastTransfer", [], "any", false, false, false, 170))) {
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, 170), "userFrom", [], "any", false, false, false, 170), "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 171
yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displayTransfersDdt", [], "method", false, false, false, 171);
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 172
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "lastUserLog", [], "any", false, false, false, 172), "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 175
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 176
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", 176)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessun prodotto in questo stato"]));
// line 177
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 178
yield "\t\t\t\t\t\t\t\t\t\t\t\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 182
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.', 182, $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 187
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 188
$context["number"] = 1;
// line 189
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tab"] = "s_available";
// line 190
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["status"] = "available";
// line 191
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.', 191, $this->source); })());
// line 192
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [false, 1, []];
// line 193
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.', 193, $this->source); })()), "user", [], "any", false, false, false, 193), "canWrite", ["warehouse"], "method", false, false, false, 193) || ((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.', 193, $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.', 193, $this->source); })()), "user", [], "any", false, false, false, 193), "id", [], "any", false, false, false, 193)], "method", false, false, false, 193) != 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.', 193, $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.', 193, $this->source); })()), "user", [], "any", false, false, false, 193), "id", [], "any", false, false, false, 193)], "method", false, false, false, 193), "permission", [], "any", false, false, false, 193) == "RW")))) {
// line 194
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.', 194, $this->source); })()), "user", [], "any", false, false, false, 194), "getAccountTypology", [], "any", false, false, false, 194) != "technician")) {
// line 195
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [true, 1, ["supplier", "condition", "send", "export", "print"]];
// line 196
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 197
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [true, 1, ["condition", "send", "export"]];
// line 198
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 199
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 200
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock('tableStocks', $context, $blocks);
// line 300
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 302
$context["number"] = 2;
// line 303
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tab"] = "s_not_available";
// line 304
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["status"] = "not_available";
// line 305
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.', 305, $this->source); })());
// line 306
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["index"] = 1;
// line 307
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [false, 2, []];
// line 308
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.', 308, $this->source); })()), "user", [], "any", false, false, false, 308), "canWrite", ["warehouse"], "method", false, false, false, 308) || ((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.', 308, $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.', 308, $this->source); })()), "user", [], "any", false, false, false, 308), "id", [], "any", false, false, false, 308)], "method", false, false, false, 308) != 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.', 308, $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.', 308, $this->source); })()), "user", [], "any", false, false, false, 308), "id", [], "any", false, false, false, 308)], "method", false, false, false, 308), "permission", [], "any", false, false, false, 308) == "RW")))) {
// line 309
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.', 309, $this->source); })()), "user", [], "any", false, false, false, 309), "getAccountTypology", [], "any", false, false, false, 309) != "technician")) {
// line 310
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [true, 2, ["supplier", "condition", "send", "export", "print"]];
// line 311
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 312
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [true, 2, ["condition", "send", "export"]];
// line 313
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 314
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 315
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 318
$context["number"] = 3;
// line 319
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tab"] = "s_transfer";
// line 320
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["status"] = "transfer";
// line 321
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.', 321, $this->source); })());
// line 322
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["index"] = 1;
// line 323
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["multipleSelection"] = [false, null, []];
// line 324
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 332
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 339
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.', 339, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 339), "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.', 339, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 339), "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 340
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.', 340, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 340), "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.', 340, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 340), "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 344
$context["transfers"] = (isset($context["incomingTransfers"]) || array_key_exists("incomingTransfers", $context) ? $context["incomingTransfers"] : (function () { throw new RuntimeError('Variable "incomingTransfers" does not exist.', 344, $this->source); })());
// line 345
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 1;
// line 346
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pt_incoming";
// line 347
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock('tableTransfers', $context, $blocks);
// line 425
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 427
$context["transfers"] = (isset($context["outputTransfers"]) || array_key_exists("outputTransfers", $context) ? $context["outputTransfers"] : (function () { throw new RuntimeError('Variable "outputTransfers" does not exist.', 427, $this->source); })());
// line 428
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 2;
// line 429
yield "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pt_output";
// line 430
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 438
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 442
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.', 442, $this->source); })()), "user", [], "any", false, false, false, 442), "canWrite", ["warehouse"], "method", false, false, false, 442)) {
// line 443
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.', 443, $this->source); })())), "html", null, true);
yield "\"></a>
\t\t\t\t\t\t\t\t\t\t";
}
// line 445
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 450
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.', 450, $this->source); })()), "nickname", [], "any", false, false, false, 450), "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 454
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.', 454, $this->source); })()), "active", [], "any", false, false, false, 454)) {
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 458
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.', 458, $this->source); })()), "headquarter", [], "any", false, false, false, 458)) {
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 462
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.', 462, $this->source); })()), "address", [], "any", false, false, false, 462), "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 466
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.', 466, $this->source); })()), "movable", [], "any", false, false, false, 466)) {
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 482
$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.', 482, $this->source); })()), "users", [], "any", false, false, false, 482));
foreach ($context['_seq'] as $context["_key"] => $context["jtuw"]) {
// line 483
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 484
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["jtuw"], "user", [], "any", false, false, false, 484), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 485
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["jtuw"], "displayPermission", [], "any", false, false, false, 485), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t<td class=\"txt_a_c\">";
// line 486
if (CoreExtension::getAttribute($this->env, $this->source, $context["jtuw"], "main", [], "any", false, false, false, 486)) {
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 489
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 495
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.', 495, $this->source); })()), "headquarter", [], "any", false, false, false, 495) && ((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.', 495, $this->source); })()), "user", [], "any", false, false, false, 495), "getAccountTypology", [], "any", false, false, false, 495) == "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.', 495, $this->source); })()), "user", [], "any", false, false, false, 495), "getAccountTypology", [], "any", false, false, false, 495) == "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.', 495, $this->source); })()), "user", [], "any", false, false, false, 495), "getAccountTypology", [], "any", false, false, false, 495) == "technician"))) {
// line 496
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 499
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.', 499, $this->source); })()), "html", null, true);
yield "
\t\t\t\t\t\t\t\t\t\t\t";
// line 500
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.', 500, $this->source); })()), "user", [], "any", false, false, false, 500), "getAccountTypology", [], "any", false, false, false, 500) == "technician")) {
// line 501
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.', 501, $this->source); })()), "id", [], "any", false, false, false, 501)]), "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 503
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 507
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.', 507, $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.', 507, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 507), "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.', 507, $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.', 507, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 507), "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 508
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.', 508, $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.', 508, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 508), "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.', 508, $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.', 508, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 508), "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 509
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.', 509, $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.', 509, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 509), "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.', 509, $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.', 509, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 509), "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 513
$context["requests"] = (isset($context["insertedProductRequests"]) || array_key_exists("insertedProductRequests", $context) ? $context["insertedProductRequests"] : (function () { throw new RuntimeError('Variable "insertedProductRequests" does not exist.', 513, $this->source); })());
// line 514
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pr_inserted";
// line 515
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 1;
// line 516
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "";
// line 517
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.', 517, $this->source); })()), "user", [], "any", false, false, false, 517), "getAccountTypology", [], "any", false, false, false, 517) == "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.', 517, $this->source); })()), "user", [], "any", false, false, false, 517), "getAccountTypology", [], "any", false, false, false, 517) == "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.', 517, $this->source); })()), "headquarter", [], "any", false, false, false, 517)))) {
// line 518
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "take_charge";
// line 519
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.', 519, $this->source); })()), "user", [], "any", false, false, false, 519), "getAccountTypology", [], "any", false, false, false, 519) == "technician")) {
// line 520
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "delete";
// line 521
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 522
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
yield from $this->unwrap()->yieldBlock('tableRequests', $context, $blocks);
// line 594
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 596
$context["requests"] = (isset($context["takeChargeProductRequests"]) || array_key_exists("takeChargeProductRequests", $context) ? $context["takeChargeProductRequests"] : (function () { throw new RuntimeError('Variable "takeChargeProductRequests" does not exist.', 596, $this->source); })());
// line 597
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pr_take_charge";
// line 598
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 2;
// line 599
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "";
// line 600
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.', 600, $this->source); })()), "user", [], "any", false, false, false, 600), "getAccountTypology", [], "any", false, false, false, 600) == "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.', 600, $this->source); })()), "user", [], "any", false, false, false, 600), "getAccountTypology", [], "any", false, false, false, 600) == "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.', 600, $this->source); })()), "headquarter", [], "any", false, false, false, 600)))) {
// line 601
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "complete";
// line 602
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// 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\t<div class=\"tab-content clearfix\" id=\"completed\">
\t\t\t\t\t\t\t\t\t\t\t\t\t";
// line 606
$context["requests"] = (isset($context["completedProductRequests"]) || array_key_exists("completedProductRequests", $context) ? $context["completedProductRequests"] : (function () { throw new RuntimeError('Variable "completedProductRequests" does not exist.', 606, $this->source); })());
// line 607
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabType"] = "pr_completed";
// line 608
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["number"] = 3;
// line 609
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["tabAction"] = "";
// line 610
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 618
yield "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</section>
\t";
// line 625
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 628
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.', 628, $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 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); })()), "supplier", [], "any", false, false, false, 634), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 635
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.', 635, $this->source); })()), "supplier", [], "any", false, false, false, 635), '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 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); })()), "status", [], "any", false, false, false, 640), 'errors');
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); })()), "status", [], "any", false, false, false, 641), '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 646
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.', 646, $this->source); })()), "path", [], "any", false, false, false, 646), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 647
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.', 647, $this->source); })()), "path", [], "any", false, false, false, 647), 'widget', ["attr" => ["class" => "display_n"]]);
yield "
\t\t\t\t\t\t\t\t\t";
// line 648
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.', 648, $this->source); })()), "file", [], "any", false, false, false, 648), '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 661
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.', 661, $this->source); })()), 'form_end');
yield "
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t";
// line 667
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 670
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.', 670, $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 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); })()), "warehouse", [], "any", false, false, false, 676), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 677
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.', 677, $this->source); })()), "warehouse", [], "any", false, false, false, 677), '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 682
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.', 682, $this->source); })()), "stockOrder", [], "any", false, false, false, 682), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 683
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.', 683, $this->source); })()), "stockOrder", [], "any", false, false, false, 683), '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 688
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.', 688, $this->source); })()), "ddtMandatory", [], "any", false, false, false, 688), '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 692
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formReceive"]) || array_key_exists("formReceive", $context) ? $context["formReceive"] : (function () { throw new RuntimeError('Variable "formReceive" does not exist.', 692, $this->source); })()), "ddtMandatory", [], "any", false, false, false, 692), '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.', 692, $this->source); })()), "ddtMandatory", [], "any", false, false, false, 692), "vars", [], "any", false, false, false, 692), "id", [], "any", false, false, false, 692), "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 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); })()), "ddt", [], "any", false, false, false, 702), 'errors');
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); })()), "ddt", [], "any", false, false, false, 703), '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 708
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.', 708, $this->source); })()), "ddtPath", [], "any", false, false, false, 708), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 709
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.', 709, $this->source); })()), "ddtPath", [], "any", false, false, false, 709), 'widget', ["attr" => ["class" => "display_n"]]);
yield "
\t\t\t\t\t\t\t\t\t";
// line 710
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.', 710, $this->source); })()), "file", [], "any", false, false, false, 710), '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 723
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.', 723, $this->source); })()), 'form_end');
yield "
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t";
// line 729
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 732
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.', 732, $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 739
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.', 739, $this->source); })()), "headquarter", [], "any", false, false, false, 739)) {
// line 740
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 744
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 748
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 751
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 751, $this->source); })()), "type", [], "any", false, false, false, 751), '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 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); })()), "userFrom", [], "any", false, false, false, 760), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 761
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.', 761, $this->source); })()), "userFrom", [], "any", false, false, false, 761), '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 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); })()), "userTo", [], "any", false, false, false, 766), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 767
yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formSend"]) || array_key_exists("formSend", $context) ? $context["formSend"] : (function () { throw new RuntimeError('Variable "formSend" does not exist.', 767, $this->source); })()), "userTo", [], "any", false, false, false, 767), '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 772
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.', 772, $this->source); })()), "warehouse", [], "any", false, false, false, 772), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 773
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.', 773, $this->source); })()), "warehouse", [], "any", false, false, false, 773), '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 782
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.', 782, $this->source); })()), "supplier", [], "any", false, false, false, 782), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 783
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.', 783, $this->source); })()), "supplier", [], "any", false, false, false, 783), '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_stock_order\">
\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 788
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.', 788, $this->source); })()), "stockOrder", [], "any", false, false, false, 788), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// 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); })()), "stockOrder", [], "any", false, false, false, 789), 'widget', ["attr" => ["class" => "form-control"]]);
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 793
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.', 793, $this->source); })()), "ddtMandatory", [], "any", false, false, false, 793), 'errors');
yield ">
\t\t\t\t\t\t\t\t\t";
// line 794
$context["checked"] = false;
// line 795
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.', 795, $this->source); })()), "value", [], "any", false, false, false, 795)) {
// line 796
yield "\t\t\t\t\t\t\t\t\t\t";
$context["checked"] = true;
// line 797
yield "\t\t\t\t\t\t\t\t\t";
}
// line 798
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 802
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.', 802, $this->source); })()), "ddtMandatory", [], "any", false, false, false, 802), '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.', 802, $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.', 802, $this->source); })()), "ddtMandatory", [], "any", false, false, false, 802), "vars", [], "any", false, false, false, 802), "id", [], "any", false, false, false, 802), "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 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); })()), "divestment", [], "any", false, false, false, 809), '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 814
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.', 814, $this->source); })()), "divestment", [], "any", false, false, false, 814), '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.', 814, $this->source); })()), "divestment", [], "any", false, false, false, 814), "vars", [], "any", false, false, false, 814), "id", [], "any", false, false, false, 814), "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 822
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.', 822, $this->source); })()), "sendStocksIds", [], "any", false, false, false, 822), 'widget', ["attr" => ["class" => "display_n"]]);
yield "
\t\t\t\t\t";
// line 823
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.', 823, $this->source); })()), "productRequestId", [], "any", false, false, false, 823), '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 828
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.', 828, $this->source); })()), 'form_end');
yield "
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t";
// line 834
yield "\t<div id=\"stockPrintModal\" 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 837
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.', 837, $this->source); })()), "id", [], "any", false, false, false, 837)]), "html", null, true);
yield "\" method=\"post\" id=\"formPrint\" target=\"_blank\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Stampa etichette</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"printStocksIds\" name=\"ids\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"printAction\" 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 fornitore da stampare in etichetta</label>
\t\t\t\t\t\t\t\t<div id=\"divErrorSupplier\">
\t\t\t\t\t\t\t\t\t<select class=\"form-control form-select\" id=\"select_supplier\" name=\"supplierId\">
\t\t\t\t\t\t\t\t\t\t<option></option>
\t\t\t\t\t\t\t\t\t\t";
// line 848
$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.', 848, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["supplier"]) {
// line 849
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["supplier"], "id", [], "any", false, false, false, 849), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["supplier"], "name", [], "any", false, false, false, 849), "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['supplier'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 851
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('print')\">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 866
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 869
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.', 869, $this->source); })()), "id", [], "any", false, false, false, 869)]), "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 891
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 894
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.', 894, $this->source); })()), "id", [], "any", false, false, false, 894)]), "html", null, true);
yield "\" method=\"post\" id=\"formSupplier\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Modifica 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 903
$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.', 903, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["s"]) {
// line 904
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 906
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "id", [], "any", false, false, false, 906), "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, 906), "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, 906), "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 907
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["s"], "name", [], "any", false, false, false, 907), "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 911
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 925
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 928
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.', 928, $this->source); })()), "id", [], "any", false, false, false, 928)]), "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 940
$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.', 940, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["condition"]) {
// line 941
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, 941), "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, 941), "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 943
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";
// line 958
yield "\t<div id=\"stockModelModal\" 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 961
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.', 961, $this->source); })()), "id", [], "any", false, false, false, 961)]), "html", null, true);
yield "\" method=\"post\" id=\"formModel\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Cambia modello prodotti</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"modelStocksIds\" name=\"ids\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"modelAction\" 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 nuovo modello</label>
\t\t\t\t\t\t\t\t<div class=\"col-12 form-group\">
\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"input_model_search\" class=\"form-control\" onkeyup=\"modelsUpdateUl()\" autocomplete=\"off\" placeholder=\"Cerca modello...\">
\t\t\t\t\t\t\t\t\t<ul id=\"ul_models\" class=\"ul_models pos_abs m_b_none\" style=\"list-style: none; display:none\"></ul>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"divErrorModel\">
\t\t\t\t\t\t\t\t\t<select class=\"form-control form-select\" id=\"select_product_model\" name=\"productModel\">
\t\t\t\t\t\t\t\t\t\t<option></option>
\t\t\t\t\t\t\t\t\t\t";
// line 977
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["productModels"]) || array_key_exists("productModels", $context) ? $context["productModels"] : (function () { throw new RuntimeError('Variable "productModels" does not exist.', 977, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["model"]) {
// line 978
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["model"], "id", [], "any", false, false, false, 978), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["model"], "name", [], "any", false, false, false, 978), "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['model'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 980
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('model')\">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 995
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 998
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.', 998, $this->source); })()), "id", [], "any", false, false, false, 998)]), "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 1002
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.', 1002, $this->source); })()), "id", [], "any", false, false, false, 1002), "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 1020
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 1058
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 1061
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.', 1061, $this->source); })()), "id", [], "any", false, false, false, 1061)]), "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 1082
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 1085
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.', 1085, $this->source); })()), "id", [], "any", false, false, false, 1085)]), "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 1106
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 1109
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.', 1109, $this->source); })()), "id", [], "any", false, false, false, 1109)]), "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 200
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 201
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 203
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.', 203, $this->source); })()), 0, [], "array", false, false, false, 203)) {
// line 204
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (CoreExtension::inFilter("print", 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.', 204, $this->source); })()), 2, [], "array", false, false, false, 204))) {
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.', 204, $this->source); })()), 1, [], "array", false, false, false, 204), "html", null, true);
yield "_print\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-print d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Stampa etichette\"></i><span class=\"d-none d-lg-block\">Stampa etichette</span></a>";
}
// line 205
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.', 205, $this->source); })()), 2, [], "array", false, false, false, 205))) {
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.', 205, $this->source); })()), 1, [], "array", false, false, false, 205), "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 206
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.', 206, $this->source); })()), 2, [], "array", false, false, false, 206))) {
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.', 206, $this->source); })()), 1, [], "array", false, false, false, 206), "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=\"Modifica fornitori\"></i><span class=\"d-none d-lg-block\">Modifica fornitori</span></a>";
}
// line 207
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.', 207, $this->source); })()), 2, [], "array", false, false, false, 207))) {
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.', 207, $this->source); })()), 1, [], "array", false, false, false, 207), "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 208
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.', 208, $this->source); })()), 2, [], "array", false, false, false, 208))) {
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.', 208, $this->source); })()), "id", [], "any", false, false, false, 208), "status" => (isset($context["status"]) || array_key_exists("status", $context) ? $context["status"] : (function () { throw new RuntimeError('Variable "status" does not exist.', 208, $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 209
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 210
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 215
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.', 215, $this->source); })()), "id", [], "any", false, false, false, 215)]), "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 216
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.', 216, $this->source); })()), 0, [], "array", false, false, false, 216)) {
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.', 216, $this->source); })()), "request", [], "any", false, false, false, 216), "attributes", [], "any", false, false, false, 216), "get", ["_route"], "method", false, false, false, 216), "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.', 216, $this->source); })()), "request", [], "any", false, false, false, 216), "attributes", [], "any", false, false, false, 216), "get", ["_route_params"], "method", false, false, false, 216)]), "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.', 216, $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 217
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeProducer_1", [], "any", true, true, false, 217)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeProducer_1", [], "any", false, false, false, 217))) : ("")), "html", null, true);
yield "\" data-bs-toggle=\"tooltip\" title=\"Puoi effettuare ricerche multiple inserendo valori separati da virgola [Es. 1234,5678,901 o 1234, 5678, 901]\"/></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 218
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "model_1", [], "any", true, true, false, 218)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "model_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_120p\"><input type=\"text\" class=\"form-control\" id=\"filter_supplier_value_";
// line 219
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.', 219, $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.', 219, $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.', 219, $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, 219)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "supplier_1", [], "any", false, false, false, 219))) : ("")), "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 220
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "condition_1", [], "any", true, true, false, 220)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "condition_1", [], "any", false, false, false, 220))) : ("")), "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 221
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "producer_1", [], "any", true, true, false, 221)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "producer_1", [], "any", false, false, false, 221))) : ("")), "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 222
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeSupplier_1", [], "any", true, true, false, 222)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "codeSupplier_1", [], "any", false, false, false, 222))) : ("")), "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 223
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sku_1", [], "any", true, true, false, 223)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sku_1", [], "any", false, false, false, 223))) : ("")), "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 224
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.', 224, $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 225
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "ddt_1", [], "any", true, true, false, 225)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "ddt_1", [], "any", false, false, false, 225))) : ("")), "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 227
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.', 227, $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 228
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.', 228, $this->source); })()), "id", [], "any", false, false, false, 228), "status" => (isset($context["status"]) || array_key_exists("status", $context) ? $context["status"] : (function () { throw new RuntimeError('Variable "status" does not exist.', 228, $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.', 228, $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 230
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.', 230, $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 231
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_1", [], "any", true, true, false, 231)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_1", [], "any", false, false, false, 231))) : ("")), "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 232
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_1", [], "any", true, true, false, 232)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_1", [], "any", false, false, false, 232))) : ("")), "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 237
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.', 237, $this->source); })()), 0, [], "array", false, false, false, 237)) {
// line 238
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 240
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.', 240, $this->source); })()), 1, [], "array", false, false, false, 240), "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.', 240, $this->source); })()), 1, [], "array", false, false, false, 240), "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.', 240, $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 241
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.', 241, $this->source); })()), 1, [], "array", false, false, false, 241), "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 245
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 257
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.', 257, $this->source); })())) > 0)) {
// line 258
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.', 258, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["product"]) {
// line 259
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["first"] = true;
// line 260
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["suppliersString"] = "";
// line 261
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, 261));
foreach ($context['_seq'] as $context["_key"] => $context["supplier"]) {
// line 262
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.', 262, $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.', 262, $this->source); })()) . "-");
}
// line 263
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.', 263, $this->source); })()) . CoreExtension::getAttribute($this->env, $this->source, $context["supplier"], "id", [], "any", false, false, false, 263));
// line 264
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 265
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.', 265, $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 266
if (CoreExtension::getAttribute($this->env, $this->source, $context["product"], "toManage", [], "any", false, false, false, 266)) {
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, 266), "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 267
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, 267)]), "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.', 267, $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 268
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.', 268, $this->source); })()), 0, [], "array", false, false, false, 268)) {
// line 269
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 271
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 271), "html", null, true);
yield "\" 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.', 271, $this->source); })()), 1, [], "array", false, false, false, 271), "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, 271), "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.', 271, $this->source); })()), 1, [], "array", false, false, false, 271), "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.', 271, $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 272
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 272), "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 276
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, 276), "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, 276)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeProducer", [], "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 id=\"product_model_";
// line 277
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 277), "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, 277), "name", [], "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 CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displaySuppliers", [], "method", false, false, false, 278);
yield "</td>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td>";
// line 279
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displayCondition", ["string-short"], "method", false, false, false, 279), "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 280
if (( !(null === CoreExtension::getAttribute($this->env, $this->source, $context["product"], "getLastTicket", [], "any", false, false, false, 280)) && ((isset($context["tab"]) || array_key_exists("tab", $context) ? $context["tab"] : (function () { throw new RuntimeError('Variable "tab" does not exist.', 280, $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, 280), "id", [], "any", false, false, false, 280)]), "html", null, true);
yield "\" target=\"_blank\">";
yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displayLastRefs", [], "any", false, false, false, 280);
yield "</a>";
}
// line 281
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 282
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, 282), "producer", [], "any", false, false, false, 282), "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 283
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "id", [], "any", false, false, false, 283), "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, 283)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, $context["product"], "codeSupplier", [], "any", false, false, false, 283), "---")) : ("---")), "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 284
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, 284), "sku", [], "any", false, false, false, 284), "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 285
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, 285), "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 286
yield CoreExtension::getAttribute($this->env, $this->source, $context["product"], "displayTransfersDdt", [], "method", false, false, false, 286);
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 289
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 290
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", 290)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessun prodotto in questo stato"]));
// line 291
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 292
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 296
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.', 296, $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 347
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 348
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 353
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.', 353, $this->source); })()), "id", [], "any", false, false, false, 353)]), "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 354
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.', 354, $this->source); })()), "request", [], "any", false, false, false, 354), "attributes", [], "any", false, false, false, 354), "get", ["_route"], "method", false, false, false, 354), "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.', 354, $this->source); })()), "request", [], "any", false, false, false, 354), "attributes", [], "any", false, false, false, 354), "get", ["_route_params"], "method", false, false, false, 354)]), "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.', 354, $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 355
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.', 355, $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 356
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.', 356, $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 357
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.', 357, $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 358
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouseFrom_2", [], "any", true, true, false, 358)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouseFrom_2", [], "any", false, false, false, 358))) : ("")), "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 359
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouseTo_2", [], "any", true, true, false, 359)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouseTo_2", [], "any", false, false, false, 359))) : ("")), "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 360
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "ddt_2", [], "any", true, true, false, 360)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "ddt_2", [], "any", false, false, false, 360))) : ("")), "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 361
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "stockOrder_2", [], "any", true, true, false, 361)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "stockOrder_2", [], "any", false, false, false, 361))) : ("")), "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 362
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.', 362, $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 363
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.', 363, $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 364
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_2", [], "any", true, true, false, 364)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_2", [], "any", false, false, false, 364))) : ("")), "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 365
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_2", [], "any", true, true, false, 365)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_2", [], "any", false, false, false, 365))) : ("")), "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 381
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.', 381, $this->source); })()), "user", [], "any", false, false, false, 381), "getAccountTypology", [], "method", false, false, false, 381) != "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 385
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.', 385, $this->source); })())) > 0)) {
// line 386
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.', 386, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["pt"]) {
// line 387
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 388
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.', 388, $this->source); })()), "id", [], "any", false, false, false, 388), "transferId" => CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "id", [], "any", false, false, false, 388)]), "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.', 388, $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 389
yield CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "displayPhase", ["string"], "method", false, false, false, 389);
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 390
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, 390), "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 391
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "datetimeSend", [], "any", false, false, false, 391) != 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, 391), "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 392
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "datetimeCompletion", [], "any", false, false, false, 392) != 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, 392), "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 393
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "warehouseFrom", [], "any", false, false, false, 393) != null)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "warehouseFrom", [], "any", false, false, false, 393), "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 394
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "warehouseTo", [], "any", false, false, false, 394) != null)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "warehouseTo", [], "any", false, false, false, 394), "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 395
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "ddtPath", [], "any", false, false, false, 395) != null)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "ddt", [], "any", false, false, false, 395), "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 396
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "stockOrder", [], "any", false, false, false, 396) != null)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "stockOrder", [], "any", false, false, false, 396), "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 397
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.', 397, $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.', 397, $this->source); })()), "user", [], "any", false, false, false, 397), "id", [], "any", false, false, false, 397)], "method", false, false, false, 397) != 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.', 397, $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.', 397, $this->source); })()), "user", [], "any", false, false, false, 397), "id", [], "any", false, false, false, 397)], "method", false, false, false, 397), "permission", [], "any", false, false, false, 397) == "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.', 397, $this->source); })()), "user", [], "any", false, false, false, 397), "canWrite", ["warehouse"], "method", 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<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 399
if (((isset($context["tabType"]) || array_key_exists("tabType", $context) ? $context["tabType"] : (function () { throw new RuntimeError('Variable "tabType" does not exist.', 399, $this->source); })()) == "pt_incoming")) {
// 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";
if ((CoreExtension::getAttribute($this->env, $this->source, $context["pt"], "type", [], "any", false, false, false, 400) == "destination")) {
// line 401
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, 401), "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.', 401, $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 403
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.', 403, $this->source); })()) == "pt_output")) {
// line 404
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, 404)) {
// line 405
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.', 405, $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 407
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, 407), "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.', 407, $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 409
yield "\t\t\t\t\t\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\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 412
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 414
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 415
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", 415)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessuno trasferimento in questo stato"]));
// line 416
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 417
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 421
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.', 421, $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 522
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 523
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 528
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.', 528, $this->source); })()), "id", [], "any", false, false, false, 528)]), "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 529
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.', 529, $this->source); })()), "request", [], "any", false, false, false, 529), "attributes", [], "any", false, false, false, 529), "get", ["_route"], "method", false, false, false, 529), "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.', 529, $this->source); })()), "request", [], "any", false, false, false, 529), "attributes", [], "any", false, false, false, 529), "get", ["_route_params"], "method", false, false, false, 529)]), "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.', 529, $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 530
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.', 530, $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 531
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "technician_3", [], "any", true, true, false, 531)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "technician_3", [], "any", false, false, false, 531))) : ("")), "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 532
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouse_3", [], "any", true, true, false, 532)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "warehouse_3", [], "any", false, false, false, 532))) : ("")), "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 533
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.', 533, $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 534
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.', 534, $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 535
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_3", [], "any", true, true, false, 535)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortField_3", [], "any", false, false, false, 535))) : ("")), "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 536
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_3", [], "any", true, true, false, 536)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["filters"] ?? null), "sortOrder_3", [], "any", false, false, false, 536))) : ("")), "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 542
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.', 542, $this->source); })()), "headquarter", [], "any", false, false, false, 542)) {
// line 543
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 545
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 547
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 550
if (((((isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 550, $this->source); })()) == "delete") || ((isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 550, $this->source); })()) == "take_charge")) || ((isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 550, $this->source); })()) == "complete"))) {
yield "<th colspan=\"2\"></th>";
}
// line 551
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 554
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.', 554, $this->source); })())) > 0)) {
// line 555
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.', 555, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["pr"]) {
// line 556
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, 556), "id", [], "any", false, false, false, 556), "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 557
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, 557), "nickname", [], "any", false, false, false, 557), "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 558
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 558), "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, 558), "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 559
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 559), "html", null, true);
yield "_technician\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "technician", [], "any", false, false, false, 559), "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 560
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 560), "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, 560), "nickname", [], "any", false, false, false, 560), "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 561
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 561), "html", null, true);
yield "_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, 561), "nickname", [], "any", false, false, false, 561), "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 562
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 562), "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, 562), "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 564
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, 564), "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 565
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "technician", [], "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";
// line 566
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.', 566, $this->source); })()), "headquarter", [], "any", false, false, false, 566)) {
// line 567
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, 567), "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 569
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, 569), "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 571
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, 571);
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 572
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "notes", [], "any", false, false, false, 572), "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 573
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["pr"], "id", [], "any", false, false, false, 573), "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.', 573, $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
if (((isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 574, $this->source); })()) == "delete")) {
// line 575
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, 575), "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.', 575, $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 576
(isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 576, $this->source); })()) == "take_charge")) {
// line 577
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, 577), "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.', 577, $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 578
(isset($context["tabAction"]) || array_key_exists("tabAction", $context) ? $context["tabAction"] : (function () { throw new RuntimeError('Variable "tabAction" does not exist.', 578, $this->source); })()) == "complete")) {
// line 579
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, 579), "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.', 579, $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 581
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 583
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 584
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", 584)->unwrap()->yield(CoreExtension::merge($context, ["message" => "Nessuna richiesta in questa fase"]));
// line 585
yield "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 586
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 590
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.', 590, $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 1130
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 1131
yield "\t";
yield from $this->loadTemplate("components/modals/filter_supplier.html.twig", "role/user/warehouse/sheet.html.twig", 1131)->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.', 1131, $this->source); })())]));
// line 1132
yield "\t";
yield from $this->loadTemplate("components/modals/filter_supplier.html.twig", "role/user/warehouse/sheet.html.twig", 1132)->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.', 1132, $this->source); })())]));
// line 1133
yield "\t";
yield from $this->loadTemplate("components/modals/filter_supplier.html.twig", "role/user/warehouse/sheet.html.twig", 1133)->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.', 1133, $this->source); })())]));
// line 1134
yield "\t";
yield from $this->loadTemplate("components/modals/filter_supplier.html.twig", "role/user/warehouse/sheet.html.twig", 1134)->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.', 1134, $this->source); })())]));
// line 1135
yield "
\t";
// line 1137
yield "\t";
$context["editWarehouseModalBody"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 1138
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 1142
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.', 1142, $this->source); })()), "nickname", [], "any", false, false, false, 1142), 'errors');
yield ">
\t\t\t\t\t";
// line 1143
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.', 1143, $this->source); })()), "nickname", [], "any", false, false, false, 1143), '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 1148
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.', 1148, $this->source); })()), "address", [], "any", false, false, false, 1148), 'errors');
yield ">
\t\t\t\t\t";
// line 1149
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.', 1149, $this->source); })()), "address", [], "any", false, false, false, 1149), '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 1154
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.', 1154, $this->source); })()), "headquarter", [], "any", false, false, false, 1154), '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 1158
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.', 1158, $this->source); })()), "headquarter", [], "any", false, false, false, 1158), '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.', 1158, $this->source); })()), "headquarter", [], "any", false, false, false, 1158), "vars", [], "any", false, false, false, 1158), "id", [], "any", false, false, false, 1158), "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 1166
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.', 1166, $this->source); })()), "movable", [], "any", false, false, false, 1166), '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 1170
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.', 1170, $this->source); })()), "movable", [], "any", false, false, false, 1170), '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.', 1170, $this->source); })()), "movable", [], "any", false, false, false, 1170), "vars", [], "any", false, false, false, 1170), "id", [], "any", false, false, false, 1170), "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 1178
yield "\t";
$context["editWarehouseScriptBody"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
return; yield '';
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 1179
yield "\t";
yield from $this->loadTemplate("components/modals/edit.html.twig", "role/user/warehouse/sheet.html.twig", 1179)->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.', 1179, $this->source); })()), "text" => "Magazzino", "modalBody" => (isset($context["editWarehouseModalBody"]) || array_key_exists("editWarehouseModalBody", $context) ? $context["editWarehouseModalBody"] : (function () { throw new RuntimeError('Variable "editWarehouseModalBody" does not exist.', 1179, $this->source); })()), "scriptBody" => (isset($context["editWarehouseScriptBody"]) || array_key_exists("editWarehouseScriptBody", $context) ? $context["editWarehouseScriptBody"] : (function () { throw new RuntimeError('Variable "editWarehouseScriptBody" does not exist.', 1179, $this->source); })()), "openModal" => "openEditModal", "id" => ""]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 1182
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 1183
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
";
// line 1184
yield from $this->loadTemplate("components/js/upload_file_js.html.twig", "role/user/warehouse/sheet.html.twig", 1184)->unwrap()->yield(CoreExtension::merge($context, ["number" => "1", "file" => "form_transfer_receive_file", "path" => "form_transfer_receive_ddtPath"]));
// line 1185
yield from $this->loadTemplate("components/js/upload_file_js.html.twig", "role/user/warehouse/sheet.html.twig", 1185)->unwrap()->yield(CoreExtension::merge($context, ["number" => "2", "file" => "form_import_inventory_file", "path" => "form_import_inventory_path"]));
// line 1186
yield from $this->loadTemplate("components/js/sort_js.html.twig", "role/user/warehouse/sheet.html.twig", 1186)->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.', 1186, $this->source); })()), "sortField_0", [], "any", false, false, false, 1186), "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.', 1186, $this->source); })()), "sortOrder_0", [], "any", false, false, false, 1186), "sort_field" => "sort_field_0", "sort_order" => "sort_order_0", "formName" => "formFilter_0", "arrowClass" => "filter_arrow_0"]));
// line 1187
yield from $this->loadTemplate("components/js/sort_js.html.twig", "role/user/warehouse/sheet.html.twig", 1187)->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.', 1187, $this->source); })()), "sortField_1", [], "any", false, false, false, 1187), "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.', 1187, $this->source); })()), "sortOrder_1", [], "any", false, false, false, 1187), "sort_field" => "sort_field_1", "sort_order" => "sort_order_1", "formName" => "formFilter_1", "arrowClass" => "filter_arrow_1"]));
// line 1188
yield from $this->loadTemplate("components/js/sort_js.html.twig", "role/user/warehouse/sheet.html.twig", 1188)->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.', 1188, $this->source); })()), "sortField_2", [], "any", false, false, false, 1188), "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.', 1188, $this->source); })()), "sortOrder_2", [], "any", false, false, false, 1188), "sort_field" => "sort_field_2", "sort_order" => "sort_order_2", "formName" => "formFilter_2", "arrowClass" => "filter_arrow_2"]));
// line 1189
yield from $this->loadTemplate("components/js/sort_js.html.twig", "role/user/warehouse/sheet.html.twig", 1189)->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.', 1189, $this->source); })()), "sortField_3", [], "any", false, false, false, 1189), "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.', 1189, $this->source); })()), "sortOrder_3", [], "any", false, false, false, 1189), "sort_field" => "sort_field_3", "sort_order" => "sort_order_3", "formName" => "formFilter_3", "arrowClass" => "filter_arrow_3"]));
// line 1190
yield from $this->loadTemplate("components/js/filter_supplier_js.html.twig", "role/user/warehouse/sheet.html.twig", 1190)->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.', 1190, $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.', 1190, $this->source); })()), "supplier_0", [], "any", false, false, false, 1190)]));
// line 1191
yield from $this->loadTemplate("components/js/filter_supplier_js.html.twig", "role/user/warehouse/sheet.html.twig", 1191)->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.', 1191, $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.', 1191, $this->source); })()), "supplier_1", [], "any", false, false, false, 1191)]));
// line 1192
yield from $this->loadTemplate("components/js/filter_supplier_js.html.twig", "role/user/warehouse/sheet.html.twig", 1192)->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.', 1192, $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.', 1192, $this->source); })()), "supplier_1", [], "any", false, false, false, 1192)]));
// line 1193
yield from $this->loadTemplate("components/js/filter_supplier_js.html.twig", "role/user/warehouse/sheet.html.twig", 1193)->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.', 1193, $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.', 1193, $this->source); })()), "supplier_1", [], "any", false, false, false, 1193)]));
// line 1194
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1194)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange1last_1", "format" => "DD-MM-YYYY HH:mm"]));
// line 1195
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1195)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange1last_2", "format" => "DD-MM-YYYY HH:mm"]));
// line 1196
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1196)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange1last_3", "format" => "DD-MM-YYYY HH:mm"]));
// line 1197
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1197)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2creation_1", "format" => "DD-MM-YYYY HH:mm"]));
// line 1198
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1198)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2send_1", "format" => "DD-MM-YYYY HH:mm"]));
// line 1199
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1199)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2completion_1", "format" => "DD-MM-YYYY HH:mm"]));
// line 1200
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1200)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2creation_2", "format" => "DD-MM-YYYY HH:mm"]));
// line 1201
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1201)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2send_2", "format" => "DD-MM-YYYY HH:mm"]));
// line 1202
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1202)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2completion_2", "format" => "DD-MM-YYYY HH:mm"]));
// line 1203
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1203)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2creation_3", "format" => "DD-MM-YYYY HH:mm"]));
// line 1204
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1204)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2send_3", "format" => "DD-MM-YYYY HH:mm"]));
// line 1205
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1205)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange2completion_3", "format" => "DD-MM-YYYY HH:mm"]));
// line 1206
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1206)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange3_1", "format" => "DD-MM-YYYY HH:mm"]));
// line 1207
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1207)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange3_2", "format" => "DD-MM-YYYY HH:mm"]));
// line 1208
yield from $this->loadTemplate("components/js/daterangepicker_js.html.twig", "role/user/warehouse/sheet.html.twig", 1208)->unwrap()->yield(CoreExtension::merge($context, ["id" => "daterange3_3", "format" => "DD-MM-YYYY HH:mm"]));
// line 1209
yield "<script>
\t\$(document).ready(function(){
\t\t// Inventory
\t\t";
// line 1212
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.', 1212, $this->source); })()), "session", [], "any", false, false, false, 1212), "get", ["openStockInventoryModal"], "method", false, false, false, 1212)) {
// line 1213
yield "\t\t\tstockInventory();
\t\t\t";
// line 1214
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.', 1214, $this->source); })()), "session", [], "any", false, false, false, 1214), "remove", ["openStockInventoryModal"], "method", false, false, false, 1214);
// line 1215
yield "\t\t";
}
// line 1216
yield "\t\t// Receive
\t\t";
// line 1217
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.', 1217, $this->source); })()), "session", [], "any", false, false, false, 1217), "get", ["openTransferReceiveModal"], "method", false, false, false, 1217)) {
// line 1218
yield "\t\t\ttransferReceive();
\t\t\t";
// line 1219
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.', 1219, $this->source); })()), "session", [], "any", false, false, false, 1219), "remove", ["openTransferReceiveModal"], "method", false, false, false, 1219);
// line 1220
yield "\t\t";
}
// line 1221
yield "\t\t// Invia
\t\t";
// line 1222
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.', 1222, $this->source); })()), "session", [], "any", false, false, false, 1222), "get", ["openTransferSendModal"], "method", false, false, false, 1222)) {
// line 1223
yield "\t\t\ttransferSend();
\t\t\t";
// line 1224
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.', 1224, $this->source); })()), "session", [], "any", false, false, false, 1224), "remove", ["openTransferSendModal"], "method", false, false, false, 1224);
// line 1225
yield "\t\t";
}
// line 1226
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.', 1226, $this->source); })()), "session", [], "any", false, false, false, 1226), "get", ["transferStocksIds"], "method", false, false, false, 1226)) {
// line 1227
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.', 1227, $this->source); })()), "session", [], "any", false, false, false, 1227), "remove", ["transferStocksIds"], "method", false, false, false, 1227);
// line 1228
yield "\t\t";
}
// line 1229
yield "
\t\tvar dateRanges1last = document.getElementsByClassName('daterange1last');
\t\t";
// line 1231
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.', 1231, $this->source); })()), "dateLastTransfer_1", [], "any", false, false, false, 1231) != 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.', 1231, $this->source); })()), "dateLastTransfer_1", [], "any", false, false, false, 1231) != ""))) {
// line 1232
yield "\t\t\tfor(i=0; i<dateRanges1last.length; i++){
\t\t\t\tdateRanges1last[i].value = \"";
// line 1233
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.', 1233, $this->source); })()), "dateLastTransfer_1", [], "any", false, false, false, 1233), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1236
yield "\t\t\tfor(i=0; i<dateRanges1last.length; i++){
\t\t\t\tdateRanges1last[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1240
yield "
\t\tvar dateRanges2creation = document.getElementsByClassName('daterange2creation');
\t\t";
// line 1242
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.', 1242, $this->source); })()), "datetimeCreation_2", [], "any", false, false, false, 1242) != 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.', 1242, $this->source); })()), "datetimeCreation_2", [], "any", false, false, false, 1242) != ""))) {
// line 1243
yield "\t\t\tfor(i=0; i<dateRanges2creation.length; i++){
\t\t\t\tdateRanges2creation[i].value = \"";
// line 1244
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.', 1244, $this->source); })()), "datetimeCreation_2", [], "any", false, false, false, 1244), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1247
yield "\t\t\tfor(i=0; i<dateRanges2creation.length; i++){
\t\t\t\tdateRanges2creation[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1251
yield "\t\t
\t\tvar dateRanges2send = document.getElementsByClassName('daterange2send');
\t\t";
// line 1253
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.', 1253, $this->source); })()), "datetimeSend_2", [], "any", false, false, false, 1253) != 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.', 1253, $this->source); })()), "datetimeSend_2", [], "any", false, false, false, 1253) != ""))) {
// line 1254
yield "\t\t\tfor(i=0; i<dateRanges2send.length; i++){
\t\t\t\tdateRanges2send[i].value = \"";
// line 1255
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.', 1255, $this->source); })()), "datetimeSend_2", [], "any", false, false, false, 1255), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1258
yield "\t\t\tfor(i=0; i<dateRanges2send.length; i++){
\t\t\t\tdateRanges2send[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1262
yield "\t\t
\t\tvar dateRanges2completion = document.getElementsByClassName('daterange2completion');
\t\t";
// line 1264
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.', 1264, $this->source); })()), "datetimeCompletion_2", [], "any", false, false, false, 1264) != 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.', 1264, $this->source); })()), "datetimeCompletion_2", [], "any", false, false, false, 1264) != ""))) {
// line 1265
yield "\t\t\tfor(i=0; i<dateRanges2completion.length; i++){
\t\t\t\tdateRanges2completion[i].value = \"";
// line 1266
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.', 1266, $this->source); })()), "datetimeCompletion_2", [], "any", false, false, false, 1266), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1269
yield "\t\t\tfor(i=0; i<dateRanges2completion.length; i++){
\t\t\t\tdateRanges2completion[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1273
yield "
\t\tvar dateRanges3 = document.getElementsByClassName('daterange3');
\t\t";
// line 1275
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.', 1275, $this->source); })()), "date_3", [], "any", false, false, false, 1275) != 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.', 1275, $this->source); })()), "date_3", [], "any", false, false, false, 1275) != ""))) {
// line 1276
yield "\t\t\tfor(i=0; i<dateRanges3.length; i++){
\t\t\t\tdateRanges3[i].value = \"";
// line 1277
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.', 1277, $this->source); })()), "date_3", [], "any", false, false, false, 1277), "html", null, true);
yield "\";
\t\t\t}
\t\t";
} else {
// line 1280
yield "\t\t\tfor(i=0; i<dateRanges3.length; i++){
\t\t\t\tdateRanges3[i].value = \"\";
\t\t\t}
\t\t";
}
// line 1284
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\tvar buttonModel = document.getElementById('button_' + index + '_model');
\t\t";
// line 1299
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.', 1299, $this->source); })()), "headquarter", [], "any", false, false, false, 1299)) {
// line 1300
yield "\t\t\tvar buttonPrint = document.getElementById('button_' + index + '_print');
\t\t";
}
// line 1302
yield "\t\tif(tab == 's_to_manage')
\t\t\tvar buttonManaged = document.getElementById('button_' + index + '_managed');
\t\t";
// line 1304
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.', 1304, $this->source); })()), "user", [], "any", false, false, false, 1304), "getAccountTypology", [], "any", false, false, false, 1304) != "technician")) {
// line 1305
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 1308
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\t";
// line 1325
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.', 1325, $this->source); })()), "headquarter", [], "any", false, false, false, 1325)) {
// line 1326
yield "\t\t\t\tbuttonPrint.className = \"button button-3d button-mini button-green f_right m_b_10p\";
\t\t\t\tbuttonPrint.href = \"javascript: sendAction('print', \" + index + \", '\" + tab + \"')\";
\t\t\t";
}
// line 1329
yield "\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// buttonModel uguale a buttonCondition solo per s_to_manage
\t\t\t\tbuttonModel.className = \"button button-3d button-mini button-green f_right m_b_10p\";
\t\t\t\tbuttonModel.href = \"javascript: sendAction('model', \" + index + \", '\" + tab + \"')\";
\t\t\t}
\t\t\t";
// line 1338
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.', 1338, $this->source); })()), "user", [], "any", false, false, false, 1338), "getAccountTypology", [], "any", false, false, false, 1338) != "technician")) {
// line 1339
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 1344
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\t";
// line 1350
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.', 1350, $this->source); })()), "headquarter", [], "any", false, false, false, 1350)) {
// line 1351
yield "\t\t\t\tbuttonPrint.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
\t\t\t\tbuttonPrint.href = \"javascript: void(0)\";
\t\t\t";
}
// line 1354
yield "\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\tbuttonModel.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
\t\t\t\tbuttonModel.href = \"javascript: void(0)\";
\t\t\t}
\t\t\t";
// line 1362
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.', 1362, $this->source); })()), "user", [], "any", false, false, false, 1362), "getAccountTypology", [], "any", false, false, false, 1362) != "technician")) {
// line 1363
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 1368
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 'print':
\t\t\t\tdocument.getElementById('printStocksIds').value = array;
\t\t\t\tdocument.getElementById('printAction').value = action;
\t\t\t\t\$('#stockPrintModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t\t\t\tbreak;
\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 'model':
\t\t\t\tdocument.getElementById('modelAction').value = action;
\t\t\t\tdocument.getElementById('modelStocksIds').value = array;
\t\t\t\tswitch(index){
\t\t\t\t\tcase 0: document.getElementById('stockTab').value = 'to_manage'; break;
\t\t\t\t\tdefault: break;
\t\t\t\t}
\t\t\t\t\$('#stockModelModal').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 modelsUpdateUl(){
\t\tvar modelName = document.getElementById(\"input_model_search\").value;
\t\tif(modelName != null && modelName != \"\"){
\t\t\t\$.post(\"";
// line 1444
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_product_model_name_updates");
yield "\", {modelName: modelName}, function(response){
\t\t\t\tif(response.code == 200 && response.success){
\t\t\t\t\tvar ul = document.getElementById(\"ul_models\");
\t\t\t\t\tul.innerHTML = \"\";
\t\t\t\t\tvar values = JSON.parse(response.values);
\t\t\t\t\tvar max = values.length;
\t\t\t\t\tif(values.length > 10)
\t\t\t\t\t\tmax = 10;
\t\t\t\t\tfor(i=0; i<max; i++){
\t\t\t\t\t\tvar li = document.createElement(\"li\");
\t\t\t\t\t\tli.id = \"li_model_\" + i;
\t\t\t\t\t\tli.innerHTML = values[i]['name'];
\t\t\t\t\t\tli.setAttribute(\"onclick\", \"setModel(\" + values[i]['id'] + \", '\" + values[i]['name'].replace(/'/g, \"\\\\'\") + \"')\");
\t\t\t\t\t\tul.appendChild(li);
\t\t\t\t\t}
\t\t\t\t\tif(max > 0){
\t\t\t\t\t\tif(max == 1){
\t\t\t\t\t\t\tdocument.getElementById(\"li_model_0\").click();
\t\t\t\t\t\t\tul.style.display = \"none\";
\t\t\t\t\t\t}
\t\t\t\t\t\telse
\t\t\t\t\t\t\tul.style.display = \"block\";
\t\t\t\t\t}
\t\t\t\t\telse
\t\t\t\t\t\tul.style.display = \"none\";
\t\t\t\t}
\t\t\t}, \"json\");
\t\t}
\t}
\tfunction setModel(id, name) {
\t\tvar select = document.getElementById(\"select_product_model\");
\t\twhile (select.options.length > 1) {
\t\t\tselect.remove(1);
\t\t}
\t\tvar option = new Option(name, id, true, true);
\t\tselect.options.add(option);
\t\tselect.value = id;
\t\tdocument.getElementById(\"ul_models\").style.display = \"none\";
\t\tdocument.getElementById(\"input_model_search\").value = name;
\t}
\tfunction checkSubmit(action){
\t\tswitch(action){
\t\t\tcase 'print':
\t\t\t\tif(document.getElementById('select_supplier').value != 0){
\t\t\t\t\t\$('#formPrint').submit();
\t\t\t\t\t\$('#stockPrintModal').modal(\"hide\");
\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 '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\tcase 'model':
\t\t\t\tif(document.getElementById('select_product_model').value != 0){
\t\t\t\t\ttriggerLoading();
\t\t\t\t\t\$('#formModel').submit();
\t\t\t\t}
\t\t\t\telse{
\t\t\t\t\tvar divError = document.getElementById('divErrorModel');
\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 1588
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.', 1588, $this->source); })()), "id", [], "any", false, false, false, 1588)]), "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\tdocument.getElementById('div_send_stock_order').style.display = 'none';
\t\t\t\t\t\t";
// line 1598
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.', 1598, $this->source); })()), "headquarter", [], "any", false, false, false, 1598) == 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.', 1598, $this->source); })()), "user", [], "any", false, false, false, 1598), "getAccountTypology", [], "any", false, false, false, 1598) != "technician"))) {
// line 1599
yield "\t\t\t\t\t\t\tdocument.getElementById('row_user_from_select').style.display = 'block';
\t\t\t\t\t\t";
}
// line 1601
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_stock_order').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('div_send_stock_order').style.display = 'none';
\t\t\t\t\t\tdocument.getElementById('row_user_to_select').style.display = 'none';
\t\t\t\t\t\t";
// line 1615
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.', 1615, $this->source); })()), "headquarter", [], "any", false, false, false, 1615) == 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.', 1615, $this->source); })()), "user", [], "any", false, false, false, 1615), "getAccountTypology", [], "any", false, false, false, 1615) != "technician"))) {
// line 1616
yield "\t\t\t\t\t\t\tdocument.getElementById('row_user_from_select').style.display = 'block';
\t\t\t\t\t\t";
}
// line 1618
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 1649
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.', 1649, $this->source); })()), "id", [], "any", false, false, false, 1649)]), "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 1690
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.', 1690, $this->source); })()), "headquarter", [], "any", false, false, false, 1690)) {
// line 1691
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 1701
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 ( 3454 => 1701, 3442 => 1691, 3440 => 1690, 3396 => 1649, 3363 => 1618, 3359 => 1616, 3357 => 1615, 3341 => 1601, 3337 => 1599, 3335 => 1598, 3322 => 1588, 3175 => 1444, 3097 => 1368, 3090 => 1363, 3088 => 1362, 3078 => 1354, 3073 => 1351, 3071 => 1350, 3063 => 1344, 3056 => 1339, 3054 => 1338, 3043 => 1329, 3038 => 1326, 3036 => 1325, 3017 => 1308, 3012 => 1305, 3010 => 1304, 3006 => 1302, 3002 => 1300, 3000 => 1299, 2983 => 1284, 2977 => 1280, 2971 => 1277, 2968 => 1276, 2966 => 1275, 2962 => 1273, 2956 => 1269, 2950 => 1266, 2947 => 1265, 2945 => 1264, 2941 => 1262, 2935 => 1258, 2929 => 1255, 2926 => 1254, 2924 => 1253, 2920 => 1251, 2914 => 1247, 2908 => 1244, 2905 => 1243, 2903 => 1242, 2899 => 1240, 2893 => 1236, 2887 => 1233, 2884 => 1232, 2882 => 1231, 2878 => 1229, 2875 => 1228, 2872 => 1227, 2869 => 1226, 2866 => 1225, 2864 => 1224, 2861 => 1223, 2859 => 1222, 2856 => 1221, 2853 => 1220, 2851 => 1219, 2848 => 1218, 2846 => 1217, 2843 => 1216, 2840 => 1215, 2838 => 1214, 2835 => 1213, 2833 => 1212, 2828 => 1209, 2826 => 1208, 2824 => 1207, 2822 => 1206, 2820 => 1205, 2818 => 1204, 2816 => 1203, 2814 => 1202, 2812 => 1201, 2810 => 1200, 2808 => 1199, 2806 => 1198, 2804 => 1197, 2802 => 1196, 2800 => 1195, 2798 => 1194, 2796 => 1193, 2794 => 1192, 2792 => 1191, 2790 => 1190, 2788 => 1189, 2786 => 1188, 2784 => 1187, 2782 => 1186, 2780 => 1185, 2778 => 1184, 2774 => 1183, 2764 => 1182, 2752 => 1179, 2747 => 1178, 2733 => 1170, 2726 => 1166, 2713 => 1158, 2706 => 1154, 2698 => 1149, 2694 => 1148, 2686 => 1143, 2682 => 1142, 2676 => 1138, 2673 => 1137, 2670 => 1135, 2667 => 1134, 2664 => 1133, 2661 => 1132, 2658 => 1131, 2648 => 1130, 2633 => 590, 2627 => 586, 2624 => 585, 2621 => 584, 2618 => 583, 2611 => 581, 2603 => 579, 2601 => 578, 2594 => 577, 2592 => 576, 2585 => 575, 2583 => 574, 2577 => 573, 2573 => 572, 2568 => 571, 2562 => 569, 2556 => 567, 2554 => 566, 2550 => 565, 2546 => 564, 2539 => 562, 2533 => 561, 2527 => 560, 2521 => 559, 2515 => 558, 2511 => 557, 2506 => 556, 2501 => 555, 2499 => 554, 2494 => 551, 2490 => 550, 2485 => 547, 2481 => 545, 2477 => 543, 2475 => 542, 2466 => 536, 2462 => 535, 2458 => 534, 2454 => 533, 2450 => 532, 2446 => 531, 2442 => 530, 2436 => 529, 2432 => 528, 2425 => 523, 2415 => 522, 2400 => 421, 2394 => 417, 2391 => 416, 2388 => 415, 2385 => 414, 2378 => 412, 2374 => 410, 2371 => 409, 2363 => 407, 2357 => 405, 2354 => 404, 2351 => 403, 2343 => 401, 2340 => 400, 2338 => 399, 2335 => 398, 2333 => 397, 2325 => 396, 2317 => 395, 2309 => 394, 2301 => 393, 2293 => 392, 2285 => 391, 2281 => 390, 2277 => 389, 2271 => 388, 2268 => 387, 2263 => 386, 2261 => 385, 2252 => 381, 2233 => 365, 2229 => 364, 2225 => 363, 2221 => 362, 2217 => 361, 2213 => 360, 2209 => 359, 2205 => 358, 2201 => 357, 2197 => 356, 2193 => 355, 2187 => 354, 2183 => 353, 2176 => 348, 2166 => 347, 2151 => 296, 2145 => 292, 2142 => 291, 2139 => 290, 2136 => 289, 2127 => 286, 2123 => 285, 2119 => 284, 2113 => 283, 2109 => 282, 2106 => 281, 2098 => 280, 2094 => 279, 2090 => 278, 2084 => 277, 2077 => 276, 2070 => 272, 2058 => 271, 2054 => 269, 2052 => 268, 2046 => 267, 2038 => 266, 2033 => 265, 2027 => 264, 2024 => 263, 2017 => 262, 2012 => 261, 2009 => 260, 2006 => 259, 2001 => 258, 1999 => 257, 1985 => 245, 1978 => 241, 1970 => 240, 1966 => 238, 1964 => 237, 1956 => 232, 1952 => 231, 1948 => 230, 1941 => 228, 1937 => 227, 1932 => 225, 1928 => 224, 1924 => 223, 1920 => 222, 1916 => 221, 1912 => 220, 1902 => 219, 1898 => 218, 1894 => 217, 1884 => 216, 1880 => 215, 1873 => 210, 1870 => 209, 1863 => 208, 1856 => 207, 1849 => 206, 1842 => 205, 1835 => 204, 1833 => 203, 1829 => 201, 1819 => 200, 1788 => 1109, 1783 => 1106, 1760 => 1085, 1755 => 1082, 1732 => 1061, 1727 => 1058, 1688 => 1020, 1668 => 1002, 1661 => 998, 1656 => 995, 1640 => 980, 1629 => 978, 1625 => 977, 1606 => 961, 1601 => 958, 1585 => 943, 1574 => 941, 1570 => 940, 1555 => 928, 1550 => 925, 1535 => 911, 1525 => 907, 1517 => 906, 1513 => 904, 1509 => 903, 1497 => 894, 1492 => 891, 1468 => 869, 1463 => 866, 1447 => 851, 1436 => 849, 1432 => 848, 1418 => 837, 1413 => 834, 1405 => 828, 1397 => 823, 1393 => 822, 1380 => 814, 1372 => 809, 1360 => 802, 1354 => 798, 1351 => 797, 1348 => 796, 1345 => 795, 1343 => 794, 1339 => 793, 1332 => 789, 1328 => 788, 1320 => 783, 1316 => 782, 1304 => 773, 1300 => 772, 1292 => 767, 1288 => 766, 1280 => 761, 1276 => 760, 1264 => 751, 1259 => 748, 1253 => 744, 1247 => 740, 1245 => 739, 1235 => 732, 1230 => 729, 1222 => 723, 1206 => 710, 1202 => 709, 1198 => 708, 1190 => 703, 1186 => 702, 1171 => 692, 1164 => 688, 1156 => 683, 1152 => 682, 1144 => 677, 1140 => 676, 1131 => 670, 1126 => 667, 1118 => 661, 1102 => 648, 1098 => 647, 1094 => 646, 1086 => 641, 1082 => 640, 1074 => 635, 1070 => 634, 1061 => 628, 1056 => 625, 1048 => 618, 1036 => 610, 1033 => 609, 1030 => 608, 1027 => 607, 1025 => 606, 1018 => 603, 1015 => 602, 1012 => 601, 1009 => 600, 1006 => 599, 1003 => 598, 1000 => 597, 998 => 596, 994 => 594, 991 => 522, 988 => 521, 985 => 520, 982 => 519, 979 => 518, 976 => 517, 973 => 516, 970 => 515, 967 => 514, 965 => 513, 952 => 509, 942 => 508, 932 => 507, 926 => 503, 920 => 501, 918 => 500, 914 => 499, 909 => 496, 906 => 495, 899 => 489, 886 => 486, 882 => 485, 878 => 484, 875 => 483, 871 => 482, 848 => 466, 841 => 462, 830 => 458, 819 => 454, 812 => 450, 805 => 445, 799 => 443, 797 => 442, 791 => 438, 780 => 430, 777 => 429, 774 => 428, 772 => 427, 768 => 425, 765 => 347, 762 => 346, 759 => 345, 757 => 344, 748 => 340, 742 => 339, 733 => 332, 722 => 324, 719 => 323, 716 => 322, 713 => 321, 710 => 320, 707 => 319, 705 => 318, 698 => 315, 695 => 314, 692 => 313, 689 => 312, 686 => 311, 683 => 310, 680 => 309, 677 => 308, 674 => 307, 671 => 306, 668 => 305, 665 => 304, 662 => 303, 660 => 302, 656 => 300, 653 => 200, 650 => 199, 647 => 198, 644 => 197, 641 => 196, 638 => 195, 635 => 194, 632 => 193, 629 => 192, 626 => 191, 623 => 190, 620 => 189, 618 => 188, 615 => 187, 607 => 182, 601 => 178, 598 => 177, 595 => 176, 592 => 175, 583 => 172, 579 => 171, 573 => 170, 569 => 169, 563 => 168, 559 => 167, 555 => 166, 551 => 165, 545 => 164, 537 => 163, 533 => 162, 527 => 159, 521 => 158, 513 => 155, 505 => 154, 500 => 153, 494 => 152, 491 => 151, 484 => 150, 479 => 149, 476 => 148, 473 => 147, 468 => 146, 466 => 145, 438 => 120, 434 => 119, 426 => 116, 422 => 115, 419 => 114, 415 => 112, 411 => 111, 407 => 110, 403 => 109, 399 => 108, 395 => 107, 391 => 106, 387 => 105, 383 => 104, 379 => 103, 373 => 102, 369 => 101, 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_print\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-print d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Stampa etichette\"></i><span class=\"d-none d-lg-block\">Stampa etichette</span></a>
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a id=\"button_0_model\" 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 modello\"></i><span class=\"d-none d-lg-block\">Cambia modello</span></a>
\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=\"Modifica fornitori\"></i><span class=\"d-none d-lg-block\">Modifica 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<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':'to_manage'}) }}\" 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=\"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', 'print']] %}
\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 'print' in multipleSelection[2] %}<a id=\"button_{{ multipleSelection[1] }}_print\" href=\"javascript: void(0)\" class=\"button button-3d button-mini button-grey f_right m_b_10p p_tb4_lr6\"><i class=\"icon-print d-block d-lg-none m_r_none\" data-bs-toggle=\"tooltip\" title=\"Stampa etichette\"></i><span class=\"d-none d-lg-block\">Stampa etichette</span></a>{% endif %}
\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=\"Modifica fornitori\"></i><span class=\"d-none d-lg-block\">Modifica 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() }}\" data-bs-toggle=\"tooltip\" title=\"Puoi effettuare ricerche multiple inserendo valori separati da virgola [Es. 1234,5678,901 o 1234, 5678, 901]\"/></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', 'print']] %}
\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_stock_order\">
\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(formSend.stockOrder) }}>
\t\t\t\t\t\t\t\t\t{{ form_widget(formSend.stockOrder, {'attr':{'class':'form-control'}}) }}
\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 - Stampa etichette #}
\t<div id=\"stockPrintModal\" 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=\"formPrint\" target=\"_blank\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Stampa etichette</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"printStocksIds\" name=\"ids\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"printAction\" 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 fornitore da stampare in etichetta</label>
\t\t\t\t\t\t\t\t<div id=\"divErrorSupplier\">
\t\t\t\t\t\t\t\t\t<select class=\"form-control form-select\" id=\"select_supplier\" name=\"supplierId\">
\t\t\t\t\t\t\t\t\t\t<option></option>
\t\t\t\t\t\t\t\t\t\t{% for supplier in suppliers %}
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ supplier.id }}\">{{ supplier.name }}</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('print')\">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 - 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 - Modifica 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\">Modifica 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{# Stock - Cambio modello #}
\t<div id=\"stockModelModal\" 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=\"formModel\">
\t\t\t\t\t<div class=\"modal-header\"><h3 class=\"modal-title\">Cambia modello prodotti</h3></div>
\t\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"modelStocksIds\" name=\"ids\">
\t\t\t\t\t\t<input type=\"hidden\" id=\"modelAction\" 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 nuovo modello</label>
\t\t\t\t\t\t\t\t<div class=\"col-12 form-group\">
\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"input_model_search\" class=\"form-control\" onkeyup=\"modelsUpdateUl()\" autocomplete=\"off\" placeholder=\"Cerca modello...\">
\t\t\t\t\t\t\t\t\t<ul id=\"ul_models\" class=\"ul_models pos_abs m_b_none\" style=\"list-style: none; display:none\"></ul>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div id=\"divErrorModel\">
\t\t\t\t\t\t\t\t\t<select class=\"form-control form-select\" id=\"select_product_model\" name=\"productModel\">
\t\t\t\t\t\t\t\t\t\t<option></option>
\t\t\t\t\t\t\t\t\t\t{% for model in productModels %}
\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ model.id }}\">{{ model.name }}</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('model')\">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\tvar buttonModel = document.getElementById('button_' + index + '_model');
\t\t{% if warehouse.headquarter %}
\t\t\tvar buttonPrint = document.getElementById('button_' + index + '_print');
\t\t{% endif %}
\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\t{% if warehouse.headquarter %}
\t\t\t\tbuttonPrint.className = \"button button-3d button-mini button-green f_right m_b_10p\";
\t\t\t\tbuttonPrint.href = \"javascript: sendAction('print', \" + index + \", '\" + tab + \"')\";
\t\t\t{% endif %}
\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// buttonModel uguale a buttonCondition solo per s_to_manage
\t\t\t\tbuttonModel.className = \"button button-3d button-mini button-green f_right m_b_10p\";
\t\t\t\tbuttonModel.href = \"javascript: sendAction('model', \" + 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\t{% if warehouse.headquarter %}
\t\t\t\tbuttonPrint.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
\t\t\t\tbuttonPrint.href = \"javascript: void(0)\";
\t\t\t{% endif %}
\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\tbuttonModel.className = \"button button-3d button-mini button-grey f_right m_b_10p\";
\t\t\t\tbuttonModel.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 'print':
\t\t\t\tdocument.getElementById('printStocksIds').value = array;
\t\t\t\tdocument.getElementById('printAction').value = action;
\t\t\t\t\$('#stockPrintModal').modal({backdrop: 'static', keyboard: false}).modal(\"show\");
\t\t\t\tbreak;
\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 'model':
\t\t\t\tdocument.getElementById('modelAction').value = action;
\t\t\t\tdocument.getElementById('modelStocksIds').value = array;
\t\t\t\tswitch(index){
\t\t\t\t\tcase 0: document.getElementById('stockTab').value = 'to_manage'; break;
\t\t\t\t\tdefault: break;
\t\t\t\t}
\t\t\t\t\$('#stockModelModal').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 modelsUpdateUl(){
\t\tvar modelName = document.getElementById(\"input_model_search\").value;
\t\tif(modelName != null && modelName != \"\"){
\t\t\t\$.post(\"{{ path ('user_product_model_name_updates') }}\", {modelName: modelName}, function(response){
\t\t\t\tif(response.code == 200 && response.success){
\t\t\t\t\tvar ul = document.getElementById(\"ul_models\");
\t\t\t\t\tul.innerHTML = \"\";
\t\t\t\t\tvar values = JSON.parse(response.values);
\t\t\t\t\tvar max = values.length;
\t\t\t\t\tif(values.length > 10)
\t\t\t\t\t\tmax = 10;
\t\t\t\t\tfor(i=0; i<max; i++){
\t\t\t\t\t\tvar li = document.createElement(\"li\");
\t\t\t\t\t\tli.id = \"li_model_\" + i;
\t\t\t\t\t\tli.innerHTML = values[i]['name'];
\t\t\t\t\t\tli.setAttribute(\"onclick\", \"setModel(\" + values[i]['id'] + \", '\" + values[i]['name'].replace(/'/g, \"\\\\'\") + \"')\");
\t\t\t\t\t\tul.appendChild(li);
\t\t\t\t\t}
\t\t\t\t\tif(max > 0){
\t\t\t\t\t\tif(max == 1){
\t\t\t\t\t\t\tdocument.getElementById(\"li_model_0\").click();
\t\t\t\t\t\t\tul.style.display = \"none\";
\t\t\t\t\t\t}
\t\t\t\t\t\telse
\t\t\t\t\t\t\tul.style.display = \"block\";
\t\t\t\t\t}
\t\t\t\t\telse
\t\t\t\t\t\tul.style.display = \"none\";
\t\t\t\t}
\t\t\t}, \"json\");
\t\t}
\t}
\tfunction setModel(id, name) {
\t\tvar select = document.getElementById(\"select_product_model\");
\t\twhile (select.options.length > 1) {
\t\t\tselect.remove(1);
\t\t}
\t\tvar option = new Option(name, id, true, true);
\t\tselect.options.add(option);
\t\tselect.value = id;
\t\tdocument.getElementById(\"ul_models\").style.display = \"none\";
\t\tdocument.getElementById(\"input_model_search\").value = name;
\t}
\tfunction checkSubmit(action){
\t\tswitch(action){
\t\t\tcase 'print':
\t\t\t\tif(document.getElementById('select_supplier').value != 0){
\t\t\t\t\t\$('#formPrint').submit();
\t\t\t\t\t\$('#stockPrintModal').modal(\"hide\");
\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 '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\tcase 'model':
\t\t\t\tif(document.getElementById('select_product_model').value != 0){
\t\t\t\t\ttriggerLoading();
\t\t\t\t\t\$('#formModel').submit();
\t\t\t\t}
\t\t\t\telse{
\t\t\t\t\tvar divError = document.getElementById('divErrorModel');
\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\tdocument.getElementById('div_send_stock_order').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\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_stock_order').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('div_send_stock_order').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");
}
}