diff --git a/tailbone/views/purchasing/receiving.py b/tailbone/views/purchasing/receiving.py index 32662bc4..81a1c343 100644 --- a/tailbone/views/purchasing/receiving.py +++ b/tailbone/views/purchasing/receiving.py @@ -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)