Topic: How to change $systypes_array headings

Is it possible to change the $systypes_array headings from any given extension without changing the Core?

For example for ST_SALESINVOICE I want the heading to be displayed as 'Donations' so can I change it from the extension?

Regards.

www.boxygen.pk

Re: How to change $systypes_array headings

Use a local property in your extension application class and code it as:

var $extn_$systypes_array = $systypes_array;
$extn_systypes_array[ST_SALESINVOICE] = _('Donations');

Re: How to change $systypes_array headings

I defined like this but it didn't work

class hooks_masjid extends hooks {
    var $module_name = 'masjid';
    var $extn_systypes_array ;

    /*
        Install additonal menu options provided by module
    */
    function install_options($app) {
        global $path_to_root, $systypes_array;

        $extn_systypes_array = $systypes_array;
        $extn_systypes_array[ST_SALESINVOICE] = _('Donations');
www.boxygen.pk

Re: How to change $systypes_array headings

When using it in the class let it be:

var $extn_$systypes_array = $systypes_array;
$this->extn_systypes_array[ST_SALESINVOICE] = _('Donations');