diff --git a/POS/components.d.ts b/POS/components.d.ts index 1f2e8b35..34185d02 100644 --- a/POS/components.d.ts +++ b/POS/components.d.ts @@ -50,6 +50,7 @@ declare module 'vue' { SessionLockScreen: typeof import('./src/components/common/SessionLockScreen.vue')['default'] SettingsSection: typeof import('./src/components/settings/SettingsSection.vue')['default'] ShiftClosingDialog: typeof import('./src/components/ShiftClosingDialog.vue')['default'] + ShiftHistoryDialog: typeof import('./src/components/sale/ShiftHistoryDialog.vue')['default'] ShiftOpeningDialog: typeof import('./src/components/ShiftOpeningDialog.vue')['default'] StatusBadge: typeof import('./src/components/common/StatusBadge.vue')['default'] Toast: typeof import('./src/components/common/Toast.vue')['default'] diff --git a/POS/src/components/sale/InvoiceCart.vue b/POS/src/components/sale/InvoiceCart.vue index d9183515..03827c89 100644 --- a/POS/src/components/sale/InvoiceCart.vue +++ b/POS/src/components/sale/InvoiceCart.vue @@ -737,6 +737,35 @@ __("Create Customer") }} + + + @@ -1363,6 +1392,7 @@ const emit = defineEmits([ "show-history", // () - Show invoice history "show-return", // () - Open return invoice dialog "close-shift", // () - Close current shift + "show-shift-history", // () - Open shift history dialog // "create-sales-order", // () - Create Sales Order // Removed as per instruction ]); diff --git a/POS/src/components/sale/InvoiceHistoryDialog.vue b/POS/src/components/sale/InvoiceHistoryDialog.vue index ae196da3..ca034a28 100644 --- a/POS/src/components/sale/InvoiceHistoryDialog.vue +++ b/POS/src/components/sale/InvoiceHistoryDialog.vue @@ -12,9 +12,10 @@ v-model="searchTerm" type="text" :placeholder="__('Search by invoice number or customer...')" - @input="searchInvoices" + @input="onSearchInput" >