IDEMPIERE-5507: Sync Print format items with Report view columns fix (#1851)

* IDEMPIERE-5507: Sync Print format items with Report view columns fix

https://idempiere.atlassian.net/browse/IDEMPIERE-5507

* IDEMPIERE-5507: Sync Print format items with Report view columns fix

Filter print formats based on selected Report View

* IDEMPIERE-5507: Sync Print format items with Report view columns fix

Change the name of the process to a more accurate one
This commit is contained in:
Nicolas Micoud 2023-06-07 22:03:31 +02:00 committed by GitHub
parent d5d7aa45a2
commit 0cd091a91b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 2 deletions

View File

@ -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
;

View File

@ -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
;

View File

@ -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)")