@@ -7,6 +7,8 @@ import type { AiPreparation } from '@/components/ai-preparation-preview';
|
||||
import { ComparisonPolicySummary } from '@/components/comparison-policy-summary';
|
||||
import type { ComparisonPolicy } from '@/components/comparison-policy-summary';
|
||||
import { QuotationCommercialTerms } from '@/components/quotation-commercial-terms';
|
||||
import { ExchangeSummary } from '@/components/quotation-exchange-panel';
|
||||
import type { ExchangeBasis } from '@/components/quotation-exchange-panel';
|
||||
import type { CommercialTerms } from '@/components/quotation-commercial-terms';
|
||||
import { PageTitle, Panel, Status } from '@/components/procurement';
|
||||
import { Button } from '@/components/ui/button';
|
||||
@@ -33,6 +35,12 @@ type Analysis = {
|
||||
answers: Answer[];
|
||||
};
|
||||
type ComparisonRow = {
|
||||
exchange_basis?: ExchangeBasis;
|
||||
reference_amounts?: {
|
||||
subtotal_minor: number;
|
||||
tax_minor: number;
|
||||
total_minor: number;
|
||||
} | null;
|
||||
commercial_terms?: CommercialTerms | null;
|
||||
id: number;
|
||||
reference: string;
|
||||
@@ -208,6 +216,11 @@ export default function ReviewReport({
|
||||
<Printer className="size-4" />
|
||||
Imprimir esta consulta
|
||||
</Button>
|
||||
<Button asChild variant="outline">
|
||||
<a href={`/requisicoes/${r.id}/relatorio.csv`}>
|
||||
Exportar conferência completa (CSV)
|
||||
</a>
|
||||
</Button>
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
@@ -399,7 +412,24 @@ export default function ReviewReport({
|
||||
</strong>
|
||||
<QuotationCommercialTerms
|
||||
terms={row.commercial_terms}
|
||||
currency={row.currency}
|
||||
/>
|
||||
{row.exchange_basis && (
|
||||
<ExchangeSummary
|
||||
basis={row.exchange_basis}
|
||||
/>
|
||||
)}
|
||||
{row.reference_amounts && (
|
||||
<p className="text-sm">
|
||||
Referência para comparação e
|
||||
alçadas:{' '}
|
||||
{money(
|
||||
row.reference_amounts
|
||||
.total_minor,
|
||||
'MZN',
|
||||
)}
|
||||
</p>
|
||||
)}
|
||||
</section>
|
||||
))}
|
||||
{report.comparison.rows.map((row) => (
|
||||
|
||||
Reference in New Issue
Block a user