diff --git a/src/api/ADempiere/form/point-of-sales.js b/src/api/ADempiere/form/point-of-sales.js index 69deb36b..fa32e7b3 100644 --- a/src/api/ADempiere/form/point-of-sales.js +++ b/src/api/ADempiere/form/point-of-sales.js @@ -614,3 +614,26 @@ export function processOrder({ return processOrderResponse }) } + +/** + * Validate Ping + * @param {string} posUuidd - POS UUID reference + * @param {string} pin - User PIN + * @returns {string} + */ +export function validatePin({ + posUuid, + pin +}) { + return request({ + url: '/form/addons/point-of-sales/validate-pin', + method: 'post', + data: { + pos_uuid: posUuid, + pin: pin + } + }) + .then(pinResponse => { + return pinResponse + }) +} diff --git a/src/components/ADempiere/Form/VPOS/Order/line/index.vue b/src/components/ADempiere/Form/VPOS/Order/line/index.vue index c1d40333..9b8dfec5 100644 --- a/src/components/ADempiere/Form/VPOS/Order/line/index.vue +++ b/src/components/ADempiere/Form/VPOS/Order/line/index.vue @@ -28,6 +28,7 @@ - + @@ -63,13 +64,14 @@ - +