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

Root Healthcare Service Unit deleted while clearing company transactions #10

Open
rtdany10 opened this issue Oct 10, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@rtdany10
Copy link
Contributor

HSU Error

Upon running 'Delete all the Transactions for this Company', Healthcare Service Units are also removed, including the root.
And it's not possible to add any other units as the root is removed.

But for some weird reasons, I was able to add the root back via Quick Entry after like 3 tries. Another bug, I guess?

Adding doctype to this list will solve the issue.
https://github.com/frappe/erpnext/blob/develop/erpnext/setup/doctype/transaction_deletion_record/transaction_deletion_record.py#L176-L183

@rtdany10
Copy link
Contributor Author

Can be solved by using company_data_to_be_ignored hook.
Ref: frappe/erpnext#33362

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants