commit de compras
This commit is contained in:
@@ -27,7 +27,7 @@ final class RequireCompanyContext
|
||||
|
||||
app(\App\Shared\Context\RequireModuleContext::class)->check($request, $this->context);
|
||||
$response = $next($request);
|
||||
if ($request->isMethod('GET') && in_array($request->path(), ['supplier-payables','supplier-payments'], true) && $response->isSuccessful()) {
|
||||
if ($request->isMethod('GET') && in_array($request->path(), ['supplier-payables','supplier-payments','purchasing/internal-requisitions'], true) && $response->isSuccessful()) {
|
||||
$bar = '<nav aria-label="Contexto SGF" style="padding:12px;background:#edf4f3;color:#163e38"><strong>Módulo activo: Compras</strong> · <a href="/" data-sgf-module-back>Voltar à navegação SGF</a></nav><script src="/sgf-module-context.js" defer></script>';
|
||||
$response->setContent(preg_replace('/(<body\b[^>]*>)/i', '$1'.$bar, $response->getContent(), 1));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user