Merge pull request #7282 from netchampfaris/print-format-not-shown

fix: Invert check for print_format_type
This commit is contained in:
Suraj Shetty 2019-04-16 10:23:46 +05:30 committed by GitHub
commit 4fbd498f89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -199,7 +199,7 @@ $.extend(frappe.meta, {
var print_formats = frappe.get_list("Print Format", {doc_type: doctype})
.sort(function(a, b) { return (a > b) ? 1 : -1; });
$.each(print_formats, function(i, d) {
if(!in_list(print_format_list, d.name) && in_list(['Server', 'Client'], d.print_format_type))
if(!in_list(print_format_list, d.name) && d.print_format_type !== 'Js')
print_format_list.push(d.name);
});