Browse Source

fix: coa balance rendering bug (#28468)

develop
Saqib 3 years ago
committed by GitHub
parent
commit
08ad93d82f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      erpnext/accounts/doctype/account/account_tree.js

1
erpnext/accounts/doctype/account/account_tree.js

@ -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) + " / ") : "")

Loading…
Cancel
Save