Improve how cases/units, uom are handled for mobile receiving

last-used uom should be more or less sticky, etc.
This commit is contained in:
Lance Edgar 2018-07-10 14:24:12 -05:00
parent 147c65afe6
commit 477a34cfa7
3 changed files with 44 additions and 10 deletions

View file

@ -68,9 +68,11 @@ $(document).on('click', 'form.receiving-update .receiving-actions button', funct
});
// quick-receive (1 CS)
$(document).on('click', 'form.receiving-update .receive-one-case', function() {
var form = $(this).parents('form:first');
form.find('[name="mode"]').val('received');
form.find('[name="cases"]').val('1');
form.find('input[name="quick_receive"]').val('true');
form.submit();
});