Tweak the "incomplete" row filter for mobile receiving batch
this really is not ideal...hopefully good enough to limp along for a while yet
This commit is contained in:
parent
3789e4b3bd
commit
d5efc51d61
|
@ -69,12 +69,13 @@ class MobileItemStatusFilter(grids.filters.MobileFilter):
|
||||||
if value == 'incomplete':
|
if value == 'incomplete':
|
||||||
# looking for any rows with "ordered" quantity, but where the
|
# looking for any rows with "ordered" quantity, but where the
|
||||||
# status does *not* signify a "settled" row so to speak
|
# status does *not* signify a "settled" row so to speak
|
||||||
|
# TODO: would be nice if we had a simple flag to leverage?
|
||||||
return query.filter(sa.or_(model.PurchaseBatchRow.cases_ordered != 0,
|
return query.filter(sa.or_(model.PurchaseBatchRow.cases_ordered != 0,
|
||||||
model.PurchaseBatchRow.units_ordered != 0))\
|
model.PurchaseBatchRow.units_ordered != 0))\
|
||||||
.filter(~model.PurchaseBatchRow.status_code.in_((
|
.filter(~model.PurchaseBatchRow.status_code.in_((
|
||||||
model.PurchaseBatchRow.STATUS_OK,
|
model.PurchaseBatchRow.STATUS_OK,
|
||||||
model.PurchaseBatchRow.STATUS_PRODUCT_NOT_FOUND,
|
model.PurchaseBatchRow.STATUS_PRODUCT_NOT_FOUND,
|
||||||
model.PurchaseBatchRow.STATUS_TRUCKDUMP_CLAIMED)))
|
model.PurchaseBatchRow.STATUS_CASE_QUANTITY_DIFFERS)))
|
||||||
|
|
||||||
if value == 'invalid':
|
if value == 'invalid':
|
||||||
return query.filter(model.PurchaseBatchRow.status_code.in_((
|
return query.filter(model.PurchaseBatchRow.status_code.in_((
|
||||||
|
|
Loading…
Reference in a new issue