norentIfPaymentDenied to noRentIfPaymentUncertain
This commit is contained in:
parent
cf64a73bbf
commit
19dced1ec5
@ -201,9 +201,9 @@ fact noPhantomResRent {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// No rent is possible if the reservation payment was denied
|
// No rent is possible if the reservation payment was denied or pending
|
||||||
fact noRentIfPaymentDenied {
|
fact noRentIfPaymentUncertain {
|
||||||
(all c : Car, res : Reservation| c.status = INUSE and res.car = c and res.paymentStatus = DENIED implies
|
(all c : Car, res : Reservation| c.status = INUSE and res.car = c and (res.paymentStatus = DENIED or res.paymentStatus = PENDING) implies
|
||||||
(no ren : Rent | ren.car = c)
|
(no ren : Rent | ren.car = c)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user