feat(POS-006): completed feature

This commit is contained in:
chattie
2026-08-22 13:39:11 +02:00
parent 915fbe0ba9
commit 25e4e5b622
24 changed files with 448 additions and 62 deletions

View File

@@ -0,0 +1,15 @@
/** POS permissions used in the POS app. */
export type PosPermission =
| 'POS_SELL'
| 'POS_REFUND'
| 'POS_DISCOUNT'
| 'POS_VOID'
| 'POS_OPEN_REGISTER'
| 'POS_CLOSE_REGISTER';
/** Map role → granted permissions. */
export const POS_ROLE_PERMISSIONS: Record<string, PosPermission[]> = {
admin: ['POS_SELL', 'POS_REFUND', 'POS_DISCOUNT', 'POS_VOID', 'POS_OPEN_REGISTER', 'POS_CLOSE_REGISTER'],
pos_manager: ['POS_SELL', 'POS_REFUND', 'POS_DISCOUNT', 'POS_VOID', 'POS_OPEN_REGISTER', 'POS_CLOSE_REGISTER'],
pos_cashier: ['POS_SELL'],
};