Update dispatch.php

This commit is contained in:
Laurent Destailleur 2020-08-04 12:00:24 +02:00 committed by GitHub
parent fd551261bb
commit 4bacb7d48e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -744,7 +744,7 @@ if ($id > 0 || !empty($ref)) {
print '<td class="right">'.$langs->trans("QtyOrdered").'</td>'; print '<td class="right">'.$langs->trans("QtyOrdered").'</td>';
print '<td class="right">'.$langs->trans("QtyDispatchedShort").'</td>'; print '<td class="right">'.$langs->trans("QtyDispatchedShort").'</td>';
print ' <td class="right">'.$langs->trans("QtyToDispatchShort"); print ' <td class="right">'.$langs->trans("QtyToDispatchShort");
print '<br><a href="#" id="autoreset">'.$langs->trans("Reset").'</a>)</td>'; print '<br><a href="#" id="autoreset">'.$langs->trans("Reset").'</a></td>';
print '<td width="32"></td>'; print '<td width="32"></td>';
if (!empty($conf->global->SUPPLIER_ORDER_CAN_UPDATE_BUYINGPRICE_DURING_RECEIPT)) { 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() { $("select[name=fk_default_warehouse]").change(function() {
var fk_default_warehouse = $("option:selected", this).val(); var fk_default_warehouse = $("option:selected", this).val();
$("select[name^=entrepot_]").val(fk_default_warehouse).change(); $("select[name^=entrepot_]").val(fk_default_warehouse).change();
});'; });
$i = 0;
print '
jQuery("#autoreset").click(function() {'; jQuery("#autoreset").click(function() {';
$i = 0; $i = 0;
while ($i < $nbproduct) while ($i < $nbproduct) {
{ print ' jQuery("#qty_0_'.$i.'").val("");';
print '
jQuery("#qty_0_'.$i.'").val("");';
$i++; $i++;
} }
print ' print '
});'; });
print '
}); });
</script>'; </script>';