fix: align filter values in print
This commit is contained in:
parent
15f188e41a
commit
835e1fa270
2 changed files with 8 additions and 4 deletions
|
|
@ -1477,10 +1477,9 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
|
|||
.map((fieldname) => {
|
||||
const docfield = frappe.query_report.get_filter(fieldname).df;
|
||||
const value = applied_filters[fieldname];
|
||||
return `<h6>${__(docfield.label, null, docfield.parent)}: ${frappe.format(
|
||||
value,
|
||||
docfield
|
||||
)}</h6>`;
|
||||
return `<div class="filter-row">
|
||||
<b>${__(docfield.label, null, docfield.parent)}:</b> ${frappe.format(value, docfield)}
|
||||
</div>`;
|
||||
})
|
||||
.join("");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,3 +46,8 @@
|
|||
overflow-wrap: anywhere;
|
||||
}
|
||||
}
|
||||
|
||||
/* prevent newline and right alignment of number fields in printed report filters */
|
||||
.filter-row div {
|
||||
display: inline-block;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue