From ee2b4d6d7b938396d6c63ec6a9bf96dbcbd5bc75 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 28 Jun 2021 15:50:51 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 13 +++++++++---- ayanova/src/views/ay-customize.vue | 2 +- ayanova/src/views/ay-data-list-column-view.vue | 8 +++++++- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index edc894ba..7656b35c 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -402,11 +402,16 @@ CURRENTLY DOING: complete all workorderitem descendant lists 3873 3: subtree woitem lists implement - todo: decided not to put tax codes in main grids, should I though? - todo: decided not to put costs or dollar amounts in main grids as it would be tricky to hide them from contractor users etc - can this be supported in some way or fuck it leave off for now - TODO: after all descendant tables added go through every single one and enable all columns and ensure no errors + Workorderitem custom fields are not translating + ??WorkOrderItem.Custom1 + workorderitemunit custom fields are not translating + ??WorkOrderItemUnit.Custom4 + Tax codes sb there unfortunately :( + were there in v7 + can think of cases where this would be important / useful + do it + 3891 3: Implement a workable duplication system SEE CASE 3891 for duplicate at client idea diff --git a/ayanova/src/views/ay-customize.vue b/ayanova/src/views/ay-customize.vue index 7b46b74a..bed3b35b 100644 --- a/ayanova/src/views/ay-customize.vue +++ b/ayanova/src/views/ay-customize.vue @@ -60,7 +60,7 @@ /* Xeslint-disable */ //////////////////////////////////////////////////////////////////////////////////////////////////////////// // -//NOTE: This is a simple form with no need for business rules or validation so stripped out any extraneous code related to all that +// CUSTOMIZE A FORM'S FIELDS // const FORM_KEY = "customize"; const API_BASE_URL = "form-custom/"; diff --git a/ayanova/src/views/ay-data-list-column-view.vue b/ayanova/src/views/ay-data-list-column-view.vue index e10b51dd..4285cc71 100644 --- a/ayanova/src/views/ay-data-list-column-view.vue +++ b/ayanova/src/views/ay-data-list-column-view.vue @@ -69,7 +69,9 @@ ///////////////////////////////////////////////////////////////////////////////////////////////////////////// /* Xeslint-disable */ //////////////////////////////////////////////////////////////////////////////////////////////////////////// - +// +// CUSTOMIZE A DATA GRID'S VISIBLE COLUMNS +// const FORM_KEY = "ay-data-list-column-view"; const API_BASE_URL = "data-list-column-view/"; @@ -403,6 +405,10 @@ async function fetchTranslatedFieldNames(vm) { for (let i = 0; i < vm.fieldDefinitions.length; i++) { let cm = vm.fieldDefinitions[i]; columnKeys.push(cm.tKey); + //get section names too if present + if (cm.tKeySection != null) { + columnKeys.push(cm.tKeySection); + } } await window.$gz.translation.cacheTranslations(columnKeys);