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

fix(settings): refresh visible active company label after settings switch

davoodmehraban89 committed Oct 14, 2026 at 12:31 UTC 02760442851cf21621def4e59f27481bee25f949
1 file changed +2
js/companies.js
+2
@@ -123,6 +123,8 @@ function setDefaultCompany(id){
123 s.default_company_id=owned.id;saveDatastore();
124 }
125 refreshAllSurfaces();
126 + const topbar=document.getElementById('topbar-company');
127 + if(topbar)topbar.textContent=owned.name||'انتخاب شرکت';
128 if(typeof renderDocumentManagement==='function')renderDocumentManagement();
129 }
130 function deleteCompany(id){