private static final Pattern reTransactionDescription =
Pattern.compile("<tr class=\"posting\" title=\"(\\S+)\\s(.+)");
private static final Pattern reTransactionDetails =
private static final Pattern reTransactionDescription =
Pattern.compile("<tr class=\"posting\" title=\"(\\S+)\\s(.+)");
private static final Pattern reTransactionDetails =
private static final Pattern reEnd = Pattern.compile("\\bid=\"addmodal\"");
private static final Pattern reDecimalPoint = Pattern.compile("\\.\\d\\d?$");
private static final Pattern reDecimalComma = Pattern.compile(",\\d\\d?$");
private static final Pattern reEnd = Pattern.compile("\\bid=\"addmodal\"");
private static final Pattern reDecimalPoint = Pattern.compile("\\.\\d\\d?$");
private static final Pattern reDecimalComma = Pattern.compile(",\\d\\d?$");
HashMap<String, Void> accountNames = new HashMap<>();
HashMap<String, LedgerAccount> syntheticAccounts = new HashMap<>();
LedgerAccount lastAccount = null, prevAccount = null;
HashMap<String, Void> accountNames = new HashMap<>();
HashMap<String, LedgerAccount> syntheticAccounts = new HashMap<>();
LedgerAccount lastAccount = null, prevAccount = null;
HttpURLConnection http = NetworkUtil.prepareConnection(profile, "journal");
http.setAllowUserInteraction(false);
HttpURLConnection http = NetworkUtil.prepareConnection(profile, "journal");
http.setAllowUserInteraction(false);
L(String.format("gap-filling with %s", aName));
accountNames.put(aName, null);
profile.storeAccount(db, acc);
L(String.format("gap-filling with %s", aName));
accountNames.put(aName, null);
profile.storeAccount(db, acc);
accountList.add(lastAccount);
accountNames.put(acct_name, null);
accountList.add(lastAccount);
accountNames.put(acct_name, null);
- String acc_name = m.group(1);
- String amount = m.group(2);
- String currency = m.group(3);
+ String postingStatus = m.group(1);
+ String acc_name = m.group(2);
+ String amount = m.group(3);
+ String currency = m.group(4);
if (currency == null) currency = "";
amount = amount.replace(',', '.');
transaction.addAccount(new LedgerTransactionAccount(acc_name,
if (currency == null) currency = "";
amount = amount.replace(',', '.');
transaction.addAccount(new LedgerTransactionAccount(acc_name,
L(String.format(Locale.ENGLISH, "%d: %s = %s",
transaction.getId(), acc_name, amount));
}
L(String.format(Locale.ENGLISH, "%d: %s = %s",
transaction.getId(), acc_name, amount));
}