@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 4260d22
Fork 0

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

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

Synced Dec 3, 22:00 UTC

Gate activity-specific posting account resolution

davoodmehraban89 committed Sep 29, 2026 at 22:41 UTC 4260d223b89ba1105b508041efa20741ea1ffc18
1 file changed +1 -1
scripts/phase3-check.mjs
+1 -1
@@ -2,7 +2,7 @@ import fs from 'node:fs';
2 const pr=fs.readFileSync('js/print.js','utf8');
3 const e=fs.readFileSync('js/journal-engine.js','utf8'),u=fs.readFileSync('js/journal-ui.js','utf8'),c=fs.readFileSync('js/core.js','utf8'),s=fs.readFileSync('js/sync.js','utf8'),b=fs.readFileSync('js/backup.js','utf8'),i=fs.readFileSync('index.html','utf8'),pay=fs.readFileSync('js/payments.js','utf8'),inv=fs.readFileSync('js/invoices.js','utf8'),exp=fs.readFileSync('js/expenses.js','utf8'),sourceGuard=fs.readFileSync('supabase/migrations/20260929190000_posted_source_immutability_guard.sql','utf8');
4 const need=(src,x,label)=>{for(const n of x)if(!src.includes(n))throw new Error(label+' missing '+n)};
5 -need(e,['jeSourceVoucher','jeActiveSourceVoucher','jeSourceLocked','jeGuardSourceMutation','jePostSourceRecord','jeValidateLines','jeValidateDimensions','sourceVersion','jeReverse','reversalVoucherId','jeDeleteDraft','jeTrialBalance','journalLineDimensions','paymentMethod===\'credit\'','jeVatPayableAccount',"jeAccountByCode('1108')"],'engine');
5 +need(e,['jeSourceVoucher','jeActiveSourceVoucher','jeSourceLocked','jeGuardSourceMutation','jePostSourceRecord','jeValidateLines','jeValidateDimensions','sourceVersion','jeReverse','reversalVoucherId','jeDeleteDraft','jeTrialBalance','journalLineDimensions','paymentMethod===\'credit\'','jeVatPayableAccount',"jeAccountByCode('1108')",'jeTemplateType',"trading:'4107'","service:'4106'","jeTemplateType()==='trading'?'5102'"],'engine');
6 need(u,['view-journal','jeSaveManual','jePostUi','jeReverseUi','je-trial'],'ui');
7 for(const x of ['postingProfiles','journalVouchers','journalLines','journalLineDimensions']){if(!c.includes("'"+x+"'")||!s.includes(x)||!b.includes(x))throw new Error('persistence missing '+x)}
8 need(i,['journal-engine.js?v=20260928-phase3-final','journal-ui.js?v=20260928-phase3-final'],'index');