Fix switch of currencies when converting invoice line amount to company currency

issue4393
review6731002
Add missing company domain/field

issue4311
review7691002