Issue with displaying amount in words

Dear All,

I just want to know, why the values in decimal places of TOTAL AMT is not displaying in the invoice. Am i missing anything?


Thanks in advance!

Update your software. Support for Indian paise was added about a month ago.

Thanks for the prompt reply!

I’m using the latest version 18.10.40. But still getting the same issue and the related code is as below

{% assign i = 0 %}
{% for row in table.rows %}
{% assign i = i | plus: 1 %}
<tr>
    <td style="width: 25px; padding: 5px 5px; border-left-width: 1px; text-align:CENTER">{{ i }}</td>
    {% for cell in row.cells %}
    <td style="padding: 5px 5px; text-align: {{ table.columns[forloop.index0].align }}; border-left-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}{% if table.columns[forloop.index0].nowrap %}; white-space: nowrap; width: 80px{% endif %}">{{ cell.text | newline_to_br }}</td>
    {% endfor %}
</tr>
{% endfor %}
<tr>
{% for column in table.columns %}            
    <td style=" border-left-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}"></td>
{% endfor %}

</tr>
 <td colspan="99">
<table style="width: 750px; border-color: #000000;  border-bottom-width: 1px;border-top-width: 1px; border-left-width: 1px; ">
{% for total in table.totals %}
<tr>
     <td colspan="{{ table.columns | size }}" style="width: 365px; padding: 5px 10px; text-align: right {% if total.emphasis == true %}; font-weight: bold{% endif %}">{{ total.label }}</td>
    <td style="border-left-width: 1px; white-space: nowrap; border-right-width: 1px; border-bottom-width: 1px; padding: 5px 10px; text-align: right{% if forloop.first == true %}; {% endif %}{% if total.emphasis == true %}; font-weight: bold{% endif %}">{{ total.text }}</td>

</tr>

{% endfor %}
 
</table></td>
<tr><td colspan="{{ table.columns | size | plus:1 }}" style="border-right-width: 1px;  border-bottom-width: 1px; border-left-width: 1px"><div style="font-size: 12px; padding-left: 10px; padding-right: 10px">{% for total in table.totals %}{% if total.label == 'Total' %}<b>Amount In Words: </b> {{ total.number | spell_out_rupees|capitalize}} Only</div>{% endif %}{% endfor %}</td></tr> 
{% for field in custom_fields %}
{% if title == 'Invoice' %}
{% if field.label != "Terms & Conditions" %}{% continue %}{% endif %}
{% endif %}
<tr>
    <td colspan="99">
        <div style="font-weight: bold; padding-top: 20px">{{ field.label }}</div>
        <div>{{ field.text | newline_to_br }}</div>
        <div style="text-align: right; font-weight: bold">For {{ business.name }}<br><br><br><br>Authorised Signatory</div></td>
    </td>
</tr>
{% endfor %}
{% if business.logo != null %}{% endif %}
{{ "Tax Invoice" }}

{{ "Original for Recipient" }}
        <table style="margin-bottom: 10px; width: 750px; border-color: #000000; border-bottom-width: 1px; border-top-width: 1px; border-left-width: 1px; border-right-width: 1px"><tr>
		
		     <td style="width: 250px; padding-right: 10px; padding-left: 5px; padding-top: 10px; text-align: right; vertical-align: top;">
                <div style="text-align:LEFT;font-weight: bold;font-size: 18px">{{ business.name }}</div>
                <div style="text-align:LEFT;font-size: 12px">{{ business.address | newline_to_br }}</div>
                <div style="text-align:LEFT;font-weight: bold;font-size: 14px">{{ business.identifier }}</div>
            </td>
		
           <td style="width: 160px; padding-left: 10px; padding-top: 10px; text-align: left; border-color: #000000; border-left-width: 1px">
                {% for field in fields %}
                <div style="font-weight: bold; font-size: 12px">{{ field.label }}</div>
                <div style="margin-bottom: 10px;  font-size: 12px">{{ field.text }}</div>
              
               
                {% endfor %}
            </td>
            
            <td style="width: 210px; padding-left: 10px; padding-top: 10px; text-align: left; border-color: #000000; border-left-width: 1px">
            {% if title == 'Invoice' %}<div style="border-bottom-width: 1px; text-align:LEFT;font-weight: bold">Customer Detail</div>{% endif %}
            <div style="padding-left: 10px"><br>
            <div><b>{{ recipient.name }}</b> {{ recipient.code }}</div>
            <div>{{ recipient.address | newline_to_br }}</div>
            <div><b>{{ recipient.identifier }}</b></div></div>
        </td>
                           
        </tr></table>
        

        <div style="font-size: 14px; font-weight: bold; margin-bottom: 20px">{{ description }}</div>
    </td>
</tr>

<tr>
    <td style="width: 25px; font-weight: bold; padding: 5px 5px; border-bottom-width: 1px; border-left-width: 1px; border-top-width: 1px; text-align:CENTER">Sr.No</td>
    {% for column in table.columns %}            
    <td style="font-weight: bold; padding: 5px 5px; text-align: {{ column.align }}; border-left-width: 1px; border-bottom-width: 1px; border-top-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}{% if column.nowrap %}; white-space: nowrap; width: 80px{% endif %}">{{ column.label }}</td>
    {% endfor %}
</tr>

You didn’t mention you were using a custom theme. Debugging that is your own responsibility. This isn’t a coding forum.