Refactor inventory batch desktop lookup, to allow for Type 2 UPC logic
for now though, such logic must be provided by custom app
This commit is contained in:
parent
42982a69ea
commit
e9322628cb
2 changed files with 27 additions and 15 deletions
|
@ -91,6 +91,9 @@
|
|||
$('#description').val(data.product.description);
|
||||
$('#size').val(data.product.size);
|
||||
$('#case_quantity').val(data.product.case_quantity);
|
||||
if (data.product.type2) {
|
||||
$('#units').val(data.product.units);
|
||||
}
|
||||
|
||||
$('#product-info p').text(data.product.full_description);
|
||||
$('#product-info img').attr('src', data.product.image_url).show();
|
||||
|
@ -102,7 +105,11 @@
|
|||
$('.field-wrapper.cases input').prop('disabled', false);
|
||||
$('.field-wrapper.units input').prop('disabled', false);
|
||||
$('.buttons button').button('enable');
|
||||
$('#cases').focus().select();
|
||||
if (data.product.type2) {
|
||||
$('#units').focus().select();
|
||||
} else {
|
||||
$('#cases').focus().select();
|
||||
}
|
||||
|
||||
// TODO: this is maybe useful if "new products" may be added via inventory batch
|
||||
// } else if (data.upc) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue