@@ -79,6 +79,7 @@ function ComparisonContent({
|
||||
exchangeRates = [],
|
||||
exchangeAvailable = false,
|
||||
canRecordExchange = false,
|
||||
urgentQuotationReady = false,
|
||||
}: {
|
||||
requisition: {
|
||||
id: number;
|
||||
@@ -99,6 +100,7 @@ function ComparisonContent({
|
||||
exchangeRates?: ExchangeBasis[];
|
||||
exchangeAvailable?: boolean;
|
||||
canRecordExchange?: boolean;
|
||||
urgentQuotationReady?: boolean;
|
||||
}) {
|
||||
const actor = usePage().props.auth?.user;
|
||||
const historyKey = `quotation-preparation:${actor?.tenant_id}:${actor?.id}:${requisition.id}:${requisition.process_version ?? 0}`;
|
||||
@@ -192,6 +194,15 @@ function ComparisonContent({
|
||||
<Link className="text-sm text-teal-700" href="/conflitos">
|
||||
Registar ou consultar a minha declaração de conflito
|
||||
</Link>
|
||||
{urgentQuotationReady &&
|
||||
comparisonPolicy.urgent_minimum_proposals !== undefined && (
|
||||
<Link
|
||||
className="text-sm text-teal-700"
|
||||
href={`/requisicoes/${requisition.id}/urgencia-stock`}
|
||||
>
|
||||
Stock mínimo das cotações urgentes
|
||||
</Link>
|
||||
)}
|
||||
<div
|
||||
className={`rounded-xl border p-5 text-sm ${ready ? 'border-teal-200 bg-teal-50 text-teal-900' : 'border-amber-200 bg-amber-50 text-amber-900'}`}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user