@@ -677,6 +677,15 @@ export function activeProcurementEntry(
|
||||
url: string,
|
||||
): string | undefined {
|
||||
const current = new URL(url, 'http://local');
|
||||
if (
|
||||
/^\/afectacoes-fornecedores\/\d+\/imputacao(?:\/|$)/.test(
|
||||
current.pathname,
|
||||
) &&
|
||||
groups.some((group) =>
|
||||
group.entries.some((entry) => entry.id === 'supplier_settlements'),
|
||||
)
|
||||
)
|
||||
return 'supplier_settlements';
|
||||
if (
|
||||
(current.pathname === '/compras/acordos/vigencia' ||
|
||||
(current.pathname === '/compras/fornecimento' &&
|
||||
|
||||
Reference in New Issue
Block a user