in service/src/main/java/org/apache/fineract/cn/cheque/service/internal/service/helper/DepositService.java [50:71]
public List<Charge> getIssueChequeCharges(final String accountIdentifier) {
final List<Action> actions = this.depositAccountManager.fetchActions();
final List<String> issueChequeActions =
actions
.stream()
.filter(action -> action.getTransactionType().equals(ServiceConstants.TX_ISSUE_CHEQUES))
.map(Action::getIdentifier)
.collect(Collectors.toList());
final ProductInstance productInstance =
this.depositAccountManager.findProductInstance(accountIdentifier);
final ProductDefinition productDefinition =
this.depositAccountManager.findProductDefinition(productInstance.getProductIdentifier());
return productDefinition.getCharges()
.stream()
.filter(charge -> issueChequeActions.contains(charge.getActionIdentifier()))
.collect(Collectors.toList());
}