fix: do not add actual expense twice for validating budget
diff --git a/erpnext/accounts/doctype/budget/budget.py b/erpnext/accounts/doctype/budget/budget.py
index b585f40..07e8d85 100644
--- a/erpnext/accounts/doctype/budget/budget.py
+++ b/erpnext/accounts/doctype/budget/budget.py
@@ -303,12 +303,10 @@
amount = 0
if args.get("doctype") == "Material Request" and budget.for_material_request:
- amount = (
- get_requested_amount(args, budget) + get_ordered_amount(args, budget) + get_actual_expense(args)
- )
+ amount = get_requested_amount(args, budget) + get_ordered_amount(args, budget)
elif args.get("doctype") == "Purchase Order" and budget.for_purchase_order:
- amount = get_ordered_amount(args, budget) + get_actual_expense(args)
+ amount = get_ordered_amount(args, budget)
return amount