Skip to content

Commit

Permalink
refactor: show list for expense breakup
Browse files Browse the repository at this point in the history
  • Loading branch information
GursheenK committed Apr 14, 2024
1 parent 59292a0 commit 9a12376
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions erpnext/accounts/doctype/budget/budget.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,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)

Expand Down Expand Up @@ -373,11 +372,9 @@ def get_expense_breakup(args, currency, budget_against):
)
+ " - "
+ frappe.bold(fmt_money(args.ordered_amount, currency=currency))
+ "</li>"
+ "</li></ul>"
)

msg += "</ul>"

return msg


Expand Down

0 comments on commit 9a12376

Please sign in to comment.