Correct faulty BOM characters in sql files
Issue #21155 Functions are using current date as exchange rate causing AP inconsistencies
	Replace with target (Voucher) document date
Issue #21156 Currency Gain/Loss calculation incorrect as Voucher exchange rate is outside of loop
	thus only selects the last voucher's rate.  Incorrect where multiple targets have different
	rates.
Merge pull request #42 from andersdd/21156

Issues 21155 and 21156