mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
Merge pull request #41471 from frappe/mergify/bp/version-15-hotfix/pr-41467
Asset cancelation issue (backport #41467)
This commit is contained in:
@@ -454,7 +454,7 @@ class JournalEntry(AccountsController):
|
|||||||
self.voucher_type == "Depreciation Entry"
|
self.voucher_type == "Depreciation Entry"
|
||||||
and d.reference_type == "Asset"
|
and d.reference_type == "Asset"
|
||||||
and d.reference_name
|
and d.reference_name
|
||||||
and d.account_type == "Depreciation"
|
and frappe.get_cached_value("Account", d.account, "root_type") == "Expense"
|
||||||
and d.debit
|
and d.debit
|
||||||
):
|
):
|
||||||
asset = frappe.get_doc("Asset", d.reference_name)
|
asset = frappe.get_doc("Asset", d.reference_name)
|
||||||
|
|||||||
Reference in New Issue
Block a user