This commit is contained in:
@@ -234,6 +234,10 @@ todo: start testing with real licensing scheme ("notfound")
|
|||||||
|
|
||||||
todo: notify on user login?
|
todo: notify on user login?
|
||||||
|
|
||||||
|
todo: report template NAME uniqueness validation rule: can this be unique by ayatype only?
|
||||||
|
seems weird that no two reports of any kind can have same name
|
||||||
|
also the default comes up as "report" sb blank with pre-broken rule saying name is required or at least uniquify it with a timestamp or something
|
||||||
|
|
||||||
todo: tag based notifications need to be rechecked if tags change, not just the field(s) in question for that notification
|
todo: tag based notifications need to be rechecked if tags change, not just the field(s) in question for that notification
|
||||||
for example, user makes a workorder with closeby date and tags but tags don't match when saves
|
for example, user makes a workorder with closeby date and tags but tags don't match when saves
|
||||||
user realizes missed a critical tag, adds it and saves; notification should then check again if can apply whatever it was
|
user realizes missed a critical tag, adds it and saves; notification should then check again if can apply whatever it was
|
||||||
|
|||||||
@@ -80,6 +80,21 @@
|
|||||||
limit-selection-to="inside"
|
limit-selection-to="inside"
|
||||||
></gz-role-picker>
|
></gz-role-picker>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<v-col v-if="showIncludeDescendants" cols="12" sm="6" lg="4" xl="3">
|
||||||
|
<v-checkbox
|
||||||
|
v-model="obj.includeWoItemDescendants"
|
||||||
|
:readonly="formState.readOnly"
|
||||||
|
:label="$ay.t('ReportIncludeAllWorkOrderItemDescendants')"
|
||||||
|
ref="includeWoItemDescendants"
|
||||||
|
data-cy="includeWoItemDescendants"
|
||||||
|
:error-messages="
|
||||||
|
form().serverErrors(this, 'includeWoItemDescendants')
|
||||||
|
"
|
||||||
|
@change="fieldValueChanged('includeWoItemDescendants')"
|
||||||
|
></v-checkbox>
|
||||||
|
</v-col>
|
||||||
|
|
||||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||||
<v-checkbox
|
<v-checkbox
|
||||||
v-model="obj.active"
|
v-model="obj.active"
|
||||||
@@ -450,6 +465,7 @@ export default {
|
|||||||
id: 0,
|
id: 0,
|
||||||
concurrency: 0,
|
concurrency: 0,
|
||||||
name: "report",
|
name: "report",
|
||||||
|
includeWoItemDescendants: false,
|
||||||
active: true,
|
active: true,
|
||||||
notes: "",
|
notes: "",
|
||||||
roles: 124927, //all except customers
|
roles: 124927, //all except customers
|
||||||
@@ -583,6 +599,25 @@ Handlebars.registerHelper('loud', function (aString) {
|
|||||||
deep: true
|
deep: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
showIncludeDescendants: function() {
|
||||||
|
switch (this.obj.aType) {
|
||||||
|
case window.$gz.type.WorkOrderItemExpense:
|
||||||
|
case window.$gz.type.WorkOrderItemLabor:
|
||||||
|
case window.$gz.type.WorkOrderItemLoan:
|
||||||
|
case window.$gz.type.WorkOrderItemPart:
|
||||||
|
case window.$gz.type.WorkOrderItemPartRequest:
|
||||||
|
case window.$gz.type.WorkOrderItemScheduledUser:
|
||||||
|
case window.$gz.type.WorkOrderItemTask:
|
||||||
|
case window.$gz.type.WorkOrderItemTravel:
|
||||||
|
case window.$gz.type.WorkOrderItemUnit:
|
||||||
|
case window.$gz.type.WorkOrderItemOutsideService:
|
||||||
|
return true;
|
||||||
|
default:
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//alternate method, one editor with tabs example
|
//alternate method, one editor with tabs example
|
||||||
//probably should do this way
|
//probably should do this way
|
||||||
|
|||||||
Reference in New Issue
Block a user