FINERACT-574
This commit is contained in:
+4
@@ -70,6 +70,10 @@ public enum PurchasedSharesStatusType {
|
|||||||
return this.value.equals(PurchasedSharesStatusType.APPROVED.getValue());
|
return this.value.equals(PurchasedSharesStatusType.APPROVED.getValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isRejected() {
|
||||||
|
return this.value.equals(PurchasedSharesStatusType.REJECTED.getValue());
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isPurchased() {
|
public boolean isPurchased() {
|
||||||
return this.value.equals(PurchasedSharesStatusType.PURCHASED.getValue());
|
return this.value.equals(PurchasedSharesStatusType.PURCHASED.getValue());
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -439,7 +439,7 @@ public class ShareAccount extends AbstractPersistableCustom<Long> {
|
|||||||
this.totalSharesPending = null;
|
this.totalSharesPending = null;
|
||||||
this.totalSharesApproved = null;
|
this.totalSharesApproved = null;
|
||||||
for (ShareAccountTransaction transaction : this.shareAccountTransactions) {
|
for (ShareAccountTransaction transaction : this.shareAccountTransactions) {
|
||||||
if(transaction.isPurchasTransaction()) {
|
if(transaction.isPendingForApprovalTransaction()) {
|
||||||
transaction.reject();
|
transaction.reject();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user