commit melhorias compras4
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-11-22 16:28:03 +02:00
parent efd97e265b
commit 36dcfdf00c
118 changed files with 6042 additions and 92 deletions
@@ -10,6 +10,10 @@ import { Button } from '@/components/ui/button';
import { date, statusLabels } from '@/types/procurement';
import { ProcurementOperationalInsights } from '@/components/procurement-operational-insights';
import type { ProcurementInsights } from '@/components/procurement-operational-insights';
import {
ProcurementPayableInsights,
type PayableInsights,
} from '@/components/procurement-payable-insights';
type Row = {
id: number;
@@ -43,6 +47,7 @@ export default function ProcurementReports({
departments,
generatedAt,
insights,
payableInsights,
}: {
records: {
data: Row[];
@@ -57,6 +62,7 @@ export default function ProcurementReports({
departments: { id: number; name: string }[];
generatedAt: string;
insights?: ProcurementInsights;
payableInsights?: PayableInsights | null;
}) {
const form = useForm({
search: filters.search ?? '',
@@ -101,6 +107,12 @@ export default function ProcurementReports({
withoutOrderHref={`/relatorios?${orderParams}`}
/>
)}
{payableInsights && (
<ProcurementPayableInsights
data={payableInsights}
exportHref={`/relatorios/obrigacoes.csv?${params}`}
/>
)}
<Panel
title="Filtrar requisições"
description="O período refere-se à criação da requisição. Os resultados respeitam o seu acesso à empresa e ao departamento."