svn+ssh://ns352270.ovh.net/svn/phpcompta/branches/rel600-dynamic-menu ........ r4209 | danydb | 2011-10-13 22:06:13 +0200 (Thu, 13 Oct 2011) | 1 line Add new files ........ r4229 | danydb | 2011-10-23 20:51:09 +0200 (Sun, 23 Oct 2011) | 1 line Dynamic menu: impress works ........ r4230 | danydb | 2011-10-24 22:38:15 +0200 (Mon, 24 Oct 2011) | 2 lines #241 : modularity for SALE ledger ........ r4231 | danydb | 2011-10-24 22:47:02 +0200 (Mon, 24 Oct 2011) | 2 lines #241 : modularity for PURCHASE ledger ........ r4232 | danydb | 2011-10-25 23:03:53 +0200 (Tue, 25 Oct 2011) | 2 lines #241 : modularity for FINANCIAL ledger ........ r4234 | danydb | 2011-10-26 01:09:02 +0200 (Wed, 26 Oct 2011) | 2 lines #241 : modularity for CARD ledger + alphanum prob ........ r4237 | danydb | 2011-10-27 20:59:39 +0200 (Thu, 27 Oct 2011) | 2 lines #241 : modularity for lettering ........ r4238 | danydb | 2011-10-27 21:10:19 +0200 (Thu, 27 Oct 2011) | 3 lines #241 :adapt width submenu ........ r4239 | danydb | 2011-10-27 21:40:42 +0200 (Thu, 27 Oct 2011) | 3 lines #241 : modularity : old user_advanced.php ........ r4240 | danydb | 2011-10-27 21:44:27 +0200 (Thu, 27 Oct 2011) | 3 lines #241 : modularity : deprecated function ........ r4241 | danydb | 2011-10-27 21:46:26 +0200 (Thu, 27 Oct 2011) | 3 lines #241 : modularity : remove obsolete files ........ r4242 | danydb | 2011-10-27 21:54:39 +0200 (Thu, 27 Oct 2011) | 3 lines #241 : modularity : gestion card + gestion IMP ........ r4243 | danydb | 2011-10-27 22:28:36 +0200 (Thu, 27 Oct 2011) | 3 lines #241 : modularity : gestion customer + supplier + forecast + follow up ........ r4244 | danydb | 2011-10-28 00:47:55 +0200 (Fri, 28 Oct 2011) | 5 lines #241 : modularity : parameter company periode misc : tva , card attr, middle of payment, accounting,cat of doc, cat of card ........ r4245 | danydb | 2011-10-28 00:51:43 +0200 (Fri, 28 Oct 2011) | 1 line update menu_ref, profile_menu ........ r4246 | danydb | 2011-10-28 00:52:13 +0200 (Fri, 28 Oct 2011) | 1 line rewriting : change ShowMenuPcmn by menu_acc_plan ........ r4247 | danydb | 2011-10-28 20:04:01 +0200 (Fri, 28 Oct 2011) | 1 line #241 : modularity : parameter Document ........ r4248 | danydb | 2011-10-28 22:00:42 +0200 (Fri, 28 Oct 2011) | 1 line #241 : modularity : préférence ........ r4249 | danydb | 2011-10-28 22:16:44 +0200 (Fri, 28 Oct 2011) | 1 line last fix ........
111 lines
No EOL
3.1 KiB
PHP
111 lines
No EOL
3.1 KiB
PHP
<?php
|
|
/*
|
|
* This file is part of PhpCompta.
|
|
*
|
|
* PhpCompta is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* PhpCompta 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
|
|
* along with PhpCompta; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
/* $Revision$ */
|
|
|
|
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
|
|
|
/*!\file
|
|
* \brief print the all the operation reconciled or not, with or without the same amount
|
|
*/
|
|
require_once ('class_acc_reconciliation.php');
|
|
require_once('function_javascript.php');
|
|
global $g_user;
|
|
|
|
/**
|
|
*@file
|
|
*@todo add the export to PDF
|
|
*/
|
|
$aledger=$g_user->get_ledger('ALL',3);
|
|
echo '<div class="noprint">';
|
|
echo '<div class="content">';
|
|
$rjrn='';
|
|
$radio=new IRadio('choice');
|
|
$choice=(isset($_GET['choice']))?$_GET['choice']:0;
|
|
$r_jrn=(isset($_GET['r_jrn']))?$_GET['r_jrn']:'';
|
|
echo '<form method="GET">';
|
|
echo dossier::hidden().HtmlInput::hidden('ac',$_GET['ac']).HtmlInput::hidden('type','rec');
|
|
echo 'Filtre par journal :'.HtmlInput::select_ledger($aledger,$r_jrn );
|
|
echo '<br/>';
|
|
/*
|
|
* Limit by date, default current exercice
|
|
*/
|
|
list($start,$end)=$g_user->get_limit_current_exercice();
|
|
$dstart=new IDate('p_start');
|
|
$dstart->value=(isset($_REQUEST['p_start']))?$_REQUEST['p_start']:$start;
|
|
|
|
$dend=new IDate('p_end');
|
|
$dend->value=(isset($_REQUEST['p_end']))?$_REQUEST['p_end']:$end;
|
|
|
|
echo "Depuis ".$dstart->input()." jusque ".$dend->input();
|
|
echo '<ol style="list-style-type:none;">';
|
|
|
|
$radio->selected=($choice==0)?true:false;
|
|
$radio->value=0;
|
|
echo '<li>'.$radio->input().'Opérations rapprochées'.'</li>';
|
|
|
|
$radio->selected=($choice==1)?true:false;
|
|
$radio->value=1;
|
|
echo '<li>'.$radio->input().'Opérations rapprochées avec des montants différents'.'</li>';
|
|
|
|
$radio->selected=($choice==2)?true:false;
|
|
$radio->value=2;
|
|
echo '<li>'.$radio->input().'Opérations rapprochées avec des montants identiques'.'</li>';
|
|
|
|
$radio->selected=($choice==3)?true:false;
|
|
$radio->value=3;
|
|
echo '<li>'.$radio->input().'Opérations non rapprochées'.'</li>';
|
|
|
|
echo '</ol>';
|
|
|
|
|
|
|
|
|
|
echo HtmlInput::submit('vis',_('Visualisation'));
|
|
echo '</form>';
|
|
echo '<hr>';
|
|
echo '</div>';
|
|
echo '</div>';
|
|
echo '<div class="content">';
|
|
if ( ! isset($_GET['vis'])) exit();
|
|
$a=new Acc_Reconciliation($cn);
|
|
$a->a_jrn=$r_jrn;
|
|
$a->start_day=$dstart->value;
|
|
$a->end_day=$dend->value;
|
|
|
|
switch ($choice)
|
|
{
|
|
case 0:
|
|
$array=$a->get_reconciled();
|
|
break;
|
|
case 1:
|
|
$array=$a->get_reconciled_amount(false);
|
|
break;
|
|
case 2:
|
|
$array=$a->get_reconciled_amount(true);
|
|
break;
|
|
case 3:
|
|
$array=$a->get_not_reconciled();
|
|
break;
|
|
default:
|
|
echo "Choix invalid";
|
|
exit();
|
|
}
|
|
$gDossier=Dossier::id();
|
|
require_once('template/impress_reconciliation.php');
|
|
exit(); |