Source:
<code>private void buildAccountTransaction(Client client, Element eElement) throws ParseException { AccountTransaction transaction = new AccountTransaction(); transaction.setDate(convertDate(eElement.getAttribute("dateTime"))); Double amount = Double.parseDouble(eElement.getAttribute("amount")); if (eElement.getAttribute("type").equals("Deposits") || eElement.getAttribute("type").equals("Deposits & Withdrawals")) { if (amount >= 0) { transaction.setType(AccountTransaction.Type.DEPOSIT); } else { transaction.setType(AccountTransaction.Type.REMOVAL); } } else if (eElement.getAttribute("type").equals("Dividends") || eElement.getAttribute("type").equals("Payment In Lieu Of Dividends")) { transaction.setType(AccountTransaction.Type.DIVIDENDS); if (eElement.getAttribute("symbol").length() > 0) transaction.setSecurity(this.getOrCreateSecurity(client, eElement, true)); this.calculateShares(transaction, eElement); } else if (eElement.getAttribute("type").equals("Withholding Tax")) { if (eElement.getAttribute("symbol").length() > 0) transaction.setSecurity(this.getOrCreateSecurity(client, eElement, true)); transaction.setType(AccountTransaction.Type.TAXES); throw new ParseException( eElement.getAttribute("dateTime") + " Witholding Tax is not supported", 0); } <START> else if (eElement.getAttribute("type").equals("Broker Interest Recieved")) <END> { transaction.setType(AccountTransaction.Type.INTEREST); } else if (eElement.getAttribute("type").equals("Broker Interest Paid")) { throw new ParseException( eElement.getAttribute("dateTime") + " Broker Interest Paid is not supported", 0); } else if (eElement.getAttribute("type").equals("Other Fees")) { transaction.setType(AccountTransaction.Type.FEES); } else { throw new IllegalArgumentException(); } amount = Math.abs(amount); transaction.setAmount(Math.round(amount.doubleValue() * Values.Amount.factor())); transaction.setNote(eElement.getAttribute("description")); results.add(new TransactionItem(transaction)); }</code><technical_language>'recieved' oder 'received'? <LINK_1> <LINK_0></technical_language>

Target:
private void buildAccountTransaction(Client client, Element eElement) throws ParseException { AccountTransaction transaction = new AccountTransaction(); transaction.setDate(convertDate(eElement.getAttribute("dateTime"))); Double amount = Double.parseDouble(eElement.getAttribute("amount")); if (eElement.getAttribute("type").equals("Deposits") || eElement.getAttribute("type").equals("Deposits & Withdrawals")) { if (amount >= 0) { transaction.setType(AccountTransaction.Type.DEPOSIT); } else { transaction.setType(AccountTransaction.Type.REMOVAL); } } else if (eElement.getAttribute("type").equals("Dividends") || eElement.getAttribute("type").equals("Payment In Lieu Of Dividends")) { transaction.setType(AccountTransaction.Type.DIVIDENDS); if (eElement.getAttribute("symbol").length() > 0) transaction.setSecurity(this.getOrCreateSecurity(client, eElement, true)); this.calculateShares(transaction, eElement); } else if (eElement.getAttribute("type").equals("Withholding Tax")) { if (eElement.getAttribute("symbol").length() > 0) transaction.setSecurity(this.getOrCreateSecurity(client, eElement, true)); transaction.setType(AccountTransaction.Type.TAXES); throw new ParseException( eElement.getAttribute("dateTime") + " Witholding Tax is not supported", 0); } else if (eElement.getAttribute("type").equals("Broker Interest Received")) { transaction.setType(AccountTransaction.Type.INTEREST); } else if (eElement.getAttribute("type").equals("Broker Interest Paid")) { throw new ParseException( eElement.getAttribute("dateTime") + " Broker Interest Paid is not supported", 0); } else if (eElement.getAttribute("type").equals("Other Fees")) { transaction.setType(AccountTransaction.Type.FEES); } else { throw new IllegalArgumentException(); } amount = Math.abs(amount); transaction.setAmount(Math.round(amount.doubleValue() * Values.Amount.factor())); transaction.setNote(eElement.getAttribute("description")); results.add(new TransactionItem(transaction)); }