Add pages column and widen data entry tables
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user