Fixes #3323 : error with currencies in multi-company setup