فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
fix(A02): reject orphan source mappings
davoodmehraban89 committed
Oct 18, 2026 at 14:02 UTC
9fa2a03a95fc97ba0d9749c1a19bac4be11c5ae8
1 file changed
+4
src/core/HolooDelimitedExportPreflight.mjs
+4
@@ -174,6 +174,10 @@ export function previewHolooDelimitedExport({
174
Object.keys(mappings).some(name => !Object.hasOwn(COLUMNS, name))) {
175
reject('SOURCE_UNSUPPORTED_TABLE');
176
}
177
+ // An orphan mapping must not be silently ignored: it can conceal a missing
178
+ // financial source table and falsely suggest the extract was inspected.
179
+ if (Object.keys(mappings).some(table => !Object.hasOwn(tables, table)))
180
+ reject('CSV_MAPPING_WITHOUT_SOURCE_TABLE');
181
const datasets = {};
182
for (const [table, item] of Object.entries(tables)) {
183
if (!validMap(item) || typeof item.text !== 'string' ||