Skip to content

Commit

Permalink
fix: asset patch failure due to missing shift_based column (#38776)
Browse files Browse the repository at this point in the history
* fix: add missing daily_prorata_based in get_asset_finance_books_map

* fix: reload Asset Finance Book doctype
  • Loading branch information
anandbaburajan authored Dec 15, 2023
1 parent 0cf9ff0 commit 1704180
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

def execute():
frappe.reload_doc("assets", "doctype", "Asset Depreciation Schedule")
frappe.reload_doc("assets", "doctype", "Asset Finance Book")

assets = get_details_of_draft_or_submitted_depreciable_assets()

Expand Down Expand Up @@ -86,6 +87,7 @@ def get_asset_finance_books_map():
afb.frequency_of_depreciation,
afb.rate_of_depreciation,
afb.expected_value_after_useful_life,
afb.daily_prorata_based,
afb.shift_based,
)
.where(asset.docstatus < 2)
Expand Down

0 comments on commit 1704180

Please sign in to comment.