Let custom inventory batch view override logic for mobile UPC scanning

This commit is contained in:
Lance Edgar 2018-01-23 19:00:33 -06:00
parent eefc3b33d7
commit 04d1e303be
2 changed files with 39 additions and 21 deletions

View file

@ -11,7 +11,10 @@
if row.cases:
uom = 'CS'
elif row.units:
uom = 'EA'
if row.product and row.product.weighed:
uom = 'LB'
else:
uom = 'EA'
elif row.case_quantity:
uom = 'CS'
else: