Hello everyone.
Today, when I logged into the system, I found this message appearing everywhere I opened it (quote, work order, delivery note, invoice, disbursement voucher, receipt voucher, etc.).
Please, does anyone know the cause of this problem?
I am also facing this issue.
Hi @Ahmad-A2Z-Orders,
Could you uncheck Custom Theme
and see if this persists?
This issue is due to use of footers. If we don’t use footers then it’s good.
2 Likes
Please share a screenshot of the footer Edit screen so we can test this
1 Like
@Ahmad-A2Z-Orders , please try this script at the end of your footer. it will temporarily resolve the issue.
<script>
document.addEventListener('DOMContentLoaded', function () {
document.querySelectorAll('*').forEach(el => {
if (el.childNodes.length) {
el.childNodes.forEach(child => {
if (child.nodeType === Node.TEXT_NODE &&
child.textContent.includes('"serviceLink":') &&
child.textContent.includes('event.origin')) {
child.textContent = ''; // clear it out
}
});
}
});
});
</script>
<script>
setInterval(() => {
document.querySelectorAll('*').forEach(el => {
el.childNodes.forEach(child => {
if (child.nodeType === Node.TEXT_NODE) {
const cleanedText = child.textContent.replace(/\\r\\n|\\n|\\r/g, '').trim();
if (cleanedText !== child.textContent) {
child.textContent = cleanedText;
}
}
});
});
}, 500); // Runs every half-second
</script>
type or paste code here
1 Like
Am using this code for footer:
<div style="text-align: center;">
<table style="margin-left: 20px; margin-right: 100px; border-collapse: 0px;">
<tr>
<td style="border: 0px solid black; padding: 20px; text-align: center;">
<strong>Name الاسم</strong>
</td>
<td style="border: 0px solid black; padding: 20px; text-align: center;">
<strong>Position المنصب</strong>
</td>
<td style="border: 0px solid black; padding: 20px; text-align: center;">
<strong>Signature التوقيع</strong>
</td>
<td style="border: 0px solid black; padding: 20px; text-align: center;">
<strong>Date التاريخ</strong>
</td>
</td>
</tr>
<td style="border: 0px solid black; padding: 10px; text-align: center;">
<strong>...........................</strong>
</td>
<td style="border: 0px solid black; padding: 10px; text-align: center;">
<strong>...........................</strong>
</td>
<td style="border: 0px solid black; padding: 10px; text-align: center;">
<strong>...........................</strong>
</td>
<td style="border: 0px solid black; padding: 10px; text-align: center;">
<strong>............................</strong>
</td>
</td>
</tr>
</table>
</div>
Also this code for lines between items:
<script>
document.addEventListener('DOMContentLoaded', function() {
const printableContent = document.getElementById('printable-content');
if (printableContent) {
const table = printableContent.querySelector('table');
if (table) {
const tbodies = table.querySelectorAll('tbody');
tbodies.forEach(tbody => {
const tds = tbody.querySelectorAll('td');
tds.forEach(td => {
if (td.className && td.className.trim() !== '') {
td.style.borderTop = '0.5px solid black';
}
});
});
}
}
});
</script>