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!
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?
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 %}
|
||
You didn’t mention you were using a custom theme. Debugging that is your own responsibility. This isn’t a coding forum.