From e3f6c244c037360b3a260051f94b827e656c7fe6 Mon Sep 17 00:00:00 2001 From: akshayitzme Date: Sat, 2 Dec 2023 19:53:55 +0530 Subject: [PATCH] fix(ux): disable Pay, Submit buttons on conditions --- schemas/app/inventory/Point of Sale/POSSettings.json | 1 + src/pages/POS/POS.vue | 12 +++++++++++- src/pages/POS/PaymentModal.vue | 7 +++++++ src/utils/pos.ts | 12 ++++++++---- 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/schemas/app/inventory/Point of Sale/POSSettings.json b/schemas/app/inventory/Point of Sale/POSSettings.json index 336976139..df5c1f678 100644 --- a/schemas/app/inventory/Point of Sale/POSSettings.json +++ b/schemas/app/inventory/Point of Sale/POSSettings.json @@ -18,6 +18,7 @@ "label": "Counter Cash Account", "fieldtype": "Link", "target": "Account", + "default": "Cash In Hand", "required": true, "create": true, "section": "Default" diff --git a/src/pages/POS/POS.vue b/src/pages/POS/POS.vue index e455d3b77..b86cbb20b 100644 --- a/src/pages/POS/POS.vue +++ b/src/pages/POS/POS.vue @@ -142,7 +142,7 @@