diff --git a/html/ajax_ledger.php b/html/ajax_ledger.php index 24086720d..aa6536ac7 100644 --- a/html/ajax_ledger.php +++ b/html/ajax_ledger.php @@ -103,7 +103,7 @@ case 'de': $obj=$op->get_quant(); /* return an obj. ACH / FIN or VEN or null if nothing is found*/ $oLedger=new Acc_Ledger($cn,$ledger); - if ( $obj == null ) { + if ( $obj==null || $obj->signature == 'ODS' ) { /* only the details */ ob_start(); require_once('template/ledger_detail_misc.php'); diff --git a/html/js/scripts.js b/html/js/scripts.js index 28e961579..eea4952e5 100644 --- a/html/js/scripts.js +++ b/html/js/scripts.js @@ -472,7 +472,12 @@ function success_box(req,json) code_html=unescape_xml(code_html); g(name_ctl).innerHTML=code_html; g(name_ctl).style.height='auto'; - g(name_ctl).style.width='auto'; + // if IE set to 60 % + if(navigator.appName == "Microsoft Internet Explorer") + g(name_ctl).style.width='auto'; + else + g(name_ctl).style.width='auto'; + } catch (e) { alert("success_box"+e.message);} diff --git a/html/style-color.css b/html/style-color.css index 160c5eb26..7590ae871 100644 --- a/html/style-color.css +++ b/html/style-color.css @@ -845,12 +845,15 @@ div.op_detail { font-family:helvetica,arial,sans-serif; padding:0; margin:0; - overflow:none; + overflow:hidden; z-index:3; -position:absolute;width:500;height:200;left:200; +position:absolute; +left:10%;right:10%; + + +border:1px solid darkblue; width:300; -border:1px solid darkblue; } div.op_detail_title { background-color:grey; diff --git a/include/class_anc_operation.php b/include/class_anc_operation.php index 30ddf91d3..a7a2e2cf2 100644 --- a/include/class_anc_operation.php +++ b/include/class_anc_operation.php @@ -556,7 +556,38 @@ function get_balance($p_from,$p_to,$p_plan_id) $sql="delete from operation_analytique where j_id=$p_jid"; $this->db->exec_sql($sql); } + /** + *@brief return a HTML table with the data of a specific + * operation (jrnx.j_id). First, it load data from the database + * and after it displays them + *@param $div is the div id used to give a name to the table + *@param $opt 0 if the CA is mandatory and 1 for optional + *@note the data must be first loaded + *@see Anc_Operation::get_by_jid + */ + function print_table($array,$div,$opt,$j_id,$seq) { + $r=''; + $col=0; + $r.=HtmlInput::hidden('ident['.$seq.']',$j_id); + $plan=new Anc_Plan($this->db); + $a_plan=$plan->get_list(); + if (empty($a_plan)) return ''; + /* create the table */ + $table_id="tb".$div."[$seq]"; + $r.="