From d3a110bc7126036ed32459480941e3578eb5ba6c Mon Sep 17 00:00:00 2001 From: "j.goderbauer" <j.goderbauer@adito.de> Date: Thu, 2 May 2019 14:06:06 +0200 Subject: [PATCH] =?UTF-8?q?[Projekt:=20Entwicklung=20-=20Neon][TicketNr.:?= =?UTF-8?q?=201036415][=C3=9Cbernahme=20AUDIT=20und=20Logging=20aus=20best?= =?UTF-8?q?ehendem=20xRM-Basic=20f=C3=BCr=20ADITO=202019]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2019.2/AditoBasic/create_ab_loghistory.xml | 4 ++-- process/Contact_lib/process.js | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.liquibase/Data_alias/basic/2019.2/AditoBasic/create_ab_loghistory.xml b/.liquibase/Data_alias/basic/2019.2/AditoBasic/create_ab_loghistory.xml index 16c96add303..d7d65e6c6fc 100644 --- a/.liquibase/Data_alias/basic/2019.2/AditoBasic/create_ab_loghistory.xml +++ b/.liquibase/Data_alias/basic/2019.2/AditoBasic/create_ab_loghistory.xml @@ -5,10 +5,10 @@ <column name="USER_NEW" type="NVARCHAR(50)"> <constraints nullable="false"/> </column> - <column name="DATE_NEW" type="TIMESTAMP"> + <column name="DATE_NEW" type="DATETIME"> <constraints nullable="false"/> </column> - <column name="DESCRIPTION" type="LONGVARCHAR(2147483647)"/> + <column name="DESCRIPTION" type="NCLOB"/> <column name="LOGTYPE" type="CHAR(1)"/> <column name="SOURCE_TABLENAME" type="NVARCHAR(30)"/> <column name="SOURCE_TABLENAMEID" type="CHAR(36)"/> diff --git a/process/Contact_lib/process.js b/process/Contact_lib/process.js index e8b2c9e47b3..e70b9797751 100644 --- a/process/Contact_lib/process.js +++ b/process/Contact_lib/process.js @@ -15,6 +15,13 @@ import("Context_lib"); */ function OrganisationUtils() {} +/* + * retrieves the name of an organisation with a select statement + * + * @param {String} pOrganisationId the ID of the organisation that shall be searched in the database; + * + * @return {String} the name of the organisation + */ OrganisationUtils.getNameByOrganisationId = function(pOrganisationId) { var orgname = ""; @@ -27,6 +34,13 @@ OrganisationUtils.getNameByOrganisationId = function(pOrganisationId) return orgname; }; +/* + * retrieves the name of an organisation with a select statement + * + * @param {String} pContactId the ID of the corresponding org-contact of the organisation that shall be searched in the database; + * + * @return {String} the name of the organisation + */ OrganisationUtils.getNameByContactId = function(pContactId) { var orgname = ""; -- GitLab