@@ -13,7 +13,7 @@ import os, sys, importlib, inspect, json | |||||
from .exceptions import * | from .exceptions import * | ||||
from .utils.jinja import get_jenv, get_template, render_template | from .utils.jinja import get_jenv, get_template, render_template | ||||
__version__ = '8.0.59' | |||||
__version__ = '8.0.60' | |||||
__title__ = "Frappe Framework" | __title__ = "Frappe Framework" | ||||
local = Local() | local = Local() | ||||
@@ -933,7 +933,7 @@ | |||||
"issingle": 1, | "issingle": 1, | ||||
"istable": 0, | "istable": 0, | ||||
"max_attachments": 0, | "max_attachments": 0, | ||||
"modified": "2017-05-19 09:12:50.353887", | |||||
"modified": "2017-05-23 09:12:50.353877", | |||||
"modified_by": "Administrator", | "modified_by": "Administrator", | ||||
"module": "Core", | "module": "Core", | ||||
"name": "System Settings", | "name": "System Settings", | ||||
@@ -77,4 +77,7 @@ def make_default(name): | |||||
'value': name, | 'value': name, | ||||
}) | }) | ||||
frappe.msgprint(frappe._("Done")) | |||||
frappe.msgprint(frappe._("{0} is now default print format for {1} doctype").format( | |||||
frappe.bold(name), | |||||
frappe.bold(print_format.doc_type) | |||||
)) |
@@ -208,8 +208,8 @@ $.extend(frappe.meta, { | |||||
}); | }); | ||||
if(default_print_format && default_print_format != "Standard") { | if(default_print_format && default_print_format != "Standard") { | ||||
var index = print_format_list.indexOf(default_print_format) - 1; | |||||
print_format_list.sort().splice(index, 1); | |||||
var index = print_format_list.indexOf(default_print_format); | |||||
print_format_list.splice(index, 1).sort(); | |||||
print_format_list.unshift(default_print_format); | print_format_list.unshift(default_print_format); | ||||
} | } | ||||
@@ -198,7 +198,9 @@ frappe.upload = { | |||||
i += 1; | i += 1; | ||||
var file = files[i]; | var file = files[i]; | ||||
args.is_private = file.is_private; | args.is_private = file.is_private; | ||||
frappe.show_progress(__('Uploading'), i+1, files.length); | |||||
if(!opts.progress) { | |||||
frappe.show_progress(__('Uploading'), i+1, files.length); | |||||
} | |||||
} | } | ||||
frappe.upload.upload_file(file, args, opts); | frappe.upload.upload_file(file, args, opts); | ||||
} | } | ||||
@@ -215,6 +215,8 @@ frappe.views.QueryReport = Class.extend({ | |||||
return false; | return false; | ||||
} | } | ||||
var orientation = this.print_settings.orientation; | |||||
var landscape = orientation == "Landscape" ? true: false | |||||
if(this.html_format) { | if(this.html_format) { | ||||
var content = frappe.render(this.html_format, | var content = frappe.render(this.html_format, | ||||
{data: frappe.slickgrid_tools.get_filtered_items(this.dataView), filters:this.get_values(), report:this}); | {data: frappe.slickgrid_tools.get_filtered_items(this.dataView), filters:this.get_values(), report:this}); | ||||
@@ -225,7 +227,8 @@ frappe.views.QueryReport = Class.extend({ | |||||
title:__(this.report_name), | title:__(this.report_name), | ||||
base_url: base_url, | base_url: base_url, | ||||
print_css: print_css, | print_css: print_css, | ||||
print_settings: this.print_settings | |||||
print_settings: this.print_settings, | |||||
landscape: landscape | |||||
}); | }); | ||||
} else { | } else { | ||||
// rows filtered by inline_filter of slickgrid | // rows filtered by inline_filter of slickgrid | ||||
@@ -249,7 +252,8 @@ frappe.views.QueryReport = Class.extend({ | |||||
title:__(this.report_name), | title:__(this.report_name), | ||||
base_url: base_url, | base_url: base_url, | ||||
print_css: print_css, | print_css: print_css, | ||||
print_settings: this.print_settings | |||||
print_settings: this.print_settings, | |||||
landscape: landscape | |||||
}); | }); | ||||
} | } | ||||