diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php
index 8d7458a4df9..90fcc486e1c 100644
--- a/htdocs/compta/bank/account.php
+++ b/htdocs/compta/bank/account.php
@@ -380,7 +380,7 @@ if ($account || $_GET["ref"])
print '
";
+
print "| ".dolibarr_print_date($objp->do,"day")." | \n";
+
print " ".dolibarr_print_date($objp->dv,"day")." | \n";
+
print " ".$objp->fk_type." ".($objp->num_chq?$objp->num_chq:"")." | \n";
- print '';
- if (eregi('^\((.*)\)$',$objp->label,$reg))
- {
- // Label générique car entre parenthèses. On l'affiche en le traduisant
- print $langs->trans($reg[1]);
- }
- else
- {
- print $objp->label;
+
+ // Description
+ print ' | ';
+
+ $links = $acct->get_url($objp->rowid);
+
+ $isbanktransfert=false;
+ foreach($links as $key=>$val) { if ($val['type']=='banktransfert') $isbanktransfert=true; }
+
+ if (sizeof($links) == 0 || $isbanktransfert)
+ {
+ if (eregi('^\((.*)\)$',$objp->label,$reg))
+ {
+ // Label générique car entre parenthèses. On l'affiche en le traduisant
+ print $langs->trans($reg[1]);
+ }
+ else
+ {
+ print $objp->label;
+ }
}
- print '';
/*
* Ajout les liens autres que tiers
*/
- $links = $acct->get_url($objp->rowid);
foreach($links as $key=>$val)
{
if ($links[$key]['type']=='payment') {
- print ' - ';
+ //print ' - ';
print '';
if (eregi('^\((.*)\)$',$links[$key]['label'],$reg))
{
// Label générique car entre parenthèses. On l'affiche en le traduisant
- if ($reg[1]=='paiement') $reg[1]='Payment';
+ if ($reg[1]=='paiement') $reg[1]='CustomerInvoicePayment';
print $langs->trans($reg[1]);
}
else
@@ -496,12 +508,12 @@ if ($account || $_GET["ref"])
print '';
}
else if ($links[$key]['type']=='payment_supplier') {
- print ' - ';
+ //print ' - ';
print '';
if (eregi('^\((.*)\)$',$links[$key]['label'],$reg))
{
// Label générique car entre parenthèses. On l'affiche en le traduisant
- if ($reg[1]=='paiement') $reg[1]='Payment';
+ if ($reg[1]=='paiement') $reg[1]='SupplierInvoicePayment';
print $langs->trans($reg[1]);
}
else
@@ -515,25 +527,19 @@ if ($account || $_GET["ref"])
else if ($links[$key]['type']=='sc') {
}
else if ($links[$key]['type']=='payment_sc') {
- print ' - ';
+ //print ' - ';
print '';
//print img_object($langs->trans('ShowPayment'),'payment').' ';
print $langs->trans("SocialContributionPayment");
print '';
}
else if ($links[$key]['type']=='banktransfert') {
- /* Do not show this link (avoid confusion). Can be accessed from transaction detail.
- print ' - ';
- print '';
- //print img_object($langs->trans('ShowPayment'),'payment').' ';
- print $langs->trans("TransactionWithOtherAccount");
- print '';
- */
+ /* Do not show this link (avoid confusion). Can already be accessed from transaction detail */
}
else if ($links[$key]['type']=='member') {
}
else {
- print ' - ';
+ //print ' - ';
print '';
if (eregi('^\((.*)\)$',$links[$key]['label'],$reg))
{
@@ -611,7 +617,11 @@ if ($account || $_GET["ref"])
// Relevé rappro ou lien edition
if ($objp->rappro && $acct->type != 2) // Si non compte cash
{
- print " | ";
+ print " | ";
+ print '';
+ print img_view();
+ print '';
+ print " ";
print "num_releve&account=$acct->id\">$objp->num_releve";
print " | ";
}
@@ -622,6 +632,12 @@ if ($account || $_GET["ref"])
{
print '';
print img_edit();
+ print '';
+ }
+ else
+ {
+ print '';
+ print img_view();
print '';
}
print ' ';
diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php
index 9a1b908801f..5c6a2091d0d 100644
--- a/htdocs/lib/functions.lib.php
+++ b/htdocs/lib/functions.lib.php
@@ -987,6 +987,23 @@ function img_edit($alt = "default", $float=0, $other='')
return $img;
}
+/**
+ \brief Affiche logo voir fiche
+ \param alt Texte sur le alt de l'image
+ \param float Si il faut y mettre le style "float: right"
+ \return string Retourne tag img
+ */
+function img_view($alt = "default", $float=0, $other='')
+{
+ global $conf,$langs;
+ if ($alt=="default") $alt=$langs->trans("View");
+ $img='
';
+ return $img;
+}
+
/**
\brief Affiche logo effacer
\param alt Texte sur le alt de l'image
diff --git a/htdocs/theme/auguria/img/view.png b/htdocs/theme/auguria/img/view.png
new file mode 100644
index 00000000000..4e0396f7b09
Binary files /dev/null and b/htdocs/theme/auguria/img/view.png differ
diff --git a/htdocs/theme/bluelagoon/img/view.png b/htdocs/theme/bluelagoon/img/view.png
new file mode 100644
index 00000000000..4e0396f7b09
Binary files /dev/null and b/htdocs/theme/bluelagoon/img/view.png differ
diff --git a/htdocs/theme/dev/img/view.png b/htdocs/theme/dev/img/view.png
new file mode 100644
index 00000000000..4e0396f7b09
Binary files /dev/null and b/htdocs/theme/dev/img/view.png differ
diff --git a/htdocs/theme/eldy/img/view.png b/htdocs/theme/eldy/img/view.png
new file mode 100644
index 00000000000..4e0396f7b09
Binary files /dev/null and b/htdocs/theme/eldy/img/view.png differ
diff --git a/htdocs/theme/freelug/img/view.png b/htdocs/theme/freelug/img/view.png
new file mode 100644
index 00000000000..4e0396f7b09
Binary files /dev/null and b/htdocs/theme/freelug/img/view.png differ
diff --git a/htdocs/theme/yellow/img/view.png b/htdocs/theme/yellow/img/view.png
new file mode 100644
index 00000000000..4e0396f7b09
Binary files /dev/null and b/htdocs/theme/yellow/img/view.png differ