account statement stuff

This commit is contained in:
2022-03-31 21:40:49 +02:00
parent 2be6a6e140
commit 0d4e33505e
5 changed files with 63 additions and 19 deletions

View File

@ -20,10 +20,6 @@ def perform(dbh, params):
)
template = getParam(params, 'template', 'accountStatement.tmpl')
prefix = getParam(params, 'prefix', 'accountStatement')
suffix = getParam(params, 'suffix', 'tex')
input = { 'year': year, 'entries': accountEntries }
outputFile = f"{prefix}-{year}.{suffix}"
tmpl = Template(file=template, searchList=[ input ])
with open(outputFile, 'w') as f:
f.write(str(tmpl))
print(tmpl)