@@ -52,7 +52,11 @@ export function ProcurementPaymentInsights({
|
||||
<p className="text-sm text-muted-foreground">
|
||||
{data.from ?? 'Desde o início'} —{' '}
|
||||
{data.to ?? 'Até à data actual'}.{' '}
|
||||
{data.coverage.confirmed_payments} pagamentos confirmados.
|
||||
{data.coverage.confirmed_payments}{' '}
|
||||
{data.coverage.confirmed_payments === 1
|
||||
? 'pagamento confirmado'
|
||||
: 'pagamentos confirmados'}
|
||||
.
|
||||
</p>
|
||||
<p className="mt-2 text-sm text-muted-foreground">
|
||||
Cada factura é considerada uma única vez, mesmo quando a ordem
|
||||
@@ -71,7 +75,8 @@ export function ProcurementPaymentInsights({
|
||||
return (
|
||||
<p key={row.currency} className="mt-2 font-medium">
|
||||
{digits.slice(0, -2)},{digits.slice(-2)} {row.currency}{' '}
|
||||
· {row.count} pagamentos
|
||||
· {row.count}{' '}
|
||||
{row.count === 1 ? 'pagamento' : 'pagamentos'}
|
||||
</p>
|
||||
);
|
||||
})}
|
||||
|
||||
@@ -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' &&
|
||||
|
||||
@@ -110,7 +110,7 @@ export default function ProcurementReports({
|
||||
return (
|
||||
<>
|
||||
<Head title="Relatórios de compras" />
|
||||
<div className="sgc-wide-report mx-auto max-w-7xl space-y-6 px-5 py-8 lg:px-8">
|
||||
<div className="sgc-wide-report sgc-procurement-report mx-auto max-w-7xl space-y-6 px-5 py-8 lg:px-8">
|
||||
<PageTitle
|
||||
eyebrow="Consulta e relatórios"
|
||||
title="Relatórios de compras"
|
||||
|
||||
Reference in New Issue
Block a user