From dc15ccaee5fe4cc0c285a83423885c7ab4f49c92 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 10 Aug 2021 18:49:11 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 25 +++++++++----- ayanova/src/api/gzutil.js | 33 ++++++++++--------- .../src/components/work-order-signature.vue | 4 +-- 3 files changed, 37 insertions(+), 25 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 84e4efa2..de320ef8 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -11,7 +11,7 @@ Aug - migrate workorders + migrate quotes migrate pm Misc "blizzard" @@ -75,11 +75,6 @@ note: Inventory Migration plan todo:1 IMPORT workorders FROM V7 needs to be coded once the cases are completed so it can be tested thoroughly and ongoing note that v7 wostatus needs to be dual imported into both new wostate and new woitemstatus separately -todo: Joyce suggested making it optional to have the import-v7 tag TAGWITH BELOW SOLVES THIS ISSUE - think it over and the pros and cons of having it, maybe some notes are there on it - I might have been thinking it's a quick way to mass delete any old stuff no longer wanted in the new version for users - or maybe to know an item was imported in case of support maybe or issue? -todo:1 Add a "tag with" field that defaults to v7-import in the migrator UI selections so that users can set what they want or clear it entirely todo: Import pm switched to negative generate day of week collection from v7 single chosen dow so flip that on import and block out all days but the selected day and they can adjust if they wish @@ -515,7 +510,17 @@ todo:2 many biz objects are not using new PUT methodology ######################################################################################################################## -CURRENTLY DOING: +CURRENTLY DOING: Import workorders v8 migrate + +todo: + Custom field export time value is off though date is accurate + v8migrate sb wait cursor on initial login in case can't reach server so it's obvious it's running + signature convert + + + "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNTUyIDEyMCIgd2lkdGg9IjU1MiIgaGVpZ2h0PSIxMjAiPjxwYXRoIGQ9Ik0gNzkuNDAwLDE1LjMwMCBDIDgyLjIzNiwxNy4zMjYgODIuNDAwLDE2LjgwMCA4NS40MDAsMTguMzAwIiBzdHJva2Utd2lkdGg9IjUuNTI1IiBzdHJva2U9InJnYigwLCAwLCAwKSIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIj48L3BhdGg+PHBhdGggZD0iTSA4NS40MDAsMTguMzAwIEMgODguODg0LDE5LjAzMCA4OC43MzYsMTkuMzI2IDkyLjQwMCwxOS4zMDAiIHN0cm9rZS13a…2U9InJnYigwLCAwLCAwKSIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIj48L3BhdGg+PHBhdGggZD0iTSA1MTAuNDAwLDkxLjMwMCBDIDUxMy43MjUsOTMuNzY5IDUxMy40NDgsOTMuODQwIDUxNy40MDAsOTUuMzAwIiBzdHJva2Utd2lkdGg9IjQuODg4IiBzdHJva2U9InJnYigwLCAwLCAwKSIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIj48L3BhdGg+PHBhdGggZD0iTSA1MTcuNDAwLDk1LjMwMCBDIDUxOS44NzAsOTYuMTA1IDUxOS43MjUsOTYuMjY5IDUyMi40MDAsOTYuMzAwIiBzdHJva2Utd2lkdGg9IjUuMTIxIiBzdHJva2U9InJnYigwLCAwLCAwKSIgZmlsbD0ibm9uZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIj48L3BhdGg+PC9zdmc+" + + ============================ @@ -854,5 +859,9 @@ BUILD 118 filters the loan item picklist so that only available items can be selected Made it a default column in loan item datalist to show which workorder id it's currently loaned out to existing menu item in workorderitemloan edit form is available to see all workorder items this loaner was selected on +- v8 migrate + Made the v7-import tag an optional field users can set to anything or nothing (still want to keep the ability because many users may find it useful to be able to know which objects were imported or for mass deletion) + Workorder export implemented + + - diff --git a/ayanova/src/api/gzutil.js b/ayanova/src/api/gzutil.js index 0dffb592..f44df167 100644 --- a/ayanova/src/api/gzutil.js +++ b/ayanova/src/api/gzutil.js @@ -659,22 +659,25 @@ export default { // is string replacement for lodash // https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_isString // - isString: function(str) { - //modified from above, due to bug (I think) - //posted case here: https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/issues/304 - if (str == null) { - return false; - } + // isString: function(str) { + // //modified from above, due to bug (I think) + // //posted case here: https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore/issues/304 + // if (str == null) { + // return false; + // } - if (str == "") { - return true; - } - let temp = str.valueOf(); - if (typeof temp === "string") { - return true; - } else { - return false; - } + // if (str == "") {//another bug, if numeric this is true?! Using recommended method below + // return true; + // } + // let temp = str.valueOf(); + // if (typeof temp === "string") { + // return true; + // } else { + // return false; + // } + // }, + isString: function(str) { + return str != null && typeof str.valueOf() === "string"; }, /////////////////////////////////////////////// // diff --git a/ayanova/src/components/work-order-signature.vue b/ayanova/src/components/work-order-signature.vue index 628fb62a..0cfff157 100644 --- a/ayanova/src/components/work-order-signature.vue +++ b/ayanova/src/components/work-order-signature.vue @@ -164,13 +164,13 @@ export default { save() { let svg = this.$refs.sigCtrl.save("image/svg+xml"); if (this.$refs.sigCtrl.isEmpty()) { - console.log("IS EMPTY"); + //console.log("IS EMPTY"); svg = null; } this.setSig(svg); this.setCaptured(window.$gz.locale.nowUTC8601String()); this.setName(this.tempName); - console.log("SVG size IS ", svg == null ? 0 : svg.length); + //console.log("SVG size IS ", svg == null ? 0 : svg.length); this.value.isDirty = true; this.pvm.formState.dirty = true;