Skip to content

Commit

Permalink
Ledger export transactions sorted by date not currency
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisberkhout committed Mar 21, 2021
1 parent 4d1563b commit 923f0c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piecash/ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def _(book, **kwargs):
res.append(ledger(price, **kwargs))
res.append("\n")

for trans in sorted(book.transactions, key=lambda x: (x.currency_guid, x.post_date)):
for trans in sorted(book.transactions, key=lambda x: x.post_date):
res.append(ledger(trans, **kwargs))
res.append("\n")

Expand Down

0 comments on commit 923f0c9

Please sign in to comment.