Add pages column and widen data entry tables

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-07 08:48:35 +03:30
parent 9c35f78fcb
commit d99f860e13
3 changed files with 27 additions and 9 deletions

View File

@@ -181,10 +181,7 @@ async function adjustCount(id, field, delta) {
const tw = document.getElementById(`tw-${id}`);
if (tw) tw.textContent = `${order.total_weight} kg`;
const pages = document.getElementById(`pages-${id}`);
if (pages) {
const unit = (translations[currentLang] || translations.en).pages_unit;
pages.innerHTML = `${order.canister_pages + order.box_pages} <span data-i18n="pages_unit">${unit}</span>`;
}
if (pages) pages.textContent = order.canister_pages + order.box_pages;
} catch (err) {
showToast('Network error', true);
}