Changeset - 2c3438ba0f89
[Not reviewed]
0 2 0
Brett Smith - 4 years ago 2020-09-03 21:01:28
brettcsmith@brettcsmith.org
balance_sheet: Add account code column to chart of accounts.
2 files changed with 8 insertions and 2 deletions:
0 comments (0 inline, 0 general)
conservancy_beancount/reports/balance_sheet.py
Show inline comments
...
 
@@ -200,3 +200,3 @@ class Balances:
 

	
 
    def iter_accounts(self, root: str) -> Sequence[data.Account]:
 
    def iter_accounts(self, root: Optional[str]=None) -> Sequence[data.Account]:
 
        start_date = self.period_range.start
...
 
@@ -575,2 +575,3 @@ class Report(core.BaseODS[Sequence[None], None]):
 
            ["Classification"],
 
            ["Account Code"],
 
            ["Balance Beginning", self.balances.period_range.start.strftime(self.date_fmt)],
...
 
@@ -590,2 +591,6 @@ class Report(core.BaseODS[Sequence[None], None]):
 
        ), header_row.lastChild)
 
        # Hide account code if it's not ready.
 
        # FIXME: This code can be removed once codes are fully established.
 
        if not any(acct.meta.get('account-code') for acct in self.balances.iter_accounts()):
 
            self.sheet.childNodes[2].setAttribute('visibility', 'collapse')
 

	
...
 
@@ -608,2 +613,3 @@ class Report(core.BaseODS[Sequence[None], None]):
 
                    self.string_cell(account.meta.get('classification', '')),
 
                    self.string_cell(account.meta.get('account-code', '')),
 
                    open_cell,
setup.py
Show inline comments
...
 
@@ -7,3 +7,3 @@ setup(
 
    description="Plugin, library, and reports for reading Conservancy's books",
 
    version='1.9.4',
 
    version='1.9.5',
 
    author='Software Freedom Conservancy',
0 comments (0 inline, 0 general)