[minor] [fix] net_total_export printing and hover effect for brand in navbar
This commit is contained in:
parent
a45d164140
commit
c8b2c0f091
@ -25,7 +25,7 @@ cur_frm.cscript.refresh = function(doc, cdt, cdn) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// For customizing print
|
// For customizing print
|
||||||
cur_frm.pformat.net_total = function(doc) {
|
cur_frm.pformat.net_total_export = function(doc) {
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -70,8 +70,8 @@ cur_frm.pformat.other_charges= function(doc){
|
|||||||
// main table
|
// main table
|
||||||
|
|
||||||
out +='<table class="noborder" style="width:100%">';
|
out +='<table class="noborder" style="width:100%">';
|
||||||
if(!print_hide('net_total')) {
|
if(!print_hide('net_total_export')) {
|
||||||
out +=make_row('Net Total',convert_rate(doc.net_total),1);
|
out += make_row('Net Total', doc.net_total_export, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// add rows
|
// add rows
|
||||||
|
@ -15,13 +15,8 @@ wn.modules_path = 'erpnext';
|
|||||||
|
|
||||||
// add toolbar icon
|
// add toolbar icon
|
||||||
$(document).bind('toolbar_setup', function() {
|
$(document).bind('toolbar_setup', function() {
|
||||||
$('.navbar-brand').html('<object data="app/images/splash.svg" \
|
$('.navbar-brand').html('<img src="app/images/splash.svg" class="toolbar-splash">' +
|
||||||
class="toolbar-splash" type="image/svg+xml"></object>' +
|
|
||||||
(wn.boot.website_settings.brand_html || 'erpnext'))
|
(wn.boot.website_settings.brand_html || 'erpnext'))
|
||||||
.css('max-width', '200px').css('overflow', 'hidden')
|
.addClass("navbar-icon-home")
|
||||||
.hover(function() {
|
.css('max-width', '200px').css('overflow', 'hidden');
|
||||||
$(this).find('.icon-home').addClass('navbar-icon-home-hover');
|
|
||||||
}, function() {
|
|
||||||
$(this).find('.icon-home').removeClass('navbar-icon-home-hover');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user