Sort mobile receiving batches by ID desc
This commit is contained in:
parent
27c70eb459
commit
9da7ba21bf
|
@ -120,7 +120,8 @@ class ReceivingBatchView(PurchasingBatchView):
|
||||||
.filter(model.PurchaseBatch.executed == None)\
|
.filter(model.PurchaseBatch.executed == None)\
|
||||||
.filter(sa.or_(
|
.filter(sa.or_(
|
||||||
model.PurchaseBatch.complete == None,
|
model.PurchaseBatch.complete == None,
|
||||||
model.PurchaseBatch.complete == False))
|
model.PurchaseBatch.complete == False))\
|
||||||
|
.order_by(model.PurchaseBatch.id.desc())
|
||||||
|
|
||||||
def configure_mobile_grid(self, g):
|
def configure_mobile_grid(self, g):
|
||||||
super(ReceivingBatchView, self).configure_mobile_grid(g)
|
super(ReceivingBatchView, self).configure_mobile_grid(g)
|
||||||
|
|
Loading…
Reference in a new issue