diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index c2ae624f00a..9b5ae92558a 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -604,33 +604,6 @@ if ($_GET["action"] == 'create') { print '
| Services/Produits prédéfinis | '.$langs->trans("Qty").' | '.$langs->trans("Discount").' | '; @@ -639,7 +612,9 @@ if ($_GET["action"] == 'create') } for ($i = 1 ; $i <= $NBLINES ; $i++) { - print ' | |
| '; + print ' | ||||
| '; + $html->select_produits('',"idprod$i"); + print ' | '; print ''; print ' | % | '; print ''; @@ -648,7 +623,7 @@ if ($_GET["action"] == 'create') print ' | ';
print 'Du ';
print $html->select_date('',"date_start$i",0,0,1);
- print ' au ';
+ print ' au '; print $html->select_date('',"date_end$i",0,0,1); print ' | ';
}
@@ -1551,7 +1526,7 @@ else
else
{
/* Facture non trouvée */
- print "Facture inexistante";
+ print "Facture ".$_GET["facid"]." inexistante";
}
}
else
diff --git a/htdocs/contrat/fiche.php b/htdocs/contrat/fiche.php
index fdbffe16b51..d5b97d0d2fa 100644
--- a/htdocs/contrat/fiche.php
+++ b/htdocs/contrat/fiche.php
@@ -619,33 +619,6 @@ else
*/
if ($user->rights->contrat->creer)
{
- $sql = "SELECT p.rowid, p.label, p.ref, p.price, p.duration";
- $sql.= " FROM ".MAIN_DB_PREFIX."product as p ";
- $sql.= " WHERE p.envente = 1";
- $sql.= " ORDER BY p.nbvente DESC LIMIT 20";
-
- if ( $db->query($sql) )
- {
- $opt = "";
-
- $num = $db->num_rows();
- $i = 0;
- while ($i < $num)
- {
- $objp = $db->fetch_object();
- $opt .= "\n";
- $i++;
- }
-
- $db->free();
- }
- else
- {
- dolibarr_print_error($db);
- }
-
print '