Thursday, December 26, 2024
1 change · saas-18.1
Resolved issues and error corrections
This fix prevents orders created at the same time on different PoS devices from overwriting each other. Orders for the same table are now merged and shared across devices more reliably, improving accuracy for customers using multiple terminals.
Original PR description
Previously, synchronization management was faulty when two devices created a command at the same time. One would override the other. To overcome this problem, when sending the command to the server, we check whether the table used by the command already contains a command. If so, they are merged. When different devices use the same PoS, when an order is created on one of them, it is directly synchronized with the others. This makes it possible to calculate the various table states with greater precision. As in Master, orders are now identified by UUID rather than ID. The replaceDataByKey function is no longer used; what it used to do is now in loadData. All these fixes are very important in view of the problems encountered by some customers.