norentIfPaymentDenied to noRentIfPaymentUncertain

This commit is contained in:
Giulio De Pasquale 2017-01-22 16:42:03 +01:00
parent cf64a73bbf
commit 19dced1ec5

View File

@ -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)
) )
} }