From 56043dc49567bd9bbd6d0698cb5ef8a063aefa02 Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Tue, 15 Feb 2022 17:59:32 -0400 Subject: [PATCH] #1581 (#1582) --- src/api/ADempiere/form/point-of-sales.js | 16 ++++++++ .../Form/VPOS/Options/AssignSeller/index.vue | 40 ++++++++++++++++++- .../ADempiere/Form/VPOS/Options/index.vue | 36 +++++++++++++++++ src/lang/ADempiere/en/index.js | 3 ++ src/lang/ADempiere/es/index.js | 5 ++- src/store/modules/ADempiere/utils.js | 7 ++++ 6 files changed, 104 insertions(+), 3 deletions(-) diff --git a/src/api/ADempiere/form/point-of-sales.js b/src/api/ADempiere/form/point-of-sales.js index baecda3fefd..1b4a980efdb 100644 --- a/src/api/ADempiere/form/point-of-sales.js +++ b/src/api/ADempiere/form/point-of-sales.js @@ -1361,6 +1361,22 @@ export function allocateSeller({ return response }) } +export function deallocate({ + posUuid, + salesRepresentativeUuid +}) { + return request({ + url: `${config.pointOfSales.endpoint}/deallocate-seller`, + method: 'post', + data: { + pos_uuid: posUuid, + sales_representative_uuid: salesRepresentativeUuid + } + }) + .then(response => { + return response + }) +} export function releaseOrder({ posUuid, salesRepresentativeUuid, diff --git a/src/components/ADempiere/Form/VPOS/Options/AssignSeller/index.vue b/src/components/ADempiere/Form/VPOS/Options/AssignSeller/index.vue index 405119166dc..f3ffc2277fc 100644 --- a/src/components/ADempiere/Form/VPOS/Options/AssignSeller/index.vue +++ b/src/components/ADempiere/Form/VPOS/Options/AssignSeller/index.vue @@ -71,9 +71,10 @@