@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 969db20
Fork 0

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

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 4, 18:00 UTC

fix(company): port reviewed active-company isolation in js/enterprise-iran.js

davoodmehraban89 committed Oct 14, 2026 at 13:14 UTC 969db20e334538cf70d8b5612ec21cc440f7e72b
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')}