diff --git a/include/template/ledger_detail_ach.php b/include/template/ledger_detail_ach.php
index 58942b7ce..78b960701 100644
--- a/include/template/ledger_detail_ach.php
+++ b/include/template/ledger_detail_ach.php
@@ -37,9 +37,8 @@
$bk=new Fiche($cn,$obj->det->array[0]['qp_supplier']);
echo td(_('Fournisseur'));
- $view_history= sprintf('%s',
- $bk->id, $gDossier, $bk->get_quick_code());
- echo td(h($bk->getName())).td($view_history);;
+ $view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()), ' class="line" ');
+ echo td($view_card_detail);
?>
@@ -137,10 +136,8 @@ echo '';
$row='';
$q=$obj->det->array[$e];
$fiche=new Fiche($cn,$q['qp_fiche']);
- $view_history= sprintf('%s',
- $fiche->id, $gDossier, $fiche->strAttribut(ATTR_DEF_QUICKCODE));
-
- $row=td($view_history);
+ $view_card_detail=HtmlInput::card_detail($fiche->strAttribut(ATTR_DEF_QUICKCODE),"", ' class="line" ');
+ $row=td($view_card_detail);
$sym_tva='';
if ( $owner->MY_TVA_USE=='Y' && $q['qp_vat_code'] != '') {
diff --git a/include/template/ledger_detail_fin.php b/include/template/ledger_detail_fin.php
index 31827b940..d698b8532 100644
--- a/include/template/ledger_detail_fin.php
+++ b/include/template/ledger_detail_fin.php
@@ -27,9 +27,8 @@ $date->value=format_date($obj->det->jr_date);
$bk=new Fiche($cn,$obj->det->array[0]['qf_bank']);
-$view_history= sprintf('%s',
- $bk->id, $gDossier, $bk->get_quick_code());
-echo td('Compte en banque').td(h($bk->getName())).td($view_history);;
+$view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()), ' class="line" ');
+echo td('Compte en banque').td($view_card_detail).td();;
?>
@@ -37,10 +36,9 @@ echo td('Compte en banque').td(h($bk->getName())).td($view_history);;
$bk=new Fiche($cn,$obj->det->array[0]['qf_other']);
-$view_history= sprintf('%s',
- $bk->id, $gDossier, $bk->get_quick_code());
-echo td('Tiers').td(h($bk->getName()));
-echo td($view_history);
+$view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()), ' class="line" ');
+
+echo td('Tiers').td($view_card_detail);
?>
diff --git a/include/template/ledger_detail_ven.php b/include/template/ledger_detail_ven.php
index c41d5985e..09b1902ff 100644
--- a/include/template/ledger_detail_ven.php
+++ b/include/template/ledger_detail_ven.php
@@ -37,9 +37,8 @@
$bk=new Fiche($cn,$obj->det->array[0]['qs_client']);
echo td(_('Client'));
- $view_history= sprintf('%s',
- $bk->id, $gDossier, $bk->get_quick_code());
- echo td(h($bk->getName())).td($view_history);;
+ $view_card_detail=HtmlInput::card_detail($bk->get_quick_code(),h($bk->getName()), ' class="line" ');
+ echo td($view_card_detail);
?>
@@ -135,11 +134,9 @@ echo '';
$row='';
$q=$obj->det->array[$e];
$fiche=new Fiche($cn,$q['qs_fiche']);
- $view_history= sprintf('%s',
- $fiche->id, $gDossier, $fiche->strAttribut(ATTR_DEF_QUICKCODE));
-
- $row = td($view_history);
- if ($owner->MY_UPDLAB == 'Y')
+ $view_card_detail=HtmlInput::card_detail($fiche->strAttribut(ATTR_DEF_QUICKCODE),"", ' class="line" ');
+ $row.=td($view_card_detail);
+ if ($owner->MY_UPDLAB == 'Y')
{
$l_lib = ($q['j_text'] == '') ? $fiche->strAttribut(ATTR_DEF_NAME) : $q['j_text'];
$hidden = HtmlInput::hidden("j_id[]", $q['j_id']);