ananthakumaran / paisa

Paisa – Personal Finance Manager. https://paisa.fyi demo: https://demo.paisa.fyi
https://paisa.fyi
GNU Affero General Public License v3.0
2.34k stars 117 forks source link

ERROR - You have not made any transactions. #111

Closed avinashkanaujiya closed 8 months ago

avinashkanaujiya commented 8 months ago

edited-Pasted image

This is what I am seeing even though transaction s are there.

When I click on any link while staying on home(on other screens it works), nothing happens, but if i go to that link, again by copy pasting it, in address bar, it works.

Some calculations are breaking in home page.

Also recurring page is not showing any transactions, like nothing ever was added.

ananthakumaran commented 8 months ago

I would need some more info, could you open inspector (right click and select inspect) and check if there are any errors there? Please include the paisa version as well.

avinashkanaujiya commented 8 months ago

This is the error on homepage.

transaction_sequence.95c51b11.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'scheduled')
    at w (transaction_sequence.95c51b11.js:1:1650)
    at transaction_sequence.95c51b11.js:1:2814
    at an (utils.f4790ebb.js:8:7232)
    at Function.Gr [as map] (utils.f4790ebb.js:10:10109)
    at C (transaction_sequence.95c51b11.js:1:2805)
    at 2.6d537083.js:31:15938

This is the error on recurring page.

transaction_sequence.95c51b11.js:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'scheduled')
    at w (transaction_sequence.95c51b11.js:1:1650)
    at transaction_sequence.95c51b11.js:1:2814
    at an (utils.f4790ebb.js:8:7232)
    at Function.Gr [as map] (utils.f4790ebb.js:10:10109)
    at C (transaction_sequence.95c51b11.js:1:2805)
    at 12.87e8fc18.js:5:3352

12.87e8fc18.js:5 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '2023-12')
    at 12.87e8fc18.js:5:3563
    at an (utils.f4790ebb.js:8:7232)
    at Gr (utils.f4790ebb.js:10:10109)
    at Function._g [as flatMap] (utils.f4790ebb.js:10:9478)
    at utils.f4790ebb.js:8:25710
    at Li (utils.f4790ebb.js:8:7417)
    at yo (utils.f4790ebb.js:8:25677)
    at Vn.ag (utils.f4790ebb.js:10:9203)
    at Po.n.$$.update (12.87e8fc18.js:5:3617)
    at ct (scheduler.8e30511f.js:1:8538)
ananthakumaran commented 8 months ago

Looks like something is wrong with the way recurring transactions are handled. I haven't figured out what's gone wrong so far. You could speed out the process by sharing a bit more info. Could you comment out the automatic transactions one by one and check which one is breaking the app? I would need the dates of those transactions along with the automatic transaction rule

avinashkanaujiya commented 8 months ago

sure, I will try that out.

avinashkanaujiya commented 8 months ago

how do I comment them?, or you meant removing them?

ananthakumaran commented 8 months ago

something like below, just put a ; before the =

; = Expenses:Rent
    ; Recurring: Rent
avinashkanaujiya commented 8 months ago

ok, so it only happens when there are multiple transactions on same date, belonging to same account

avinashkanaujiya commented 8 months ago

something like below, just put a ; before the =

; = Expenses:Rent
    ; Recurring: Rent

also this doesn't work, editor throws a error

 ; = Expenses:Rent
 ;    ; Recurring: Rent

This works

ananthakumaran commented 8 months ago

Thanks for the info, I can reproduce the issue now. To confirm, do you have transactions on only one date? The issue occurs for me if I put all the transactions on the same date and no other transactions for that tag name.

avinashkanaujiya commented 8 months ago

I have 6 transactions, of which 3 happened on separate months/date, remaining happened on same date, yesterday.