Only show mobile "quick receive" buttons if product is identifiable

This commit is contained in:
Lance Edgar 2018-09-20 16:15:45 -05:00
parent 0b9fe2dfe7
commit 8c26b632fe

View file

@ -85,7 +85,8 @@
${h.hidden('cases')} ${h.hidden('cases')}
${h.hidden('units')} ${h.hidden('units')}
% if quick_receive: ## only show quick-receive if we have an identifiable product
% if quick_receive and instance.product:
% if quick_receive_all: % if quick_receive_all:
<button type="button" class="quick-receive" data-quantity="${quick_receive_quantity}" data-uom="${quick_receive_uom}">${quick_receive_text}</button> <button type="button" class="quick-receive" data-quantity="${quick_receive_quantity}" data-uom="${quick_receive_uom}">${quick_receive_text}</button>
% elif allow_cases: % elif allow_cases: