Projects:WebPOS Store Server ensure Same Ids
Introduction
In a multi-server environment with store and central servers it helps if database ids of documents send to multiple servers are the same. This is ensured by already assigning id's in the WebPOS client.
Currently WebPOS creates unique ids (UUIDs) in the client side for the ticket header and lines. Other information is also created in WebPOS or should get id's assigned from WebPOS. This ensures that data which is send to different servers can get the same id when it is persisted in the database.
The following data should get a stable id or get an id created/generated in the web client:
- tax lines for the header and tax lines for each order/ticket line
- payments
- payment schedule detail: when created in the server side OrderLoader it should get the same id as the order header
- shipment header: should get the same id as the order header when created in the order header