Add logic for mobile receiving if product not in batch and/or system
This commit is contained in:
parent
7bbdf38551
commit
af0eea76e2
3 changed files with 59 additions and 13 deletions
|
@ -4,13 +4,17 @@
|
|||
## TODO: this is broken for actual page (header) title
|
||||
<%def name="title()">${h.link_to("Receiving", url('mobile.receiving'))} » ${h.link_to(instance.batch.id_str, url('mobile.receiving.view', uuid=instance.batch_uuid))} » ${row.upc.pretty()}</%def>
|
||||
|
||||
<% unit_uom = 'LB' if row.product.weighed else 'EA' %>
|
||||
<% unit_uom = 'LB' if row.product and row.product.weighed else 'EA' %>
|
||||
|
||||
<div class="ui-grid-a">
|
||||
<div class="ui-block-a">
|
||||
<h3>${instance.brand_name}</h3>
|
||||
<h3>${instance.description} ${instance.size}</h3>
|
||||
<h3>${h.pretty_quantity(row.case_quantity)} ${unit_uom} per CS</h3>
|
||||
% if instance.product:
|
||||
<h3>${instance.brand_name or ""}</h3>
|
||||
<h3>${instance.description} ${instance.size}</h3>
|
||||
<h3>${h.pretty_quantity(row.case_quantity)} ${unit_uom} per CS</h3>
|
||||
% else:
|
||||
<h3>${instance.description}</h3>
|
||||
% endif
|
||||
</div>
|
||||
<div class="ui-block-b">
|
||||
${h.image(product_image_url, "product image")}
|
||||
|
@ -38,6 +42,12 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
% if request.session.peek_flash('receiving-warning'):
|
||||
% for error in request.session.pop_flash('receiving-warning'):
|
||||
<div class="receiving-warning">${error}</div>
|
||||
% endfor
|
||||
% endif
|
||||
|
||||
<table id="receiving-quantity-keypad-thingy" data-changed="false">
|
||||
<tbody>
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue