mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 13:39:18 +00:00
fix: skip BudgetValidation when cancelling GL entries
This commit is contained in:
@@ -35,7 +35,8 @@ def make_gl_entries(
|
|||||||
):
|
):
|
||||||
if gl_map:
|
if gl_map:
|
||||||
if (
|
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"
|
and gl_map[0].voucher_type != "Period Closing Voucher"
|
||||||
):
|
):
|
||||||
bud_val = BudgetValidation(gl_map=gl_map)
|
bud_val = BudgetValidation(gl_map=gl_map)
|
||||||
|
|||||||
Reference in New Issue
Block a user