UPD

After some time it turned out that this method does not work correctly, so I used this paid module for solving problems with multicurrency.