From fe8dcc779f945bdec63d2a9d0bb97225b484f260 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 17 Mar 2021 18:54:32 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 8 ++-- ayanova/src/api/errorhandler.js | 3 ++ .../src/views/ay-data-list-column-view.vue | 2 + ayanova/src/views/inv-purchase-order.vue | 40 ++++++++++++------- 4 files changed, 36 insertions(+), 17 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 557b5104..d4cca6e5 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -60,9 +60,8 @@ todo: v8 migrate additions .......................................................................................................... * todo JC misc list: -PartInventory data table errors out when click on column selector (see if others have same issue once figure out what the issue is) -PO form Hide serial field until an ID is set (i.e. don't show 0) -PO FOrm serial field read only unless superuser?? + + PO item to show part Name field as well but be hideable in customize form? number is always present, name optional? PO item not showing taxaviz and taxbviz @@ -957,6 +956,9 @@ build 105 memo read now flags correctly taxcode form has default of .05 in taxa, change to zero Default warehouse try to enter a tag bombs with error + PartInventory data table errors out when click on column selector + PO form Hide serial field until an ID is set (i.e. don't show 0) + PO FOrm serial field read only unless superuser - not changed Tag extension should have tag picker instead of empty field in cases where you are picking from existing tags diff --git a/ayanova/src/api/errorhandler.js b/ayanova/src/api/errorhandler.js index b0c0abe7..d646af8f 100644 --- a/ayanova/src/api/errorhandler.js +++ b/ayanova/src/api/errorhandler.js @@ -180,6 +180,9 @@ export default { // translate, log and return error // handleFormError(err, vm) { + if (window.$gz.dev) { + console.trace(err); + } //called inside forms when things go unexpectedly wrong dealWithError(decodeError(err, vm), vm); }, diff --git a/ayanova/src/views/ay-data-list-column-view.vue b/ayanova/src/views/ay-data-list-column-view.vue index 0a5b71c6..beb33906 100644 --- a/ayanova/src/views/ay-data-list-column-view.vue +++ b/ayanova/src/views/ay-data-list-column-view.vue @@ -105,6 +105,7 @@ export default { window.$gz.eventBus.$emit("menu-disable-item", FORM_KEY + ":save"); vm.formState.loading = false; } catch (err) { + // console.trace(err); vm.formState.ready = true; window.$gz.errorHandler.handleFormError(err, vm); } @@ -437,6 +438,7 @@ function initWorkingView(vm) { //de-lodash //let fld = window.$gz. _.find(vm.fieldDefinitions, ["fieldKey", lvItem.fld]); let fld = vm.fieldDefinitions.find(z => z.fieldKey == columns[i]); + let o = { key: fld.fieldKey, title: vm.$ay.t(fld.tKey), diff --git a/ayanova/src/views/inv-purchase-order.vue b/ayanova/src/views/inv-purchase-order.vue index 664d0eb1..469044cc 100644 --- a/ayanova/src/views/inv-purchase-order.vue +++ b/ayanova/src/views/inv-purchase-order.vue @@ -6,20 +6,32 @@ - - + + +