noalyss Version-9
impress_rec.inc.php
Go to the documentation of this file.
1<?php
2/*
3 * This file is part of NOALYSS.
4 *
5 * NOALYSS is free 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 is distributed 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
20// Copyright Author Dany De Bontridder danydb@aevalys.eu
21
22/*!\file
23 * \brief print the all the operation reconciled or not, with or without the same amount
24 */
25if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
26require_once NOALYSS_INCLUDE.'/lib/function_javascript.php';
27global $g_user;
28
29/**
30 *@file
31 */
32$aledger=$g_user->get_ledger('ALL',3);
33echo '<div class="noprint">';
34echo '<div class="content">';
36$radio=new IRadio('choice');
37$choice=(isset($_GET['choice']))?$_GET['choice']:0;
38$r_jrn=(isset($_GET['r_jrn']))?$_GET['r_jrn']:'';
39echo '<form method="GET">';
40echo dossier::hidden().HtmlInput::hidden('ac',$_GET['ac']).HtmlInput::hidden('type','rec');
41echo _('Filtre par journal');
42HtmlInput::button_choice_ledger(array('div'=>'','type'=>'ALL','all_type'=>1));
43echo '<br/>';
44/*
45 * Limit by date, default current exercice
46 */
47list($start,$end)=$g_user->get_limit_current_exercice();
48$dstart=new IDate('p_start');
49$dstart->value=(isset($_REQUEST['p_start']))?$_REQUEST['p_start']:$start;
50
51$dend=new IDate('p_end');
52$dend->value=(isset($_REQUEST['p_end']))?$_REQUEST['p_end']:$end;
53
54echo "Opérations entre ".$dstart->input()." jusque ".$dend->input();
55echo '<ol style="list-style-type:none;">';
56
57$radio->selected=($choice==0)?true:false;
58$radio->value=0;
59echo '<li>'.$radio->input()._('Opérations rapprochées').'</li>';
60
61$radio->selected=($choice==1)?true:false;
62$radio->value=1;
63echo '<li>'.$radio->input()._('Opérations rapprochées avec des montants différents').'</li>';
64
65$radio->selected=($choice==2)?true:false;
66$radio->value=2;
67echo '<li>'.$radio->input()._('Opérations rapprochées avec des montants identiques').'</li>';
68
69$radio->selected=($choice==3)?true:false;
70$radio->value=3;
71echo '<li>'.$radio->input()._('Opérations non rapprochées').'</li>';
72
73echo '</ol>';
74
75
76
77
78echo HtmlInput::submit('vis',_('Visualisation'));
79echo '</form>';
80echo '<hr>';
81echo '</div>';
82echo '</div>';
83echo '<div class="content">';
84if ( ! isset($_GET['vis'])) return;
87$acc_reconciliation->start_day=$dstart->value;
88$acc_reconciliation->end_day=$dend->value;
89
91
93?>
94<form method="get" action="export.php">
95 <?php echo HtmlInput::get_to_hidden(array('ac','gDossier','p_end','p_start','choice','r_jrn'));
96 echo HtmlInput::hidden('act','CSV:Reconciliation');
97 echo HtmlInput::submit("csv_bt", "Export CSV");
98 ?>
99</form>
100<?php
101require_once NOALYSS_TEMPLATE.'/impress_reconciliation.php';
102return;
$_REQUEST['ac']
$_GET['qcode']
new class for managing the reconciliation it must be used instead of the function InsertRapt,...
static id()
return the 'gDossier' value after a check
static hidden($p_name, $p_value, $p_id="")
static get_to_hidden($array)
transform $_GET data to hidden
static button_choice_ledger($p_array)
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
Html Input.
$gDossier
global $g_user
$acc_reconciliation
$aledger