This commit is contained in:
@@ -602,6 +602,7 @@ export default {
|
||||
}
|
||||
},
|
||||
showWorkOrderReportSelector() {
|
||||
//## MUST ALSO UPDATE submit() check for reportable event if add here
|
||||
switch (this.obj.eventType) {
|
||||
case 30: //workorder completed
|
||||
return true;
|
||||
@@ -610,6 +611,7 @@ export default {
|
||||
}
|
||||
},
|
||||
showQuoteReportSelector() {
|
||||
//## MUST ALSO UPDATE submit() check for reportable event if add here
|
||||
switch (this.obj.eventType) {
|
||||
case 9: //quote status changed
|
||||
return true;
|
||||
@@ -909,9 +911,14 @@ export default {
|
||||
try {
|
||||
vm.formState.loading = true;
|
||||
window.$gz.form.deleteAllErrorBoxErrors(vm);
|
||||
//don't send the deliveryaddress if it's an in-app notification
|
||||
if (vm.obj.deliveryMethod == 1) {
|
||||
vm.obj.deliveryAddress = null;
|
||||
//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;
|
||||
}
|
||||
const res = await window.$gz.api.upsert(API_BASE_URL, vm.obj);
|
||||
if (res.error) {
|
||||
@@ -1167,7 +1174,10 @@ async function fetchTranslatedText() {
|
||||
"QuoteIntroduction",
|
||||
"QuoteQuoteRequestDate",
|
||||
"QuoteValidUntilDate",
|
||||
"EmailSubject"
|
||||
"EmailSubject",
|
||||
"CustomerServiceRequestRequestedBy",
|
||||
"CustomerServiceRequestCustomerReferenceNumber",
|
||||
"CustomerServiceRequestTitle"
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user