From f01af891090a4ddae73d8348437cdae905eaee99 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 17 Feb 2021 17:08:06 +0000 Subject: [PATCH] --- ayanova/src/views/inv-purchase-order.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ayanova/src/views/inv-purchase-order.vue b/ayanova/src/views/inv-purchase-order.vue index b501c3b2..ad579a5a 100644 --- a/ayanova/src/views/inv-purchase-order.vue +++ b/ayanova/src/views/inv-purchase-order.vue @@ -286,6 +286,9 @@ export default { data() { return { formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY, + selectLists: { + status: [] + }, obj: //IMPORTANT NOTE: Fields that are NON NULLABLE in the schema for the table but *are* hideable **MUST** have a default value set here or else there will be no way to save the record //I.E. Serial, usertype fields, ACTIVE @@ -719,6 +722,18 @@ let JUST_DELETED = false; async function initForm(vm) { await fetchTranslatedText(vm); await window.$gz.formCustomTemplate.get(FORM_CUSTOM_TEMPLATE_KEY); + await populateSelectionLists(vm); +} + +////////////////////// +// +// +async function populateSelectionLists(vm) { + //ensure the pick lists required are pre-fetched + await window.$gz.enums.fetchEnumList("purchaseorderstatus"); + vm.selectLists.status = window.$gz.enums.getSelectionList( + "purchaseorderstatus" + ); } //////////////////////////////////////////////////////////