Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python_accounting/reports/financial_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _print_section(self, section, factor=1) -> str:
for account_type, balance in self.balances[section.name].items():
label = f"\n{self.indent}{account_type}"
content += f"{label}{balance * factor:>{self.width - len(label) + 1}}"
return content
return content

def _print_result(self, result, grandtotal=False) -> str:
return f"""{f"{self.subtotal:>{self.width}}"}\n{result}{f"{self.result_amounts[result.name]:>{self.width - len(result)}}"}\n{f"{self.grandtotal:>{self.width}}" if grandtotal else ""}"""
Expand Down