From b145c6af0a8fa31e221a256208aea5d719e5d62c Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 6 Aug 2021 15:42:56 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 12 ++---------- ayanova/src/api/gzform.js | 10 ++++++++-- ayanova/src/views/svc-unit.vue | 32 +++++++++++++------------------- 3 files changed, 23 insertions(+), 31 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 27570e8a..a8167ad8 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -508,20 +508,12 @@ todo:2 many biz objects are not using new PUT methodology ######################################################################################################################## -CURRENTLY DOING: reseed failing due to new objects and order of db erase etc +CURRENTLY DOING: next item in list misc below todo MISC: - Errors in erase dbutil code if there is already data and trigger seed from UI - Exception thrown: 'System.Exception' in AyaNova.dll: 'Seeder::SeedKnownObjects error creating quote status -LT:ErrorAPI2206, field: Name' - - check that jobs don't run during seeding - see if server jobs are staggered (i.e. don't run at the same time) - maybe set the repeat interval off by a small amount so they can't sync up? - or maybe they just run sequentially from the initial trigger anyway? - But even so, staggering the repeat interval will mean less jobs running in the same overall job cycle + case 3916 many fields not hiding due to probably not checked for or using wrong field key ITEMS section of workorder form needs to stand out somehow more, maybe a splash of color in the icon or something workorderitemloan field in loanunit?? diff --git a/ayanova/src/api/gzform.js b/ayanova/src/api/gzform.js index 84b0f378..5fcfb4aa 100644 --- a/ayanova/src/api/gzform.js +++ b/ayanova/src/api/gzform.js @@ -747,8 +747,9 @@ export default { } } - let template = + const template = window.$gz.store.state.formCustomTemplate[vm.formCustomTemplateKey]; + if (template === undefined) { return true; } @@ -756,10 +757,15 @@ export default { //this is a collection of both custom field definitions and standard form fields that are required //since all names are unique can just filter out the one we need by name which will inherently ignore custom fields by default - let templateItem = template.find( + const templateItem = template.find( z => z.fld.toLowerCase() == formCustomTemplateFieldName.toLowerCase() ); + if (window.$gz.dev && !templateItem) { + console.log( + `DEV ERROR: FORM FIELD NOT IN TEMPLATE: "${formCustomTemplateFieldName}"` + ); + } if (templateItem === undefined || templateItem.hide !== true) { return true; } diff --git a/ayanova/src/views/svc-unit.vue b/ayanova/src/views/svc-unit.vue index 90de5e41..87dac2fe 100644 --- a/ayanova/src/views/svc-unit.vue +++ b/ayanova/src/views/svc-unit.vue @@ -25,13 +25,7 @@ > - + -->