mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-29 11:04:12 -05:00
🐛 (nordigen) add currency to account name (#163)
Sometimes accounts have the same names and the same IBAN, but different currencies (Paypal). This should make the account names a bit more unique.. thus easier to distinguish. https://github.com/actualbudget/actual/issues/724#issuecomment-1464902166 Obviously the user can choose to use different names in `Actual`. They are not forced to use this name.
This commit is contained in:
committed by
GitHub
parent
80be279e11
commit
5f0df5ed53
@@ -23,7 +23,9 @@ export default {
|
||||
account_id: account.id,
|
||||
institution: account.institution,
|
||||
mask: (account?.iban || '0000').slice(-4),
|
||||
name: [account.name, printIban(account)].filter(Boolean).join(' '),
|
||||
name: [account.name, printIban(account), account.currency]
|
||||
.filter(Boolean)
|
||||
.join(' '),
|
||||
official_name: `integration-${account.institution_id}`,
|
||||
type: 'checking',
|
||||
};
|
||||
|
||||
@@ -21,7 +21,7 @@ describe('IntegrationBank', () => {
|
||||
account_id: account.id,
|
||||
institution: mockInstitution,
|
||||
mask: '4321',
|
||||
name: 'account-example-one (XXX 4321)',
|
||||
name: 'account-example-one (XXX 4321) PLN',
|
||||
official_name: 'integration-SANDBOXFINANCE_SFIN0000',
|
||||
type: 'checking',
|
||||
});
|
||||
@@ -36,7 +36,7 @@ describe('IntegrationBank', () => {
|
||||
account_id: account.id,
|
||||
institution: mockInstitution,
|
||||
mask: '0000',
|
||||
name: 'account-example-one',
|
||||
name: 'account-example-one PLN',
|
||||
official_name: 'integration-SANDBOXFINANCE_SFIN0000',
|
||||
type: 'checking',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user