This commit is contained in:
2021-06-28 15:50:51 +00:00
parent 4192de1aab
commit ee2b4d6d7b
3 changed files with 17 additions and 6 deletions

View File

@@ -402,10 +402,15 @@ CURRENTLY DOING: complete all workorderitem descendant lists
3873 3: subtree woitem lists implement 3873 3: subtree woitem lists implement
todo: decided not to put tax codes in main grids, should I though? Workorderitem custom fields are not translating
todo: decided not to put costs or dollar amounts in main grids as it would be tricky to hide them from contractor users etc ??WorkOrderItem.Custom1
can this be supported in some way or fuck it leave off for now workorderitemunit custom fields are not translating
TODO: after all descendant tables added go through every single one and enable all columns and ensure no errors ??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 3891 3: Implement a workable duplication system

View File

@@ -60,7 +60,7 @@
/* Xeslint-disable */ /* 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 FORM_KEY = "customize";
const API_BASE_URL = "form-custom/"; const API_BASE_URL = "form-custom/";

View File

@@ -69,7 +69,9 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* Xeslint-disable */ /* Xeslint-disable */
//////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// CUSTOMIZE A DATA GRID'S VISIBLE COLUMNS
//
const FORM_KEY = "ay-data-list-column-view"; const FORM_KEY = "ay-data-list-column-view";
const API_BASE_URL = "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++) { for (let i = 0; i < vm.fieldDefinitions.length; i++) {
let cm = vm.fieldDefinitions[i]; let cm = vm.fieldDefinitions[i];
columnKeys.push(cm.tKey); columnKeys.push(cm.tKey);
//get section names too if present
if (cm.tKeySection != null) {
columnKeys.push(cm.tKeySection);
}
} }
await window.$gz.translation.cacheTranslations(columnKeys); await window.$gz.translation.cacheTranslations(columnKeys);