Implement reject step functionality for contract approval process and enhance contract editing experience

This commit is contained in:
Marshal
2026-07-07 08:56:44 +00:00
parent 75f30e2054
commit f4d28e77fa
5 changed files with 90 additions and 13 deletions

View File

@@ -117,6 +117,18 @@ export function deriveContractCustomerAction(
};
}
// Saved-but-not-submitted contract — send the customer back into the wizard to
// finish editing and submit it for review.
if (contract.status === "DRAFT" || contract.status === "RENEWAL_DRAFT") {
return {
type: "navigate",
label: "Continue draft",
to: `/contracts/${id}/edit`,
primary: true,
icon: PencilLine,
};
}
const payable = findPayableBookingForContract(id, bookings);
if (payable) {
return {