refactor: add better name to variable
This commit is contained in:
parent
4b20d236f5
commit
587d770c49
1 changed files with 8 additions and 0 deletions
|
|
@ -273,6 +273,14 @@ frappe.ui.form.PrintView = class {
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let is_editable = print_format.name && print_format.custom_format;
|
||||||
|
|
||||||
|
if (is_editable) {
|
||||||
|
frappe.set_route("Form", "Print Format", print_format.name);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (is_custom_format) {
|
if (is_custom_format) {
|
||||||
if (print_format.print_format_builder_beta) {
|
if (print_format.print_format_builder_beta) {
|
||||||
frappe.set_route("print-format-builder-beta", print_format.name);
|
frappe.set_route("print-format-builder-beta", print_format.name);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue