From f16e2c9afa12fc7d0fea49d356185363f495c017 Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Tue, 27 Apr 2021 16:51:35 -0400 Subject: [PATCH] Fix copyOrder (#788) * Fix copyOrder * create order with the same customer Co-authored-by: elsiosanchez --- src/components/ADempiere/Dialog/index.vue | 2 +- src/components/ADempiere/Form/VPOS/Options/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ADempiere/Dialog/index.vue b/src/components/ADempiere/Dialog/index.vue index 442791e8..89762832 100644 --- a/src/components/ADempiere/Dialog/index.vue +++ b/src/components/ADempiere/Dialog/index.vue @@ -180,7 +180,7 @@ export default { this.$store.dispatch('processPos', { action: action, // process metadata parentUuid: this.parentUuid, - idProcess: this.$store.getters.posAttributes.currentOrder.id, + idProcess: this.$store.getters.posAttributes.currentPointOfSales.currentOrder.id, containerUuid: this.containerUuid, panelType: this.panelType, // determinate if get table name and record id (window) or selection (browser) parametersList: this.$store.getters.getPosParameters diff --git a/src/components/ADempiere/Form/VPOS/Options/index.vue b/src/components/ADempiere/Form/VPOS/Options/index.vue index 40502149..2f86afe0 100644 --- a/src/components/ADempiere/Form/VPOS/Options/index.vue +++ b/src/components/ADempiere/Form/VPOS/Options/index.vue @@ -474,7 +474,7 @@ export default { this.$store.dispatch('addParametersProcessPos', parametersList) requestCreateOrder({ posUuid, - customerUuid: this.currentPointOfSales.businessPartner.uuid, + customerUuid: this.currentOrder.businessPartner.uuid, salesRepresentativeUuid: this.currentPointOfSales.salesRepresentative.uuid }) .then(order => {