@davoodmehraban89 / Factor-easy / commits / 61d6a05
Fork 0

سامانه صدور فاکتور و حسابداری

Wire organization workspace navigation

davoodmehraban89 committed Sep 30, 2026 at 01:42 UTC 61d6a050f8c13602d923a6f948897510cd3287cd
1 file changed +2 -1
js/ui.js
+2 -1
@@ -82,7 +82,7 @@ const FINORA_MODULES={
82 const FINORA_VIEW_HOME={
83 'view-dashboard':'dashboard','view-journal':'accounting','view-accounting-foundation':'accounting','view-accounting-reports':'accounting','view-currency':'accounting',
84 'view-invoices':'commerce','view-purchases':'commerce','view-expenses':'accounting','view-contacts':'commerce','view-products':'commerce',
85 - 'view-payments':'treasury','view-cheques':'treasury','view-contracting':'projects','view-inventory':'inventory','view-assets':'assets',
85 + 'view-payments':'treasury','view-cheques':'treasury','view-contracting':'projects','view-inventory':'inventory','view-assets':'assets','view-enterprise':'enterprise',
86 'view-reports':'reports','view-data-center':'settings','view-integrations':'settings','view-settings':'settings','view-admin':'settings'
87 };
88 const FINORA_COMMANDS=Object.entries(FINORA_MODULES).flatMap(([module,m])=>m.groups.flatMap(g=>g.items.map(i=>({module,moduleTitle:m.title,groupTitle:g.title,title:i[0],view:i[1],icon:i[2],guard:i[3]||'',task:i[4]||''}))));
@@ -141,6 +141,7 @@ function navigateShell(moduleKey,viewId,task='',rerender=true){
141 if(viewId==='view-accounting-foundation'&&typeof renderAccountingFoundation==='function')renderAccountingFoundation();
142 if(viewId==='view-accounting-reports'&&window.P6Reports)P6Reports.render();
143 if(viewId==='view-contracting'&&typeof renderPhase4==='function')renderPhase4();
144 + if(viewId==='view-enterprise'&&typeof enterpriseRender==='function')enterpriseRender(task||'employees');
145 if(['view-inventory','view-assets','view-currency','view-data-center','view-integrations'].includes(viewId)&&typeof p5Render==='function')p5Render(viewId);
146 applyWorkspaceTask(viewId,task);
147 if(rerender)renderModulePanel(moduleKey,viewId,task);