Skip to content

Commit

Permalink
fix: coa balance rendering bug (backport frappe#28468)
Browse files Browse the repository at this point in the history
  • Loading branch information
fproldan committed Oct 7, 2022
1 parent 632cf4d commit 7692946
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/accounts/doctype/account/account_tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ frappe.treeview_settings["Account"] = {
const format = (value, currency) => format_currency(Math.abs(value), currency);

if (account.balance!==undefined) {
node.parent && node.parent.find('.balance-area').remove();
$('<span class="balance-area pull-right">'
+ (account.balance_in_account_currency ?
(format(account.balance_in_account_currency, account.account_currency) + " / ") : "")
Expand Down

0 comments on commit 7692946

Please sign in to comment.