From 423811d630f30163dadedbd687055b492f46ceb5 Mon Sep 17 00:00:00 2001 From: Nelu Cristian Tone Date: Fri, 29 Nov 2019 11:49:00 +0200 Subject: [PATCH] Modified sql for x_bpartner_history view. Added columns for netamount, grossamount https://github.com/metasfresh/metasfresh/issues/5850 --- .../ddl/views/x_bpartner_history.sql | 10 + ...gh5850_modified_select_for_request_tab.sql | 98 +++++ ...5850_add_netamount_grossamount_columns.sql | 385 ++++++++++++++++++ 3 files changed, 493 insertions(+) create mode 100644 de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5537330_sys_gh5850_modified_select_for_request_tab.sql create mode 100644 de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5537340_sys_gh5850_add_netamount_grossamount_columns.sql diff --git a/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/ddl/views/x_bpartner_history.sql b/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/ddl/views/x_bpartner_history.sql index 04dbac73fda..1aaaedb8ff9 100644 --- a/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/ddl/views/x_bpartner_history.sql +++ b/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/ddl/views/x_bpartner_history.sql @@ -13,6 +13,8 @@ CREATE OR REPLACE VIEW public.x_bpartner_history AS r.createdby, r.updated, r.updatedby, + null::numeric As netamount, + null::numeric As grossamount, '417'::text AS ad_table_id, r.r_request_id AS record_id, (417 * 1000000)::numeric + r.r_request_id AS x_bpartner_history_id @@ -30,6 +32,8 @@ UNION o.createdby, o.updated, o.updatedby, + (SELECT coalesce(sum(ot.taxbaseamt),0) from C_OrderTax ot where ot.c_order_id = o.c_order_id) As netamount, + (SELECT coalesce(sum(ot.taxbaseamt + ot.taxamt),0) from C_OrderTax ot where ot.c_order_id = o.c_order_id) As grossamount, '259'::text AS ad_table_id, o.c_order_id AS record_id, (259 * 1000000)::numeric + o.c_order_id AS x_bpartner_history_id @@ -47,6 +51,8 @@ UNION i.createdby, i.updated, i.updatedby, + null::numeric As netamount, + null::numeric As grossamount, '318'::text AS ad_table_id, i.c_invoice_id AS record_id, (318 * 1000000)::numeric + i.c_invoice_id AS x_bpartner_history_id @@ -64,6 +70,8 @@ UNION m.createdby, m.updated, m.updatedby, + null::numeric As netamount, + null::numeric As grossamount, '319'::text AS ad_table_id, m.m_inout_id AS record_id, (319 * 1000000)::numeric + m.m_inout_id AS x_bpartner_history_id @@ -81,6 +89,8 @@ UNION a.createdby, a.updated, a.updatedby, + null::numeric As netamount, + null::numeric As grossamount, a.ad_table_id::text AS ad_table_id, a.ad_attachmententry_id AS record_id, (291 * 1000000)::numeric + a.AD_AttachmentEntry_ReferencedRecord_v_id AS x_bpartner_history_id diff --git a/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5537330_sys_gh5850_modified_select_for_request_tab.sql b/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5537330_sys_gh5850_modified_select_for_request_tab.sql new file mode 100644 index 00000000000..1aaaedb8ff9 --- /dev/null +++ b/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5537330_sys_gh5850_modified_select_for_request_tab.sql @@ -0,0 +1,98 @@ + +DROP VIEW public.x_bpartner_history; + +CREATE OR REPLACE VIEW public.x_bpartner_history AS + SELECT r.c_bpartner_id, + r.datetrx, + r.documentno, + r.summary AS description, + rt.name AS typ, + r.ad_client_id, + r.ad_org_id, + r.created, + r.createdby, + r.updated, + r.updatedby, + null::numeric As netamount, + null::numeric As grossamount, + '417'::text AS ad_table_id, + r.r_request_id AS record_id, + (417 * 1000000)::numeric + r.r_request_id AS x_bpartner_history_id + FROM r_request r + LEFT JOIN r_requesttype rt ON rt.r_requesttype_id = r.r_requesttype_id +UNION + SELECT o.c_bpartner_id, + o.dateordered AS datetrx, + o.documentno, + o.description, + dt.name AS typ, + o.ad_client_id, + o.ad_org_id, + o.created, + o.createdby, + o.updated, + o.updatedby, + (SELECT coalesce(sum(ot.taxbaseamt),0) from C_OrderTax ot where ot.c_order_id = o.c_order_id) As netamount, + (SELECT coalesce(sum(ot.taxbaseamt + ot.taxamt),0) from C_OrderTax ot where ot.c_order_id = o.c_order_id) As grossamount, + '259'::text AS ad_table_id, + o.c_order_id AS record_id, + (259 * 1000000)::numeric + o.c_order_id AS x_bpartner_history_id + FROM c_order o + LEFT JOIN c_doctype dt ON dt.c_doctype_id = o.c_doctype_id +UNION + SELECT i.c_bpartner_id, + i.dateinvoiced AS datetrx, + i.documentno, + i.description, + dt.name AS typ, + i.ad_client_id, + i.ad_org_id, + i.created, + i.createdby, + i.updated, + i.updatedby, + null::numeric As netamount, + null::numeric As grossamount, + '318'::text AS ad_table_id, + i.c_invoice_id AS record_id, + (318 * 1000000)::numeric + i.c_invoice_id AS x_bpartner_history_id + FROM c_invoice i + LEFT JOIN c_doctype dt ON dt.c_doctype_id = i.c_doctype_id +UNION + SELECT m.c_bpartner_id, + m.movementdate AS datetrx, + m.documentno, + m.description, + dt.name AS typ, + m.ad_client_id, + m.ad_org_id, + m.created, + m.createdby, + m.updated, + m.updatedby, + null::numeric As netamount, + null::numeric As grossamount, + '319'::text AS ad_table_id, + m.m_inout_id AS record_id, + (319 * 1000000)::numeric + m.m_inout_id AS x_bpartner_history_id + FROM m_inout m + LEFT JOIN c_doctype dt ON dt.c_doctype_id = m.c_doctype_id +UNION + SELECT a.record_id AS c_bpartner_id, + a.created AS datetrx, + a.ad_attachmententry_id::text AS documentno, + a.filename AS description, + 'File'::character varying AS typ, + a.ad_client_id, + a.ad_org_id, + a.created, + a.createdby, + a.updated, + a.updatedby, + null::numeric As netamount, + null::numeric As grossamount, + a.ad_table_id::text AS ad_table_id, + a.ad_attachmententry_id AS record_id, + (291 * 1000000)::numeric + a.AD_AttachmentEntry_ReferencedRecord_v_id AS x_bpartner_history_id + FROM AD_AttachmentEntry_ReferencedRecord_v a + WHERE a.ad_table_id = 291::numeric; diff --git a/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5537340_sys_gh5850_add_netamount_grossamount_columns.sql b/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5537340_sys_gh5850_add_netamount_grossamount_columns.sql new file mode 100644 index 00000000000..1ea7105847d --- /dev/null +++ b/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5537340_sys_gh5850_add_netamount_grossamount_columns.sql @@ -0,0 +1,385 @@ +-- 2019-11-28T08:04:31.342Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,577396,0,'netamount',TO_TIMESTAMP('2019-11-28 10:04:31','YYYY-MM-DD HH24:MI:SS'),100,'U','Y','netamount','netamount',TO_TIMESTAMP('2019-11-28 10:04:31','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- 2019-11-28T08:04:31.345Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=577396 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- 2019-11-28T08:04:31.454Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,569682,577396,0,22,540148,'netamount',TO_TIMESTAMP('2019-11-28 10:04:31','YYYY-MM-DD HH24:MI:SS'),100,'U',131089,'Y','Y','N','N','N','N','N','N','N','N','N','netamount',TO_TIMESTAMP('2019-11-28 10:04:31','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- 2019-11-28T08:04:31.457Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=569682 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- 2019-11-28T08:04:31.461Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_Column_Translation_From_AD_Element(577396) +; + +-- 2019-11-28T08:04:31.588Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,577397,0,'grossamount',TO_TIMESTAMP('2019-11-28 10:04:31','YYYY-MM-DD HH24:MI:SS'),100,'U','Y','grossamount','grossamount',TO_TIMESTAMP('2019-11-28 10:04:31','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- 2019-11-28T08:04:31.590Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=577397 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID) +; + +-- 2019-11-28T08:04:31.684Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,569683,577397,0,22,540148,'grossamount',TO_TIMESTAMP('2019-11-28 10:04:31','YYYY-MM-DD HH24:MI:SS'),100,'U',131089,'Y','Y','N','N','N','N','N','N','N','N','N','grossamount',TO_TIMESTAMP('2019-11-28 10:04:31','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- 2019-11-28T08:04:31.686Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Column_ID=569683 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) +; + +-- 2019-11-28T08:04:31.687Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_Column_Translation_From_AD_Element(577397) +; + +-- 2019-11-28T08:15:38.485Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,DisplayLength,EntityType,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,569682,592815,0,542144,0,TO_TIMESTAMP('2019-11-28 10:15:38','YYYY-MM-DD HH24:MI:SS'),100,0,'D',0,'Y','Y','Y','N','N','N','N','N','netamount',130,90,0,1,1,TO_TIMESTAMP('2019-11-28 10:15:38','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- 2019-11-28T08:15:38.487Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Field_ID=592815 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- 2019-11-28T08:15:38.490Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_FieldTranslation_From_AD_Name_Element(577396) +; + +-- 2019-11-28T08:15:38.504Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +DELETE FROM AD_Element_Link WHERE AD_Field_ID=592815 +; + +-- 2019-11-28T08:15:38.511Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select AD_Element_Link_Create_Missing_Field(592815) +; + +-- 2019-11-28T08:15:53.437Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,DisplayLength,EntityType,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,569683,592816,0,542144,0,TO_TIMESTAMP('2019-11-28 10:15:53','YYYY-MM-DD HH24:MI:SS'),100,0,'D',0,'Y','Y','Y','N','N','N','N','N','grossamount',140,100,0,1,1,TO_TIMESTAMP('2019-11-28 10:15:53','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- 2019-11-28T08:15:53.440Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N') AND t.AD_Field_ID=592816 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID) +; + +-- 2019-11-28T08:15:53.443Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_FieldTranslation_From_AD_Name_Element(577397) +; + +-- 2019-11-28T08:15:53.447Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +DELETE FROM AD_Element_Link WHERE AD_Field_ID=592816 +; + +-- 2019-11-28T08:15:53.455Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select AD_Element_Link_Create_Missing_Field(592816) +; + +-- 2019-11-28T08:16:18.906Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Field SET ColumnDisplayLength=10, DisplayLength=10,Updated=TO_TIMESTAMP('2019-11-28 10:16:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=592815 +; + +-- 2019-11-28T08:16:27.116Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Field SET ColumnDisplayLength=10, DisplayLength=10,Updated=TO_TIMESTAMP('2019-11-28 10:16:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=592816 +; + +-- 2019-11-28T08:17:31.273Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Element_ID,AD_UI_ElementGroup_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,592815,0,542144,564365,543213,'F',TO_TIMESTAMP('2019-11-28 10:17:31','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','N',0,'netamount',100,0,0,TO_TIMESTAMP('2019-11-28 10:17:31','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- 2019-11-28T08:17:59.157Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Element_ID,AD_UI_ElementGroup_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,592816,0,542144,564366,543213,'F',TO_TIMESTAMP('2019-11-28 10:17:59','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','N',0,'grossamount',100,0,0,TO_TIMESTAMP('2019-11-28 10:17:59','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- 2019-11-28T08:18:22.612Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_UI_Element SET SeqNo=110,Updated=TO_TIMESTAMP('2019-11-28 10:18:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=564366 +; + +-- 2019-11-28T08:18:58.889Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2019-11-28 10:18:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=564366 +; + +-- 2019-11-28T08:18:58.894Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2019-11-28 10:18:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=564365 +; + +-- 2019-11-28T08:19:32.250Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=90,Updated=TO_TIMESTAMP('2019-11-28 10:19:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=564365 +; + +-- 2019-11-28T08:19:32.252Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=100,Updated=TO_TIMESTAMP('2019-11-28 10:19:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=564366 +; + +-- 2019-11-28T08:25:32.285Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_UI_Element SET Name='Nettowert',Updated=TO_TIMESTAMP('2019-11-28 10:25:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=564365 +; + +-- 2019-11-28T08:26:22.246Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_UI_Element SET Name='netamount',Updated=TO_TIMESTAMP('2019-11-28 10:26:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=564365 +; + +-- 2019-11-28T08:48:08.170Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Element SET ColumnName='Nettwert',Updated=TO_TIMESTAMP('2019-11-28 10:48:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577396 +; + +-- 2019-11-28T08:48:08.174Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Column SET ColumnName='Nettwert', Name='netamount', Description=NULL, Help=NULL WHERE AD_Element_ID=577396 +; + +-- 2019-11-28T08:48:08.175Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Process_Para SET ColumnName='Nettwert', Name='netamount', Description=NULL, Help=NULL, AD_Element_ID=577396 WHERE UPPER(ColumnName)='NETTWERT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- 2019-11-28T08:48:08.188Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Process_Para SET ColumnName='Nettwert', Name='netamount', Description=NULL, Help=NULL WHERE AD_Element_ID=577396 AND IsCentrallyMaintained='Y' +; + +-- 2019-11-28T08:49:22.292Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Element SET ColumnName='netamount',Updated=TO_TIMESTAMP('2019-11-28 10:49:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577396 +; + +-- 2019-11-28T08:49:22.293Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Column SET ColumnName='netamount', Name='netamount', Description=NULL, Help=NULL WHERE AD_Element_ID=577396 +; + +-- 2019-11-28T08:49:22.294Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Process_Para SET ColumnName='netamount', Name='netamount', Description=NULL, Help=NULL, AD_Element_ID=577396 WHERE UPPER(ColumnName)='NETAMOUNT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- 2019-11-28T08:49:22.295Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Process_Para SET ColumnName='netamount', Name='netamount', Description=NULL, Help=NULL WHERE AD_Element_ID=577396 AND IsCentrallyMaintained='Y' +; + +-- 2019-11-28T08:51:56.785Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Element_Trl SET Name='Nettwert',Updated=TO_TIMESTAMP('2019-11-28 10:51:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577396 AND AD_Language='de_CH' +; + +-- 2019-11-28T08:51:56.786Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577396,'de_CH') +; + +-- 2019-11-28T08:52:20.491Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Element_Trl SET PrintName='Nettwert',Updated=TO_TIMESTAMP('2019-11-28 10:52:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577396 AND AD_Language='de_CH' +; + +-- 2019-11-28T08:52:20.492Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577396,'de_CH') +; + +-- 2019-11-28T08:53:06.332Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Element_Trl SET Name='Nettwert', PrintName='Nettwert',Updated=TO_TIMESTAMP('2019-11-28 10:53:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577396 AND AD_Language='de_DE' +; + +-- 2019-11-28T08:53:06.332Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577396,'de_DE') +; + +-- 2019-11-28T08:53:06.343Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_ad_element_on_ad_element_trl_update(577396,'de_DE') +; + +-- 2019-11-28T08:53:06.344Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Column SET ColumnName='netamount', Name='Nettwert', Description=NULL, Help=NULL WHERE AD_Element_ID=577396 +; + +-- 2019-11-28T08:53:06.345Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Process_Para SET ColumnName='netamount', Name='Nettwert', Description=NULL, Help=NULL, AD_Element_ID=577396 WHERE UPPER(ColumnName)='NETAMOUNT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- 2019-11-28T08:53:06.346Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Process_Para SET ColumnName='netamount', Name='Nettwert', Description=NULL, Help=NULL WHERE AD_Element_ID=577396 AND IsCentrallyMaintained='Y' +; + +-- 2019-11-28T08:53:06.346Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Field SET Name='Nettwert', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=577396) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 577396) +; + +-- 2019-11-28T08:53:06.380Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_PrintFormatItem pi SET PrintName='Nettwert', Name='Nettwert' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=577396) +; + +-- 2019-11-28T08:53:06.381Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Tab SET Name='Nettwert', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 577396 +; + +-- 2019-11-28T08:53:06.382Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_WINDOW SET Name='Nettwert', Description=NULL, Help=NULL WHERE AD_Element_ID = 577396 +; + +-- 2019-11-28T08:53:06.382Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Menu SET Name = 'Nettwert', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 577396 +; + +-- 2019-11-28T08:54:02.276Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Element_Trl SET Name='xxx', PrintName='xxx',Updated=TO_TIMESTAMP('2019-11-28 10:54:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577396 AND AD_Language='en_US' +; + +-- 2019-11-28T08:54:02.277Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577396,'en_US') +; + +-- 2019-11-28T08:54:41.949Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Element_Trl SET Name='netamount', PrintName='Net amount',Updated=TO_TIMESTAMP('2019-11-28 10:54:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577396 AND AD_Language='en_US' +; + +-- 2019-11-28T08:54:41.950Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577396,'en_US') +; + +-- 2019-11-28T08:57:28.692Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Element_Trl SET PrintName='Gross amount',Updated=TO_TIMESTAMP('2019-11-28 10:57:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577397 AND AD_Language='en_US' +; + +-- 2019-11-28T08:57:28.693Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577397,'en_US') +; + +-- 2019-11-28T08:58:34.306Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Element_Trl SET Name='Bruttowert', PrintName='Bruttowert',Updated=TO_TIMESTAMP('2019-11-28 10:58:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577397 AND AD_Language='de_DE' +; + +-- 2019-11-28T08:58:34.307Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577397,'de_DE') +; + +-- 2019-11-28T08:58:34.311Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_ad_element_on_ad_element_trl_update(577397,'de_DE') +; + +-- 2019-11-28T08:58:34.316Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Column SET ColumnName='grossamount', Name='Bruttowert', Description=NULL, Help=NULL WHERE AD_Element_ID=577397 +; + +-- 2019-11-28T08:58:34.317Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Process_Para SET ColumnName='grossamount', Name='Bruttowert', Description=NULL, Help=NULL, AD_Element_ID=577397 WHERE UPPER(ColumnName)='GROSSAMOUNT' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- 2019-11-28T08:58:34.318Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Process_Para SET ColumnName='grossamount', Name='Bruttowert', Description=NULL, Help=NULL WHERE AD_Element_ID=577397 AND IsCentrallyMaintained='Y' +; + +-- 2019-11-28T08:58:34.318Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Field SET Name='Bruttowert', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=577397) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 577397) +; + +-- 2019-11-28T08:58:34.330Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_PrintFormatItem pi SET PrintName='Bruttowert', Name='Bruttowert' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=577397) +; + +-- 2019-11-28T08:58:34.331Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Tab SET Name='Bruttowert', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 577397 +; + +-- 2019-11-28T08:58:34.332Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_WINDOW SET Name='Bruttowert', Description=NULL, Help=NULL WHERE AD_Element_ID = 577397 +; + +-- 2019-11-28T08:58:34.332Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Menu SET Name = 'Bruttowert', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 577397 +; + +-- 2019-11-28T08:58:46.854Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Element_Trl SET Name='Bruttowert', PrintName='Bruttowert',Updated=TO_TIMESTAMP('2019-11-28 10:58:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577397 AND AD_Language='de_CH' +; + +-- 2019-11-28T08:58:46.854Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577397,'de_CH') +; + +-- 2019-11-28T08:59:13.570Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Element_Trl SET Name='Net amount',Updated=TO_TIMESTAMP('2019-11-28 10:59:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577396 AND AD_Language='en_US' +; + +-- 2019-11-28T08:59:13.571Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577396,'en_US') +; + +-- 2019-11-28T09:00:00.058Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +UPDATE AD_Element_Trl SET Name='Gross amount',Updated=TO_TIMESTAMP('2019-11-28 11:00:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=577397 AND AD_Language='en_US' +; + +-- 2019-11-28T09:00:00.059Z +-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator +/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(577397,'en_US') +; +