فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
fix(A04): reject missing cheque status journal references before IndexedDB lookup
davoodmehraban89 committed
Oct 16, 2026 at 17:31 UTC
499203079791d5f139f0ee7d89089233df09fd83
1 file changed
+3
src/core/CompanyBackupService.js
+3
@@ -102,6 +102,9 @@ export async function restoreCompanyBackup(data, { companyId, userId, mode = 'me
102
throw Error('ارجاع دفتر کل سند مالی بازیابیشده نامعتبر است');
103
}
104
if (store === 'cheques' && row.statusVersion === 2) {
105
+ if (!isId(row.statusJournalId)) {
106
+ throw Error('شناسه سند تغییر وضعیت چک بازیابیشده نامعتبر است');
107
+ }
108
const statusJournal = await tx.get('journal_entries', row.statusJournalId);
109
if (!statusJournal || statusJournal.companyId !== companyId ||
110
statusJournal.status !== 'posted' ||