diff --git a/include/class/acc_ledger_search.class.php b/include/class/acc_ledger_search.class.php index 8d0871d2d..bf211a5b3 100644 --- a/include/class/acc_ledger_search.class.php +++ b/include/class/acc_ledger_search.class.php @@ -38,7 +38,11 @@ class Acc_Ledger_Search private $all; //!< Flag to indicate if all ledgers must be searched (1 for yes) private $div; //!< prefix for id of DOM id var $id ; //!< id of the ledger - private $inject_col; //< inject code into list_operation to add an extra column + private $inject_col; //< inject_code (string) code into list_operation + // to add an extra column + // (see Acc_Ledger_Search::list_operation). + // All the HTML code must be in inject_code, including the TD tag + /** * @brief return a HTML string with the form for the search * @param $p_type if the type of ledger possible values=ALL,VEN,ACH,ODS,FIN: uppercase ! @@ -792,7 +796,10 @@ class Acc_Ledger_Search * \see build_search_sql * \see display_search_form * \see search_form - + @note $this->inject_code (string) code into Acc_Ledger_Search::list_operation + // to add an extra column + // (see Acc_Ledger_Search::list_operation). + // All the HTML code must be in inject_code, including the TD tag * \return HTML string */ public function list_operation($sql, $offset, $p_paid=0) @@ -1042,7 +1049,14 @@ class Acc_Ledger_Search } else $r.=""; - + //< inject_code (string) code into list_operation + // to add an extra column + // (see Acc_Ledger_Search::list_operation). + // All the HTML code must be in inject_code, including the TD tag + if ( $this->inject_col != null) + { + $r.=$this->inject_col; + } // end row $r.=""; }