سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 4, 09:15 UTC
fix(company): scope office and enterprise group views to active and explicitly opted-in companies
davoodmehraban89 committed
Oct 14, 2026 at 11:51 UTC
1dc7c4cf55aacbf534dafda5efe2d49007adf46b
1 file changed
+1
-1
js/enterprise-iran.js
+1
-1
@@ -6,7 +6,7 @@ window.FINORA_IR_RULES=window.FINORA_IR_RULES||{
6
consolidation:{id:'IR-AS-39',title:'صورتهای مالی تلفیقی',source:'استاندارد حسابداری ایران ۳۹'},
7
revenue:{id:'IR-AS-43',title:'درآمد قرارداد با مشتریان',source:'استاندارد حسابداری ایران ۴۳',effectiveFrom:'1404-01-01'}
8
};
9
-function entRows(k){return (datastore[k]||[]).filter(x=>x.ownerUserId===currentUser?.id)}
9
+function entRows(k){return typeof finoraScopedRows==='function'?finoraScopedRows(k):(datastore[k]||[]).filter(x=>x.ownerUserId===currentUser?.id&&x.companyId===entCid())}
10
function entCid(){const c=getMyCompanies(),s=getMySettings();return s.default_company_id||c[0]?.id||''}
11
function entId(p){return p+'_'+Date.now()+'_'+Math.random().toString(36).slice(2,7)}
12
function entMoney(v){return Number(v||0).toLocaleString('fa-IR')}