FINERACT-574
This commit is contained in:
+4
@@ -69,6 +69,10 @@ public enum PurchasedSharesStatusType {
|
||||
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());
|
||||
|
||||
+1
-1
@@ -439,7 +439,7 @@ public class ShareAccount extends AbstractPersistableCustom<Long> {
|
||||
this.totalSharesPending = null;
|
||||
this.totalSharesApproved = null;
|
||||
for (ShareAccountTransaction transaction : this.shareAccountTransactions) {
|
||||
if(transaction.isPurchasTransaction()) {
|
||||
if(transaction.isPendingForApprovalTransaction()) {
|
||||
transaction.reject();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user