[minor] fixed update item name in bom patch, removed filter from sales invoice list, show tax calculation only if tax exists

This commit is contained in:
Anand Doshi
2015-02-04 18:52:35 +05:30
parent 0e13221338
commit dd942bb3d2
3 changed files with 11 additions and 6 deletions

View File

@@ -793,8 +793,13 @@ erpnext.TransactionController = erpnext.stock.StockController.extend({
show_item_wise_taxes: function() {
if(this.frm.fields_dict.other_charges_calculation) {
$(this.get_item_wise_taxes_html())
.appendTo($(this.frm.fields_dict.other_charges_calculation.wrapper).empty());
var html = this.get_item_wise_taxes_html();
if (html) {
this.frm.toggle_display("other_charges_calculation", true);
$(this.frm.fields_dict.other_charges_calculation.wrapper).html(html);
} else {
this.frm.toggle_display("other_charges_calculation", false);
}
}
},