Force user to count "units" and not "packs" for inventory batch

at least until we come up with something smarter...
This commit is contained in:
Lance Edgar 2018-07-09 15:50:28 -05:00
parent 469f9cf015
commit c88d060fe0
2 changed files with 17 additions and 1 deletions

View file

@ -114,6 +114,10 @@
$('#size').val(data.product.size);
$('#case_quantity').val(data.product.case_quantity);
if (data.force_unit_item) {
$('#product-info .warning.force-unit').show();
}
if (data.already_present_in_batch) {
$('#product-info .warning.present').show();
$('#cases').val(data.cases);
@ -248,6 +252,7 @@
<div class="img-wrapper"><img /></div>
<div class="warning notfound">please confirm UPC and provide more details</div>
<div class="warning present">product already exists in batch, please confirm count</div>
<div class="warning force-unit">pack item scanned, but must count units instead</div>
</div>
</div>
</div>