@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user