Skip to content

Commit

Permalink
Merge pull request apache#441 from Nenge1/FINERACT-574
Browse files Browse the repository at this point in the history
FINERACT-574
  • Loading branch information
ShruthiRajaram authored Dec 4, 2018
2 parents c113ef4 + 613b802 commit 5db61a2
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 5db61a2

Please sign in to comment.