fix: reset link on supplier dispatch
This commit is contained in:
parent
da76775fbd
commit
4900e85fa8
@ -743,7 +743,8 @@ if ($id > 0 || !empty($ref)) {
|
||||
print '<td class="right">'.$langs->trans("SupplierRef").'</td>';
|
||||
print '<td class="right">'.$langs->trans("QtyOrdered").'</td>';
|
||||
print '<td class="right">'.$langs->trans("QtyDispatchedShort").'</td>';
|
||||
print '<td class="right">'.$langs->trans("QtyToDispatchShort").'</td>';
|
||||
print ' <td class="right">'.$langs->trans("QtyToDispatchShort");
|
||||
print ' (<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)) {
|
||||
@ -1068,7 +1069,20 @@ 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(0);';
|
||||
$i++;
|
||||
}
|
||||
print '
|
||||
});';
|
||||
print '
|
||||
});
|
||||
</script>';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user