From ac3fc49fc44ea9a06a2d920661e68cb74ad8684d Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 17 May 2021 22:46:48 +0000 Subject: [PATCH] --- ayanova/src/views/svc-workorder.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index 691bcf8d..b506d126 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -454,6 +454,7 @@ export default { //some ops require a full refresh like ones that trigger contract changes let forceFullRefresh = false; let contractIdBeforeSave = vm.obj.contractId; + console.log("ContractIdBeforeSave=", contractIdBeforeSave); //reset error object this.saveResult.fatal = false; @@ -524,6 +525,7 @@ export default { }); } else { //check if full refresh is necessary + console.log("ContractIdAfterSave=", vm.obj.contractId); if (vm.obj.contractId != contractIdBeforeSave) { //there may be others which is why I'm doing it this way with the extra variable forceFullRefresh = true; @@ -661,6 +663,7 @@ async function saveHeader(vm) { //update any server changed fields vm.obj.concurrency = res.data.concurrency; vm.obj.isDirty = false; + vm.obj.contractId = res.data.contractId; //may or may not have changed at server, this will ensure entire ui gets updated if it has as all prices may have changed and other stuff // //this sets 'o' to all values in assigned *except* the ones itemized with removedKey which is a fake key and just used for this trick to work // //as undefined won't