Enable importing payee as payee_name

This commit is contained in:
2025-04-01 22:46:38 +02:00
parent 993ff1f62e
commit 019a3e7cd4

View File

@@ -64,12 +64,15 @@ export default class extends BaseTransactionParser<ParserConfig> {
return undefined; return undefined;
} }
const payee = ing.contrahentData?.trim()?.replaceAll(/\s+/g, " ");
return { return {
amount, amount,
imported_id: ing.transactionNumber, imported_id: ing.transactionNumber,
notes: ing.title, notes: ing.title,
date: ing.transactionDate, date: ing.transactionDate,
imported_payee: ing.contrahentData?.trim()?.replaceAll(/\s+/g, " ") imported_payee: payee,
payee_name: payee,
} }
} }
} }