Reversed the original line items in the original line item selector.

This commit is contained in:
依瑪貓 2023-04-05 09:25:41 +08:00
parent 213981a8b2
commit 38b8a028d5

View File

@ -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 \