From 39f16d6bfcbfb88d32f96d7c8c6f3d4f5c5be744 Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Tue, 23 Mar 2021 18:08:53 -0400 Subject: [PATCH] add validate the IsProcessed (#685) * add validate the IsProcessed * minimal changes Co-authored-by: Elsio Sanchez --- .../BusinessPartner/businessPartnerCreate.vue | 18 +++++++++++++ .../Form/VPOS/BusinessPartner/index.vue | 27 ++++++++++++++++--- .../ADempiere/Form/VPOS/Collection/index.vue | 20 +++++++++----- .../ADempiere/Form/VPOS/KeyLayout/index.vue | 2 +- .../ADempiere/Form/VPOS/Options/index.vue | 17 ++++++------ .../ADempiere/Form/VPOS/Order/index.vue | 18 +++++++++---- .../ADempiere/Form/VPOS/OrderList/index.vue | 2 +- .../ADempiere/Form/VPOS/posMixin.js | 2 +- src/lang/ADempiere/en.js | 1 + src/lang/ADempiere/es.js | 1 + .../ADempiere/pointOfSales/order/getters.js | 21 ++++++++++++--- src/store/modules/ADempiere/utils.js | 12 ++++++++- 12 files changed, 109 insertions(+), 32 deletions(-) diff --git a/src/components/ADempiere/Form/VPOS/BusinessPartner/businessPartnerCreate.vue b/src/components/ADempiere/Form/VPOS/BusinessPartner/businessPartnerCreate.vue index aa00e97b..b3064fef 100644 --- a/src/components/ADempiere/Form/VPOS/BusinessPartner/businessPartnerCreate.vue +++ b/src/components/ADempiere/Form/VPOS/BusinessPartner/businessPartnerCreate.vue @@ -11,6 +11,7 @@ @@ -59,6 +60,10 @@ export default { fieldsList } } + }, + showField: { + type: Boolean, + default: false } }, data() { @@ -78,10 +83,22 @@ export default { return field } }, + watch: { + showField(value) { + if (value) { + setTimeout(() => { + this.focusValue() + }, 1500) + } + } + }, beforeDestroy() { this.unsubscribe() }, methods: { + focusValue() { + this.$refs.Value[0].$children[0].$children[0].$children[1].$children[0].focus() + }, // TODO: Get locations values. createBusinessParter() { let values = this.$store.getters.getValuesView({ @@ -134,6 +151,7 @@ export default { } }, clearValues() { + this.$store.dispatch('changePopover', false) this.showsPopovers.isShowCreate = false this.$store.dispatch('setDefaultValues', { diff --git a/src/components/ADempiere/Form/VPOS/BusinessPartner/index.vue b/src/components/ADempiere/Form/VPOS/BusinessPartner/index.vue index 525fa969..418445df 100644 --- a/src/components/ADempiere/Form/VPOS/BusinessPartner/index.vue +++ b/src/components/ADempiere/Form/VPOS/BusinessPartner/index.vue @@ -4,19 +4,20 @@