We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 792c804 commit 63e01c6Copy full SHA for 63e01c6
srv/travel-flows.cds
@@ -1,8 +1,7 @@
1
using { TravelService.Travels } from './travel-service';
2
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
+annotate Travels with @flow.status: Status actions {
+ deductDiscount @from: [ #Open ]; // restricted #Open travels
6
acceptTravel @from: [ #Open ] @to: #Accepted;
7
rejectTravel @from: [ #Open ] @to: #Rejected;
8
reopenTravel @from: [ #Rejected, #Accepted ] @to: #Open;
0 commit comments