Closed Marmo closed 3 years ago
Well that's strange. I did then understand you correctly but cannot reproduce this.
I had a look into the code and the only thing I can think of is some issues relating to locale settings. Three questions:
That was the right scent :) If I set my timezone to GMT-5 I can reproduce this.
So I will have to dig into the locale thing. Damn, hoped I could avoid this by using standard locale everywhere XD
Note to self: the problem is probably
Step 3 (timezone adjustment) should not be done as debitum does not care about locales timezones and the Date from the database should be used as-is. The problem occurs only when a timezone GMT-x (not +x) is used, as addition of hours does not change the date while subtraction does.
So I think I should always use a GMT+0 locale timezone upon turning the Date into a String!
that seems to have fixed it. It will be release 1.3.0 that is to be released soon
Hi @mezysinc , let me comment on your ideas:
since Debitum does not know about how much money was returned (return-transactions are not linked to the initial transaction, see here why), this can not be implemented
this was #2 and I fixed it in v1.3.1
You mean when using the shortcut for returning money the radio buttons should be labeled differently? Gonna think about this. The labelling then would have to depend on the direction of the initial transaction:
initial | label RECEIVED for return txn | label GAVE for return txn |
---|---|---|
Person gave to user | got back | (no change) |
Person received from user | (no change) | returned / gave back |
I fear this could make it clearer for some people while leading to confusion for others. Still not sure if I will pick up this idea...
PS: feel free to open separate issues even for smaller ideas, as this makes tracking, adding them to milestones and discussing them a lot easier!
Originally posted by @mezysinc in https://github.com/Marmo/debitum/issues/14#issuecomment-864320877