show service lines only if the stock services option is enabled

This commit is contained in:
Cédric Salvador 2013-06-10 12:37:50 +02:00
parent bdb2a00539
commit d4aa2a0f79

View File

@ -324,7 +324,7 @@ if ($resql)
while ($i < min($num,$limit)) while ($i < min($num,$limit))
{ {
$objp = $db->fetch_object($resql); $objp = $db->fetch_object($resql);
if($conf->global->STOCK_SUPPORTS_SERVICES || $objp->fk_product_type == 0){
// Multilangs // Multilangs
if (! empty($conf->global->MAIN_MULTILANGS)) // si l'option est active if (! empty($conf->global->MAIN_MULTILANGS)) // si l'option est active
{ {
@ -379,6 +379,7 @@ if ($resql)
print '<td align="right">'.$form->select_product_fourn_price($product_static->id, "fourn".$i).'</td>'; print '<td align="right">'.$form->select_product_fourn_price($product_static->id, "fourn".$i).'</td>';
print '<td>&nbsp</td>'; print '<td>&nbsp</td>';
print "</tr>\n"; print "</tr>\n";
}
$i++; $i++;
} }
print "</table>"; print "</table>";