From 114317217ce74a0bfdace96b7bba058792d3ab3e Mon Sep 17 00:00:00 2001 From: "s.pongratz" <s.pongratz@adito.de> Date: Wed, 20 Jan 2021 08:49:08 +0100 Subject: [PATCH] WarningsDependency Warnings behohen --- process/Dependency_lib/process.js | 51 +++++++++---------------------- 1 file changed, 15 insertions(+), 36 deletions(-) diff --git a/process/Dependency_lib/process.js b/process/Dependency_lib/process.js index cd11ecdecab..e8967c862a7 100644 --- a/process/Dependency_lib/process.js +++ b/process/Dependency_lib/process.js @@ -1,4 +1,5 @@ import("Sql_lib"); +import("system.favorite"); function Dependency(){} @@ -228,6 +229,20 @@ Dependency.mapping = function () }, "getUIDsfn" : Dependency.defaultFunctionForRelation("ACTIVITYLINK", "OBJECT_ROWID", "SALESORDERID", "Order", "SALESORDER", "ACTIVITY_ID") }, + "Organisation_entity" : { + "options" : { + "isObservable" : true + }, + "getUIDsfn" : function (pRowData, pChangedData) { + var tableField = "SALESORDER.CONTACT_ID"; + var res = []; + if (pRowData[tableField]) + res.push(pRowData[tableField]) + if (pChangedData[tableField] && pChangedData[tableField] != pRowData[tableField]) + res.push(pChangedData[tableField]) + return res; + } + }, "Task_entity" : { "options" : { "isObservable" : true @@ -707,42 +722,6 @@ Dependency.mapping = function () "getUIDsfn" : Dependency.defaultFunctionForField("LEAD.LEADIMPORT_ID") } } - ,"Order_entity": { - "Organisation_entity" : { - "options" : { - "isObservable" : true - }, - "getUIDsfn" : function (pRowData, pChangedData) { - var tableField = "SALESORDER.CONTACT_ID"; - var res = []; - if (pRowData[tableField]) - res.push(pRowData[tableField]) - if (pChangedData[tableField] && pChangedData[tableField] != pRowData[tableField]) - res.push(pChangedData[tableField]) - return res; - } - } - } - ,"AttributeRelation_entity": { - "Organisation_entity" : { - "options" : { - "isObservable" : true - }, - "getUIDsfn" : Dependency.defaultFunctionForRelation("AB_ATTRIBUTERELATION", "AB_ATTRIBUTERELATIONID", "AB_ATTRIBUTERELATIONID", "Organisation") - }, - "Activity_entity" : { - "options" : { - "isObservable" : true - }, - "getUIDsfn" : Dependency.defaultFunctionForRelation("AB_ATTRIBUTERELATION", "AB_ATTRIBUTERELATIONID", "AB_ATTRIBUTERELATIONID", "Activity") - }, - "Salesproject_entity" : { - "options" : { - "isObservable" : true - }, - "getUIDsfn" : Dependency.defaultFunctionForRelation("AB_ATTRIBUTERELATION", "AB_ATTRIBUTERELATIONID", "AB_ATTRIBUTERELATIONID", "Salesproject") - } - } }; }; /** -- GitLab