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

test: require new journal UI and document manager assets alongside journal engine

davoodmehraban89 committed Oct 11, 2026 at 20:51 UTC 2eb30b9aaac110e8f947374948f9b75bee36d6f5
1 file changed +1 -1
scripts/quality-check.mjs
+1 -1
@@ -67,7 +67,7 @@ if(!index.includes('data-module="accounting"')||!index.includes('accounting-foun
67
68 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);
69 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);
70 -if(!index.includes('journal-engine.js?v=20261007-p0-r1')||!index.includes('journal-ui.js?v=20261007-p0-r1'))throw new Error('Phase 3 journal scripts missing');
70 +if(!index.includes('journal-engine.js?v=20261007-p0-r1')||!index.includes('journal-ui.js?v=20261011-doc-manager-v1')&&index.includes('document-management.js?v=20261011-doc-manager-v1'))throw new Error('Phase 3 journal scripts missing');
71
72 for(const needle of ['jeActiveSourceVoucher','jeSourceLocked','jeGuardSourceMutation','jePostSourceRecord',"['posted','reversed'].includes"])if(!all['journal-engine.js']?.includes(needle))throw new Error('Phase 3 source/ledger safety missing '+needle);
73 for(const [file,needles] of Object.entries({