Description
Similar to #493, but this is a feature request with more limited scope.
Summary
I want an option to show transactions within each day in reverse order.
(This is not about the sort order of dates, which is already switchable.)
In other words, if there are multiple transactions with the same date, handle the first transaction in the file as the last transaction in the day, and the last in the file as the first in the day.
This might be a cosmetic stuff rather than the matter of correctness or consistency, but this will reduce confusion in some environment.
Working Example
option "operating_currency" "USD"
2024-03-15 balance Assets:Current:PrepaidCard 6 USD
2024-03-14 * "Store 3" "Yet another random item 3" ; 21:00
Assets:Current:PrepaidCard -15 USD
Expenses:SomeRandomItems
; 2024-03-14 balance Assets:Current:PrepaidCard 21 USD
2024-03-14 * "ATM 2" "Charge the prepaid card again" ; 18:00
Assets:Current:PrepaidCard 20 USD
Assets:Current:Savings:FooBarBank
; 2024-03-14 balance Assets:Current:PrepaidCard 1 USD
2024-03-14 * "Store 2" "Another random item 2" ; 15:00
Assets:Current:PrepaidCard -16 USD
Expenses:SomeRandomItems
; 2024-03-14 balance Assets:Current:PrepaidCard 17 USD
2024-03-14 * "ATM 1" "Charge the prepaid card" ; 12:00
Assets:Current:PrepaidCard 15 USD
Assets:Current:Savings:FooBarBank
; 2024-03-14 balance Assets:Current:PrepaidCard 2 USD
2024-03-14 * "Store 1" "Some random item 1" ; 09:00
Assets:Current:PrepaidCard -8 USD
Expenses:SomeRandomItems
2024-03-14 balance Assets:Current:PrepaidCard 10 USD
2024-02-01 balance Assets:Current:PrepaidCard 10 USD
2024-02-01 balance Assets:Current:Savings:FooBarBank 100 USD
2024-01-01 pad Assets:Current:PrepaidCard Equity:Opening-Balances
2024-01-01 pad Assets:Current:Savings:FooBarBank Equity:Opening-Balances
;include "_accounts.beancount"
; [BEGIN] _accounts.beancount
2024-01-01 open Assets:Current:PrepaidCard USD
2024-01-01 open Assets:Current:Savings:FooBarBank USD
2024-01-01 open Equity:Opening-Balances USD
2024-01-01 open Expenses:SomeRandomItems USD
; [END] _accounts.beancount
As you see, the first in the file (Store 3, 21:00) is the last in the day, and the last in the file" (Store 1, 09:00) is the first in the day.
Actual Result
The example above results in the capture below. See what happens to the "Balance" column.
This is quite unintuitive... the balance of the prepaid card looks like going to negative, which usually never happens!
I know this is "correct" as beancount since it does not have smaller granularity than a day, which is the reason why I cannot put multiple balance
with different values within a day.
In that sense, this might be "cosmetic" problem... even if the balance looks like "wrong" for human.
However, in this state, I'm sometimes confused as "hey, which is temporarily wrong value and which is the real balance I can trust!?"
This can be mitigated by putting bunch of balance
s (I do this), ideally everyday, but it is tiring and the confusing values still remain in the table.
Expected Result
What I wanted is, an option to switch the display order as below:
Now the result looks quite natural, and reflects user's intention.
Activity