noalyss Version-9
balance_card_ageing.inc.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS isfree software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * NOALYSS isdistributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with NOALYSS; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18*/
19// Copyright (2014) Author Dany De Bontridder <dany@alchimerys.be>
20
21if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
22
23/**
24 * @file
25 * @brief Aged Balance for card
26 *@see Balance_Age
27 */
28$let=( isset ($_GET['p_let']))?'let':'unlet';
29// f_id
30$f_id=$http->get('f_id',"number");
31
32// Default date
33$periode_user=$g_user->get_periode();
36
37// Input date
38$idate=new IDate("date_balag");
39$idate->value=$http->get("date_balag","date",$default_date);
40
41
42$export_csv = '<FORM METHOD="get" ACTION="export.php" style="display:inline">';
43$export_csv .=HtmlInput::request_to_hidden(array('gDossier','ac','date_balag'));
44$export_csv.=HtmlInput::hidden('p_date_start',$idate->value);
45$export_csv .= HtmlInput::hidden('act','CSV:balance_age');
47$export_csv .= HtmlInput::hidden('p_type','U');
49$export_csv .= HtmlInput::submit('csv',_('Export CSV'));
50$export_csv.='</FORM>';
51?>
52<form method="get">
53 <?php echo _("Tout") ?><input type="checkbox" name="p_let" value="1">
54 <?php echo _("Date")?> <?php echo $idate->input();?>
55 <?php echo HtmlInput::request_to_hidden(array('ac','gDossier','sb','sc','f_id'));?>
56 <input type="submit" class="smallbutton" value="<?php echo _('Valider')?>">
57</form>
58<?php
59
60echo '<div class="content" style="width:98%;margin-left:1%">';
61echo $export_csv;
64$bal->display_card($idate->value, $fiche->id, $let);
65echo $export_csv;
66
67echo '</div>';
68
69?>
global $g_user
if no group available , then stop
$from_poste name
$input_from type
Definition: balance.inc.php:65
$idate value
$_GET['qcode']
compute the ageing balance, currently this code is not used
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...
Definition: fiche.class.php:38
static request_to_hidden(array $array)
transform $_REQUEST data to hidden
static hidden($p_name, $p_value, $p_id="")
static submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
Definition: idate.class.php:34
For the periode tables parm_periode and jrn_periode.