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

fix: allow assets with depr entries to be cancelled #35477

Merged
merged 1 commit into from
May 30, 2023
Merged

fix: allow assets with depr entries to be cancelled #35477

merged 1 commit into from
May 30, 2023

Conversation

anandbaburajan
Copy link
Contributor

Cancellation of assets with depreciation entries were failing with a "frappe.exceptions.ValidationError: Cannot edit cancelled document" error. It was caused due to "frappe.desk.form.linked_with.cancel_all_linked_docs" trying to cancel the entries after "erpnext.assets.doctype.asset_depreciation_schedule.asset_depreciation_schedule.cancel_depreciation_entries" had already cancelled the entries. So added Journal Entry to Asset's ignore_doctypes_on_cancel_all.

@anandbaburajan anandbaburajan merged commit dbdc420 into frappe:develop May 30, 2023
2 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant