public void createAccount()

in service/src/main/java/org/apache/fineract/cn/interoperation/service/internal/service/helper/InteropAccountingService.java [56:77]


    public void createAccount(String equityLedger,
                              String productName,
                              String customer,
                              String accountNumber,
                              String alternativeAccountNumber,
                              Double balance) {
        try {
            Ledger ledger = ledgerManager.findLedger(equityLedger);
            Account account = new Account();
            account.setIdentifier(accountNumber);
            account.setType(ledger.getType());
            account.setLedger(equityLedger);
            account.setName(productName);
            account.setHolders(new HashSet<>(Lists.newArrayList(customer)));
            account.setBalance(balance != null ? balance : 0.00D);
            account.setAlternativeAccountNumber(alternativeAccountNumber);

            ledgerManager.createAccount(account);
        } catch (LedgerNotFoundException lnfex) {
            throw ServiceException.notFound("Ledger {0} not found.", equityLedger);
        }
    }