Skip to content

Commit

Permalink
FINERACT-574
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenge authored and Nenge committed Feb 8, 2018
1 parent 8ac5485 commit 613b802
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ public String getCode() {
public boolean isApproved() {
return this.value.equals(PurchasedSharesStatusType.APPROVED.getValue());
}

public boolean isRejected() {
return this.value.equals(PurchasedSharesStatusType.REJECTED.getValue());
}

public boolean isPurchased() {
return this.value.equals(PurchasedSharesStatusType.PURCHASED.getValue());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ public void reject(final Date rejectedDate, final AppUser rejectedUser) {
this.totalSharesPending = null;
this.totalSharesApproved = null;
for (ShareAccountTransaction transaction : this.shareAccountTransactions) {
if(transaction.isPurchasTransaction()) {
if(transaction.isPendingForApprovalTransaction()) {
transaction.reject();
}
}
Expand Down

0 comments on commit 613b802

Please sign in to comment.