mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-15 03:09:32 +02:00
Add a system for managing customer credit notes and their associated permissions
Define new 'avoir' module for permissions and create a new 'avoirs' table in the database schema with detailed fields for credit note management, including supplier, group, invoice details, status, and processing flags. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869 Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/9fcf4b21-eb0c-4e53-a567-e2ce4a6ad869/0C3uBiZ
This commit is contained in:
1 parent
1d0522e286
commit
e75fa65945
2 files changed
+71
-1
No files matched your search
+10
-1
@@ -12,7 +12,8 @@ export type Module =
|
||||
| 'publicity'
|
||||
| 'customer-orders'
|
||||
| 'dlc'
|
||||
| 'tasks';
|
||||
| 'tasks'
|
||||
| 'avoir';
|
||||
|
||||
// Définition des permissions par module et par rôle
|
||||
const PERMISSIONS: Record<Module, Record<Role, Permission[]>> = {
|
||||
@@ -86,6 +87,14 @@ const PERMISSIONS: Record<Module, Record<Role, Permission[]>> = {
|
||||
directeur: ['view', 'create', 'edit', 'delete', 'validate'],
|
||||
manager: ['view', 'create', 'edit', 'validate'],
|
||||
employee: ['view']
|
||||
},
|
||||
|
||||
// Avoirs - Admin/Directeur tout, Manager create + view seulement, Employé pas d'accès
|
||||
avoir: {
|
||||
admin: ['view', 'create', 'edit', 'delete', 'validate'],
|
||||
directeur: ['view', 'create', 'edit', 'delete', 'validate'],
|
||||
manager: ['view', 'create'],
|
||||
employee: []
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user