diff --git a/html/admin/sql/patch/upgrade32.sql b/html/admin/sql/patch/upgrade32.sql
index 55d77a27c..fa6b3c44b 100644
--- a/html/admin/sql/patch/upgrade32.sql
+++ b/html/admin/sql/patch/upgrade32.sql
@@ -4,7 +4,7 @@ delete from jrnx where j_grpt not in (select jr_grpt_id from jrn);
alter table op_predef add od_direct bool;
update op_predef set od_direct=false;
alter table op_predef alter od_direct set not null;
-alter table op_predef_detail add od_qc bool;
+alter table op_predef_detail add opd_qc bool;
update version set val=33;
commit;
diff --git a/html/annulation.php b/html/annulation.php
index 0a01de03e..57d631ec8 100644
--- a/html/annulation.php
+++ b/html/annulation.php
@@ -40,7 +40,7 @@ $User=new cl_user($cn);
$User->Check();
html_page_start($User->theme,"onLoad='window.focus();'");
-
+echo JS_VIEW_JRN_MODIFY;
if ( isset( $_GET['p_jrn'] )) {
$p_jrn=$_GET['p_jrn'];
}
@@ -397,10 +397,18 @@ for ( $i = 0; $i < $max_cred;$i++) {
$a=GetConcerned($cn,$e_jr_id);
if ( $a != null ) {
+
foreach ($a as $key => $element) {
echo "operation concernée
";
- echo " ".GetInternal($cn,$element)."
";
+ // echo "
+ // ".GetInternal($cn,$element)."
";
+ $w=new widget("button");
+ $w->label=GetInternal($cn,$element);
+ $w->javascript="modifyOperation('".$element."','".$_REQUEST['PHPSESSID']."',".dossier::id().
+ ','.$_REQUEST['p_jrn'].",'S')";
+ echo $w->IOValue().'
';
}//for
}// if ( $a != null ) {
diff --git a/html/jrn_search.php b/html/jrn_search.php
index 9b87c53a5..61c3269bc 100644
--- a/html/jrn_search.php
+++ b/html/jrn_search.php
@@ -166,7 +166,7 @@ if ( isset ($_GET["search"]) ) {
$page=(isset($_GET['page']))?$_GET['page']:0;
$sql_limit=" LIMIT $limit ";
$sql_offset=" OFFSET $offset ";
- $bar=jrn_navigation_bar($offset,$MaxLine,$limit,$page);
+ $bar=jrn_navigation_bar($offset,$MaxLine,$limit,$page,'onClick="return go_next_concerned();"');
}
$sql.=$sql_limit.$sql_offset;
diff --git a/html/js/jrn_concerned.js b/html/js/jrn_concerned.js
index 270e61879..cb565f15a 100644
--- a/html/js/jrn_concerned.js
+++ b/html/js/jrn_concerned.js
@@ -40,14 +40,18 @@ function SearchJrn(p_sessid,p_dossier,p_ctl,p_montant,p_paid)
/* Get the amount */
var ctl_montant_name="e_other"+num+"_amount";
- for ( i=0; i < document.forms[0].length; i++)
- {
- var e=document.forms[0].elements[i];
- if ( e.name == ctl_montant_name ) {
- p_montant=e.value;
- break;
+
+ if ( document.forms[0]) {
+
+ for ( i=0; i < document.forms[0].length; i++)
+ {
+ var e=document.forms[0].elements[i];
+ if ( e.name == ctl_montant_name ) {
+ p_montant=e.value;
+ break;
}
- }
+ }
+ }
}
@@ -73,13 +77,25 @@ function updateJrn(p_ctl) {
}
}
}
+ window.close();
}
function GetIt(p_ctl,p_value) {
self.opener.SetIt(p_value,p_ctl);
window.close();
}
+function go_next_concerned() {
+ var form=document.forms[1];
+ for (var e=0;e