Leave application half day checkbox is checked then how to give this field in notification

if any employee take half day of that day for example from date and to date is on 19/07/2024 and half day check box is checked so how to give this half day field in notification

Add more tag like Half Leave:

<p><b>Half Leave</b>: {% if doc.half_day %} Yes {% else %} No {% endif %}</p>

OR

<p><b>Half Leave</b>: {% if doc.half_day %} &#9745; {% else %} &#9744; {% endif %}</p>

@ncp if someone take 3 days leaves from 23/07/2024 To 25/07/2024 and he take half days on 24/07/2024 then how to fetch that half day

You can set it in using the if condition, otherwise you can set it in the table like:

{% if doc.half_day %}
<p><b>Half Day Leave on</b>: {{ doc.half_day_date }}</p>
{% else %}
<p><b>Half Day Leave</b>: No</p>
{% endif %}

@ncp can we do it like when employee not take the half day so can we hide this two fields ‘half day leave’ and ‘half day’

I already told you, you have to set the if condition and set it according to the scenario!