public function getChartOfAccounts()
    {
        $organization = $this->oh->getOrganization();

        if (!$organization->getChartOfAccounts()) {
            $chart = $this->createChartOfAccounts($organization);

            $this->em->persist($organization);
            $this->em->flush();
        }

        return $organization->getChartOfAccounts();
    }
public function getChartOfAccounts()
    {
        $organization = $this->oh->getOrganization();

        if (!$organization->getChartOfAccounts()) {
            $chart = $this->createChartOfAccounts($organization);

            $this->em->persist($organization);
            $this->em->flush();
        }

        return $organization->getChartOfAccounts();
    }
public function getChartOfAccounts ( ) { $ organization = $ this -> oh -> getOrganization ( ) ; if ( ! $ organization -> getChartOfAccounts ( ) ) { $ chart = $ this -> createChartOfAccounts ( $ organization ) ; $ this -> em -> persist ( $ organization ) ; $ this -> em -> flush ( ) ; } return $ organization -> getChartOfAccounts ( ) ; }
Get chart of accounts for current Organization

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

@return Account
Get chart of accounts for current Organization