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

test: update Phase 3 invariants to explicit invoice draft/post assets

davoodmehraban89 committed Oct 11, 2026 at 20:53 UTC b660d4fb9424206bb9d89b8dfa086f5f92c0d36f
1 file changed +2 -1
scripts/phase3-check.mjs
+2 -1
@@ -5,7 +5,8 @@ const need=(src,x,label)=>{for(const n of x)if(!src.includes(n))throw new Error(
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=20261007-p0-r1','journal-ui.js?v=20261007-p0-r1'],'index');
8 +need(i,['journal-engine.js?v=20261007-p0-r1','journal-ui.js?v=20261011-doc-manager-v1','document-management.js?v=20261011-doc-manager-v1'],'index');
9 +need(inv,['function invoiceDocumentStatus','function finalizeInvoiceDocument','accountingStatus:\'draft\'','documentStatus:\'draft\''],'invoice draft and explicit posting');
10 need(s,["sb.rpc('finora_sync_records'",'p_upserts','p_deletes'],'atomic sync');
11 need(pay,["date:old?.date||getJalaliNumeric()"],'payment fiscal date');
12 need(inv,['invoiceCreatesAccountingEntry',"kind==='formal'||kind==='non_formal'"],'invoice posting semantics');