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 @@