} else {
         print '<td>&nbsp;</td><td>&nbsp;</td>';
     }
     print "</tr>";
 }
 // Edit line
 if ($action == 'edit_line' && $user->rights->fournisseur->commande->creer && $_GET["rowid"] == $line->id) {
     print "\n";
     print '<tr ' . $bc[$var] . '>';
     print '<td>';
     print '<input type="hidden" name="elrowid" value="' . $_GET['rowid'] . '">';
     print '<a name="' . $line->id . '"></a>';
     // ancre pour retourner sur la ligne
     if ((!empty($conf->product->enabled) || !empty($conf->service->enabled)) && $line->fk_product > 0) {
         $product_static = new ProductFournisseur($db);
         $product_static->fetch_opt($line->fk_product);
         $text = $product_static->getNomUrl(1, 'supplier');
         $text .= ' - ' . $product_static->libelle;
         $description = $conf->global->PRODUIT_DESC_IN_FORM ? '' : dol_htmlentitiesbr($line->description);
         print $form->textwithtooltip($text, $description, 3, '', '', $i);
         // Show range
         print_date_range($date_start, $date_end);
         print '<br>';
     } else {
         $forceall = 1;
         // For suppliers, we always show all types
         print $form->select_type_of_lines($line->product_type, 'type', 1, 0, $forceall);
         if ($forceall || !empty($conf->product->enabled) && !empty($conf->service->enabled) || empty($conf->product->enabled) && empty($conf->service->enabled)) {
             print '<br>';
         }
     }