xtuple/database — pull request #42 by andersdd (2013-08-26 22:50:35+00:00)
Title: Issues 21155 and 21156

Issue 21155 is caused by AP credit memo applications using the current_date instead of the target (voucher) date leading to inconsistent AP postings when the CM and VO are in different currencies. It resolves inconsistencies between the Apply to Balance/Line (which used current_date) and the Apply button (which used the AP Voucher date).

Issue 21156 occurred when applying a CM to multiple vouchers where the voucher currency rates where different leading to incorrect gain/loss calculations.