Add "quick receive all" support for mobile receiving

i.e. quick receive button can now receive all/remainder of the ordered qty
This commit is contained in:
Lance Edgar 2018-08-16 22:21:58 -05:00
parent d4b2cf9943
commit 56392ccdd0
3 changed files with 39 additions and 6 deletions

View file

@ -85,10 +85,14 @@
${h.hidden('cases')}
${h.hidden('units')}
% if allow_cases:
<button type="button" class="quick-receive" data-uom="CS">Receive 1 CS</button>
% else:
<button type="button" class="quick-receive" data-uom="${unit_uom}">Receive 1 ${unit_uom}</button>
% if quick_receive:
% if quick_receive_all:
<button type="button" class="quick-receive" data-quantity="${quick_receive_quantity}" data-uom="${quick_receive_uom}">${quick_receive_text}</button>
% elif allow_cases:
<button type="button" class="quick-receive" data-quantity="1" data-uom="CS">Receive 1 CS</button>
% else:
<button type="button" class="quick-receive" data-quantity="1" data-uom="${unit_uom}">Receive 1 ${unit_uom}</button>
% endif
% endif
${keypad(unit_uom, uom, allow_cases=allow_cases)}