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

@ -6,14 +6,6 @@
<%def name="page_title()">${h.link_to("Receiving", url('mobile.receiving'))} &raquo; ${h.link_to(batch.id_str, url('mobile.receiving.view', uuid=batch.uuid))} &raquo; ${row.upc.pretty()}</%def>
<%
unit_uom = 'LB' if row.product and row.product.weighed else 'EA'
uom = 'CS'
if row.units_ordered and not row.cases_ordered:
uom = 'EA'
%>
<div class="ui-grid-a">
<div class="ui-block-a">
@ -102,6 +94,8 @@
</tbody>
</table>
${h.hidden('quick_receive', value='false')}
${h.hidden('delete_row', value='false')}
% if request.has_perm('{}.delete_row'.format(permission_prefix)):
<button type="button" id="delete-receiving-row">Delete this Row</button>