Skip to content

Commit

Permalink
Fix bug with new category names
Browse files Browse the repository at this point in the history
  • Loading branch information
bellingard committed Apr 28, 2019
1 parent ae65f34 commit 38cd8b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/services/bankaccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@ export class BankAccounts {
transactions.forEach(t => {
if (
// "other expenses"
t.fromId === 'A120' ||
t.fromId === 'A120' || // 'Axxx' is the old format of categories...
t.fromId === 'C120' ||
// "other revenues"
t.fromId === 'A159' ||
t.fromId === 'A159' || // 'Axxx' is the old format of categories...
t.fromId === 'C159' ||
// Bank transferts - cannot use "this.transactions.isTransfer()" here...
(BankAccounts.isValidID(t.fromId) && BankAccounts.isValidID(t.toId))
) {
Expand Down

0 comments on commit 38cd8b2

Please sign in to comment.