invoice/ui: fix typo
commands/write_template: add static configs
commands/write_template: constructor must also acquire invoice