Add initial/basic support for damaged/expired items in receiving batch

This commit is contained in:
Lance Edgar 2016-12-09 15:30:14 -06:00
parent dd08b71458
commit 1ab2a70e60
3 changed files with 36 additions and 9 deletions

View file

@ -69,6 +69,18 @@
$('#receiving-form').submit();
});
$('#damaged').click(function() {
$(this).button('disable').button('option', 'label', "Working...");
$('#mode').val('damaged');
$('#receiving-form').submit();
});
$('#expired').click(function() {
$(this).button('disable').button('option', 'label', "Working...");
$('#mode').val('expired');
$('#receiving-form').submit();
});
$('#receiving-form').submit(function() {
$(this).mask("Working...");
});
@ -138,8 +150,8 @@
<div class="buttons">
<button type="button" id="received">Received</button>
<button type="button" id="damaged" disabled="disabled">Damaged</button>
<button type="button" id="expired" disabled="disabled">Expired</button>
<button type="button" id="damaged">Damaged</button>
<button type="button" id="expired">Expired</button>
<button type="button" id="mispick" disabled="disabled">Mispick</button>
</div>