use of name.abuchen.portfolio.datatransfer.actions.CheckCurrenciesAction in project portfolio by buchen.
the class ConsorsbankPDFExtractorTest method checkCurrency.
private void checkCurrency(final String accountCurrency, AccountTransaction transaction) {
Account account = new Account();
account.setCurrencyCode(accountCurrency);
Status status = new CheckCurrenciesAction().process(transaction, account);
assertThat(status.getCode(), is(Code.OK));
}
use of name.abuchen.portfolio.datatransfer.actions.CheckCurrenciesAction in project portfolio by buchen.
the class ReviewExtractedItemsPage method checkEntries.
private void checkEntries(List<ExtractedEntry> entries) {
List<ImportAction> actions = new ArrayList<>();
actions.add(new CheckValidTypesAction());
actions.add(new DetectDuplicatesAction());
actions.add(new CheckCurrenciesAction());
for (ExtractedEntry entry : entries) {
entry.clearStatus();
for (ImportAction action : actions) entry.addStatus(entry.getItem().apply(action, this));
}
}
Aggregations