No duplicate payments, alloy
This commit is contained in:
parent
5ef9863bf3
commit
b494e177c2
@ -266,6 +266,12 @@ fact pendingPaymentForActiveRequest {
|
|||||||
(all r : RMSS | r.status = ACTIVE implies r.paymentStatus = PENDING)
|
(all r : RMSS | r.status = ACTIVE implies r.paymentStatus = PENDING)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// There are no duplicate payments
|
||||||
|
fact noDuplicatePayments {
|
||||||
|
(all r1, r2 : RMSS | r1 != r2 and r1.paymentStatus = PENDING and r2.paymentStatus = PENDING implies
|
||||||
|
(all p1, p2 : Payment | p1 != p2 and p1 in r1.events and p2 in r2.events)
|
||||||
|
)
|
||||||
|
}
|
||||||
// No Multiple Users for the same Request
|
// No Multiple Users for the same Request
|
||||||
fact noMultipleUsersForTheSameRequest {
|
fact noMultipleUsersForTheSameRequest {
|
||||||
no disj u1, u2 : User | u1.request & u2.request != none
|
no disj u1, u2 : User | u1.request & u2.request != none
|
||||||
|
Loading…
Reference in New Issue
Block a user