Skip to content

Commit

Permalink
Add a negated balance entry.
Browse files Browse the repository at this point in the history
The reason for this is that with OKQ8-VISA, "Saldo" (balance) means
"used credit" which is kind of backwards compared to how most other
accounts work.
  • Loading branch information
Per Wigren committed Jan 11, 2013
1 parent cc5df8f commit 445aff8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/liato/bankdroid/banking/banks/OKQ8.java
Expand Up @@ -193,6 +193,7 @@ public void update() throws BankException, LoginException, BankChoiceException {
if(matcher.find())
{
accounts.add(new Account("Saldo" , Helpers.parseBalance(matcher.group(1)), "2"));
accounts.add(new Account("Saldo" , Helpers.parseBalance(matcher.group(1)).negate(), "4"));
}
/*
* Find the next value that is "Köpgräns". Add a new account but don't add to the balance.
Expand Down

0 comments on commit 445aff8

Please sign in to comment.