Skip to content
Snippets Groups Projects
Commit 651e9583 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

Fixed #152 - Report budget is calculated incorrectly

parent 9eeab57d
Branches
Tags
1 merge request!160merge v1_4_0 into master
......@@ -173,7 +173,7 @@ public class ReportGenerator
document.add(Chunk.NEWLINE);
document.add(new Paragraph("Einnahmen: " + Helpers.getCurrencyString(budget.getIncomeSum(), currency), fontGreen));
document.add(new Paragraph("Ausgaben: " + Helpers.getCurrencyString(budget.getPaymentSum(), currency), fontRed));
document.add(new Paragraph("Restbudget: " + Helpers.getCurrencyString(budget.getIncomeSum()-budget.getPaymentSum(), currency), fontBlack));
document.add(new Paragraph("Restbudget: " + Helpers.getCurrencyString(budget.getIncomeSum() + budget.getPaymentSum(), currency), fontBlack));
document.add(Chunk.NEWLINE);
}
......
......@@ -529,7 +529,7 @@ public class ReportController implements Refreshable
}
else
{
fileChooser.setInitialFileName( Localization.getString(initialReportPath));
fileChooser.setInitialFileName(initialReportPath);
}
fileChooser.getExtensionFilters().add(extFilter);
File file = fileChooser.showSaveDialog(controller.getStage());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment