add contract hazard declaration, DO collection dates, and booking request currency migrations; implement article body diff component and integrate into contract revision timeline

This commit is contained in:
Marshal
2026-07-26 19:09:01 +00:00
parent af85f20789
commit 5fa012cad3
10 changed files with 262 additions and 6 deletions

View File

@@ -62,6 +62,7 @@ export interface ContractDocumentEditorModalProps {
onAccept?: (
validityDays: number,
snapshot: Freight.IContractDocumentSnapshot,
window: { validFrom: string; validUntil: string },
) => void;
onSaveEdit?: (snapshot: Freight.IContractDocumentSnapshot) => void;
}
@@ -184,7 +185,10 @@ export function ContractDocumentEditorModal({
(validityEnd.getTime() - validityStart.getTime()) / (24 * 60 * 60 * 1000),
);
if (days <= 0) return;
onAccept?.(days, snapshot);
onAccept?.(days, snapshot, {
validFrom: validityStart.toISOString(),
validUntil: validityEnd.toISOString(),
});
} else {
onSaveEdit?.(snapshot);
}