2004-10-19 22:35:36 +02:00
|
|
|
|
<?php
|
2008-04-03 21:35:46 +02:00
|
|
|
|
/* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
2004-03-04 22:26:03 +01:00
|
|
|
|
*
|
|
|
|
|
|
* 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
|
2013-01-16 15:36:08 +01:00
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2004-03-04 22:26:03 +01:00
|
|
|
|
* (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
|
2011-08-03 02:45:22 +02:00
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2004-03-04 22:26:03 +01:00
|
|
|
|
*/
|
2005-01-09 00:50:04 +01:00
|
|
|
|
|
2011-08-27 17:14:31 +02:00
|
|
|
|
/**
|
|
|
|
|
|
* \file htdocs/compta/resultat/bilan.php
|
|
|
|
|
|
* \ingroup compta
|
|
|
|
|
|
* \brief Fichier page bilan compta
|
2010-02-15 22:46:41 +01:00
|
|
|
|
*/
|
2005-01-09 00:50:04 +01:00
|
|
|
|
|
2012-08-22 23:24:21 +02:00
|
|
|
|
require '../../main.inc.php';
|
2012-08-22 23:11:24 +02:00
|
|
|
|
require_once DOL_DOCUMENT_ROOT.'/compta/tva/class/tva.class.php';
|
|
|
|
|
|
require_once DOL_DOCUMENT_ROOT.'/compta/sociales/class/chargesociales.class.php';
|
2004-03-04 22:26:03 +01:00
|
|
|
|
|
2013-01-02 18:43:59 +01:00
|
|
|
|
// Security check
|
|
|
|
|
|
$socid = GETPOST('socid','int');
|
|
|
|
|
|
if ($user->societe_id > 0) $socid = $user->societe_id;
|
|
|
|
|
|
if (! empty($conf->comptabilite->enabled)) $result=restrictedArea($user,'compta','','','resultat');
|
|
|
|
|
|
if (! empty($conf->accounting->enabled)) $result=restrictedArea($user,'accounting','','','comptarapport');
|
2004-03-04 22:26:03 +01:00
|
|
|
|
|
2010-02-15 22:46:41 +01:00
|
|
|
|
|
2008-04-03 21:35:46 +02:00
|
|
|
|
/*
|
|
|
|
|
|
* Views
|
|
|
|
|
|
*/
|
2010-02-15 22:46:41 +01:00
|
|
|
|
|
2004-03-04 22:26:03 +01:00
|
|
|
|
llxHeader();
|
|
|
|
|
|
|
|
|
|
|
|
$year=$_GET["year"];
|
|
|
|
|
|
$month=$_GET["month"];
|
|
|
|
|
|
if (! $year) { $year = strftime("%Y", time()); }
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-15 22:46:41 +01:00
|
|
|
|
/* Le compte de r<>sultat est un document officiel requis par l'administration selon le status ou activit<69> */
|
2004-03-04 22:26:03 +01:00
|
|
|
|
|
2012-01-08 17:29:26 +01:00
|
|
|
|
print_titre("Bilan".($year?" annee $year":""));
|
2004-03-04 22:26:03 +01:00
|
|
|
|
|
|
|
|
|
|
print '<br>';
|
|
|
|
|
|
|
2012-01-08 17:29:26 +01:00
|
|
|
|
print $langs->trans("FeatureNotYetAvailable");
|
2004-03-04 22:26:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
2011-08-27 16:24:16 +02:00
|
|
|
|
llxFooter();
|
2012-01-08 17:29:26 +01:00
|
|
|
|
|
|
|
|
|
|
$db->close();
|
2004-03-04 22:26:03 +01:00
|
|
|
|
?>
|