From f7d24cd8ab271c5f425941318e7955669f8b2bbc Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Mon, 29 Jun 2020 09:39:41 -0400 Subject: [PATCH] fund: ODS report usability improvements. * Lock the first column. * Open the breakdown sheet by default. --- conservancy_beancount/reports/fund.py | 3 +++ setup.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/conservancy_beancount/reports/fund.py b/conservancy_beancount/reports/fund.py index 651358c..a789868 100644 --- a/conservancy_beancount/reports/fund.py +++ b/conservancy_beancount/reports/fund.py @@ -126,6 +126,7 @@ class ODSReport(core.BaseODS[FundPosts, None]): self.multiline_cell(["Of Which", "Unearned Income"], stylename=center_bold), ) self.lock_first_row() + self.lock_first_column() self.add_row() self.add_row(self.string_cell( f"Fund Report From {self.start_date.isoformat()} To {self.stop_date.isoformat()}", @@ -171,7 +172,9 @@ class ODSReport(core.BaseODS[FundPosts, None]): for index in reversed(skip_rows): del sheet.childNodes[index] self.lock_first_row(sheet) + self.lock_first_column(sheet) self.document.spreadsheet.insertBefore(sheet, self.sheet) + self.set_open_sheet(self.sheet) def _row_balances(self, accounts_map: AccountsMap) -> Iterable[core.Balance]: acct_order = ['Income', 'Expenses', 'Equity'] diff --git a/setup.py b/setup.py index 00c177e..2105778 100755 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ from setuptools import setup setup( name='conservancy_beancount', description="Plugin, library, and reports for reading Conservancy's books", - version='1.5.3', + version='1.5.4', author='Software Freedom Conservancy', author_email='info@sfconservancy.org', license='GNU AGPLv3+',