As soon as the count crosses 60-70 items, the page slows down. It becomes a confusion for the data entry guy whether the record has been added or not. He then scrolls down to check it, and finds that it has not been added.
Now how do we go about it? following is what I can think
An alert which tells that the item has been added.
Reverse the order of rows, so that the data entry guy can check without scrolling. i am not sure if this is possible.
I also added a TODO list and a question:
-Determine whether it would be better to wait for enter pressed/blur event to run the handler or use a timeout to run the handler (in my branch I’m currently using timeout)
-Allow the scan field to search for: batch number, serial number, item code
For fixing the speed issue, local variable is created in the function, reading local variable other than accessing global object’s property via dot(.) operator is more efficient because traversing the prototype chain (mapping table) avoided.
Please kindly mark it as accepted solution, then this thread can be closed.
the current approach is to customize the form by adding one dummy barcode field into the target doctype, which is not a neat solution because it created unused field in the backend database, so it is better to just create the dummy barcode field on frontend, need sometime to try.
Now adding something new , lets suppose a system is working on Serialized Inventory now we dont have barcodes we have serial number , in POS profile it is happening , the current requirement is , one should just keep on scanning the serial numbers which are printed as barcodes and the quantity should keep on increasing instead of scanning the first one and then opening a pop up and adding serial numbers there,