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


##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsAccount.java:
##########
@@ -3713,14 +3713,14 @@ public Integer getSubStatus() {
     public void validateForAccountBlock() {
         final SavingsAccountSubStatusEnum currentSubStatus = 
SavingsAccountSubStatusEnum.fromInt(this.getSubStatus());
         if (SavingsAccountSubStatusEnum.BLOCK.hasStateOf(currentSubStatus)) {
-            throw new SavingsAccountBlockedException(this.getId());
+            throw new SavingsAccountBlockedException(getAccountNumber());

Review Comment:
   This looks to me a breaking change.
   Also I have checked and none of the other exceptions are using the account 
number! all of them using the account id instead…
   
   What is the business need behind this change?



##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsAccount.java:
##########
@@ -3713,14 +3713,14 @@ public Integer getSubStatus() {
     public void validateForAccountBlock() {
         final SavingsAccountSubStatusEnum currentSubStatus = 
SavingsAccountSubStatusEnum.fromInt(this.getSubStatus());
         if (SavingsAccountSubStatusEnum.BLOCK.hasStateOf(currentSubStatus)) {
-            throw new SavingsAccountBlockedException(this.getId());
+            throw new SavingsAccountBlockedException(getAccountNumber());

Review Comment:
   This looks to me a breaking change.
   Also I have checked and none of the other exceptions are using the account 
number! all of them using the account id instead…
   
   What is the business need behind this change?



-- 
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