[fix] [minor] check print hide properties in purchase standard print format

This commit is contained in:
Nabin Hait 2013-11-21 10:39:43 +05:30
parent 1d35c444b6
commit 784a95cf1a

View File

@ -27,6 +27,11 @@ cur_frm.pformat.purchase_tax_details= function(doc){
var new_val = flt(val)/flt(doc.conversion_rate); var new_val = flt(val)/flt(doc.conversion_rate);
return new_val; return new_val;
} }
function print_hide(fieldname) {
var doc_field = wn.meta.get_docfield(doc.doctype, fieldname, doc.name);
return doc_field.print_hide;
}
var cl = getchildren('Purchase Taxes and Charges',doc.name,'purchase_tax_details'); var cl = getchildren('Purchase Taxes and Charges',doc.name,'purchase_tax_details');