Entity/Account.php
public static function getAccountNameSuffix($type_code)
    {
        switch ($type_code)
        {
            case Account::TYPE_ACCOUNTS_RECEIVABLE: return ' A/R';
            case Account::TYPE_ACCOUNTS_PAYABLE:    return ' A/P';
            case Account::TYPE_SALES:               return ' Sales';
            case Account::TYPE_BANK:                return ' Bank';

            default:

                throw new \Exception('Incorrect type_code: '.$type_code);
        }
    }
public static function getAccountNameSuffix($type_code)
    {
        switch ($type_code)
        {
            case Account::TYPE_ACCOUNTS_RECEIVABLE: return ' A/R';
            case Account::TYPE_ACCOUNTS_PAYABLE:    return ' A/P';
            case Account::TYPE_SALES:               return ' Sales';
            case Account::TYPE_BANK:                return ' Bank';

            default:

                throw new \Exception('Incorrect type_code: '.$type_code);
        }
    }
public static function getAccountNameSuffix ( $ type_code ) { switch ( $ type_code ) { case Account :: TYPE_ACCOUNTS_RECEIVABLE : return ' A/R' ; case Account :: TYPE_ACCOUNTS_PAYABLE : return ' A/P' ; case Account :: TYPE_SALES : return ' Sales' ; case Account :: TYPE_BANK : return ' Bank' ; default : throw new \ Exception ( 'Incorrect type_code: ' . $ type_code ) ; } }
Get account name suffix

@author Tom Haskins-Vaughan <tom@harvestcloud.com>
@since  2012-05-21

@return string
Get account name suffix