From 6e168e23c8244b0420801c998cbf04a4be0c4b11 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 2 Aug 2010 17:18:50 +0000 Subject: [PATCH] =?UTF-8?q?Add=20history=20for=20balance=20and=20history?= =?UTF-8?q?=20of=20impression=20->=20cat=C3=A9gorie=20de=20fiche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/class_html_input.php | 20 ++++++++++++++++++++ include/impress_fiche.inc.php | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/include/class_html_input.php b/include/class_html_input.php index 600753383..21ced8217 100755 --- a/include/class_html_input.php +++ b/include/class_html_input.php @@ -229,6 +229,26 @@ echo $string => {'prop':'1','prop2':'2','prop3':'3'}; return sprintf('%s', $p_jr_id,dossier::id(),$p_mesg); } + /** + * display a div with the history of the card + */ + static function history_card($f_id,$p_mesg) + { + $view_history= sprintf('%s', + $f_id, dossier::id(), $p_mesg); + return $view_history; + } + + /** + * display a div with the history of the account + */ + static function history_account($p_account,$p_mesg) + { + $view_history= sprintf('%s', + $p_account, dossier::id(), $p_mesg); + return $view_history; + } + /** * return the html code to create an hidden div and a button * to show this DIV. This contains all the available ledgers diff --git a/include/impress_fiche.inc.php b/include/impress_fiche.inc.php index cc647f836..414c936b4 100644 --- a/include/impress_fiche.inc.php +++ b/include/impress_fiche.inc.php @@ -148,7 +148,7 @@ if ( $_GET['histo'] == 4 ) { if ( $idx%2 == 0) $class='class="odd"'; $idx++; echo tr( - td($oCard->strAttribut(ATTR_DEF_QUICKCODE)). + td(HtmlInput::history_card($oCard->id,$oCard->strAttribut(ATTR_DEF_QUICKCODE))). td($oCard->strAttribut(ATTR_DEF_NAME)). td(sprintf('%.02f',$solde['debit']),'style="text-align:right"'). td(sprintf('%.02f',$solde['credit']),'style="text-align:right"'). @@ -207,7 +207,7 @@ foreach($array as $row) { $row=$letter->content[$i]; echo td($row['j_date_fmt']); echo td($row['jr_pj_number']); - echo td($row['jr_internal']); + echo td(HtmlInput::detail_op($row['jr_id'],$row['jr_internal'])); echo td($row['jr_comment']); if ( $row['j_debit'] == 't') { echo td(sprintf('%.2f',$row['j_montant']),' style="text-align:right"');