noalyss Version-9
NOALYSS : serveur de comptabilité et ERP (2002)
Loading...
Searching...
No Matches
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/*!
23 * \file
24 * \brief print the all the operation reconciled or not, with or without the same amount
25 */
26if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
27
28global $g_user;
30
31$aledger=$g_user->get_ledger('ALL',3);
32echo '<div class="noprint">';
33echo '<div class="content">';
35
36$choice=$http->get("choice","string",0);
37$r_jrn=$http->get("r_jrn","string","");
38echo '<form method="GET">';
39echo dossier::hidden().HtmlInput::hidden('ac',$http->request('ac')).HtmlInput::hidden('type','rec');
40echo _('Filtre par journal');
41HtmlInput::button_choice_ledger(array('div'=>'','type'=>'ALL','all_type'=>1));
42echo '<br/>';
43/*
44 * Limit by date, default current exercice
45 */
47$dstart=new IDate('p_start');
48$dend=new IDate('p_end');
49list($start,$end)=$g_user->get_limit_current_exercice();
50
51try {
52 $dstart->value=$http->request('p_start','date',$start);
53
54 $dend->value=$http->request('p_end','date',$end);
55
56} catch (\Exception $e) {
57 echo_warning('Date invalide');
58 $error=1;
59
60}
61
62echo "Opérations entre ".$dstart->input()." jusque ".$dend->input();
63
64$select=new ISelect("choice");
65$select->transform([
66 0=>_('Opérations rapprochées')
67 ,1=>_('Opérations rapprochées avec des montants différents')
68 ,2=>_('Opérations rapprochées avec des montants identiques')
69 ,3=>_('Opérations non rapprochées')
70 ]
71);
72$select->selected=$choice;
73echo $select->input();
74echo '<p>';
75echo HtmlInput::submit('vis',_('Visualisation'));
76echo '</p>';
77echo '</form>';
78echo '<hr>';
79echo '</div>';
80echo '</div>';
81echo '<div class="content">';
82if ( ! isset($_GET['vis'])) return;
83if ($error == 1) return;
86$acc_reconciliation->start_day=$dstart->value;
87$acc_reconciliation->end_day=$dend->value;
88$acc_reconciliation->prepare_query_detail_quant();
90
91$gDossier=Dossier::id();
92?>
93<form method="get" action="export.php">
94 <?php echo HtmlInput::get_to_hidden(array('ac','gDossier','p_end','p_start','choice','r_jrn'));
95 echo HtmlInput::hidden('act','CSV:Reconciliation');
96 echo HtmlInput::submit("csv_bt", "Export CSV");
97 ?>
98</form>
99<?php
100require_once NOALYSS_TEMPLATE.'/impress_reconciliation.php';
101return;
echo_warning($p_string)
warns
global $g_user
if no group available , then stop
_("actif, passif,charge,...")
$_GET['qcode']
new class for managing the reconciliation it must be used instead of the function InsertRapt,...
manage the http input (get , post, request) and extract from an array
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
catch(Exception $exc) $acc_reconciliation