commit compras 2711
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-27 13:49:31 +02:00
parent dc73540558
commit e709d900d1
81 changed files with 5352 additions and 107 deletions
+10
View File
@@ -35,12 +35,14 @@ export default function OrderShow({
orderCancellation,
snapshotComplete = true,
orderPartsSources = [],
canAmendOrderParts = false,
}: {
order: PurchaseOrder;
history: History[];
orderCancellation?: OrderCancellationState;
snapshotComplete?: boolean;
orderPartsSources?: OrderPartFrame[];
canAmendOrderParts?: boolean;
}) {
const snapshot = order.snapshot;
if (!snapshotComplete) {
@@ -160,6 +162,14 @@ export default function OrderShow({
' Regras de aprovação provisórias.'}
</div>
<OrderPartsSummary sources={orderPartsSources} />
{canAmendOrderParts && (
<Link
className="underline"
href={`/ordens/${order.id}/reafectacao`}
>
Conferir ou reafectar imputações por Finanças
</Link>
)}
<ImportTariffSummary records={snapshot.import_tariffs} />
<div className="grid gap-6 md:grid-cols-2">
{snapshot.investment_rules && (