Topic: how i add or delete some item from menu ?

hello i am new in front accounting i want to remove some tab in main menu and also remove some item from sale page and other kindly anyone have an idea about this ?
thanks in advance

2 (edited by apmuthu 09/22/2014 12:49:10 pm)

Re: how i add or delete some item from menu ?

Lines 15 to 21 of frontaccounting.php:

    include_once($path_to_root . '/applications/customers.php');
    include_once($path_to_root . '/applications/suppliers.php');
    include_once($path_to_root . '/applications/inventory.php');
    include_once($path_to_root . '/applications/manufacturing.php');
    include_once($path_to_root . '/applications/dimensions.php');
    include_once($path_to_root . '/applications/generalledger.php');
    include_once($path_to_root . '/applications/setup.php');

Comment out which ever tab you do not want. The first one (applications/customers.php is sales).

Way down in the same file comment out the applications ($this->add_application) you don not want:

        function init()
        {

            $this->menu = new menu(_("Main  Menu"));
            $this->menu->add_item(_("Main  Menu"), "index.php");
            $this->menu->add_item(_("Logout"), "/account/access/logout.php");
            $this->applications = array();
            $this->add_application(new customers_app());
            $this->add_application(new suppliers_app());
            $this->add_application(new inventory_app());
            $this->add_application(new manufacturing_app());
            $this->add_application(new dimensions_app());
            $this->add_application(new general_ledger_app());

            hook_invoke_all('install_tabs', $this);

            $this->add_application(new setup_app());
        }

In applications/customers.php comment out which ever add_module or add_lapp_function or add_rapp_function you do not want. The rapp is Right side located function and lapp is left side located function.

Re: how i add or delete some item from menu ?

Here i wrote an simple article for new  menu creation.

http://www.kvcodes.com/2014/01/create-new-menu-item-in-frontaccounting/

Subscription service based on FA
HRM CRM POS batch Themes