use of jgnash.ui.register.AccountBalanceDisplayManager in project jgnash by ccavanaugh.
the class ProfitLossTXT method run.
public void run() {
final Engine engine = EngineFactory.getEngine(EngineFactory.DEFAULT);
Objects.requireNonNull(engine);
final CurrencyNode baseCommodity = engine.getDefaultCurrency();
final LocalDate[] dates = getDates();
if (dates != null) {
final String fileName = getFileName();
ProfitLossTextReport report = new ProfitLossTextReport(fileName, dates[0], dates[1], baseCommodity, AccountBalanceDisplayManager::convertToSelectedBalanceMode);
report.run();
}
}
Aggregations