Skip to content
Snippets Groups Projects
Select Git revision
  • 04c0e87d792c727e1c1465f645f9ae833c59211f
  • 3.9 default
  • develop
  • 6.0
  • 5.0
  • 4.0
  • scrutinizer-patch-4
  • scrutinizer-patch-3
  • scrutinizer-patch-2
  • scrutinizer-patch-1
  • 3.7
  • 3.8
  • 3.6
  • 3.9_backported
  • 3.8_backported
  • 3.7_backported
  • 3.5
  • 3.6_backported
  • 3.5_backported
  • 3.4
  • 3.3_backported
  • 6.0.4
  • 6.0.3
  • 5.0.7
  • 6.0.2
  • 6.0.1
  • 5.0.6
  • 6.0.0
  • 5.0.5
  • 6.0.0-rc
  • 5.0.4
  • 6.0.0-beta
  • 5.0.3
  • 4.0.6
  • 5.0.2
  • 5.0.1
  • 4.0.5
  • 5.0.0
  • 4.0.4
  • 5.0.0-rc2
  • 5.0.0-rc1
41 results

index.php

Blame
  • user avatar
    Laurent Destailleur authored
    04c0e87d
    History
    index.php 6.47 KiB
    <?php
    /* Copyright (C) 2016     Laurent Destailleur      <eldy@users.sourceforge.net>
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License as published by
     * the Free Software Foundation; either version 3 of the License, or
     * (at your option) any later version.
     *
     * This program is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU General Public License for more details.
     *
     * You should have received a copy of the GNU General Public License
     * along with this program. If not, see <http://www.gnu.org/licenses/>.
     */
    
    /**
     * \file    htdocs/accountancy/index.php
     * \ingroup Advanced accountancy
     * \brief   Home accounting module
     */
    
    require '../main.inc.php';
    require_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php';
    require_once DOL_DOCUMENT_ROOT . '/core/lib/accounting.lib.php';
    
    // Langs
    $langs->load("compta");
    $langs->load("bills");
    $langs->load("other");
    $langs->load("main");
    $langs->load("accountancy");
    
    // Security check
    if ($user->societe_id > 0)
    	accessforbidden();
    
    // Validate History
    $action = GETPOST('action');
    
    $langs->load("admin");
    $langs->load("dict");
    $langs->load("bills");
    $langs->load("accountancy");
    $langs->load("compta");
    $langs->load("banks");
    
    /*
     * Actions
     */
    
    
    /*
     * View
     */
    
    llxHeader('', $langs->trans("AccountancyArea"));
    
    print load_fiche_titre($langs->trans("AccountancyArea"), '', 'title_accountancy');
    
    $step = 0;
    
    print "<br>\n";
    
    print $langs->trans("AccountancyAreaDescIntro")."<br>\n";
    print "<br>\n";print "<br>\n";
    
    print_fiche_titre($langs->trans("AccountancyAreaDescActionOnce"), '', 'object_calendar')."<br>\n";
    print '<hr>';
    print "<br>\n";
    
    // STEPS
    $step++;
    print img_picto('', 'puce').' '.$langs->trans("AccountancyAreaDescChartModel", $step, '<strong>'.$langs->transnoentitiesnoconv("Financial").'-'.$langs->transnoentitiesnoconv("Accountancy")."-".$langs->transnoentitiesnoconv("Pcg_version").'</strong>');
    print "<br>\n";
    print "<br>\n";
    $step++;
    print img_picto('', 'puce').' '.$langs->trans("AccountancyAreaDescChart", $step, '<strong>'.$langs->transnoentitiesnoconv("Financial").'-'.$langs->transnoentitiesnoconv("Accountancy")."-".$langs->transnoentitiesnoconv("Chartofaccounts").'</strong>');
    print "<br>\n";
    print "<br>\n";
    $step++;
    //$textlink='<strong>'.$langs->transnoentitiesnoconv("Home").'-'.$langs->transnoentitiesnoconv("Setup")."-".$langs->transnoentitiesnoconv("Modules")."-".$langs->transnoentitiesnoconv("Accountancy").'</strong>';
    $textlink='<strong>'.$langs->transnoentitiesnoconv("Home").'-'.$langs->transnoentitiesnoconv("MenuBankCash").'</strong>';
    print img_picto('', 'puce').' '.$langs->trans("AccountancyAreaDescBank", $step, $textlink);
    print "<br>\n";
    print "<br>\n";
    $step++;
    $textlink = '<strong>'.$langs->transnoentitiesnoconv("Home").'-'.$langs->transnoentitiesnoconv("Setup").'-'.$langs->transnoentitiesnoconv("Dictionaries")."-".$langs->transnoentitiesnoconv("DictionaryVAT").'</strong>';
    //$textlink.= ' '.$langs->trans("and").' ';
    //$textlink.= '<strong>'.$langs->transnoentitiesnoconv("Financial").'-'.$langs->transnoentitiesnoconv("Accountancy").'-'.$langs->transnoentitiesnoconv("MenuDefaultAccounts").'</strong>';
    print img_picto('', 'puce').' '.$langs->trans("AccountancyAreaDescVat", $step, $textlink);
    print "<br>\n";
    print "<br>\n";
    if (! empty($conf->tax->enabled))
    {
        $textlink = '<strong>'.$langs->transnoentitiesnoconv("Home").'-'.$langs->transnoentitiesnoconv("Setup").'-'.$langs->transnoentitiesnoconv("Dictionaries")."-".$langs->transnoentitiesnoconv("DictionarySocialContributions").'</strong>';
        //$textlink.= ' '.$langs->trans("and").' ';
        //$textlink.= '<strong>'.$langs->transnoentitiesnoconv("Financial").'-'.$langs->transnoentitiesnoconv("Accountancy")."-".$langs->transnoentitiesnoconv("MenuDefaultAccounts").'</strong>';
        $step++;
        print img_picto('', 'puce').' '.$langs->trans("AccountancyAreaDescContrib", $step, $textlink);
        print "<br>\n";
        print "<br>\n";
    }
    /*if (! empty($conf->salaries->enabled))
    {
        $step++;
        print img_picto('', 'puce').' '.$langs->trans("AccountancyAreaDescSal", $step, '<strong>'.$langs->transnoentitiesnoconv("Financial").'-'.$langs->transnoentitiesnoconv("Accountancy")."-".$langs->transnoentitiesnoconv("MenuDefaultAccounts").'</strong>');
        // htdocs/admin/salaries.php
        print "<br>\n";
        print "<br>\n";
    }
    if (! empty($conf->don->enabled))
    {
        $step++;
        print img_picto('', 'puce').' '.$langs->trans("AccountancyAreaDescDonation", $step, '<strong>'.$langs->transnoentitiesnoconv("Financial").'-'.$langs->transnoentitiesnoconv("Accountancy")."-".$langs->transnoentitiesnoconv("MenuDefaultAccounts").'</strong>');
        print "<br>\n";
        print "<br>\n";
    }*/
    
    $step++;
    print img_picto('', 'puce').' '.$langs->trans("AccountancyAreaDescMisc", $step, '<strong>'.$langs->transnoentitiesnoconv("Financial").'-'.$langs->transnoentitiesnoconv("Accountancy")."-".$langs->transnoentitiesnoconv("MenuDefaultAccounts").'</strong>')."<br>\n";
    print "<br>\n";
    $step++;
    print img_picto('', 'puce').' '.$langs->trans("AccountancyAreaDescProd", $step, '<strong>'.$langs->transnoentitiesnoconv("Financial").'-'.$langs->transnoentitiesnoconv("Accountancy")."-".$langs->transnoentitiesnoconv("ProductsBinding").'</strong>')."<br>\n";
    print "<br>\n";
    
    print "<br>\n";
    print_fiche_titre($langs->trans("AccountancyAreaDescActionFreq"), '', 'object_calendarweek');
    print '<hr>';
    print "<br>\n";
    $step = 0;
    
    $step++;
    print img_picto('', 'puce').' '.$langs->trans("AccountancyAreaDescCustomer", $step, '<strong>'.$langs->transnoentitiesnoconv("Financial").'-'.$langs->transnoentitiesnoconv("Accountancy")."-".$langs->transnoentitiesnoconv("CustomersVentilation").'</strong>')."<br>\n";
    print "<br>\n";
    $step++;
    print img_picto('', 'puce').' '.$langs->trans("AccountancyAreaDescSupplier", $step, '<strong>'.$langs->transnoentitiesnoconv("Financial").'-'.$langs->transnoentitiesnoconv("Accountancy")."-".$langs->transnoentitiesnoconv("SuppliersVentilation").'</strong>')."<br>\n";
    print "<br>\n";
    $step++;
    print img_picto('', 'puce').' '.$langs->trans("AccountancyAreaDescWriteRecords", $step, '<strong>'.$langs->transnoentitiesnoconv("Financial").'-'.$langs->transnoentitiesnoconv("Accountancy")."-".$langs->transnoentitiesnoconv("SuppliersVentilation").'</strong>')."<br>\n";
    print "<br>\n";
    $step++;
    print img_picto('', 'puce').' '.$langs->trans("AccountancyAreaDescAnalyze", $step)."<br>\n";
    print "<br>\n";
    
    llxFooter();
    $db->close();