Use origin with credit invoice

issue1426
review1076003
Fix duplicate translations

issue3355
review1087004
Fix invoice template

- Fix deprecation warning for date in format_lang
- Merge origins and reference