New: Show name of sales representatives if number is lower than 3
This commit is contained in:
parent
b21d3fad2a
commit
5407f9c492
1 changed files with 2 additions and 2 deletions
|
|
@ -1675,7 +1675,7 @@ else
|
|||
else if ($nbofsalesrepresentative > 0)
|
||||
{
|
||||
$userstatic=new User($db);
|
||||
$i=1;
|
||||
$i=0;
|
||||
foreach($listsalesrepresentatives as $val)
|
||||
{
|
||||
$userstatic->id=$val['id'];
|
||||
|
|
@ -1683,7 +1683,7 @@ else
|
|||
$userstatic->prenom=$val['firstname'];
|
||||
print $userstatic->getNomUrl(1);
|
||||
$i++;
|
||||
if ($i < 3) print ', ';
|
||||
if ($i < $nbofsalesrepresentative) print ', ';
|
||||
}
|
||||
}
|
||||
else print $langs->trans("NoSalesRepresentativeAffected");
|
||||
|
|
|
|||
Loading…
Reference in a new issue