Skip to content

Error with [e['taxtable']['percent_sum']] #1

@eduncan911

Description

@eduncan911

First of all, it looks like your post nor your reddit post got any of the love it deserves! This is awesome!

In the US, we don't often use tax tables for general invoices. My GNUcash does not have any tax tables.

So when I run your bash script with a new invoice, I get:

WARNING:gcinvoice:Cannot do template for expression [e['taxtable']['percent_sum']]
Traceback (most recent call last):
  File "/home/eric/.local/lib/python3.9/site-packages/gcinvoice/yaptu.py", line 45, in repl
    return str(eval(expr, self.globals, self.locals))
  File "<string>", line 1, in <module>
KeyError: 'taxtable'
ERROR:gcinvoice:Error in template

I tried looking at the tex template and yowser, that hurts my head in trying to figure out how to delete it.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions