7.0 opw 611254 vra

Current system is not converting amount for purchase and sale receipt voucher to company currency by applying proper rate.

The propose pull request fixes the issue while creating multi-currency environment with purchase and sale type of voucher.

Do not put a comment on the state of the previous code, it's not understandable when you read the current code.