diff --git a/pms_api_rest/services/pms_transaction_service.py b/pms_api_rest/services/pms_transaction_service.py index e4cccff04..3087b6696 100644 --- a/pms_api_rest/services/pms_transaction_service.py +++ b/pms_api_rest/services/pms_transaction_service.py @@ -320,6 +320,7 @@ class PmsTransactionService(Component): [ ("journal_id", "=", cash_register_search_param.journalId), ], + order="date desc, id desc", limit=1, ) )