diff --git a/migration/iD10/oracle/202305280918_IDEMPIERE-5507.sql b/migration/iD10/oracle/202305280918_IDEMPIERE-5507.sql new file mode 100644 index 0000000000..2c9bbf119a --- /dev/null +++ b/migration/iD10/oracle/202305280918_IDEMPIERE-5507.sql @@ -0,0 +1,17 @@ +-- IDEMPIERE-5507 +SELECT register_migration_script('202305280918_IDEMPIERE-5507.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- May 28, 2023, 9:18:45 AM CEST +UPDATE AD_Process_Para SET AD_Val_Rule_ID=200159,Updated=TO_TIMESTAMP('2023-05-28 09:18:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Process_Para_ID=200416 +; + +-- May 30, 2023, 6:48:44 AM CEST +UPDATE AD_Process SET Name='Synchronize Print Format based on Report View',Updated=TO_TIMESTAMP('2023-05-30 06:48:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Process_ID=200146 +; + +-- May 30, 2023, 6:48:44 AM CEST +UPDATE AD_Menu SET Name='Synchronize Print Format based on Report View', Description=NULL, IsActive='Y',Updated=TO_TIMESTAMP('2023-05-30 06:48:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Menu_ID=200220 +; diff --git a/migration/iD10/postgresql/202305280918_IDEMPIERE-5507.sql b/migration/iD10/postgresql/202305280918_IDEMPIERE-5507.sql new file mode 100644 index 0000000000..a78eb5f38c --- /dev/null +++ b/migration/iD10/postgresql/202305280918_IDEMPIERE-5507.sql @@ -0,0 +1,14 @@ +-- IDEMPIERE-5507 +SELECT register_migration_script('202305280918_IDEMPIERE-5507.sql') FROM dual; + +-- May 28, 2023, 9:18:45 AM CEST +UPDATE AD_Process_Para SET AD_Val_Rule_ID=200159,Updated=TO_TIMESTAMP('2023-05-28 09:18:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Process_Para_ID=200416 +; + +-- May 30, 2023, 6:48:44 AM CEST +UPDATE AD_Process SET Name='Synchronize Print Format based on Report View',Updated=TO_TIMESTAMP('2023-05-30 06:48:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Process_ID=200146 +; + +-- May 30, 2023, 6:48:44 AM CEST +UPDATE AD_Menu SET Name='Synchronize Print Format based on Report View', Description=NULL, IsActive='Y',Updated=TO_TIMESTAMP('2023-05-30 06:48:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=10 WHERE AD_Menu_ID=200220 +; diff --git a/org.adempiere.base.process/src/org/idempiere/process/PrintFormatItemSync.java b/org.adempiere.base.process/src/org/idempiere/process/PrintFormatItemSync.java index b1f5ffa92f..6707d504a5 100644 --- a/org.adempiere.base.process/src/org/idempiere/process/PrintFormatItemSync.java +++ b/org.adempiere.base.process/src/org/idempiere/process/PrintFormatItemSync.java @@ -117,8 +117,10 @@ public class PrintFormatItemSync extends SvrProcess { if (p_source.equals(SOURCE_TABLE)) whereClause.append(" AND AD_Column.AD_Table_ID = AD_ReportView.AD_Table_ID AND AD_ReportView.AD_ReportView_ID = ?"); - else if (p_source.equals(SOURCE_RV_COLUMN)) - whereClause.append(" AND AD_ReportView_Column.AD_ReportView_ID = ?"); + else if (p_source.equals(SOURCE_RV_COLUMN)) { + whereClause.append(" AND AD_ReportView_Column.AD_ReportView_ID = ? AND AD_ReportView.AD_ReportView_ID = ?"); + listParams.add(p_reportViewID); + } Query query = new Query(getCtx(), "AD_Column", whereClause.toString(), get_TrxName()) .addJoinClause("INNER JOIN AD_ReportView ON (AD_Column.AD_Table_ID = AD_ReportView.AD_Table_ID)")