This commit is contained in:
@@ -604,8 +604,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
showWorkOrderReportSelector() {
|
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) {
|
switch (this.obj.eventType) {
|
||||||
|
case 4: //WorkorderStatusChange = 4
|
||||||
case 30: //workorder completed
|
case 30: //workorder completed
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
@@ -613,7 +614,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
showQuoteReportSelector() {
|
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) {
|
switch (this.obj.eventType) {
|
||||||
case 9: //quote status changed
|
case 9: //quote status changed
|
||||||
return true;
|
return true;
|
||||||
@@ -913,14 +914,13 @@ export default {
|
|||||||
try {
|
try {
|
||||||
vm.formState.loading = true;
|
vm.formState.loading = true;
|
||||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
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
|
//don't include invalid settings (could be set by duplicate option)
|
||||||
switch (vm.obj.eventType) {
|
if (
|
||||||
case 9:
|
!this.showWorkOrderReportSelector &&
|
||||||
case 30:
|
!this.showQuoteReportSelector
|
||||||
break;
|
) {
|
||||||
default:
|
vm.obj.linkReportId = null;
|
||||||
vm.obj.linkReportId = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!this.showAgeValue) {
|
if (!this.showAgeValue) {
|
||||||
|
|||||||
Reference in New Issue
Block a user