From f50932c6a39463a91375753dcf202261d3b79483 Mon Sep 17 00:00:00 2001 From: akshayitzme Date: Wed, 30 Aug 2023 18:10:32 +0530 Subject: [PATCH] chore: set additional discount field to readonly --- src/pages/POS/POS.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/pages/POS/POS.vue b/src/pages/POS/POS.vue index 5f56db6d..a301ba31 100644 --- a/src/pages/POS/POS.vue +++ b/src/pages/POS/POS.vue @@ -103,7 +103,7 @@ }" size="large" :value="additionalDiscounts" - :read-only="false" + :read-only="true" :text-right="true" @change="(amount:Money)=> additionalDiscounts= amount" /> @@ -342,11 +342,6 @@ export default defineComponent({ this.itemDiscounts = itemDiscounts; }, - setAdditionalDiscounts(amount: Money) { - if (amount.isZero()) { - return; - } - }, async setTotalTaxedAmount() { if (!this.sinvDoc.items) { return;