File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,20 @@ module default {
51
51
property firstScripture := (
52
52
exists .language.firstScriptureEngagement
53
53
);
54
-
54
+
55
+ trigger denyDuplicateFirstScriptureBasedOnExternal after insert , update for each do (
56
+ assert (
57
+ not __new__ .firstScripture or not exists __new__ .language.hasExternalFirstScripture,
58
+ message := " First scripture has already been marked as having been done externally"
59
+ )
60
+ );
61
+ trigger denyDuplicateFirstScriptureBasedOnOtherEngagement after insert , update for each do (
62
+ assert (
63
+ not exists (select __new__ .language.engagements filter .firstScripture),
64
+ message := " Another engagement has already been marked as having done the first scripture"
65
+ )
66
+ );
67
+
55
68
required lukePartnership: bool {
56
69
default := false ;
57
70
};
You can’t perform that action at this time.
0 commit comments