noalyss Version-9
stock_histo.inc.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of NOALYSS.
5 *
6 * NOALYSS is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * NOALYSS is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with NOALYSS; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20
21// Copyright Author Dany De Bontridder danydb@aevalys.eu
22
23/**
24 * @file
25 * @brief
26 *
27 */
28if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
33if ( ! isset ($array['wdate_start']) || ! isset ($array['wdate_end']))
34{
35 // Date start / end
36 $exercice = $g_user->get_exercice();
37 $periode = new Periode($cn);
38 list($periode_start, $periode_end) = $periode->get_limit($exercice);
39
40 $array['wdate_start'] = $periode_start->first_day();
41 $array['wdate_end'] =$periode_end->last_day();
42}
43
44$stock->history($array);
45
46?>
catch(Exception $e) $exercice
$_GET['qcode']
manage the http input (get , post, request) and extract from an array
For the periode tables parm_periode and jrn_periode.
manage the stocks
Definition: stock.class.php:37
$periode_start
Definition: fiche.inc.php:50
$periode_end
Definition: fiche.inc.php:51
global $g_user
global $cn
global $g_parameter