From 754cdf39ec0b6760f37fccf9ef7cdb633a4bb5ae Mon Sep 17 00:00:00 2001 From: Elsio Sanchez Date: Fri, 1 Sep 2023 18:23:48 -0400 Subject: [PATCH] Support Copy Order --- components/ADempiere/Form/VPOS/Options/index.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/components/ADempiere/Form/VPOS/Options/index.vue b/components/ADempiere/Form/VPOS/Options/index.vue index 9d0cd5a4..956d7d9a 100644 --- a/components/ADempiere/Form/VPOS/Options/index.vue +++ b/components/ADempiere/Form/VPOS/Options/index.vue @@ -1051,7 +1051,7 @@ export default { activeName: '', processPos: '', pin: '', - checked1: false, + checked1: true, isAction: false, attributePin: {}, validatePin: true, @@ -2128,7 +2128,19 @@ export default { salesRepresentativeId: this.currentPointOfSales.salesRepresentative.id }) .then(response => { - console.log({ response }) + this.$store.dispatch('reloadOrder', { orderUuid: response.uuid }) + this.$message({ + type: 'success', + message: 'Ok', + showClose: true + }) + }) + .catch(error => { + this.$message({ + type: 'error', + message: error.message, + showClose: true + }) }) console.info('Support Copy Order', this.currentOrder.uuid) },