From 34afcfb4a13cd8bff16433022fe08903d50e4ef6 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 23 Feb 2015 02:11:04 +0530 Subject: [PATCH] Print without amount in delivery note --- erpnext/stock/doctype/delivery_note/delivery_note.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/delivery_note/delivery_note.js b/erpnext/stock/doctype/delivery_note/delivery_note.js index 2743ffcdfa..51afa2c805 100644 --- a/erpnext/stock/doctype/delivery_note/delivery_note.js +++ b/erpnext/stock/doctype/delivery_note/delivery_note.js @@ -25,7 +25,7 @@ erpnext.stock.DeliveryNoteController = erpnext.selling.SellingController.extend( cur_frm.add_custom_button(__('Make Installation Note'), this.make_installation_note); if (doc.docstatus==1) { - + this.show_stock_ledger(); this.show_general_ledger(); } @@ -131,6 +131,7 @@ erpnext.stock.delivery_note.set_print_hide = function(doc, cdt, cdn){ dn_item_fields['discount_percentage'].print_hide = 1; dn_item_fields['price_list_rate'].print_hide = 1; dn_item_fields['amount'].print_hide = 1; + dn_fields['taxes'].print_hide = 1; } else { if (dn_fields_copy['currency'].print_hide != 1) dn_fields['currency'].print_hide = 0; @@ -138,6 +139,8 @@ erpnext.stock.delivery_note.set_print_hide = function(doc, cdt, cdn){ dn_item_fields['rate'].print_hide = 0; if (dn_item_fields_copy['amount'].print_hide != 1) dn_item_fields['amount'].print_hide = 0; + if (dn_fields_copy['taxes'].print_hide != 1) + dn_fields['taxes'].print_hide = 0; } }