Invoices: State and tracking implementation

Solves subtask of https://github.com/kaspernj/awesome_tasks/issues/144