Hi,
Can someone please help me to resolve this.
@centaur
appreciate if you could solve this please
I am encountering problem with incorrect amount in words in Purchase order print format
<center><h3>PURCHASE ORDER</h3><center>
<table width=100% height=100% border=1>
<tr>
<td width=30% rowspan=3>
<b><left><h8>Aerotek Design</b></h8><left><br>
<left><h8>Unit:3, Plot NO-27A </h8><left>
<br>
<left><h8>Peenya, Bengaluru-56005</h8><left>
<br
<left><h8>Phone: +91 (0) 80 41626362 </h8><left> <br>
<left><h8>accounts@aerotekgroup.com</h8><left> <br>
<h8>GSTIN:29AJHPB8312L1Z2</h8><left>
</td>
<td width=25%>
Voucher No.<br>
<b>{{ doc.name }}</b>
</td>
<td width=25%>
Dated<br>
<b>{{ frappe.utils.formatdate(doc.posting_date) }}</b>
</td>
</tr>
<td width=25%>
Delivery Note<br>
<b> </b>
</td>
<td width=25%>
Mode of Payment<br>
<b>{{ doc.mode_of_payment or " " }}<b></b><br>
<b> </b>
</td>
</tr>
<tr>
<td width=25%>
Required By<br>
<b>{{ doc.schedule_date or " " }}<b>
<b> </b>
</td>
<td width=25%>
Other Reference(s)<br>
<b> </b>
</td>
</tr>
<tr>
<td width=50% rowspan=4>
<i>Supplier (Bill From)</i><br>
<strong>{{ doc.customer_name or "" }}</strong><br>
{{ doc.address_display or "" }}
</td>
</tr>
<tr>
<td width=25%>
Despatch Through<br>
<b> </b>
</td>
<td width=25%>
Destination<br>
<b> </b>
</td>
</tr>
<tr>
<td width=25%>
Mode of Transport<br>
<b></b>{{ doc.mode_of_transport or " " }}<b></b><br>
<b> </b>
</td>
<td width=25%>
Shipping Address<br>
{{ doc.shipping_address_name or " " }}<br>
<b> </b>
</td>
</tr>
<tr>
<td width=25% height=25 colspan=2>
Terms of Delivery<br>
{{ doc.tc_name or " " }}<br>
<b> </b>
</td>
</tr>
</table>
<TABLE cellpadding=0 cellspacing=0 width=100% border=1>
<TR>
<tbody>
<tr>
<TABLE cellpadding=0 cellspacing=0 width=100% border=1>
<th>SR</th>
<th>ITEM & DESCRIPTION</th>
<th>HSN/ASN CODE
<th>QUANTITY</th>
<th>RATE</th>
<th>AMOUNT</th>
{%- for row in doc.items -%}
{%- if row.item_code != "TOTAL"-%}
<tr>
<td width=10>{{ row.idx }}</td>
<td width=0>{{row.description}}</td>
<td>{{ row.gst_hsn_code }}</td>
<td>{{ row.qty }}</td>
<td>{{ row.rate }}</td>
<TD WIDTH=20% align=right>{{ row.amount }}</td>
</tr>
{%- else -%}
<tr>
<td>{{ row.idx }}</td>
<td bgcolor="#FFFFFF" colspan="4">{{row.item_code}}</td>
</tr>
{%- endif -%}
{%- endfor -%}
</TABLE>
<TABLE cellpadding=0 cellspacing=0 width=100% border=1>
<TR> <TD rowspan=0>
Amount chrageble in Words<br>
<B>{{ doc.in_words }}</B>
<TD WIDTH=13% align=right><B>TOTAL</B></TD>
<TD WIDTH=20% align=right><B>{{ doc.get_formatted("total", doc) }}</B></TD>
</TR>
<TD colspan=1 height=120> <br>
<left><B>Company PAN:AFCPN3098L </B></TD><br>
</TD>
<TD align=right colspan=3>
<B>for {{ doc.company }}</B>
<div style="position: relative; height: 100px; border: solid; border-style: none;">
<div style="position: absolute; height: 10px; border: solid; bottom: 0; right: 0; left: 0; border-style: none;">
Authorised Signatory
</div>
</div>
</TD>
</TR>
</TABLE>