[fix] Financial report column values during print (#13627)
This commit is contained in:
parent
a0bbc0846b
commit
f8dd4c2d7b
@ -14,7 +14,7 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
{% var letterhead= filters.letter_head || (frappe.get_doc(":Company", filters.company) && frappe.get_doc(":Company", filters.company).default_letter_head) || frappe.defaults.get_default("letter_head"); %}
|
{% var letterhead= filters.letter_head || (frappe.get_doc(":Company", filters.company) && frappe.get_doc(":Company", filters.company).default_letter_head) || frappe.defaults.get_default("letter_head"); %}
|
||||||
{% if(letterhead) { %}
|
{% if(letterhead) { %}
|
||||||
<div style="margin-bottom: 7px;" class="text-center">
|
<div style="margin-bottom: 7px;" class="text-center">
|
||||||
{%= frappe.boot.letter_heads[letterhead].header %}
|
{%= frappe.boot.letter_heads[letterhead].header %}
|
||||||
</div>
|
</div>
|
||||||
@ -49,7 +49,7 @@
|
|||||||
</td>
|
</td>
|
||||||
{% for(var i=2, l=report.columns.length; i<l; i++) { %}
|
{% for(var i=2, l=report.columns.length; i<l; i++) { %}
|
||||||
<td class="text-right">
|
<td class="text-right">
|
||||||
{% var fieldname = report.columns[i].field; %}
|
{% var fieldname = report.columns[i].field || report.columns[i].fieldname; %}
|
||||||
{% if (!is_null(row[fieldname])) { %}
|
{% if (!is_null(row[fieldname])) { %}
|
||||||
{%= format_number(row[fieldname], null)%}
|
{%= format_number(row[fieldname], null)%}
|
||||||
{% } %}
|
{% } %}
|
||||||
|
Loading…
Reference in New Issue
Block a user