add missing links in cust. card boxes

This commit is contained in:
Romain DESCHAMPS 2018-02-09 09:14:34 +01:00 committed by Laurent Destailleur
parent 37ff46b05a
commit 8e42ed5824

View File

@ -549,7 +549,7 @@ if ($id > 0)
$outstandingTotal=$tmp['total_ht']; $outstandingTotal=$tmp['total_ht'];
$outstandingTotalIncTax=$tmp['total_ttc']; $outstandingTotalIncTax=$tmp['total_ttc'];
$text=$langs->trans("OverAllProposals"); $text=$langs->trans("OverAllProposals");
$link=''; $link=DOL_URL_ROOT.'/comm/propal/list.php?socid='.$object->id;
$icon='bill'; $icon='bill';
if ($link) $boxstat.='<a href="'.$link.'" class="boxstatsindicator thumbstat nobold nounderline">'; if ($link) $boxstat.='<a href="'.$link.'" class="boxstatsindicator thumbstat nobold nounderline">';
$boxstat.='<div class="boxstats">'; $boxstat.='<div class="boxstats">';
@ -561,13 +561,13 @@ if ($id > 0)
if (! empty($conf->commande->enabled)) if (! empty($conf->commande->enabled))
{ {
// Box proposals // Box commandes
$tmp = $object->getOutstandingOrders(); $tmp = $object->getOutstandingOrders();
$outstandingOpened=$tmp['opened']; $outstandingOpened=$tmp['opened'];
$outstandingTotal=$tmp['total_ht']; $outstandingTotal=$tmp['total_ht'];
$outstandingTotalIncTax=$tmp['total_ttc']; $outstandingTotalIncTax=$tmp['total_ttc'];
$text=$langs->trans("OverAllOrders"); $text=$langs->trans("OverAllOrders");
$link=''; $link=DOL_URL_ROOT.'/commande/list.php?socid='.$object->id;
$icon='bill'; $icon='bill';
if ($link) $boxstat.='<a href="'.$link.'" class="boxstatsindicator thumbstat nobold nounderline">'; if ($link) $boxstat.='<a href="'.$link.'" class="boxstatsindicator thumbstat nobold nounderline">';
$boxstat.='<div class="boxstats">'; $boxstat.='<div class="boxstats">';
@ -579,12 +579,13 @@ if ($id > 0)
if (! empty($conf->facture->enabled)) if (! empty($conf->facture->enabled))
{ {
// Box factures
$tmp = $object->getOutstandingBills(); $tmp = $object->getOutstandingBills();
$outstandingOpened=$tmp['opened']; $outstandingOpened=$tmp['opened'];
$outstandingTotal=$tmp['total_ht']; $outstandingTotal=$tmp['total_ht'];
$outstandingTotalIncTax=$tmp['total_ttc']; $outstandingTotalIncTax=$tmp['total_ttc'];
$text=$langs->trans("OverAllInvoices"); $text=$langs->trans("OverAllInvoices");
$link=''; $link=DOL_URL_ROOT.'/compta/facture/list.php?socid='.$object->id;
$icon='bill'; $icon='bill';
if ($link) $boxstat.='<a href="'.$link.'" class="boxstatsindicator thumbstat nobold nounderline">'; if ($link) $boxstat.='<a href="'.$link.'" class="boxstatsindicator thumbstat nobold nounderline">';
$boxstat.='<div class="boxstats">'; $boxstat.='<div class="boxstats">';