Thursday, December 12, 2024
1 change · saas-17.4
Resolved issues and error corrections
This update prevents orders created at the same time on different Point of Sale devices from overwriting each other. Restaurant table orders now merge and sync more reliably across devices, reducing lost orders and improving customer service accuracy.
Original PR description
*: pos_restaurant, pos_loyalty 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.