-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fenster für externe System-Meldungen (#10723)
#10691 Update View and update the zoom from an external system record to log
- Loading branch information
1 parent
acaf8f4
commit 1a160ee
Showing
3 changed files
with
330 additions
and
3 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...10-de.metas.adempiere/5580710_sys_gh10691_UpdateExternalSystem_Config_PInstance_Log_v.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
DROP VIEW IF EXISTS ExternalSystem_Config_PInstance_Log_v; | ||
|
||
CREATE OR REPLACE VIEW ExternalSystem_Config_PInstance_Log_v AS | ||
SELECT pi.ad_process_id, | ||
pil.AD_PInstance_Log_ID AS ExternalSystem_Config_PInstance_Log_v_ID, | ||
pip_request.info AS External_Request, | ||
pil.p_msg, | ||
pil.p_date, | ||
pi.ad_client_id, | ||
COALESCE( | ||
NULLIF(pi.record_id, '0'), /*Record_ID is not set then the process was called from AD_Scheduler */ | ||
cast_to_numeric_or_null(pip_config.p_string)) AS ExternalSystem_Config_ID, | ||
pi.ad_org_id, | ||
pi.ad_pinstance_id, | ||
pi.isprocessing, | ||
pi.errormsg, | ||
now() as created, | ||
100 as createdby, | ||
now() as updated, | ||
100 as updatedby, | ||
'Y' as isactive | ||
FROM ad_pinstance pi | ||
JOIN ad_pinstance_para pip_request ON pi.ad_pinstance_id = pip_request.ad_pinstance_id AND pip_request.parametername = 'External_Request' | ||
LEFT JOIN ad_pinstance_para pip_config ON pi.ad_pinstance_id = pip_config.ad_pinstance_id AND pip_config.parametername = 'ChildConfigId' | ||
JOIN ad_pinstance_log pil ON pil.ad_pinstance_id = pi.ad_pinstance_id | ||
WHERE pi.AD_Table_ID = get_table_id('ExternalSystem_Config') /*AD_Table_ID is not set then the process was called from AD_Scheduler */ | ||
OR pip_config.parametername = 'ChildConfigId' | ||
; |
Oops, something went wrong.