mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 23:22:52 +00:00
* fix: asset depreciation ledger (#37991)
* fix: include opening acc depr while calculating asset depr ledger report
* chore: include opening acc depr properly in acc depr amt
* chore: add cost_center in asset depr ledger report
* fix: handle finance books properly in asset depr ledger report
* chore: rename 'include default book entries' to 'include default FB entries'
(cherry picked from commit 9a171db97f)
# Conflicts:
# erpnext/accounts/report/balance_sheet/balance_sheet.js
# erpnext/accounts/report/cash_flow/cash_flow.js
# erpnext/accounts/report/consolidated_financial_statement/consolidated_financial_statement.js
# erpnext/accounts/report/trial_balance/trial_balance.js
# erpnext/translations/pl.csv
# erpnext/translations/tr.csv
* chore: fix conflict in balance_sheet.js
* chore: fix conflict in cash_flow.js
* chore: fix conflict in consolidated_financial_statement.js
* chore: fix conflict in trial_balance.js
* chore: fix conflict in tr.csv
* chore: fix conflict in pl.csv
---------
Co-authored-by: Anand Baburajan <anandbaburajan@gmail.com>
This commit is contained in:
@@ -52,7 +52,7 @@ frappe.query_reports["Fixed Asset Register"] = {
|
||||
},
|
||||
{
|
||||
"fieldname": "include_default_book_assets",
|
||||
"label": __("Include Default Book Assets"),
|
||||
"label": __("Include Default FB Assets"),
|
||||
"fieldtype": "Check",
|
||||
"default": 1
|
||||
},
|
||||
|
||||
@@ -223,7 +223,7 @@ def get_assets_linked_to_fb(filters):
|
||||
company_fb = frappe.get_cached_value("Company", filters.company, "default_finance_book")
|
||||
|
||||
if filters.finance_book and company_fb and cstr(filters.finance_book) != cstr(company_fb):
|
||||
frappe.throw(_("To use a different finance book, please uncheck 'Include Default Book Assets'"))
|
||||
frappe.throw(_("To use a different finance book, please uncheck 'Include Default FB Assets'"))
|
||||
|
||||
query = query.where(
|
||||
(afb.finance_book.isin([cstr(filters.finance_book), cstr(company_fb), ""]))
|
||||
|
||||
Reference in New Issue
Block a user