Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions POS/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
29 changes: 29 additions & 0 deletions POS/src/components/sale/InvoiceCart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,35 @@
__("Create Customer")
}}</span>
</button>

<!-- Shift History -->
<button
type="button"
@click="$emit('show-shift-history')"
class="flex flex-col items-center justify-center p-3 sm:p-4 bg-white border border-gray-200 rounded-lg hover:border-indigo-300 hover:bg-indigo-50 active:bg-indigo-100 transition-colors shadow-sm hover:shadow touch-manipulation group"
:title="__('View shift history')"
>
<div
class="w-9 h-9 sm:w-10 sm:h-10 bg-indigo-50 rounded-full flex items-center justify-center mb-2 group-hover:bg-indigo-100 transition-colors"
>
<svg
class="w-5 h-5 text-indigo-600"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"
/>
</svg>
</div>
<span class="text-[11px] sm:text-xs font-semibold text-gray-700">{{
__("Shift History")
}}</span>
</button>
</div>
</div>

Expand Down
Loading