Add Grand Livre

This commit is contained in:
sparkyx 2004-12-04 13:45:56 +00:00
parent 421a534e4c
commit 2404567719
3 changed files with 68 additions and 2 deletions

View file

@ -82,7 +82,7 @@ if ( isset ($_GET['JRN_TYPE'] ) ) {
echo $result;
ShowMenuJrnUser($g_dossier,$g_UserProperty,$_GET['JRN_TYPE'],$g_jrn);
echo "</DIV>";
if ( $jrn_type=='NONE' ) include('user_action_gl.php');
} else {
@ -117,6 +117,7 @@ if ( $g_jrn != -1 ) {
echo '</DIV>';
// Execute Action for g_jrn
if ( $jrn_type=='VEN' ) include('user_action_ven.php');
if ( $jrn_type=='ACH' ) include('user_action_ach.php');
if ( $jrn_type=='FIN' ) include('user_action_fin.php');

View file

@ -0,0 +1,63 @@
<?
/*
* 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
*/
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
/* $Revision$ */
echo_debug(__FILE__,__LINE__,"include user_action_gl.php");
include_once ("preference.php");
include_once ("user_common.php");
include_once ("class_widget.php");
include_once("class_jrn.php");
include_once("class_user.php");
$dossier=sprintf("dossier%d",$g_dossier);
$cn=DbConnect($dossier);
?>
<div class="u_redcontent">
<form method="post" action="user_jrn.php?JRN_TYPE=NONE">
<?
$w=new widget("select");
$periode_start=make_array($cn,"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode order by p_id");
$User=new cl_user($cn);
$current=(isset($_POST['p_periode']))?$_POST['p_periode']:$User->GetPeriode();
$w->selected=$current;
echo 'Période'.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider');
?>
</form>
<?
$Jrn = new jrn($cn,0);
$Jrn->GetRow($current,$current);
if ( count($Jrn->row ) == 0 )
exit;
echo "<TABLE>";
foreach ( $Jrn->row as $op ) {
echo "<TR>".
"<TD>".$op['internal']."</TD>".
"<TD>".$op['j_date']."</TD>".
"<TD>".$op['poste']."</TD>".
"<TD>".$op['description']."</TD>".
"<TD>".$op['deb_montant']."</TD>".
"<TD>".$op['cred_montant']."</TD>".
"</TR>";
}
echo "</table>";
?>
</div>

View file

@ -431,7 +431,9 @@ return $left_menu;
function ShowJrn($p_menu="")
{
$p_array=array(array("user_jrn.php?JRN_TYPE=VEN" ,"Entrée"),
$p_array=array(
array("user_jrn.php?JRN_TYPE=NONE" ,"Grand Livre"),
array("user_jrn.php?JRN_TYPE=VEN" ,"Entrée"),
array("user_jrn.php?JRN_TYPE=ACH","Dépense"),
array("user_jrn.php?JRN_TYPE=FIN","Financier"),
array("user_jrn.php?JRN_TYPE=OD","Op. Diverses")