diff --git a/html/user_jrn.php b/html/user_jrn.php index a2fab3cf2..a0cacc4d3 100644 --- a/html/user_jrn.php +++ b/html/user_jrn.php @@ -82,7 +82,7 @@ if ( isset ($_GET['JRN_TYPE'] ) ) { echo $result; ShowMenuJrnUser($g_dossier,$g_UserProperty,$_GET['JRN_TYPE'],$g_jrn); echo ""; - + if ( $jrn_type=='NONE' ) include('user_action_gl.php'); } else { @@ -117,6 +117,7 @@ if ( $g_jrn != -1 ) { echo ''; // 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'); diff --git a/include/user_action_gl.php b/include/user_action_gl.php new file mode 100644 index 000000000..61eb52e8a --- /dev/null +++ b/include/user_action_gl.php @@ -0,0 +1,63 @@ + +
+
+GetPeriode(); +$w->selected=$current; +echo 'Période'.$w->IOValue("p_periode",$periode_start).$w->Submit('gl_submit','Valider'); +?> +
+GetRow($current,$current); + if ( count($Jrn->row ) == 0 ) + exit; + + echo ""; +foreach ( $Jrn->row as $op ) { + echo "". + "". + "". + "". + "". + "". + "". + ""; + } + echo "
".$op['internal']."".$op['j_date']."".$op['poste']."".$op['description']."".$op['deb_montant']."".$op['cred_montant']."
"; +?> +
\ No newline at end of file diff --git a/include/user_menu.php b/include/user_menu.php index ba5e47795..878e1f6b1 100644 --- a/include/user_menu.php +++ b/include/user_menu.php @@ -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")