Skip to content

Commit 63e01c6

Browse files
committed
align with xtravels
1 parent 792c804 commit 63e01c6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

srv/travel-flows.cds

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
using { TravelService.Travels } from './travel-service';
22

3-
// Note: The @flow.status annotation makes that field @readonly by default
4-
annotate Travels with @flow.status: (Status) actions {
5-
deductDiscount @from: [ #Open ]; // can only be called on #Open travels
3+
annotate Travels with @flow.status: Status actions {
4+
deductDiscount @from: [ #Open ]; // restricted #Open travels
65
acceptTravel @from: [ #Open ] @to: #Accepted;
76
rejectTravel @from: [ #Open ] @to: #Rejected;
87
reopenTravel @from: [ #Rejected, #Accepted ] @to: #Open;

0 commit comments

Comments
 (0)