# HG changeset patch
# User Adrián Romero <adrianromero@openbravo.com>
# Date 1459329456 -7200
#      Wed Mar 30 11:17:36 2016 +0200
# Node ID 31b5ff258b667a8bc4ffcafff03eb64ea255eaf9
# Parent  410127cfc57ee72b2e4660d2a5cb1e87d04c3972
Fixes issue 0032317: Ensure stable ids in docs send from WebPOS to the server
* Removing not needed lineno parameter to calculate the service relation ID

diff --git a/src/org/openbravo/retail/posterminal/OrderLoader.java b/src/org/openbravo/retail/posterminal/OrderLoader.java
--- a/src/org/openbravo/retail/posterminal/OrderLoader.java
+++ b/src/org/openbravo/retail/posterminal/OrderLoader.java
@@ -1393,8 +1393,7 @@
             olServiceRelation.setUpdatedBy(orderLine.getUpdatedBy());
             olServiceRelation.setSalesOrderLine(orderLine);
             olServiceRelation.setOrderlineRelated(rol);
-            olServiceRelation.setId(OBMOBCUtils.getUUIDbyString(orderLine.getId()
-                + orderLine.getLineNo() + i));
+            olServiceRelation.setId(OBMOBCUtils.getUUIDbyString(orderLine.getId() + i));
             olServiceRelation.setNewOBObject(true);
             OBDal.getInstance().save(olServiceRelation);
           }
