fund: ODS report usability improvements.

* Lock the first column.
* Open the breakdown sheet by default.
This commit is contained in:
Brett Smith 2020-06-29 09:39:41 -04:00
parent 2c61f2b9f2
commit f7d24cd8ab
2 changed files with 4 additions and 1 deletions

View file

@ -126,6 +126,7 @@ class ODSReport(core.BaseODS[FundPosts, None]):
self.multiline_cell(["Of Which", "Unearned Income"], stylename=center_bold), self.multiline_cell(["Of Which", "Unearned Income"], stylename=center_bold),
) )
self.lock_first_row() self.lock_first_row()
self.lock_first_column()
self.add_row() self.add_row()
self.add_row(self.string_cell( self.add_row(self.string_cell(
f"Fund Report From {self.start_date.isoformat()} To {self.stop_date.isoformat()}", 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): for index in reversed(skip_rows):
del sheet.childNodes[index] del sheet.childNodes[index]
self.lock_first_row(sheet) self.lock_first_row(sheet)
self.lock_first_column(sheet)
self.document.spreadsheet.insertBefore(sheet, self.sheet) self.document.spreadsheet.insertBefore(sheet, self.sheet)
self.set_open_sheet(self.sheet)
def _row_balances(self, accounts_map: AccountsMap) -> Iterable[core.Balance]: def _row_balances(self, accounts_map: AccountsMap) -> Iterable[core.Balance]:
acct_order = ['Income', 'Expenses', 'Equity'] acct_order = ['Income', 'Expenses', 'Equity']

View file

@ -5,7 +5,7 @@ from setuptools import setup
setup( setup(
name='conservancy_beancount', name='conservancy_beancount',
description="Plugin, library, and reports for reading Conservancy's books", description="Plugin, library, and reports for reading Conservancy's books",
version='1.5.3', version='1.5.4',
author='Software Freedom Conservancy', author='Software Freedom Conservancy',
author_email='info@sfconservancy.org', author_email='info@sfconservancy.org',
license='GNU AGPLv3+', license='GNU AGPLv3+',