Search in sources :

Example 1 with AccountBalanceDisplayManager

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();
    }
}
Also used : CurrencyNode(jgnash.engine.CurrencyNode) ProfitLossTextReport(jgnash.report.ProfitLossTextReport) LocalDate(java.time.LocalDate) Engine(jgnash.engine.Engine) AccountBalanceDisplayManager(jgnash.ui.register.AccountBalanceDisplayManager)

Aggregations

LocalDate (java.time.LocalDate)1 CurrencyNode (jgnash.engine.CurrencyNode)1 Engine (jgnash.engine.Engine)1 ProfitLossTextReport (jgnash.report.ProfitLossTextReport)1 AccountBalanceDisplayManager (jgnash.ui.register.AccountBalanceDisplayManager)1