From 3b4765e40ddc9d2a99ba0003b2c12232b56c5bc8 Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Mon, 12 Jul 2021 19:56:55 -0400 Subject: [PATCH] sopporte a reversar transsaccion (#979) Co-authored-by: elsiosanchez --- .../ADempiere/Form/VPOS/Options/index.vue | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/components/ADempiere/Form/VPOS/Options/index.vue b/src/components/ADempiere/Form/VPOS/Options/index.vue index 4aa0e30f..55e67123 100644 --- a/src/components/ADempiere/Form/VPOS/Options/index.vue +++ b/src/components/ADempiere/Form/VPOS/Options/index.vue @@ -354,7 +354,8 @@ export default { return { activeName: '', processPos: '', - showFieldListOrder: false + showFieldListOrder: false, + posProcess } }, computed: { @@ -393,7 +394,7 @@ export default { } }, created() { - this.findProcess() + this.findProcess(this.posProcess) }, methods: { notSubmitForm(event) { @@ -473,7 +474,7 @@ export default { }, { columnName: 'C_DocTypeRMA_ID', - value: 'VO' + value: this.currentOrder.documentType.id } ] this.$store.dispatch('addParametersProcessPos', parametersList) @@ -510,8 +511,7 @@ export default { this.$store.dispatch('addParametersProcessPos', parametersList) createOrder({ posUuid, - customerUuid: this.currentOrder.businessPartner.uuid, - warehouseUuid: this.$store.getters.currentWarehouse.uuid + customerUuid: this.currentOrder.businessPartner.uuid }) .then(order => { this.$store.dispatch('currentOrder', order) @@ -538,13 +538,12 @@ export default { }) }) .finally(() => { - const process = this.$store.getters.getProcess(posProcess[1].uuid) + const process = this.$store.getters.getProcess(this.posProcess[1].uuid) this.showModal(process) }) }, copyLineOrder() { - this.processPos = posProcess[1].uuid - const process = this.$store.getters.getProcess(posProcess[1].uuid) + const process = this.$store.getters.getProcess(this.posProcess[1].uuid) this.showModal(process) }, cashClosing() {