FINERACT-1724: Negative numbers in delinquentDays field
This commit is contained in:
committed by
Adam Saghy
parent
edff4a410e
commit
b4cdb58fbe
+5
-3
@@ -139,10 +139,12 @@ public class LoanDelinquencyDomainServiceImpl implements LoanDelinquencyDomainSe
|
||||
collectionData.setDelinquentDate(overdueSinceDate);
|
||||
}
|
||||
collectionData.setDelinquentAmount(outstandingAmount);
|
||||
|
||||
if (overdueDays > 0) {
|
||||
collectionData.setDelinquentDays(overdueDays - graceDays);
|
||||
collectionData.setDelinquentDays(0L);
|
||||
Long delinquentDays = overdueDays - graceDays;
|
||||
if (delinquentDays > 0) {
|
||||
collectionData.setDelinquentDays(delinquentDays);
|
||||
}
|
||||
|
||||
log.debug("Result: {}", collectionData.toString());
|
||||
return collectionData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user