diff --git a/src/accounting/journal_entry/utils/original_line_items.py b/src/accounting/journal_entry/utils/original_line_items.py index 6328bd6..7f3a974 100644 --- a/src/accounting/journal_entry/utils/original_line_items.py +++ b/src/accounting/journal_entry/utils/original_line_items.py @@ -77,6 +77,7 @@ def get_selectable_original_line_items( .options(selectinload(JournalEntryLineItem.currency), selectinload(JournalEntryLineItem.account), selectinload(JournalEntryLineItem.journal_entry)).all() + line_items.reverse() for line_item in line_items: line_item.net_balance = line_item.amount \ if net_balances[line_item.id] is None \