diff --git a/modules/purchase/purchase.py b/modules/purchase/purchase.py index 7d14103616..16507fe1d9 100644 --- a/modules/purchase/purchase.py +++ b/modules/purchase/purchase.py @@ -442,7 +442,7 @@ class Purchase( table.invoice_method, where=(table.party == self.party.id) & (table.invoice_party == invoice_party), - order_by=table.id, + order_by=table.id.desc, limit=10) cursor.execute(*subquery.select( subquery.currency,