key_commit: Fixed a couple of issues with the diagnostics to fill in the origin on adtax and invoices