Skip to content

Commit

Permalink
Merge pull request #159 from chrisberkhout/ledger-tx-by-date
Browse files Browse the repository at this point in the history
Ledger export transactions sorted by date
  • Loading branch information
sdementen committed Mar 21, 2021
2 parents 4d1563b + 923f0c9 commit 1fbb1df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piecash/ledger.py
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 1fbb1df

Please sign in to comment.