FINERACT-2081: Payments after loan charge - payment allocation
This commit is contained in:
committed by
Adam Saghy
parent
2d0c8db993
commit
31c9079ad9
+4
@@ -338,6 +338,10 @@ public final class MathUtil {
|
||||
|
||||
// ----------------- Money -----------------
|
||||
|
||||
public static BigDecimal toBigDecimal(Money value) {
|
||||
return value == null ? null : value.getAmount();
|
||||
}
|
||||
|
||||
public static Money nullToZero(Money value, @NotNull MonetaryCurrency currency) {
|
||||
return nullToDefault(value, Money.zero(currency));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user