';
print '';
- print '| '.$langs->trans("ProposalsDraft").($num?' '.$num.'':'').' |
';
+ print ''.$langs->trans("ProposalsDraft").' '.$num.' | ';
if ($num > 0)
{
$i = 0;
- while ($i < $num)
+ $nbofloop=min($num, (empty($conf->global->MAIN_MAXLIST_OVERLOAD)?500:$conf->global->MAIN_MAXLIST_OVERLOAD));
+ while ($i < $nbofloop)
{
$obj = $db->fetch_object($resql);
@@ -190,10 +191,13 @@ if (! empty($conf->propal->enabled) && $user->rights->propal->lire)
$i++;
$total += $obj->total_ht;
}
- if ($total>0)
+ if ($num > $nbofloop)
{
-
- print '| '.$langs->trans("Total").' | '.price($total)." |
";
+ print '| '.$langs->trans("XMoreLines", ($num - $nbofloop))." |
";
+ }
+ elseif ($total>0)
+ {
+ print '| '.$langs->trans("Total").' | '.price($total)." |
";
}
}
else
@@ -245,7 +249,8 @@ if (! empty($conf->supplier_proposal->enabled) && $user->rights->supplier_propos
if ($num > 0)
{
$i = 0;
- while ($i < $num)
+ $nbofloop=min($num, (empty($conf->global->MAIN_MAXLIST_OVERLOAD)?500:$conf->global->MAIN_MAXLIST_OVERLOAD));
+ while ($i < $nbofloop)
{
$obj = $db->fetch_object($resql);
@@ -270,9 +275,13 @@ if (! empty($conf->supplier_proposal->enabled) && $user->rights->supplier_propos
$i++;
$total += $obj->total_ht;
}
- if ($total>0)
+ if ($num > $nbofloop)
+ {
+ print '| '.$langs->trans("XMoreLines", ($num - $nbofloop))." |
";
+ }
+ elseif ($total>0)
{
- print '| '.$langs->trans("Total").' | '.price($total)." |
";
+ print '| '.$langs->trans("Total").' | '.price($total)." |
";
}
}
else
@@ -322,9 +331,9 @@ if (! empty($conf->commande->enabled) && $user->rights->commande->lire)
if ($num > 0)
{
$i = 0;
- while ($i < $num)
+ $nbofloop=min($num, (empty($conf->global->MAIN_MAXLIST_OVERLOAD)?500:$conf->global->MAIN_MAXLIST_OVERLOAD));
+ while ($i < $nbofloop)
{
-
$obj = $db->fetch_object($resql);
print '| ';
$orderstatic->id=$obj->rowid;
@@ -353,10 +362,13 @@ if (! empty($conf->commande->enabled) && $user->rights->commande->lire)
$i++;
$total += $obj->total_ttc;
}
- if ($total>0)
+ if ($num > $nbofloop)
{
-
- print ' |
| '.$langs->trans("Total").' | '.price($total)." |
";
+ print '| '.$langs->trans("XMoreLines", ($num - $nbofloop))." |
";
+ }
+ elseif ($total>0)
+ {
+ print '| '.$langs->trans("Total").' | '.price($total)." |
";
}
}
else
@@ -409,7 +421,8 @@ if (! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->commande
if ($num > 0)
{
$i = 0;
- while ($i < $num)
+ $nbofloop=min($num, (empty($conf->global->MAIN_MAXLIST_OVERLOAD)?500:$conf->global->MAIN_MAXLIST_OVERLOAD));
+ while ($i < $nbofloop)
{
$obj = $db->fetch_object($resql);
@@ -440,10 +453,13 @@ if (! empty($conf->fournisseur->enabled) && $user->rights->fournisseur->commande
$i++;
$total += $obj->total_ttc;
}
- if ($total>0)
+ if ($num > $nbofloop)
+ {
+ print '| '.$langs->trans("XMoreLines", ($num - $nbofloop))." |
";
+ }
+ elseif ($total>0)
{
-
- print '| '.$langs->trans("Total").' | '.price($total)." |
";
+ print '| '.$langs->trans("Total").' | '.price($total)." |
";
}
}
else
@@ -757,11 +773,11 @@ if (! empty($conf->propal->enabled) && $user->rights->propal->lire)
}
if ($num > $nbofloop)
{
- print '| '.$langs->trans("XMoreLines", ($num - $nbofloop))." |
";
+ print '| '.$langs->trans("XMoreLines", ($num - $nbofloop))." |
";
}
elseif ($total>0)
{
- print '| '.$langs->trans("Total")." | ".price($total)." | |
";
+ print '| '.$langs->trans("Total")." | ".price($total)." | |
";
}
print "