From ddfd17e2f2ed32411ff31612bdd9ccced9b087c3 Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Mon, 30 Oct 2023 20:46:37 -0400 Subject: [PATCH] Feat: Discuent All Line (Transcoding) (#1576) --- .../Form/VPOS2/Options/salesOrder.vue | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/src/components/ADempiere/Form/VPOS2/Options/salesOrder.vue b/src/components/ADempiere/Form/VPOS2/Options/salesOrder.vue index 4f61f1cadde..0f2a34fd0cd 100644 --- a/src/components/ADempiere/Form/VPOS2/Options/salesOrder.vue +++ b/src/components/ADempiere/Form/VPOS2/Options/salesOrder.vue @@ -384,6 +384,79 @@ along with this program. If not, see . + + + + + +

+ + {{ $t('form.pos.tableProduct.displayDiscountAmount') }} + +

+
+ + + + + + + + + +
+
+
+ +

+ +
+ {{ $t('form.pos.applyDiscountToAllLines') }} +

+
+
+ +
@@ -581,6 +654,17 @@ export default defineComponent({ }) } + function applyDiscountAll() { + isLoadingApplyDiscountOnOrder.value = true + store.dispatch('updateCurrentOrder', { + discount_rate: applyDiscountAmount.value + }) + .then(() => { + isLoadingApplyDiscountOnOrder.value = false + closeApplyDiscount() + }) + } + function printTicket() { if (isLoadingPrintTicket.value) return isLoadingPrintTicket.value = true @@ -739,6 +823,7 @@ export default defineComponent({ printPreview, applyDiscount, confirmShipment, + applyDiscountAll, closeReverseSales, closeApplyDiscount, completePreparedOrder,