@davoodmehraban89 / Factor-easy / commits / 54b4173
Fork 0

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

Extend Phase 3 operational ledger regression gates

davoodmehraban89 committed Sep 28, 2026 at 18:33 UTC 54b4173c4a9f0a0de163677c0b4ca4f85cb0da45
1 file changed +9
scripts/quality-check.mjs
+9
@@ -67,3 +67,12 @@ if(!index.includes('data-module="accounting"')||!index.includes('accounting-foun
67 for(const coll of ['postingProfiles','journalVouchers','journalLines','journalLineDimensions'])if(!all['core.js'].includes("'"+coll+"'")||!all['sync.js'].includes(coll))throw new Error('Phase 3 collection missing '+coll);
68 for(const needle of ['jeValidateLines','jeValidateDimensions','jeCreateDraft','jePost','jeReverse','jeDeleteDraft','jeTrialBalance','sourceVersion'])if(!all['journal-engine.js']?.includes(needle))throw new Error('Phase 3 journal invariant missing '+needle);
69 if(!index.includes('journal-engine.js?v=20260928-phase3-v1')||!index.includes('journal-ui.js?v=20260928-phase3-v1'))throw new Error('Phase 3 journal scripts missing');
70 +
71 +for(const needle of ['jeActiveSourceVoucher','jeGuardSourceMutation','jePostSourceRecord',"v.status==='posted'"])if(!all['journal-engine.js']?.includes(needle))throw new Error('Phase 3 source/ledger safety missing '+needle);
72 +for(const [file,needles] of Object.entries({
73 + 'invoices.js':['jeGuardSourceMutation','jePostSourceRecord'],
74 + 'purchases.js':['jeGuardSourceMutation','jePostSourceRecord'],
75 + 'payments.js':['jeGuardSourceMutation','jePostSourceRecord'],
76 + 'operations.js':['jeGuardSourceMutation','jePostSourceRecord'],
77 + 'accounting-foundation.js':["journalLines||[]","سابقه دفتر"]
78 +}))for(const needle of needles)if(!all[file]?.includes(needle))throw new Error('Phase 3 operational integration missing '+file+' '+needle);