diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php
index 2293fd8aff0..c64d158ac2c 100644
--- a/htdocs/fourn/commande/dispatch.php
+++ b/htdocs/fourn/commande/dispatch.php
@@ -744,7 +744,7 @@ if ($id > 0 || !empty($ref)) {
print '
'.$langs->trans("QtyOrdered").' | ';
print ''.$langs->trans("QtyDispatchedShort").' | ';
print ' '.$langs->trans("QtyToDispatchShort");
- print ' '.$langs->trans("Reset").') | ';
+ print '
'.$langs->trans("Reset").'';
print ' | ';
if (!empty($conf->global->SUPPLIER_ORDER_CAN_UPDATE_BUYINGPRICE_DURING_RECEIPT)) {
@@ -1069,20 +1069,16 @@ if ($id > 0 || !empty($ref)) {
$("select[name=fk_default_warehouse]").change(function() {
var fk_default_warehouse = $("option:selected", this).val();
$("select[name^=entrepot_]").val(fk_default_warehouse).change();
- });';
- $i = 0;
- print '
+ });
+
jQuery("#autoreset").click(function() {';
$i = 0;
- while ($i < $nbproduct)
- {
- print '
- jQuery("#qty_0_'.$i.'").val("");';
+ while ($i < $nbproduct) {
+ print ' jQuery("#qty_0_'.$i.'").val("");';
$i++;
}
print '
- });';
- print '
+ });
});
';