2
0
forked from Wavyzz/dolibarr

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

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("QtyDispatchedShort").'</td>';
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>';
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 '
});
});
</script>';