fix: reset print format in settings to prevent carryover to next print
This commit is contained in:
parent
cc32eb1f07
commit
233871dd78
1 changed files with 4 additions and 4 deletions
|
|
@ -104,10 +104,10 @@ frappe.ui.get_print_settings = function (
|
|||
}
|
||||
|
||||
callback(settings);
|
||||
// clean up user selections from settings
|
||||
columns
|
||||
.filter((d) => d.fieldname in settings)
|
||||
.forEach((d) => delete settings[d.fieldname]);
|
||||
// clean up print format to avoid affecting next print
|
||||
if (settings.print_format) {
|
||||
settings.print_format = null;
|
||||
}
|
||||
},
|
||||
__("Print Settings")
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue