[fix] [minor] print hide for purchase net and grand total
diff --git a/accounts/doctype/purchase_taxes_and_charges_master/purchase_taxes_and_charges_master.js b/accounts/doctype/purchase_taxes_and_charges_master/purchase_taxes_and_charges_master.js
index b70e669..ce772cd 100644
--- a/accounts/doctype/purchase_taxes_and_charges_master/purchase_taxes_and_charges_master.js
+++ b/accounts/doctype/purchase_taxes_and_charges_master/purchase_taxes_and_charges_master.js
@@ -12,6 +12,19 @@
cur_frm.set_footnote(wn.markdown(cur_frm.meta.description));
}
+// For customizing print
+cur_frm.pformat.net_total_import = function(doc) {
+ return '';
+}
+
+cur_frm.pformat.grand_total_import = function(doc) {
+ return '';
+}
+
+cur_frm.pformat.in_words_import = function(doc) {
+ return '';
+}
+
cur_frm.pformat.purchase_tax_details= function(doc){
//function to make row of table
@@ -40,9 +53,9 @@
<tr><td style="width: 60%"></td><td>';
// main table
- out +='<table class="noborder" style="width:100%">'
- if(!print_hide('net_total')) {
- out += make_row('Net Total', convert_rate(doc.net_total), 1);
+ out +='<table class="noborder" style="width:100%">';
+ if(!print_hide('net_total_import')) {
+ out += make_row('Net Total', doc.net_total_import, 1);
}
// add rows