Sort mobile receiving batches by ID desc

This commit is contained in:
Lance Edgar 2017-07-10 16:39:35 -05:00
parent 27c70eb459
commit 9da7ba21bf

View file

@ -120,7 +120,8 @@ class ReceivingBatchView(PurchasingBatchView):
.filter(model.PurchaseBatch.executed == None)\
.filter(sa.or_(
model.PurchaseBatch.complete == None,
model.PurchaseBatch.complete == False))
model.PurchaseBatch.complete == False))\
.order_by(model.PurchaseBatch.id.desc())
def configure_mobile_grid(self, g):
super(ReceivingBatchView, self).configure_mobile_grid(g)