WIP scale fw

This commit is contained in:
2026-03-16 18:27:02 -03:00
parent 27d5fb26d9
commit 4bbbb0334c
18 changed files with 231 additions and 1 deletions

View File

@@ -397,6 +397,15 @@
handleProductScan(product);
});
socket.on('scale_update', function (data) {
const weightInput = document.getElementById('weight-input');
const weightModal = document.getElementById('weightModal');
if (weightModal.classList.contains('show')) {
weightInput.value = data.grams;
}
});
function goToInventory() {
if (missingProductData) {
window.location.href = `/?barcode=${missingProductData.barcode}`;