fix: skip BudgetValidation when cancelling GL entries

(cherry picked from commit fa34ebea94)
This commit is contained in:
nareshkannasln
2026-03-11 11:59:14 +05:30
committed by Mergify
parent c4010b0581
commit 1b146738c4

View File

@@ -36,7 +36,8 @@ def make_gl_entries(
):
if gl_map:
if (
not cint(frappe.get_single_value("Accounts Settings", "use_legacy_budget_controller"))
not cancel
and not cint(frappe.get_single_value("Accounts Settings", "use_legacy_budget_controller"))
and gl_map[0].voucher_type != "Period Closing Voucher"
):
bud_val = BudgetValidation(gl_map=gl_map)