When a device is detected it shows a [ value | UOM ] readout on the page of configured doctypes
If no device is detected, no readout is shown
I want to capture that output and set the last row with that data (eg, frm.doc.items[-1].qty and uom)
The capture can be triggered by a keypress (what key? any key?)
If enough consecutive reads of the weight and UOM are of the same number, automatically set the qty and UOM, if it is also NOT the the value of frm.doc.items[-2].qty and uom
This feature is only supported on Chrome, Edge and Opera (which is fine I guess, but get with the times Firefox)
The ondevicereport callback does not seem to be cancel-able in a reasonable way and would benefit from discussion
This is currently implemented with jQuery but should probably be a Vue component so that it might be able to be re-used in the planned mobile integration (#15)
I have a USB scale and would like to integrate it such that:
[ value | UOM ]
readout on the page of configured doctypesfrm.doc.items[-2].qty
anduom
In the proof of concept script I ran into a few issues.
ondevicereport
callback does not seem to be cancel-able in a reasonable way and would benefit from discussion