ledger: Remove obsoleted hack.

This is no longer necessary now that the plugin enforces proper project
metadata on Equity accounts.
This commit is contained in:
Brett Smith 2020-06-18 10:05:37 -04:00
parent 7441f4ef0c
commit daf7e12752

View file

@ -366,10 +366,6 @@ class LedgerODS(core.BaseODS[data.Posting, data.Account]):
def write_balance_sheet(self) -> None:
balance_accounts = ['Equity', 'Income', 'Expenses']
# FIXME: This is a hack to exclude non-project Equity accounts from
# project reports.
if balance_accounts[0] not in self.required_sheet_names:
balance_accounts[0] = 'Equity:Funds'
self.use_sheet("Balance")
self.sheet.addElement(odf.table.TableColumn(stylename=self.column_style(3)))
self.sheet.addElement(odf.table.TableColumn(stylename=self.column_style(1.5)))