Skip to content

Commit

Permalink
Fix: Link on supplier in document invoice must go to supplier card.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 1, 2014
1 parent 7de0438 commit 2d15e2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion htdocs/fourn/facture/contact.php
Expand Up @@ -155,7 +155,7 @@

// Third party
print "<tr><td>".$langs->trans("Supplier")."</td>";
print '<td colspan="3">'.$object->client->getNomUrl(1,'compta').'</td></tr>';
print '<td colspan="3">'.$object->thirdparty->getNomUrl(1,'supplier').'</td></tr>';
print "</table>";

print '</div>';
Expand Down
2 changes: 1 addition & 1 deletion htdocs/fourn/facture/fiche.php
Expand Up @@ -1520,7 +1520,7 @@
print '</td></tr>';

// Third party
print '<tr><td>'.$langs->trans('Supplier').'</td><td colspan="4">'.$societe->getNomUrl(1);
print '<tr><td>'.$langs->trans('Supplier').'</td><td colspan="4">'.$societe->getNomUrl(1,'supplier');
print ' &nbsp; (<a href="'.DOL_URL_ROOT.'/fourn/facture/list.php?socid='.$object->socid.'">'.$langs->trans('OtherBills').'</a>)</td>';
print '</tr>';

Expand Down
2 changes: 1 addition & 1 deletion htdocs/fourn/facture/note.php
Expand Up @@ -101,7 +101,7 @@
print "</tr>\n";

// Company
print '<tr><td>'.$langs->trans('Supplier').'</td><td colspan="3">'.$object->thirdparty->getNomUrl(1).'</td></tr>';
print '<tr><td>'.$langs->trans('Supplier').'</td><td colspan="3">'.$object->thirdparty->getNomUrl(1,'supplier').'</td></tr>';

// Type
print '<tr><td>'.$langs->trans('Type').'</td><td colspan="4">';
Expand Down

0 comments on commit 2d15e2c

Please sign in to comment.