Hi,
I would like to show last day of current month on html file so i tried to do as below
<div style="margin-bottom: 7px;" class="text-center">
{%= frappe.boot.letter_heads[filters.letter_head || frappe.get_doc(":Student Batch", filters.letter_head).default_letter_head || frappe.defaults.get_default("letter_head")] %}
</div>
<h2 class="text-center">{%= __("Student Monthly Attendance Sheet") %}</h2>
<h4 class="text-center">{%= ((filters.student_batch || filters.account) + "|"+filters.month+' '+filters.year) || "" %} {%= filters.company %}</h4>
<table class="table table-bordered">
<thead>
<tr>
<th style="width: 15%">{%= __("Sr No") %}</th>
<th style="width: 15%">{%= __("Student") %}</th>
<th style="width: 40%">{%= __("Student Name") %}</th>
{% for(var i=0, l=data.length; i<l; i++) { %}
<th>{%= frappe.utils.data.get_last_day(filters.month) %}</th>
{% } %}
<th style="width: 15%">{%= __("Total Present") %}</th>
<th style="width: 15%">{%= __("Total Absent") %}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
i am getting an error
VM180:6 Uncaught TypeError: Cannot read property 'get_last_day' of undefined(…)
i want to do this because i want to print all days of month in while taking print of report
please help me