From c36a5c036815afff30c39edb34f92d1cb0e97b8b Mon Sep 17 00:00:00 2001 From: Diego Ruiz <12065321+d-ruiz@users.noreply.github.com> Date: Mon, 5 Jun 2023 14:42:22 +0200 Subject: [PATCH] =?UTF-8?q?IDEMPIERE-5751=20-=20Displayed=20Linked=20Order?= =?UTF-8?q?=20field=20in=20Purchase=20and=20Sales=20O=E2=80=A6=20(#1877)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * IDEMPIERE-5751 - Displayed Linked Order field in Purchase and Sales Order windows when the field is not null * IDEMPIERE-5751 - Move scripts to iD10 folder --- .../oracle/202306051322_IDEMPIERE-5751.sql | 19 +++++++++++++++++++ .../202306051322_IDEMPIERE-5751.sql | 16 ++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 migration/iD10/oracle/202306051322_IDEMPIERE-5751.sql create mode 100644 migration/iD10/postgresql/202306051322_IDEMPIERE-5751.sql diff --git a/migration/iD10/oracle/202306051322_IDEMPIERE-5751.sql b/migration/iD10/oracle/202306051322_IDEMPIERE-5751.sql new file mode 100644 index 0000000000..6045608d89 --- /dev/null +++ b/migration/iD10/oracle/202306051322_IDEMPIERE-5751.sql @@ -0,0 +1,19 @@ +-- IDEMPIERE-5751- Display the Link Order field when it is populated in Sales Order and Purchase Order +SELECT register_migration_script('202306051322_IDEMPIERE-5751.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Jun 5, 2023, 1:22:15 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', DisplayLogic='@Link_Order_ID:0@>0', IsReadOnly='Y',Updated=TO_TIMESTAMP('2023-06-05 13:22:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201611 +; + +-- Jun 5, 2023, 1:23:07 PM CEST +UPDATE AD_Field SET SeqNo=610, ColumnSpan=2,Updated=TO_TIMESTAMP('2023-06-05 13:23:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201611 +; + +-- Jun 5, 2023, 1:25:14 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLogic,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (207632,'Linked Order','This field links a sales order to the purchase order that is generated from it.',294,55322,'Y','@Link_Order_ID:0@>0 +',0,490,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-05 13:25:13','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-05 13:25:13','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y','D','e72aa65f-6623-43e9-9716-ed76f569a7a0','N',490,1,2,1,'N','N','N','N') +; + diff --git a/migration/iD10/postgresql/202306051322_IDEMPIERE-5751.sql b/migration/iD10/postgresql/202306051322_IDEMPIERE-5751.sql new file mode 100644 index 0000000000..84f5fd5e37 --- /dev/null +++ b/migration/iD10/postgresql/202306051322_IDEMPIERE-5751.sql @@ -0,0 +1,16 @@ +-- IDEMPIERE-5751- Display the Link Order field when it is populated in Sales Order and Purchase Order +SELECT register_migration_script('202306051322_IDEMPIERE-5751.sql') FROM dual; + +-- Jun 5, 2023, 1:22:15 PM CEST +UPDATE AD_Field SET IsDisplayed='Y', DisplayLogic='@Link_Order_ID:0@>0', IsReadOnly='Y',Updated=TO_TIMESTAMP('2023-06-05 13:22:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201611 +; + +-- Jun 5, 2023, 1:23:07 PM CEST +UPDATE AD_Field SET SeqNo=610, ColumnSpan=2,Updated=TO_TIMESTAMP('2023-06-05 13:23:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201611 +; + +-- Jun 5, 2023, 1:25:14 PM CEST +INSERT INTO AD_Field (AD_Field_ID,Name,Description,AD_Tab_ID,AD_Column_ID,IsDisplayed,DisplayLogic,DisplayLength,SeqNo,SortNo,IsSameLine,IsHeading,IsFieldOnly,IsEncrypted,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadOnly,IsCentrallyMaintained,EntityType,AD_Field_UU,IsDisplayedGrid,SeqNoGrid,XPosition,ColumnSpan,NumLines,IsQuickEntry,IsDefaultFocus,IsAdvancedField,IsQuickForm) VALUES (207632,'Linked Order','This field links a sales order to the purchase order that is generated from it.',294,55322,'Y','@Link_Order_ID:0@>0 +',0,490,0,'N','N','N','N',0,0,'Y',TO_TIMESTAMP('2023-06-05 13:25:13','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2023-06-05 13:25:13','YYYY-MM-DD HH24:MI:SS'),100,'Y','Y','D','e72aa65f-6623-43e9-9716-ed76f569a7a0','N',490,1,2,1,'N','N','N','N') +; +