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

test: scope fixture product to active company under strict isolation

davoodmehraban89 committed Oct 14, 2026 at 13:37 UTC c8c695089c8b4d03747dcc74ab2dc2ed97b8aada
1 file changed +1 -1
scripts/accounting-document-workflow.spec.js
+1 -1
@@ -8,7 +8,7 @@ function fakeServer(){
8 for(const [collection,id,data] of [
9 ['companies','QA_CO',{name:'شرکت آزمون ایزوله',entityType:'legal'}],
10 ['contacts','QA_CONTACT',{name:'خریدار آزمایشی',role:'both'}],
11 - ['products','QA_PROD',{name:'بلوک سیمانی',code:'BLK-001',unit:'عدد',sale_price:1500}],
11 + ['products','QA_PROD',{companyId:'QA_CO',name:'بلوک سیمانی',code:'BLK-001',unit:'عدد',sale_price:1500}],
12 ['settings','main',{invoice_kind:'formal',vat_mode:'none',vat_rate:10,default_company_id:'QA_CO',currency_mode:'rial'}],
13 ['fiscalYears','FY_QA',{name:'۱۴۰۵',startDate:'1405/01/01',endDate:'1405/12/29',status:'open'}],
14 ['accounts','A_CASH',{code:'1101',title:'صندوق',systemRole:'cash_default',postingAllowed:true,active:true}],