public function createChartOfAccounts(OrganizationInterface $organization)
    {
        $account = $this->accountFqcn;

        $chart = new $account($organization->getName());
        $organization->setChartOfAccounts($chart);

        $chart->addChild($assets = new $account('Assets'));
        $assets->addChild($bank = new $account('Bank'));
        $bank->addChild($checking = new $account('Checking'));

        $chart->addChild($equity = new $account('Equity'));
        $equity->addChild($opening = new $account('Opening Balance'));

        $chart->addChild($expenses = new $account('Expenses'));
        $expenses->addChild($food = new $account('Food'));
        $expenses->addChild($auto = new $account('Auto'));
        $auto->addChild($gas = new $account('Gas'));
        $expenses->addChild($childcare = new $account('Childcare'));

        $chart->addChild($income = new $account('Income'));
        $income->addChild($salary = new $account('Salary'));

        $chart->addChild($liabilities = new $account('Liabilities'));
        $liabilities->addChild($cc = new $account('Credit Cards'));

        return $chart;
    }
public function createChartOfAccounts(OrganizationInterface $organization)
    {
        $account = $this->accountFqcn;

        $chart = new $account($organization->getName());
        $organization->setChartOfAccounts($chart);

        $chart->addChild($assets = new $account('Assets'));
        $assets->addChild($bank = new $account('Bank'));
        $bank->addChild($checking = new $account('Checking'));

        $chart->addChild($equity = new $account('Equity'));
        $equity->addChild($opening = new $account('Opening Balance'));

        $chart->addChild($expenses = new $account('Expenses'));
        $expenses->addChild($food = new $account('Food'));
        $expenses->addChild($auto = new $account('Auto'));
        $auto->addChild($gas = new $account('Gas'));
        $expenses->addChild($childcare = new $account('Childcare'));

        $chart->addChild($income = new $account('Income'));
        $income->addChild($salary = new $account('Salary'));

        $chart->addChild($liabilities = new $account('Liabilities'));
        $liabilities->addChild($cc = new $account('Credit Cards'));

        return $chart;
    }
public function createChartOfAccounts ( OrganizationInterface $ organization ) { $ account = $ this -> accountFqcn ; $ chart = new $ account ( $ organization -> getName ( ) ) ; $ organization -> setChartOfAccounts ( $ chart ) ; $ chart -> addChild ( $ assets = new $ account ( 'Assets' ) ) ; $ assets -> addChild ( $ bank = new $ account ( 'Bank' ) ) ; $ bank -> addChild ( $ checking = new $ account ( 'Checking' ) ) ; $ chart -> addChild ( $ equity = new $ account ( 'Equity' ) ) ; $ equity -> addChild ( $ opening = new $ account ( 'Opening Balance' ) ) ; $ chart -> addChild ( $ expenses = new $ account ( 'Expenses' ) ) ; $ expenses -> addChild ( $ food = new $ account ( 'Food' ) ) ; $ expenses -> addChild ( $ auto = new $ account ( 'Auto' ) ) ; $ auto -> addChild ( $ gas = new $ account ( 'Gas' ) ) ; $ expenses -> addChild ( $ childcare = new $ account ( 'Childcare' ) ) ; $ chart -> addChild ( $ income = new $ account ( 'Income' ) ) ; $ income -> addChild ( $ salary = new $ account ( 'Salary' ) ) ; $ chart -> addChild ( $ liabilities = new $ account ( 'Liabilities' ) ) ; $ liabilities -> addChild ( $ cc = new $ account ( 'Credit Cards' ) ) ; return $ chart ; }
Create new chart of accounts

@author Tom Haskins-Vaughan <tom@tomhv.uk>
@since  0.8.0

@param  OrganizationInterface $organization

@return Account
Create new chart of accounts