-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: Reverse transactions order within a day #1776
Comments
Another easier way to reduce confusion is, to make the text more visually suppressed (e.g. making it light gray) for the balances other than the last transaction of a day? |
I don't think this is a fava problem. In your beancount journal, the order is also the wrong way around. Why don't you reverse the entries there? Doesn't that fix the fava-problem you are having? Don't get me wrong, I know beancount doesn't care about file-order, but it seems fava does, so changing the order in the file could also be the solution. |
I have entries reversed because it's easy to read and edit the recent transactions even when the editor is poor. Reversing the entries ordering in the file (again) will solve the problem, but I'd like to order the entries just like fava does. I don't know how many people are doing this, but I've started using beancount with this style from the beginning because someone have been recommending this and I felt it's reasonable, so I believe at least another person on the earth would have reversed transactions in their beancount file...😅 |
Fava and Beancount use the same sortkey, which sorts by line number for entries of the same type on the same day, see So we should stick to that order consistently to make sure that the entries are shown in the order that they are processed (which might be relevant for bookings to the same accounts on a single day) and if we reverse them, they should be fully reversed as well. I don't think there would be an easy way to make this configurable just in Fava. I think Beancount more expects the other convention of appending new entries at the bottom (and so does Fava when inserting entries for example) |
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
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.
The text was updated successfully, but these errors were encountered: