Merge pull request #14365 from bafbes/abb120131
NEW Add link to reset qty on supplier dispatch page
This commit is contained in:
commit
cc88fe9b68
@ -743,7 +743,8 @@ if ($id > 0 || !empty($ref)) {
|
|||||||
print '<td class="right">'.$langs->trans("SupplierRef").'</td>';
|
print '<td class="right">'.$langs->trans("SupplierRef").'</td>';
|
||||||
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").'</td>';
|
print ' <td class="right">'.$langs->trans("QtyToDispatchShort");
|
||||||
|
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)) {
|
||||||
@ -1068,6 +1069,15 @@ 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();
|
||||||
|
});
|
||||||
|
|
||||||
|
jQuery("#autoreset").click(function() {';
|
||||||
|
$i = 0;
|
||||||
|
while ($i < $nbproduct) {
|
||||||
|
print ' jQuery("#qty_0_'.$i.'").val("");';
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
print '
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>';
|
</script>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user