Skip to content

Commit

Permalink
Merge pull request #43243 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-43233

fix: do not validate purchase document for composite asset (backport #43233)
  • Loading branch information
khushi8112 authored Sep 17, 2024
2 parents 9c4eaa2 + c505156 commit 44dde1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/assets/doctype/asset/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,9 @@ def get_manual_depreciation_entries(self):
return records

def validate_make_gl_entry(self):
if self.is_composite_asset:
return True

purchase_document = self.get_purchase_document()
if not purchase_document:
return False
Expand Down

0 comments on commit 44dde1c

Please sign in to comment.