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

@@ -287,6 +287,13 @@ permanentemente', 'executeBulkDelete()') %}
}
});
socket.on('scale_update', function (data) {
const unitType = document.getElementById('form-unit-type').value;
if (unitType === 'kg') {
document.getElementById('form-stock').value = data.kilograms;
}
});
// Replace your existing updateForm function with this one
function updateForm(b, n, p, i, t, stock, unit) {
dismissPrompt();