mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 05:18:11 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user