forked from Wavyzz/dolibarr
show service lines only if the stock services option is enabled
This commit is contained in:
@@ -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> </td>';
|
print '<td> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
}
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|||||||
Reference in New Issue
Block a user