Skip to content
Snippets Groups Projects
Commit 3e484563 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix when no price defined, we must how nothing instead of 0

parent 56b5bfd2
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
$result = $db->query($sql);
$nbtotalofrecords = $db->num_rows($result);
}
$sql .= " ORDER BY ".$sortfield." ".$sortorder;
$sql .= $db->order($sortfield,$sortorder);
$sql .= $db->plimit($limit + 1, $offset);
dol_syslog("fourn/product/list.php:", LOG_DEBUG);
......@@ -225,11 +225,11 @@ if ($resql)
if ($companystatic->id > 0) print $companystatic->getNomUrl(1,'supplier');
print '</td>';
print '<td align="right">'.price($objp->price).'</td>';
print '<td align="right">'.(isset($objp->price) ? price($objp->price) : '').'</td>';
print '<td align="right">'.$objp->qty.'</td>';
print '<td align="right">'.price($objp->unitprice).'</td>';
print '<td align="right">'.(isset($objp->unitprice) ? price($objp->unitprice) : '').'</td>';
print "</tr>\n";
$i++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment