Payment Entry dosent show the date

can you please help me with analysing my HTML,

<div>
	<div id="footer-html" class="visible-pdf">
		
		<div class="letter-head-footer condensed hover" >
                
              
			
		</div>
		
		<p class="text-center small page-number visible-pdf">
			{{ _("Página {0} de {1}").format('<span class="page"></span>', '<span class="topage"></span>') }}
                    
		</p>
               
	</div>


<div style="position: relative">

	{%- from "templates/print_formats/standard_macros.html" import add_header -%}
    {%- if not doc.get("print_heading") and not doc.get("select_print_heading") 
        and doc.set("select_print_heading", _("Recibo")) -%}{%- endif -%}
    {{ add_header(0, 1, doc, letter_head, no_letterhead) }}
 <h5 class="text-right"><b> {{ doc.estados or ''}}</b></h5>
{%- if doc.get("payment_type")=="Receive" -%}



<p>{{ _("This amount is in full / part settlement of the listed bills") }}:</p>
<p>{{ _("Este montante está em plena liquidação / parte da factura") }}:</p>
    {%- for label, value in (
        (_("Data"), frappe.utils.formatdate(doc.voucher_date)),
        (_("Recebido de:"), doc.party),
        (_("Valor recebido:"), "<strong>" + doc.get_formatted("paid_amount") + "</strong><br>" + (doc.total_amount_in_words or "") + "<br>"),
        (_("Observações"), doc.remarks)
    ) -%}
    <div class="row">
        <div class="col-xs-3"><label class="text-right">{{ label }}</label></div>
        <div class="col-xs-9">{{ value }}</div>
    </div>

    {%- endfor -%}
{%- endif -%}
    


{%- if doc.get("payment_type")=="Pay" -%}



<p>{{ _("This amount is in full / part settlement of the listed bills") }}:</p>
<p>{{ _("Este montante está em plena liquidação / parte da factura") }}:</p>
    {%- for label, value in (
        (_("Data"), frappe.utils.formatdate(doc.voucher_date)),
        (_("Pago a:"), doc.party),
        (_("Valor Pago:"), "<strong>" + doc.get_formatted("total_allocated_amount") + "</strong><br>" + (doc.total_amount_in_words or "") + "<br>"),
        (_("Observações"), doc.remarks)
    ) -%}
    <div class="row">
        <div class="col-xs-3"><label class="text-right">{{ label }}</label></div>
        <div class="col-xs-9">{{ value }}</div>
    </div>

    {%- endfor -%} 
{%- endif -%}



    <hr>
    <br>
    <p class="strong">
        {{ _("De") }} {{ doc.company }},<br>
        <br>
        <br>
        <br>
        {{ _("Autorizado") }}
    </p>
</div>

Payment Entry doesn’t have a field named voucher_date. Try doc.get_formatted("posting_date") or doc.get_formatted("reference_date").

2 Likes

Thank you, i used doc.posting_date and solved the issues.

(_(“Data”), frappe.utils.formatdate(doc.posting_date)),