Topic: modifying the array $class_types

hi,

I know that $class_types is defined in sysnames.inc as following:

$class_types = array(
    CL_ASSETS => _("Assets"),
    CL_LIABILITIES => _("Liabilities"),
    CL_EQUITY => _("Equity"),
    CL_INCOME => _("Income"),
    CL_COGS => _("Cost of Goods Sold"),
    CL_EXPENSE => _("Expense"),
);

I want to delete CL_COGS => _("Cost of Goods Sold"), will it make problem in the system or will affect the reports or any place in the system.

waiting your response.

Thanks

Re: modifying the array $class_types

Most probably the class is used in sales. If it's used, you will be in trouble.

Subscription service based on FA
HRM CRM POS batch Themes

Re: modifying the array $class_types

Ok @kvvaradha,

so in this case,
I understand from your reply, that if the system is clean, then I can delete it, so it will not affect the reports, or any calculations in the system.

because I will install clean system for this,
Because I have an accountant who don't want this "Cost of Goods Sold" to be a main class, he want it to be included under other main class which is Expense.

he want only 5 main classes except the Cost of Goods Sold.

waiting your reply.

Thanks

Re: modifying the array $class_types

You don't have to delete it. Just remove the group number from class COGS and point it to an expense class. This way you will not see it in practise. If no groups is using the Cogs class it will not be seen. At least I hope so.

Joe

Re: modifying the array $class_types

Hi @joe,

Where can I find the class COGS , in which file name.

Thanks

Re: modifying the array $class_types

@joe  has the point. Simply goto banking and general ledger. Under maintenance you can see GL account classes. Just edit to remove the account classes used with cogs. It's done.

Subscription service based on FA
HRM CRM POS batch Themes

7 (edited by trainer2008 09/09/2020 08:50:25 pm)

Re: modifying the array $class_types

Hi @joe and @kvvaradha

Oh, Yes I got it, sorry, my mistake I thought you were talking about a PHP class.

Thanks