Problem with amount in words

Hello Sir,

I have used this code and resolved my earlier bugs and now invoice value in words are not showing in output.

kindly check and provide me the update code to resolve above said bug.
My invoice output enclosed for your quick view.

Thanks in advance,

Program Used:

{% assign i = 0 %} {% for row in table.rows %} {% assign i = i | plus: 1 %} {% for cell in row.cells %} {% endfor %} {% endfor %} {% for column in table.columns %} {% endfor %} {% for total in table.totals %} {% endfor %} {% for field in custom_fields %} {% if title == 'Tax Invoice' %} {% if field.label != "Notes" %}{% continue %}{% endif %} {% endif %} {% endfor %} {% if title == 'Tax Invoice' %} {% endif %}

image

{% if business.logo != null %}{% endif %}
{% if title != 'Invoice' %}{{ title }}{% endif %}{% if title == 'Invoice' %}{{ title | replace: "Invoice", "Tax Invoice" }}{% endif %}
        <table style="margin-bottom: 20px"><tr>
            <td style="width: 200px; border-left-width: 5px; padding-left: 10px; text-align: left">
                {% for field in fields %}
                <div style="font-weight: bold; font-size: 12px">{{ field.label }}</div>
                <div style="margin-bottom: 10px; font-weight: bold; font-size: 16px">{{ field.text }}</div>
                {% endfor %}
            </td>
            {% if title == 'Tax Invoice' %}
            <td style="width: 260px; padding-left: 20px; border-color: #000000; border-left-width: 1px">
            {% for field in custom_fields %}
            {% if field.label == "Shipped To:" %}{% continue %}{% endif %}
            {% if field.label == "Notes" %}{% continue %}{% endif %}
            {% if field.label == 'Total in words' %}{% continue %}{% endif %}
            <div style="font-size: 12px; padding-bottom: 10px"><b>{{ field.label }}</b> {{ field.text | newline_to_br }}</div>
            {% endfor %}</td>{% endif %}
            <td style="width: 300px; padding-left: 10px; padding-right: 5px; text-align: left; vertical-align: top; border-top-width: 3px; border-bottom-width: 5px">
                <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>
        </tr></table>
        <table style="margin-bottom: 20px">
        <td style="width: 380px; text-align: left; border-color: #000000; border-bottom-width: 2px; border-top-width: 2px; border-left-width: 2px; border-right-width: 2px">
            {% if title == 'Tax Invoice' %}<div style="padding-left: 5px; border-bottom-width: 2px; text-align:LEFT;font-weight: bold">Billed To:</div>{% endif %}
            <div style="padding-left: 20px">
            <div><b>{{ recipient.name }}</b> {{ recipient.code }}</div>
            <div>{{ recipient.address | newline_to_br }}</div>
            <div><b>{{ recipient.identifier }}</b></div></div>
        </td>
        {% if title == 'Tax Invoice' %}
            <td style="width: 375px; padding-left: 5px; text-align: left; border-color: #000000; border-bottom-width: 2px; border-top-width: 2px; border-left-width: 0px; border-right-width: 2px">
                {% for field in custom_fields %}{% if field.label == 'Shipped To:' %}{% assign consignee = field.text %}
                <div style="padding-left: 5px; border-bottom-width: 2px; text-align:LEFT;font-weight: bold">{{ field.label }}</div>
                <div style="padding-left: 20px">{{ field.text | newline_to_br }}</div>
                {% endif %}{% endfor %}
                {% if consignee == null %}
                <div style="padding-left: 5px; border-bottom-width: 2px; text-align:LEFT;font-weight: bold">Shipped To:</div>
                <div style="padding-left: 20px">
                <div><b>{{ recipient.name }}</b> {{ recipient.code }}</div>
                <div>{{ recipient.address | newline_to_br }}</div>
                <div><b>{{ recipient.identifier }}</b></div></div>{% endif %}
            </td>
        {% endif %}
        </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">#</td>
    {% for column in table.columns %}            
    <td style="font-weight: bold; padding: 5px 10px; 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>
{{ i }}{{ cell.text | newline_to_br }}
{{ total.label }} {{ total.text }}
{% for field in custom_fields %}{% if field.label == 'Total in words' %}{{ field.text }} Only
{% endif %}{% endfor %}
{{ field.label }}
{{ field.text | newline_to_br }}
We declare that this invoice shows the actual price of the goods or
service described and that all particulars are true and correct.

For {{ business.name }}



Authorised Signatory

@AshokJegadeesan, please do not divert topics with unrelated questions. Your issue has nothing to do with losing themes or upgrades. It has been moved to a new topic.

Please do not ask other forum members to troubleshoot your themes for you. Custom theme performance is the responsibility of the user.