ajoute 1 par dfaut sur la quantit

This commit is contained in:
Regis Houssin 2006-06-10 10:00:22 +00:00
parent 4c7024033c
commit 4d60112551

View File

@ -314,7 +314,8 @@ if ($_GET["id"] || $_GET["ref"])
}
print '<tr><td>'.$langs->trans("Qty").'</td>';
print '<td><input class="flat" name="qty" size="5" value="'.$_GET["qty"].'"></td>';
$quantity = $_GET["qty"] ? $_GET["qty"] : "1";
print '<td><input class="flat" name="qty" size="5" value="'.$quantity.'"></td>';
print '<td>'.$langs->trans("Price").'</td>';
print '<td><input class="flat" name="price" size="8" value="'.price($_GET["price"]).'"></td></tr>';