FINERACT-1981: Pay-off schedule handling
This commit is contained in:
committed by
Adam Saghy
parent
e94ce7f1df
commit
49e9005109
+8
-4
@@ -46,20 +46,24 @@ public class OutstandingAmountsDTO {
|
||||
.plus(penaltyCharges());
|
||||
}
|
||||
|
||||
public void plusPrincipal(Money principal) {
|
||||
public OutstandingAmountsDTO plusPrincipal(Money principal) {
|
||||
this.principal = this.principal.plus(principal);
|
||||
return this;
|
||||
}
|
||||
|
||||
public void plusInterest(Money interest) {
|
||||
public OutstandingAmountsDTO plusInterest(Money interest) {
|
||||
this.interest = this.interest.plus(interest);
|
||||
return this;
|
||||
}
|
||||
|
||||
public void plusFeeCharges(Money feeCharges) {
|
||||
public OutstandingAmountsDTO plusFeeCharges(Money feeCharges) {
|
||||
this.feeCharges = this.feeCharges.plus(feeCharges);
|
||||
return this;
|
||||
}
|
||||
|
||||
public void plusPenaltyCharges(Money penaltyCharges) {
|
||||
public OutstandingAmountsDTO plusPenaltyCharges(Money penaltyCharges) {
|
||||
this.penaltyCharges = this.penaltyCharges.plus(penaltyCharges);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user