mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 17:38:12 +00:00
add goverment booking
This commit is contained in:
@@ -157,10 +157,14 @@ export class ContractViewModelBuilder {
|
||||
pricing,
|
||||
rateSchedule,
|
||||
signatures,
|
||||
canSignCustomer:
|
||||
booking.status === 'CONTRACT_READY' && !hasCustomer,
|
||||
canSignStaff:
|
||||
booking.status === 'SIGNED_CUSTOMER' && hasCustomer && !hasStaff,
|
||||
// Government contracts are generated at creation and signable at any
|
||||
// time, in any order — no status gate, no customer-first sequencing.
|
||||
canSignCustomer: booking.isGovernment
|
||||
? !hasCustomer
|
||||
: booking.status === 'CONTRACT_READY' && !hasCustomer,
|
||||
canSignStaff: booking.isGovernment
|
||||
? !hasStaff
|
||||
: booking.status === 'SIGNED_CUSTOMER' && hasCustomer && !hasStaff,
|
||||
hasContractDocument: hasContractFile,
|
||||
hasCustomerSignature: hasCustomer,
|
||||
hasStaffSignature: hasStaff,
|
||||
|
||||
Reference in New Issue
Block a user