I address my code above to those who work on localization.
We can create a script as a temporary solution so that emails containing Qrcodes can be sent.
This script is only for the invoice that you will create, not for previous invoices, because you need to change the previous invoice if you want to use it. And this change will change your Qrcode date.
Create New Footer for Sales Invoice or Credit Note.
Paste this code.
<div id="moveqr">
<script>
document.addEventListener('DOMContentLoaded', () => {
var qrcodeDiv = document.getElementById('qrcode');
if (qrcodeDiv && qrcodeDiv.parentNode.tagName !== 'TD') {
qrcodeDiv.style.padding = '0px';
var mainTable = document.querySelector('#printable-content > table');
if (mainTable) {
var newRow = mainTable.insertRow();
var newCell = newRow.insertCell();
newCell.colSpan = 99;
newCell.appendChild(qrcodeDiv);
}
var canvasElement = qrcodeDiv.querySelector('canvas');
if (canvasElement) {
canvasElement.remove();
}
}
var moveqrDiv = document.getElementById('moveqr');
if (moveqrDiv) {
moveqrDiv.remove();
}
});
</script>
</div>
Use this footer on your new invoice.
This script will move the Qrcode image into the Invoice Table.