FINERACT-2081: Payments after loan charge - payment allocation

This commit is contained in:
Marta Jankovics
2024-09-25 10:31:08 +02:00
committed by Adam Saghy
parent 2d0c8db993
commit 31c9079ad9
17 changed files with 746 additions and 228 deletions
@@ -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));
}