From ecf2b972ad38fcb62ced208b4182edbb9500c379 Mon Sep 17 00:00:00 2001
From: AbleKSaju <126228406+AbleKSaju@users.noreply.github.com>
Date: Mon, 14 Oct 2024 15:53:24 +0530
Subject: [PATCH 1/4] feat: add navigation to invoice list from POS
---
src/pages/POS/POS.vue | 52 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/src/pages/POS/POS.vue b/src/pages/POS/POS.vue
index 5f0e31fed..7e696c063 100644
--- a/src/pages/POS/POS.vue
+++ b/src/pages/POS/POS.vue
@@ -186,6 +186,57 @@
Loyalty Program
+
+
+
+
+ Sales Invoice List
+
+
@@ -478,6 +529,7 @@ export default defineComponent({
toggleSidebar(true);
},
methods: {
+ routeTo,
async setCustomer(value: string) {
if (!value) {
this.sinvDoc.party = '';
From 6cbfa9ad811cdaa9ee0ff51b6acf3a7f0247abd5 Mon Sep 17 00:00:00 2001
From: AbleKSaju <126228406+AbleKSaju@users.noreply.github.com>
Date: Mon, 14 Oct 2024 15:56:19 +0530
Subject: [PATCH 2/4] feat: define type for alert
---
src/components/POS/types.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/POS/types.ts b/src/components/POS/types.ts
index a88c0ae51..836da2ae3 100644
--- a/src/components/POS/types.ts
+++ b/src/components/POS/types.ts
@@ -8,7 +8,7 @@ export type ItemSerialNumbers = { [item: string]: string };
export type DiscountType = "percent" | "amount";
-export type ModalName = 'ShiftOpen' | 'ShiftClose' | 'Payment' | 'LoyaltyProgram'
+export type ModalName = 'ShiftOpen' | 'ShiftClose' | 'Payment' | 'LoyaltyProgram' | 'InvoiceListAlert'
export interface POSItem {
image?:string,
From d80ecdf18ad243c3a6ac6880c57a6b6a1c37f1e3 Mon Sep 17 00:00:00 2001
From: AbleKSaju <126228406+AbleKSaju@users.noreply.github.com>
Date: Mon, 14 Oct 2024 15:56:50 +0530
Subject: [PATCH 3/4] feat: add AlertModal
---
src/pages/POS/AlertModal.vue | 56 ++++++++++++++++++++++++++++++++++++
src/pages/POS/POS.vue | 8 ++++++
2 files changed, 64 insertions(+)
create mode 100644 src/pages/POS/AlertModal.vue
diff --git a/src/pages/POS/AlertModal.vue b/src/pages/POS/AlertModal.vue
new file mode 100644
index 000000000..aa19ef575
--- /dev/null
+++ b/src/pages/POS/AlertModal.vue
@@ -0,0 +1,56 @@
+
+
+ Alert
+
+
+ This will remove all selected items.
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/POS/POS.vue b/src/pages/POS/POS.vue
index 7e696c063..0bf6e4683 100644
--- a/src/pages/POS/POS.vue
+++ b/src/pages/POS/POS.vue
@@ -40,6 +40,11 @@
@set-transfer-clearance-date="setTransferClearanceDate"
/>
+
+
Date: Tue, 15 Oct 2024 10:08:05 +0530
Subject: [PATCH 4/4] chore: refactored styling
---
src/components/POS/types.ts | 2 +-
src/pages/POS/AlertModal.vue | 23 +++++++++++----------
src/pages/POS/POS.vue | 40 +++++++++++++++---------------------
3 files changed, 30 insertions(+), 35 deletions(-)
diff --git a/src/components/POS/types.ts b/src/components/POS/types.ts
index 836da2ae3..31102b682 100644
--- a/src/components/POS/types.ts
+++ b/src/components/POS/types.ts
@@ -8,7 +8,7 @@ export type ItemSerialNumbers = { [item: string]: string };
export type DiscountType = "percent" | "amount";
-export type ModalName = 'ShiftOpen' | 'ShiftClose' | 'Payment' | 'LoyaltyProgram' | 'InvoiceListAlert'
+export type ModalName = 'ShiftOpen' | 'ShiftClose' | 'Payment' | 'LoyaltyProgram' | 'RouteToInvoiceList'
export interface POSItem {
image?:string,
diff --git a/src/pages/POS/AlertModal.vue b/src/pages/POS/AlertModal.vue
index aa19ef575..aef0044c0 100644
--- a/src/pages/POS/AlertModal.vue
+++ b/src/pages/POS/AlertModal.vue
@@ -1,15 +1,16 @@
-
- Alert
-
+
+ {{ t`Alert` }}
- This will remove all selected items.
-
+
+ {{ t`Clicking continue will remove all the selected items.` }}
+
+
+
+