mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 07:38:10 +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:
@@ -138,11 +138,14 @@ export function useContractMutations(contractId: string) {
|
||||
mutationFn: (payload: {
|
||||
validityDays: number;
|
||||
documentSnapshot?: Freight.IContractDocumentSnapshot;
|
||||
validFrom?: string;
|
||||
validUntil?: string;
|
||||
}) =>
|
||||
contractsService.staffAccept(
|
||||
contractId,
|
||||
payload.validityDays,
|
||||
payload.documentSnapshot,
|
||||
{ validFrom: payload.validFrom, validUntil: payload.validUntil },
|
||||
),
|
||||
onSuccess: (data) => onSuccess(data, "Contract accepted for approval"),
|
||||
onError: (error) => toast.error(extractErrorMessage(error, "Failed to accept contract")),
|
||||
|
||||
Reference in New Issue
Block a user