refactor: add title param to get_print_settings
This commit is contained in:
parent
0c4d23f298
commit
b71fe3b460
2 changed files with 5 additions and 3 deletions
|
|
@ -3,7 +3,8 @@ frappe.ui.get_print_settings = function (
|
|||
callback,
|
||||
letter_head,
|
||||
pick_columns,
|
||||
has_filters = false
|
||||
has_filters = false,
|
||||
title = null
|
||||
) {
|
||||
var print_settings = locals[":Print Settings"]["Print Settings"];
|
||||
|
||||
|
|
@ -115,7 +116,7 @@ frappe.ui.get_print_settings = function (
|
|||
settings.print_format = null;
|
||||
}
|
||||
},
|
||||
__("Print Settings")
|
||||
title ? __(title) : __("Print Settings")
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1915,7 +1915,8 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
|
|||
(print_settings) => this.pdf_report(print_settings),
|
||||
this.report_doc.letter_head,
|
||||
this.get_visible_columns(),
|
||||
true
|
||||
true,
|
||||
"PDF Settings"
|
||||
);
|
||||
this.add_portrait_warning(dialog);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue