OUAF Release 4.3.0.2.0
Removed Two-decimal Money Limitation
Bug: A change was made to allow for 0, 1, 3, or more decimal places for money objects. Code that is incorrectly comparing number values using the Java "equals()," method must be changed to use the compareTo() or isEqualTo() methods. This code might have worked in the past due to the hard-coding of two decimal places. A money value of "2" would be returned as "2.00". This is no longer true, since the decimal places for money are now based on metadata, and returns the proper number of digits.
21788123 - INVOICING - CURRENCY / DECIMAL ISSUES
Incorrect Code Example:
assertEquals(algComp.getTotalAmount(), new Money(adjustmentAmount, new Currency_Id("USD")));
 
Correct Code:
assertEquals(algComp.getTotalAmount().compareTo(new Money(adjustmentAmount, new Currency_Id("USD"))), 0);