mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 16:12:53 +00:00
show balance if permitted to view gl entry (#12385)
This commit is contained in:
@@ -79,6 +79,7 @@ frappe.treeview_settings["Account"] = {
|
||||
|
||||
},
|
||||
onrender: function(node) {
|
||||
if(frappe.boot.user.can_read.indexOf("GL Entry") !== -1){
|
||||
var dr_or_cr = node.data.balance < 0 ? "Cr" : "Dr";
|
||||
if (node.data && node.data.balance!==undefined) {
|
||||
$('<span class="balance-area pull-right text-muted small">'
|
||||
@@ -89,6 +90,7 @@ frappe.treeview_settings["Account"] = {
|
||||
+ " " + dr_or_cr
|
||||
+ '</span>').insertBefore(node.$ul);
|
||||
}
|
||||
}
|
||||
},
|
||||
toolbar: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user