@@ -1,4 +1,8 @@
|
||||
import { Head, Link, useForm } from '@inertiajs/react';
|
||||
import {
|
||||
ProcurementPaymentInsights,
|
||||
type PaymentInsights,
|
||||
} from '@/components/procurement-payment-insights';
|
||||
import { Download } from 'lucide-react';
|
||||
import {
|
||||
PageTitle,
|
||||
@@ -48,6 +52,7 @@ export default function ProcurementReports({
|
||||
generatedAt,
|
||||
insights,
|
||||
payableInsights,
|
||||
paymentInsights,
|
||||
}: {
|
||||
records: {
|
||||
data: Row[];
|
||||
@@ -63,6 +68,7 @@ export default function ProcurementReports({
|
||||
generatedAt: string;
|
||||
insights?: ProcurementInsights;
|
||||
payableInsights?: PayableInsights | null;
|
||||
paymentInsights?: PaymentInsights | null;
|
||||
}) {
|
||||
const form = useForm({
|
||||
search: filters.search ?? '',
|
||||
@@ -113,6 +119,12 @@ export default function ProcurementReports({
|
||||
exportHref={`/relatorios/obrigacoes.csv?${params}`}
|
||||
/>
|
||||
)}
|
||||
{paymentInsights && (
|
||||
<ProcurementPaymentInsights
|
||||
data={paymentInsights}
|
||||
exportHref={`/relatorios/despesa.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