QR Code Generation for Invoice

Extension not avaliable now, with last version 22.3.4, Localization Saudi Arabia.
without Localization of Saudi Arabia it is working well.

Read this topic “last posts” it will help you to know more about the new update for localization and extension using:

Your post is confusing, @Ibrahim2. The QR code capability exists only through the Saudi Arabian localization. Yet you say without the localization it is working well. What do you really mean, not only by “working well” but also by with and without localization?

@Ibrahim2, your screen shots do not explain anything. Localizations are set by selecting a country on the Business Details page in Settings. And you are responsible for performance of custom themes.

you look still not getting my point
ok
when you create new business and select country Saudi Arabia,
go then to Settings, and search for Extensions icon, you will not find it.
this problem happen with last update version 22.3.4
before that it is avaliable,
is it clear now???

@Ibrahim2, this topic is about QR code generation. Why are you writing about the extension icon?

@Ibrahim2 The extension feature is only active if you don’t select any country. It’s not a problem, but the developer decides it like that. So, if you choose a country, the localization (extension script) for that country is activated automatically. We cannot change the localization on our own, but the developer can. If you want to customize localization on your own, don’t select any country and the extension feature will be shown. You can create your custom localization in that extension feature.

you can use this code I have changed

                       <td style="text-align:right; padding-right: 5px; width: 1px; white-space: nowrap">
                        <div style="font-weight: bold">{{ business.name }}</div>
                        <div>{{ business.address | newline_to_br }}</div>
                        <div>{{ business.identifier }}</div>
                    </td>
                    
                    <td style="text-align: center;font-weight: bold; font-size: 18px">{{ title }}
                    <br>
                    {% if business.logo != null %}<div style="text-align: center">
                        <img src="{{ business.logo }}" style="max-height: 225px; max-width: 225px">
                        </div>{% endif %}</td>
                       
                        <td style=" padding-right: 5px; text-align: left">
                        {% for field in fields %}
                        <div style="font-weight: bold">{{ field.label }}</div>
                        <div style="margin-bottom: 10px">{{ field.text }}</div>
                        {% endfor %}
                    </td>
                      
                    
                </tr></table>
                
                <table style="margin-bottom: 20px;text-align: right;"><tr>
                    <td style="padding-left: 20px; padding-top: 10px">
                        <div><b>{{ recipient.name }}</b> {{ recipient.code }}</div>
                        <div>{{ recipient.address | newline_to_br }}</div>
                        <div>{{ recipient.identifier }}</div>
                    </td>
                    
                </tr></table>

                <div style="font-size: 14px; font-weight: bold; margin-bottom: 20px">{{ description }}</div>
            </td>
        </tr>
    
        <tr>
            <td style="font-weight: bold; padding: 5px 10px; text-align: center; border-left-width: 1px; border-bottom-width: 1px; border-top-width: 1px;border-right-width: 1px; width: 1px">#</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>
    </thead>
    
    
    <tbody>
        {% for row in table.rows %}
        
        <tr>
            <td style="padding: 5px 10px; text-align: center; border-left-width: 1px; border-right-width: 1px;width: 1px">{{ forloop.index0 | plus:1 }}</td>
            {% for cell in row.cells %}
            <td style="padding: 5px 10px; 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>
        <td style="border-bottom-width: 1px; border-left-width: 1px;border-right-width: 1px;">&nbsp;</td>
        {% for column in table.columns %}            
            <td style="border-bottom-width: 1px; border-left-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}">&nbsp;
            </td>
        {% endfor %}
        </tr>
        {% for total in table.totals %}
       
        <tr>
            <td colspan="{{ table.columns | size }}" style="padding: 5px 10px; text-align:left{% 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 total.emphasis == true %}; font-weight: bold{% endif %}">{{ total.text }}</td>
        </tr>
        {% endfor %}
        {% for field in custom_fields %}
        
        <tr>
            <td colspan="99">
                <div style="font-weight: bold; padding-top: 20px">{{ field.label }}
                </div>
                <div>{{ field.text | newline_to_br }}</div>
            </td>
        </tr>
        {% endfor %}
        {% if emphasis.text != null and emphasis.positive %}
        
        <tr><td colspan="99">
            <div style="text-align: center; margin-top: 40px">
            <span style="color: #006400; border-width: 5px; border-color: #006400; padding: 10px; font-size: 20px">{{ emphasis.text | upcase }}
            </span>
            </div>
            </td>
            </tr>
        {% endif %}

        {% if emphasis.text != null and emphasis.negative %}
        <tr>
            <td colspan="99">
                <div style="text-align:center; margin-top: 40px">
                    <span style="color: #FF0000; border-width: 5px; border-color: #FF0000; padding: 10px; font-size: 20px">{{ emphasis.text | upcase }}
                    </span>
                    </div>
                    </td>
                    </tr>
        {% endif %}
            
    </tbody>
</table>

@lubos did you find out a way to solve this?

Solve what? There is nothing unresolved in this topic that four months ago had the previous post.

1 Like

how can I add the TLV QRcode to the invoice?

@chaos, have you read this thread? Your question was answered above.