This commit is contained in:
@@ -604,8 +604,9 @@ export default {
|
||||
}
|
||||
},
|
||||
showWorkOrderReportSelector() {
|
||||
//## MUST ALSO UPDATE submit() check for reportable event if add here
|
||||
//## MUST ALSO UPDATE CoreJobCustomerNotify check for reportable event if add here
|
||||
switch (this.obj.eventType) {
|
||||
case 4: //WorkorderStatusChange = 4
|
||||
case 30: //workorder completed
|
||||
return true;
|
||||
default:
|
||||
@@ -613,7 +614,7 @@ export default {
|
||||
}
|
||||
},
|
||||
showQuoteReportSelector() {
|
||||
//## MUST ALSO UPDATE submit() check for reportable event if add here
|
||||
//## MUST ALSO UPDATE CoreJobCustomerNotify check for reportable event if add here
|
||||
switch (this.obj.eventType) {
|
||||
case 9: //quote status changed
|
||||
return true;
|
||||
@@ -913,14 +914,13 @@ export default {
|
||||
try {
|
||||
vm.formState.loading = true;
|
||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
||||
//don't send the report if it's not reportable (could be set by duplicate option from one that *is* reportable)
|
||||
//## MUST ALSO UPDATE CoreJobCustomerNotify check for reportable event if add here
|
||||
switch (vm.obj.eventType) {
|
||||
case 9:
|
||||
case 30:
|
||||
break;
|
||||
default:
|
||||
vm.obj.linkReportId = null;
|
||||
|
||||
//don't include invalid settings (could be set by duplicate option)
|
||||
if (
|
||||
!this.showWorkOrderReportSelector &&
|
||||
!this.showQuoteReportSelector
|
||||
) {
|
||||
vm.obj.linkReportId = null;
|
||||
}
|
||||
|
||||
if (!this.showAgeValue) {
|
||||
|
||||
Reference in New Issue
Block a user