From 3a9d1e4d17c8ec049e12447fed60b1b873070321 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 7 Jan 2019 13:12:49 +0100 Subject: [PATCH 1/5] Task #1660 : place the button for the inventory on the top --- include/template/stock_inv.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/template/stock_inv.php b/include/template/stock_inv.php index 2c1bdea34..556dcc66c 100644 --- a/include/template/stock_inv.php +++ b/include/template/stock_inv.php @@ -27,6 +27,8 @@ * */ ?> + +
" class="content">
')"> @@ -104,7 +106,6 @@ -
'; diff --git a/include/lib/iconcerned.class.php b/include/lib/iconcerned.class.php index c296804d2..d43fa3e4c 100644 --- a/include/lib/iconcerned.class.php +++ b/include/lib/iconcerned.class.php @@ -28,6 +28,7 @@ require_once NOALYSS_INCLUDE.'/lib/html_input.class.php'; class IConcerned extends HtmlInput { + private $hideOperation; //!< string of j_id to hide, separated by comma to avoid to reconcile an operation with itself public function __construct($p_name='',$p_value='',$p_id="") { @@ -36,8 +37,9 @@ class IConcerned extends HtmlInput $this->amount_id=null; $this->paid=''; $this->id=$p_id; - $this->tiers=""; // id of the field for the tiers to be updated - $this->div=""; // Dom Element to show the search result + $this->tiers=""; // id of the field for the tiers to be updated + $this->div=""; // Dom Element to show the search result + $this->hideOperation=""; // string of j_id to hide, separated by comma to avoid to reconcile an operation with itself } /*!\brief show the html input of the widget*/ public function input($p_name=null,$p_value=null) @@ -55,17 +57,27 @@ class IConcerned extends HtmlInput $this->tiers ); $r=Icon_Action::icon_magnifier(uniqid(), $javascript); $r.=sprintf(" - + ", $this->name, $this->id, $this->value, + $this->hideOperation, $this->id ); return $r; } + + /** + * setter + * @param $p_string + */ + function set_hideOperation($p_string) + { + $this->hideOperation=strip_tags($p_string); + } /*!\brief print in html the readonly value of the widget*/ public function display() { diff --git a/include/template/ledger_detail_bottom.php b/include/template/ledger_detail_bottom.php index 15e95afc8..5484eaf4c 100644 --- a/include/template/ledger_detail_bottom.php +++ b/include/template/ledger_detail_bottom.php @@ -26,9 +26,9 @@ $aRap=$oRap->get(); // find out exercice $periode_id=new Periode($cn,$detail->det->jr_tech_per); $exercice=$periode_id->get_exercice(); - - - $nb_document=($detail->det->jr_pj_name != "")?1:0; + + +$nb_document=($detail->det->jr_pj_name != "")?1:0; $nb_aRap=(is_array($aRap))?count($aRap):0; // Array of tab @@ -225,6 +225,7 @@ if ( $access=='W') { $wConcerned=new IConcerned("rapt".$div); $wConcerned->amount_id=$obj->det->jr_montant; $wConcerned->div="search_reconcile"; + $wConcerned->set_hideOperation( $obj->jr_id); echo $wConcerned->input(); }