mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
refactor!: removing loan management module (#35522)
* chore: resolving conflicts * refactor: bank_clearance and add hook for get_payment_entries_for_bank_clearance * refactor: bank_reconciliation_tool and add hook for get_matching_vouchers_for_bank_reconciliation * fix: remove sales invoice from bank_reconciliation_doctypes and use hook for voucher clearance * refactor: remove loan tests from test_bank_transaction * refactor: bank_clearance_summary and add hook for get_entries_for_bank_clearance_summary * refactor: removed test_bank_reconciliation_statement * refactor: bank_reconciliation_statement and add hook for get_amounts_not_reflected_in_system_for_bank_reconciliation_statement * refactor: add missing hook and patches for module removal and deprecation warning * refactor: remove loan management translations * chore: add erpnext tests dependent on lending
This commit is contained in:
@@ -94,3 +94,25 @@ def execute_script_report(
|
||||
except Exception:
|
||||
print(f"Report failed to execute with filters: {test_filter}")
|
||||
raise
|
||||
|
||||
|
||||
def if_lending_app_installed(function):
|
||||
"""Decorator to check if lending app is installed"""
|
||||
|
||||
def wrapper(*args, **kwargs):
|
||||
if "lending" in frappe.get_installed_apps():
|
||||
return function(*args, **kwargs)
|
||||
return
|
||||
|
||||
return wrapper
|
||||
|
||||
|
||||
def if_lending_app_not_installed(function):
|
||||
"""Decorator to check if lending app is not installed"""
|
||||
|
||||
def wrapper(*args, **kwargs):
|
||||
if "lending" not in frappe.get_installed_apps():
|
||||
return function(*args, **kwargs)
|
||||
return
|
||||
|
||||
return wrapper
|
||||
|
||||
Reference in New Issue
Block a user