From 5b1c5e3fea5db77506aff017d1e731fba791696c Mon Sep 17 00:00:00 2001 From: Gursheen Anand Date: Sun, 14 Apr 2024 17:06:01 +0530 Subject: [PATCH] refactor: show list for expense breakup (cherry picked from commit 9a12376e29d32ff7acfcd187d8ae52c2eeb323e9) --- erpnext/accounts/doctype/budget/budget.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/erpnext/accounts/doctype/budget/budget.py b/erpnext/accounts/doctype/budget/budget.py index 930f546e9b7..22b8d64971c 100644 --- a/erpnext/accounts/doctype/budget/budget.py +++ b/erpnext/accounts/doctype/budget/budget.py @@ -226,8 +226,7 @@ def validate_budget_records(args, budget_records, expense_amount): def compare_expense_with_budget(args, budget_amount, action_for, action, budget_against, amount=0): - args.actual_expense = get_actual_expense(args) - args.requested_amount, args.ordered_amount = 0, 0 + args.actual_expense, args.requested_amount, args.ordered_amount = get_actual_expense(args), 0, 0 if not amount: args.requested_amount, args.ordered_amount = get_requested_amount(args), get_ordered_amount(args) @@ -343,11 +342,9 @@ def get_expense_breakup(args, currency, budget_against): ) + " - " + frappe.bold(fmt_money(args.ordered_amount, currency=currency)) - + "" + + "" ) - msg += "" - return msg