mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-07 22:25:42 +00:00
Implement reject step functionality for contract approval process and enhance contract editing experience
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user