general_ledger: show against account, set title, and show is_opening as opening

This commit is contained in:
Rushabh Mehta
2012-11-13 11:42:42 +05:30
parent ec40686cc3
commit 9d0569a690
3 changed files with 42 additions and 10 deletions

View File

@@ -87,11 +87,9 @@ erpnext.toolbar.add_modules = function() {
erpnext.toolbar.set_new_comments = function(new_comments) {
var navbar_nc = $('.navbar-new-comments');
if(wn.container.page && wn.container.page.page_name=="messages")
return;
if(new_comments) {
navbar_nc.text(new_comments);
if(cint(new_comments)) {
navbar_nc.addClass('navbar-new-comments-true')
navbar_nc.text(new_comments);
} else {
navbar_nc.removeClass('navbar-new-comments-true');
navbar_nc.text(0);