fix: reset print format in settings to prevent carryover to next print

This commit is contained in:
KerollesFathy 2026-01-20 14:10:41 +00:00
parent cc32eb1f07
commit 233871dd78

View file

@ -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")
);