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"');