adamsaghy commented on code in PR #6109:
URL: https://github.com/apache/fineract/pull/6109#discussion_r3553069901


##########
fineract-working-capital-loan/src/main/java/org/apache/fineract/portfolio/workingcapitalloan/domain/WorkingCapitalLoanBreachSchedule.java:
##########
@@ -71,4 +71,18 @@ public class WorkingCapitalLoanBreachSchedule extends 
AbstractAuditableWithUTCDa
     @Column(name = "breach")
     private Boolean breach;
 
+    @Column(name = "reset", nullable = false)
+    private boolean reset;
+
+    public void reset() {
+        this.reset = true;
+        this.breach = null;
+        this.nearBreach = null;
+        this.outstandingAmount = null;
+        this.paidAmount = null;
+    }
+
+    public BigDecimal getMinPaymentAmount() {
+        return reset ? null : this.minPaymentAmount;

Review Comment:
   safe guards are there



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to