Skip to content
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

OHADA income statement report crashes the application #7479

Closed
Ebed-meleck opened this issue Feb 11, 2024 · 0 comments · Fixed by #7480
Closed

OHADA income statement report crashes the application #7479

Ebed-meleck opened this issue Feb 11, 2024 · 0 comments · Fixed by #7480
Labels

Comments

@Ebed-meleck
Copy link
Collaborator

module Finance>Rapport>OHADA compte de résultat

This error recurs in kanzala (production). After selecting the exercise, clicking on preview did not return the error message, I tried again, still the same thing. I open the pm2 log to see what message. What I realize, the application crashes then calls the other process (Luckily, pm2 was started in cluster mode, this is not at all remarkable) But locally the application crashes. I noticed that there was an error with the promise implementation. it retrieves information from the current fiscal year and if previous_fiscal_year_id is null it returns is not found, which is not handled very well with the promise. So I suggest a code refactoring with good promise management. So much so that when there is an error, the application does not crash.

production log image

WhatsApp Image 2024-02-10 at 18 54 27

local image log
Screen Shot 2024-02-11 at 20 40 43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant