diff --git a/html/bal_csv.php b/html/bal_csv.php index 6adaaae97..c73805e01 100644 --- a/html/bal_csv.php +++ b/html/bal_csv.php @@ -44,7 +44,7 @@ if ( $User->check_action(IMPBAL) == 0) echo 'poste;libelle;deb;cred;solde deb;solde cred'; printf("\n"); $bal=new Acc_Balance($cn); -$bal->jrn=$_GET['p_jrn']; +$bal->jrn=(isset($_GET['r_jrn']))?$_GET['r_jrn']:null; $bal->from_poste=$_GET['from_poste']; $bal->to_poste=$_GET['to_poste']; diff --git a/html/js/scripts.js b/html/js/scripts.js index 0c4fec44f..05a8ad190 100644 --- a/html/js/scripts.js +++ b/html/js/scripts.js @@ -514,3 +514,15 @@ function success_box(req,json) function error_box () { alert('IBOX : error_box ajax not implemented'); } +/** +* show the ledger choice +*/ +function show_ledger_choice() { + g('div_jrn').style.visibility='visible'; +} +/** +* hide the ledger choice +*/ +function hide_ledger_choice() { + g('div_jrn').style.visibility='hidden'; +} \ No newline at end of file diff --git a/html/print_balance.php b/html/print_balance.php index 625cae233..b8d47535a 100644 --- a/html/print_balance.php +++ b/html/print_balance.php @@ -50,7 +50,7 @@ $User->can_request(IMPBAL,1); extract ($_GET); -$bal->jrn=$_GET['p_jrn']; +$bal->jrn=(isset($_GET['p_jrn']))?$_GET['p_jrn']:null; $bal->from_poste=$_GET['from_poste']; $bal->to_poste=$_GET['to_poste']; diff --git a/html/style-color.css b/html/style-color.css index 43236f088..ee6c374a9 100644 --- a/html/style-color.css +++ b/html/style-color.css @@ -861,3 +861,14 @@ div.op_detail_title { } +div#div_jrn{ + position:absolute; + border:1px solid black; + top:15%;left:100; + visibility:hidden; + z-index:2; + width:50em; + background-color:#EDF3FF; + +} + \ No newline at end of file diff --git a/include/balance.inc.php b/include/balance.inc.php index a2eaa6a17..6df2a988a 100644 --- a/include/balance.inc.php +++ b/include/balance.inc.php @@ -48,14 +48,16 @@ echo js_include('dragdrop.js'); echo js_include('card.js'); echo js_include('acc_ledger.js'); echo IPoste::ipopup('ipop_account'); - echo '