GNU Health - Bugs: bug #62596, Traceback if there is no Account...
You are not allowed to post comments on this tracker with your current authentication level.
bug #62596: Traceback if there is no Account Receivable defined neither on party or default acct config
Submitter: | Luis Falcon <meanmicio> | ||
Submitted: | Wed 08 Jun 2022 11:48:51 AM UTC | ||
Category: | Programming / Tracebacks | Severity: | 3 - Normal |
Item Group: | None | Status: | Fixed |
Privacy: | Public | Assigned to: | meanmicio |
Open/Closed: | Closed | Release: | 4.0.0 |
Module: | health services / insurance | Component: | None |
Thu 16 Jun 2022 12:03:51 PM UTC, comment #3: |
Luis Falcon <meanmicio>![]() ![]() |
Thu 16 Jun 2022 11:02:38 AM UTC, comment #2: It is better to use Party.account_receivable_used which will return the right account or raise an error message. |
Cédric Krier <cedk> |
Wed 08 Jun 2022 11:54:39 AM UTC, comment #1: |
Luis Falcon <meanmicio>![]() ![]() |
Wed 08 Jun 2022 11:48:51 AM UTC, original submission:
Currently, if no account receivable is set in neither the party or the default account configuration, a traceback is generated at the moment of generating the invoice from the patient health services.
It would be nice to show an User Error message instead of a traceback.
The steps would be:
""" Look for the AR account in the following order:
The discussion about this issue with Francisco can be found here:
https://lists.gnu.org/archive/html/health-dev/2022-05/msg00018.html
|
Luis Falcon <meanmicio>![]() ![]() |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Thank you, Cedric!
Good to know, so we don't need extra methods on GH. We'll create a task to use the standard Tryton method on upcoming 4.2
Bests
Luis