diff --git a/modules/purchase/purchase.py b/modules/purchase/purchase.py index 6411bc5805..0629ab68ee 100644 --- a/modules/purchase/purchase.py +++ b/modules/purchase/purchase.py @@ -421,7 +421,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,