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
@@ -88,7 +88,7 @@ tbody td.trunc{max-width:220px;overflow:hidden;text-overflow:ellipsis}
<link rel="stylesheet" href="/theme.css?v=3"/>
</head>
<body>
<script src="/sidebar.js?v=25"></script>
<script src="/sidebar.js?v=31"></script>
<div class="pg">
<div class="hdr">
@@ -275,9 +275,12 @@ async function loadData(reset=true){
rows=json.data||[];
renderTable();
setStatus(`Loaded ${rows.length} record(s)`,'ok');
pageInfo.textContent=`Page ${Math.floor(skip/TOP)+1}`;
const total=typeof json.total==='number'?json.total:null;
pageInfo.textContent=total!=null
? `Page ${Math.floor(skip/TOP)+1} of ${Math.max(1,Math.ceil(total/TOP))} · ${total} record${total===1?'':'s'}`
: `Page ${Math.floor(skip/TOP)+1}`;
btnPrev.disabled=skip===0;
btnNext.disabled=rows.length<TOP;
btnNext.disabled=total!=null?(skip+TOP)>=total:rows.length<TOP;
}catch(e){
setStatus('Failed: '+e.message,'err');
showToast(e.message,'error');