sale order
SAP-ERP Portal CI/CD / build (push) Successful in 3m57s

This commit is contained in:
John
2026-10-05 18:45:17 +05:30
parent e725a6571b
commit eead8f5ffd
129 changed files with 14252 additions and 452 deletions
+6 -3
View File
@@ -884,6 +884,7 @@ async function loadQuotations(){
return;
}
const rows = d.value||d.data||[];
const total = typeof d.total === 'number' ? d.total : null;
if (!rows.length){ wrap.innerHTML='<div class="pq-empty">No purchase quotations found.</div>'; document.getElementById('pgBar').style.display='none'; return; }
wrap.innerHTML = `<div class="pq-list">${rows.map(pq=>`
<div class="pq-card" onclick="openDoc(${pq.DocEntry})">
@@ -901,8 +902,10 @@ async function loadQuotations(){
const pgBar = document.getElementById('pgBar');
pgBar.style.display = 'flex';
document.getElementById('pgPrev').disabled = _page===0;
document.getElementById('pgNext').disabled = rows.length < PAGE_SIZE;
document.getElementById('pgInfo').textContent = `Page ${_page+1}`;
document.getElementById('pgNext').disabled = total!=null ? (_page+1)*PAGE_SIZE >= total : rows.length < PAGE_SIZE;
document.getElementById('pgInfo').textContent = total!=null
? `Page ${_page+1} of ${Math.max(1,Math.ceil(total/PAGE_SIZE))} · ${total} quotation${total===1?'':'s'}`
: `Page ${_page+1}`;
} catch(err){ wrap.innerHTML=`<div class="pq-empty" style="color:var(--red)">${esc(err.message)}</div>`; }
}
@@ -1131,7 +1134,7 @@ async function choosePR(){
addLine();
})();
</script>
<script src="/sidebar.js?v=25"></script>
<script src="/sidebar.js?v=31"></script>
</body>
</html>