diff --git a/entity/Order_entity/Order_entity.aod b/entity/Order_entity/Order_entity.aod
index 33b6cb0258303e402d9c8b3b89b17e4097158bf3..6c5316dbfc6dfb7f6003c07199f9ca77b60be793 100644
--- a/entity/Order_entity/Order_entity.aod
+++ b/entity/Order_entity/Order_entity.aod
@@ -594,7 +594,6 @@
     </entityParameter>
     <entityParameter>
       <name>ObjectRowId_param</name>
-      <valueProcess>%aditoprj%/entity/Order_entity/entityfields/objectrowid_param/valueProcess.js</valueProcess>
       <expose v="true" />
       <documentation>%aditoprj%/entity/Order_entity/entityfields/objectrowid_param/documentation.adoc</documentation>
       <description>PARAMETER</description>
diff --git a/entity/Order_entity/entityfields/objectrowid_param/valueProcess.js b/entity/Order_entity/entityfields/objectrowid_param/valueProcess.js
deleted file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000
diff --git a/entity/Order_entity/entityfields/objects/children/contactid_param/valueProcess.js b/entity/Order_entity/entityfields/objects/children/contactid_param/valueProcess.js
index c5efd0f6d8a6d05a0f2f5e4585dfbc47fbbfdeb2..0d0a95eccca8e1e727a25fe04a1099d583af6471 100644
--- a/entity/Order_entity/entityfields/objects/children/contactid_param/valueProcess.js
+++ b/entity/Order_entity/entityfields/objects/children/contactid_param/valueProcess.js
@@ -1,3 +1,4 @@
+import("system.db");
 import("system.result");
 import("system.vars");
 import("Contact_lib");
@@ -5,6 +6,9 @@ import("Contact_lib");
 if (vars.get("$field.CONTACT_ID"))
 {
     var ids = ContactUtils.getPersOrgIds(vars.getString("$field.CONTACT_ID"));
-    if (ids.length >= 3 && ids[2])
-        result.string(ids[2]);
+    if (ids.length >= 3 && ids[2]){
+        result.string(db.cell("select CONTACTID from CONTACT"
++ " join ORGANISATION on ORGANISATIONID = ORGANISATION_ID"
++ " where ORGANISATION_ID = '" + ids[2] + "'"
++ " and PERSON_ID is null"))}
 }
\ No newline at end of file
diff --git a/process/Order_lib/process.js b/process/Order_lib/process.js
index a8012d67187181915832f572760e7698bcffda86..b4ef3fa6d02ee66e7cd947cfb33db0afaa335cc5 100644
--- a/process/Order_lib/process.js
+++ b/process/Order_lib/process.js
@@ -93,13 +93,13 @@ OrderUtils.createNewOrder = function(pContextId, pRowId, pRelationId)
 }
 
 //TODO refactor function to minimize the params and only give an object that contains the data
-OrderUtils.copyOrder = function (pOfferId, pContactId, pOrderType, pLanguage, pCurrency, pHeader, pFooter, pDeliveryTerm, pPaymentTerm, pPaymentAddress, pDeliveryAddress, pObjectType, pRowId, pDunningDate, pDunningLevel, pCancellation, pOrderStatus)
+OrderUtils.copyOrder = function (pSourceOfferId, pContactId, pOrderType, pLanguage, pCurrency, pHeader, pFooter, pDeliveryTerm, pPaymentTerm, pPaymentAddress, pDeliveryAddress, pObjectType, pRowId, pDunningDate, pDunningLevel, pCancellation, pOrderStatus)
 {
     var params = {
         "ContactId_param" : pContactId,
         "OrderType_param" : pOrderType,
         "OrderLanguage_param" : pLanguage,
-        "OfferId_param" : pOfferId,
+        "OfferId_param" : pSourceOfferId,
         "OrderCurrency_param" : pCurrency || "",
         "OrderHeader_param" : pHeader || "",
         "OrderFooter_param" : pFooter || "",
@@ -121,10 +121,10 @@ OrderUtils.copyOrder = function (pOfferId, pContactId, pOrderType, pLanguage, pC
 /**
  * copies all offerItems of an offer and creates orderItems for an order
  * 
- * @param {String} pOfferId the offer to get the items from
- * @param {String} pOrderId the order to create the items for
+ * @param {String} pSourceOfferId the offer to get the items from
+ * @param {String} pSourceOfferId the order to create the items for
  */
-OrderUtils.copyOfferItemsToOrder = function (pSourceOfferId, pOrderId)
+OrderUtils.copyOfferItemsToOrder = function (pSourceOfferId, pSourceOfferId)
 {
     var InputMapping = {
         "OFFERITEM": {
@@ -146,21 +146,21 @@ OrderUtils.copyOfferItemsToOrder = function (pSourceOfferId, pOrderId)
                 "INFO" : "INFO",
                 "VAT" : "VAT"
             },
-            condition: newWhereIfSet("OFFERITEM.OFFER_ID", pOfferId).orderBy("ITEMSORT").toString("1=2", true),
+            condition: newWhereIfSet("OFFERITEM.OFFER_ID", pSourceOfferId).orderBy("ITEMSORT").toString("1=2", true),
             ValueMapping: {
-                "OFFER_ID" : pOrderId
+                "OFFER_ID" : pSourceOfferId
             }
         }
     };
     CopyModuleUtils.copyModule(InputMapping);
     
-    var oiUtils = new OrderItemUtils(pOrderId);
+    var oiUtils = new OrderItemUtils(pSourceOfferId);
     
     //update order price
     cols = ["NET", "VAT"];
     var vals = oiUtils.getNetAndVat();
     
-    newWhere("SALESORDER.SALESORDERID", pOrderId)
+    newWhere("SALESORDER.SALESORDERID", pSourceOfferId)
         .updateData(true, "SALESORDER", cols, null, vals);
 }
 
@@ -557,9 +557,9 @@ OrderUtils.openReminderReport = function (pOrderID)
  * 
  * @class
  */
-function OrderItemUtils(pOrderId) {
+function OrderItemUtils(pSourceOfferId) {
     // extends ItemUtils
-    ItemUtils.apply(this, [pOrderId, "SALESORDER"]);
+    ItemUtils.apply(this, [pSourceOfferId, "SALESORDER"]);
     OrderItemUtils.prototype = Object.create(ItemUtils.prototype);
     OrderItemUtils.prototype.constructor = OrderItemUtils;
 }