mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
fix: broken reference to removed 'use_new_budget_controller' field in accounts settings
This commit is contained in:
@@ -23,8 +23,8 @@ frappe.ui.form.on("Budget", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
erpnext.accounts.dimensions.setup_dimension_filters(frm, frm.doctype);
|
erpnext.accounts.dimensions.setup_dimension_filters(frm, frm.doctype);
|
||||||
frappe.db.get_single_value("Accounts Settings", "use_new_budget_controller").then((value) => {
|
frappe.db.get_single_value("Accounts Settings", "use_legacy_budget_controller").then((value) => {
|
||||||
if (!value) {
|
if (value) {
|
||||||
frm.get_field("control_action_for_cumulative_expense_section").hide();
|
frm.get_field("control_action_for_cumulative_expense_section").hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class TestBudget(ERPNextTestSuite):
|
|||||||
cls.make_projects()
|
cls.make_projects()
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
frappe.db.set_single_value("Accounts Settings", "use_new_budget_controller", True)
|
frappe.db.set_single_value("Accounts Settings", "use_legacy_budget_controller", False)
|
||||||
|
|
||||||
def test_monthly_budget_crossed_ignore(self):
|
def test_monthly_budget_crossed_ignore(self):
|
||||||
set_total_expense_zero(nowdate(), "cost_center")
|
set_total_expense_zero(nowdate(), "cost_center")
|
||||||
|
|||||||
@@ -413,7 +413,7 @@ execute:frappe.db.set_single_value("Accounts Settings", "receivable_payable_fetc
|
|||||||
erpnext.patches.v14_0.set_update_price_list_based_on
|
erpnext.patches.v14_0.set_update_price_list_based_on
|
||||||
erpnext.patches.v15_0.update_journal_entry_type
|
erpnext.patches.v15_0.update_journal_entry_type
|
||||||
erpnext.patches.v15_0.set_grand_total_to_default_mop
|
erpnext.patches.v15_0.set_grand_total_to_default_mop
|
||||||
execute:frappe.db.set_single_value("Accounts Settings", "use_new_budget_controller", True)
|
execute:frappe.db.set_single_value("Accounts Settings", "use_legacy_budget_controller", False)
|
||||||
erpnext.patches.v15_0.set_cancelled_status_to_cancelled_pos_invoice
|
erpnext.patches.v15_0.set_cancelled_status_to_cancelled_pos_invoice
|
||||||
erpnext.patches.v15_0.rename_group_by_to_categorize_by_in_custom_reports
|
erpnext.patches.v15_0.rename_group_by_to_categorize_by_in_custom_reports
|
||||||
erpnext.patches.v15_0.remove_agriculture_roles
|
erpnext.patches.v15_0.remove_agriculture_roles
|
||||||
|
|||||||
Reference in New Issue
Block a user