hg merge release-6.2 (merge release6.2 into default)

This commit is contained in:
Carlos Ruiz 2019-03-29 17:47:51 -03:00
commit 0e4fc3a373
25 changed files with 3277 additions and 80 deletions

View File

@ -0,0 +1,15 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- IDEMPIERE-2895
-- Mar 26, 2019, 9:06:37 AM BRT
INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200125,'AD_Menu.Action - no Detail','S','AD_Ref_List.Value <> ''D''',0,0,'Y',TO_DATE('2019-03-26 09:06:36','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-26 09:06:36','YYYY-MM-DD HH24:MI:SS'),100,'D','a7067092-dff7-4e79-b277-7ee2131fcb69')
;
-- Mar 26, 2019, 9:06:48 AM BRT
UPDATE AD_Column SET AD_Val_Rule_ID=200125,Updated=TO_DATE('2019-03-26 09:06:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=232
;
SELECT register_migration_script('201903260907_IDEMPIERE-2895.sql') FROM dual
;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,11 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- IDEMPIERE-1085 Loading Info windows dynamically
-- Mar 26, 2019, 3:56:49 PM BRT
UPDATE AD_Column SET DefaultValue='@SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_InfoWindow',Updated=TO_DATE('2019-03-26 15:56:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210510
;
SELECT register_migration_script('201903261557_IDEMPIERE-1085.sql') FROM dual
;

View File

@ -0,0 +1,240 @@
SET SQLBLANKLINES ON
SET DEFINE OFF
-- IDEMPIERE-3936 Info Window to maintain Support Roles
-- Mar 27, 2019 11:32:10 AM BRT
UPDATE AD_Element SET Name='Role (All)', PrintName='Role (All)',Updated=TO_DATE('2019-03-27 11:32:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=203312
;
-- Mar 27, 2019 11:32:10 AM BRT
UPDATE AD_Column SET ColumnName='AD_AllRoles_V_ID', Name='Role (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203312
;
-- Mar 27, 2019 11:32:10 AM BRT
UPDATE AD_Process_Para SET ColumnName='AD_AllRoles_V_ID', Name='Role (All)', Description=NULL, Help=NULL, AD_Element_ID=203312 WHERE UPPER(ColumnName)='AD_ALLROLES_V_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Mar 27, 2019 11:32:10 AM BRT
UPDATE AD_Process_Para SET ColumnName='AD_AllRoles_V_ID', Name='Role (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203312 AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:10 AM BRT
UPDATE AD_InfoColumn SET ColumnName='AD_AllRoles_V_ID', Name='Role (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203312 AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:10 AM BRT
UPDATE AD_Field SET Name='Role (All)', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=203312) AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:10 AM BRT
UPDATE AD_PrintFormatItem SET PrintName='Role (All)', Name='Role (All)' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=203312)
;
-- Mar 27, 2019 11:32:21 AM BRT
UPDATE AD_Element SET Name='User (All)', PrintName='User (All)',Updated=TO_DATE('2019-03-27 11:32:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=203121
;
-- Mar 27, 2019 11:32:21 AM BRT
UPDATE AD_Column SET ColumnName='AD_AllUsers_V_ID', Name='User (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203121
;
-- Mar 27, 2019 11:32:21 AM BRT
UPDATE AD_Process_Para SET ColumnName='AD_AllUsers_V_ID', Name='User (All)', Description=NULL, Help=NULL, AD_Element_ID=203121 WHERE UPPER(ColumnName)='AD_ALLUSERS_V_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Mar 27, 2019 11:32:21 AM BRT
UPDATE AD_Process_Para SET ColumnName='AD_AllUsers_V_ID', Name='User (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203121 AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:21 AM BRT
UPDATE AD_InfoColumn SET ColumnName='AD_AllUsers_V_ID', Name='User (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203121 AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:21 AM BRT
UPDATE AD_Field SET Name='User (All)', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=203121) AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:21 AM BRT
UPDATE AD_PrintFormatItem SET PrintName='User (All)', Name='User (All)' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=203121)
;
-- Mar 27, 2019 11:32:30 AM BRT
UPDATE AD_Element SET Name='Client (All)', PrintName='Client (All)',Updated=TO_DATE('2019-03-27 11:32:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=203119
;
-- Mar 27, 2019 11:32:30 AM BRT
UPDATE AD_Column SET ColumnName='AD_AllClients_V_ID', Name='Client (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203119
;
-- Mar 27, 2019 11:32:30 AM BRT
UPDATE AD_Process_Para SET ColumnName='AD_AllClients_V_ID', Name='Client (All)', Description=NULL, Help=NULL, AD_Element_ID=203119 WHERE UPPER(ColumnName)='AD_ALLCLIENTS_V_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Mar 27, 2019 11:32:30 AM BRT
UPDATE AD_Process_Para SET ColumnName='AD_AllClients_V_ID', Name='Client (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203119 AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:30 AM BRT
UPDATE AD_InfoColumn SET ColumnName='AD_AllClients_V_ID', Name='Client (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203119 AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:30 AM BRT
UPDATE AD_Field SET Name='Client (All)', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=203119) AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:30 AM BRT
UPDATE AD_PrintFormatItem SET PrintName='Client (All)', Name='Client (All)' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=203119)
;
-- IDEMPIERE-3936 Info Window to maintain Support Roles
-- Mar 27, 2019 3:17:19 PM BRT
INSERT INTO AD_InfoWindow (AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Table_ID,EntityType,FromClause,Processing,AD_InfoWindow_UU,IsDefault,IsDistinct,OrderByClause,IsValid,SeqNo,IsShowInDashboard,MaxQueryRecords,isLoadPageNum) VALUES (200013,0,0,'Y',TO_DATE('2019-03-27 15:17:18','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:18','YYYY-MM-DD HH24:MI:SS'),100,'Role (All)',200255,'D','AD_AllRoles_V r','N','927cfb7d-e612-4a3b-a2dd-7799cfc08f80','Y','N','r.Name, r.AD_AllClients_V_ID','Y',0,'N',0,'Y')
;
-- Mar 27, 2019 3:17:19 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200148,0,0,'Y',TO_DATE('2019-03-27 15:17:19','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:19','YYYY-MM-DD HH24:MI:SS'),100,'Client (All)',200013,'D','r.AD_AllClients_V_ID',20,'Y','Y',203119,30,'1456a03c-c683-4b4b-acff-46b7e81106bc','Y','AD_AllClients_V_ID','=','N',20,'N','N')
;
-- Mar 27, 2019 3:17:20 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,QueryFunction,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200149,0,0,'Y',TO_DATE('2019-03-27 15:17:19','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:19','YYYY-MM-DD HH24:MI:SS'),100,'Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',200013,'D','r.Name',10,'Y','Y',469,10,'146d9ab8-e4c2-4d07-b833-44ce35198407','Y','Name','Like','Upper','Y',10,'N','N')
;
-- Mar 27, 2019 3:17:20 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,QueryFunction,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200150,0,0,'Y',TO_DATE('2019-03-27 15:17:20','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:20','YYYY-MM-DD HH24:MI:SS'),100,'Description','Optional short description of the record','A description is limited to 255 characters.',200013,'D','r.Description',30,'Y','Y',275,10,'85e5a368-f95b-4e47-8b1d-bac24185ebf0','Y','Description','Like','Upper','N',30,'N','N')
;
-- Mar 27, 2019 3:17:21 PM BRT
INSERT INTO AD_InfoWindow (AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Table_ID,EntityType,FromClause,Processing,AD_InfoWindow_UU,WhereClause,IsDefault,IsDistinct,OrderByClause,IsValid,SeqNo,IsShowInDashboard,MaxQueryRecords,isLoadPageNum) VALUES (200014,0,0,'Y',TO_DATE('2019-03-27 15:17:20','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:20','YYYY-MM-DD HH24:MI:SS'),100,'Support Users vs Roles',200255,'D','AD_AllRoles_V r
JOIN AD_AllUsers_V u ON (1=1)
LEFT JOIN AD_AllUserRoles_V ur ON (ur.AD_AllUsers_V_ID=u.AD_AllUsers_V_ID AND ur.AD_AllRoles_V_ID=r.AD_AllRoles_V_ID)','N','ede4d13f-fefc-4de6-843b-3236c1941ce4','u.IsActive=''Y'' AND u.IsSupportUser=''Y'' AND r.IsActive=''Y'' AND r.RoleType=''SS'' AND r.AD_AllRoles_V_ID>0 AND u.AD_AllUsers_V_ID>100','N','N','u.Name, r.Name, u.AD_AllUsers_V_ID, r.AD_AllRoles_V_ID','Y',0,'N',0,'Y')
;
-- Mar 27, 2019 3:17:22 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,QueryFunction,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200151,0,0,'Y',TO_DATE('2019-03-27 15:17:21','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:21','YYYY-MM-DD HH24:MI:SS'),100,'Created','Date this record was created','The Created field indicates the date that this record was created.',200014,'D','ur.Created',50,'Y','N',245,15,'85c737d2-cb15-426a-979e-865a2b56ca50','Y','Created','=','Trunc','N',0,'N','N')
;
-- Mar 27, 2019 3:17:22 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,QueryFunction,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200152,0,0,'Y',TO_DATE('2019-03-27 15:17:22','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:22','YYYY-MM-DD HH24:MI:SS'),100,'Info','Information','The Information displays data from the source document line.',200014,'D','u.AD_AllUsers_V_ID||''|''||r.AD_AllRoles_V_ID',60,'N','N',1270,10,'13c207d6-4d04-4a39-ac4c-2a766d7f521c','Y','Info','Like','Upper','N',0,'N','N')
;
-- Mar 27, 2019 3:17:23 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200153,0,0,'Y',TO_DATE('2019-03-27 15:17:22','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:22','YYYY-MM-DD HH24:MI:SS'),100,'Test ID',200014,'D','ROW_NUMBER() OVER (ORDER BY u.AD_AllUsers_V_ID)',70,'N','N',592,19,'d0ce4aaa-8f97-4447-b0b5-062dc7ac46a3','Y','Test_ID','=','N',0,'N','Y')
;
-- Mar 27, 2019 3:17:24 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,AD_Reference_Value_ID,IsCentrallyMaintained,ColumnName,QueryOperator,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200154,0,0,'Y',TO_DATE('2019-03-27 15:17:23','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:23','YYYY-MM-DD HH24:MI:SS'),100,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200014,'D','COALESCE(ur.IsActive,''N'')',40,'Y','Y',348,17,'401a4472-3c34-4585-b2b7-8e75a961bf5e',319,'Y','IsActive','=','N',30,'N','N')
;
-- Mar 27, 2019 3:17:24 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,QueryFunction,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200155,0,0,'Y',TO_DATE('2019-03-27 15:17:24','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:24','YYYY-MM-DD HH24:MI:SS'),100,'Role Name',200014,'D','r.Name',80,'Y','Y',469,10,'d712c8bc-3855-4a43-9107-0e68f32baf4b','N','Name','Like','Upper','N',40,'N','N')
;
-- Mar 27, 2019 3:17:25 PM BRT
INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200132,'AD_AllUsers_V - Support Users','S','AD_AllUsers_V.IsSupportUser=''Y'' AND AD_AllUsers_V.AD_AllUsers_V_ID>100',0,0,'Y',TO_DATE('2019-03-27 15:17:24','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:24','YYYY-MM-DD HH24:MI:SS'),100,'D','2251d55c-2e14-4b2d-a154-cc57c29346ee')
;
-- Mar 27, 2019 3:17:25 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,AD_Val_Rule_ID,IsCentrallyMaintained,ColumnName,QueryOperator,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200156,0,0,'Y',TO_DATE('2019-03-27 15:17:25','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:25','YYYY-MM-DD HH24:MI:SS'),100,'User (All)',200014,'D','u.AD_AllUsers_V_ID',10,'Y','Y',203121,19,'4a190248-2ef9-48a4-bf72-5a0183e467c9',200132,'Y','AD_AllUsers_V_ID','=','N',10,'N','N')
;
-- Mar 27, 2019 3:17:26 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200157,0,0,'Y',TO_DATE('2019-03-27 15:17:25','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:25','YYYY-MM-DD HH24:MI:SS'),100,'Client (All)',200014,'D','r.AD_AllClients_V_ID',20,'Y','Y',203119,30,'d81e3460-fc90-4452-894e-4769c0551202','Y','AD_AllClients_V_ID','=','N',20,'N','N')
;
-- Mar 27, 2019 3:17:26 PM BRT
INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200133,'AD_AllRoles_V - Support Roles','S','AD_AllRoles_V.RoleType=''SS'' AND AD_AllRoles_V.AD_AllRoles_V_ID>0',0,0,'Y',TO_DATE('2019-03-27 15:17:26','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:26','YYYY-MM-DD HH24:MI:SS'),100,'D','fcc15cc7-9248-4cf0-8b46-e224a5ba1ec8')
;
-- Mar 27, 2019 3:17:27 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,AD_Val_Rule_ID,IsCentrallyMaintained,ColumnName,QueryOperator,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200158,0,0,'Y',TO_DATE('2019-03-27 15:17:26','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:26','YYYY-MM-DD HH24:MI:SS'),100,'Role (All)',200014,'D','r.AD_AllRoles_V_ID',30,'Y','Y',203312,30,'997b7097-85fd-4b24-84bc-b91c20bb44ea',200133,'Y','AD_AllRoles_V_ID','=','N',50,'N','N')
;
-- Mar 27, 2019 3:17:28 PM BRT
INSERT INTO AD_Process (AD_Process_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,IsReport,Value,IsDirectPrint,Classname,AccessLevel,EntityType,Statistic_Count,Statistic_Seconds,IsBetaFunctionality,IsServerProcess,ShowHelp,CopyFromProcess,AD_Process_UU) VALUES (200112,0,0,'Y',TO_DATE('2019-03-27 15:17:27','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:27','YYYY-MM-DD HH24:MI:SS'),100,'Activate','N','ActivateSupportRole','N','org.idempiere.process.MaintainSupportRoles','4','D',28,1098,'N','N','S','N','ef977b06-1d1b-4030-b3a7-f404c540767d')
;
-- Mar 27, 2019 3:17:28 PM BRT
INSERT INTO AD_Reference (AD_Reference_ID,Name,ValidationType,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,IsOrderByValue,AD_Reference_UU) VALUES (200167,'Activate/Deactivate/Delete','L',0,0,'Y',TO_DATE('2019-03-27 15:17:28','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:28','YYYY-MM-DD HH24:MI:SS'),100,'D','N','4fa8918c-0b18-40b6-a133-f7847d5d3404')
;
-- Mar 27, 2019 3:17:29 PM BRT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,Name,AD_Reference_ID,Value,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Ref_List_UU) VALUES (200467,'Delete',200167,'D',0,0,'Y',TO_DATE('2019-03-27 15:17:28','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:28','YYYY-MM-DD HH24:MI:SS'),100,'D','9d82b99a-e6e7-45ef-9b49-3eb25683de0d')
;
-- Mar 27, 2019 3:17:29 PM BRT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,Name,AD_Reference_ID,Value,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Ref_List_UU) VALUES (200468,'Deactivate',200167,'N',0,0,'Y',TO_DATE('2019-03-27 15:17:29','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:29','YYYY-MM-DD HH24:MI:SS'),100,'D','780929ff-b83f-4588-95d7-6b84a6457d9b')
;
-- Mar 27, 2019 3:17:30 PM BRT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,Name,AD_Reference_ID,Value,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Ref_List_UU) VALUES (200469,'Activate',200167,'Y',0,0,'Y',TO_DATE('2019-03-27 15:17:29','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:29','YYYY-MM-DD HH24:MI:SS'),100,'D','efec64a4-b591-49c9-8e99-f5b339383a82')
;
-- Mar 27, 2019 3:17:30 PM BRT
INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_Process_ID,SeqNo,AD_Reference_ID,AD_Reference_Value_ID,IsRange,FieldLength,IsMandatory,DefaultValue,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted) VALUES (200274,0,0,'Y',TO_DATE('2019-03-27 15:17:30','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:30','YYYY-MM-DD HH24:MI:SS'),100,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200112,10,17,200167,'N',1,'N','Y','IsActive','Y','D',348,'5e399381-93cb-492c-ab22-1cbd7483b231','N')
;
-- Mar 27, 2019 3:17:31 PM BRT
INSERT INTO AD_InfoProcess (AD_InfoProcess_ID,AD_InfoProcess_UU,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,SeqNo,AD_Process_ID,AD_InfoWindow_ID,LayoutType,AD_InfoColumn_ID) VALUES (200005,'642882e5-f464-433b-803f-70737552fa1a',0,0,'Y',TO_DATE('2019-03-27 15:17:30','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:30','YYYY-MM-DD HH24:MI:SS'),100,10,200112,200014,'B',200152)
;
-- Mar 27, 2019 3:17:31 PM BRT
INSERT INTO AD_Process (AD_Process_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,IsReport,Value,IsDirectPrint,Classname,AccessLevel,EntityType,Statistic_Count,Statistic_Seconds,IsBetaFunctionality,IsServerProcess,ShowHelp,CopyFromProcess,AD_Process_UU) VALUES (200113,0,0,'Y',TO_DATE('2019-03-27 15:17:31','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:31','YYYY-MM-DD HH24:MI:SS'),100,'Deactivate','N','DeactivateSupportRole','N','org.idempiere.process.MaintainSupportRoles','4','D',10,683,'N','N','S','N','7587be02-733c-4c7e-a40c-becbef1cc1d7')
;
-- Mar 27, 2019 3:17:32 PM BRT
INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_Process_ID,SeqNo,AD_Reference_ID,AD_Reference_Value_ID,IsRange,FieldLength,IsMandatory,DefaultValue,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted) VALUES (200275,0,0,'Y',TO_DATE('2019-03-27 15:17:31','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:31','YYYY-MM-DD HH24:MI:SS'),100,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200113,10,17,200167,'N',1,'N','N','IsActive','Y','D',348,'01786cdf-a245-4923-bda8-a146a4a60aa9','N')
;
-- Mar 27, 2019 3:17:32 PM BRT
INSERT INTO AD_InfoProcess (AD_InfoProcess_ID,AD_InfoProcess_UU,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,SeqNo,AD_Process_ID,AD_InfoWindow_ID,LayoutType,AD_InfoColumn_ID) VALUES (200006,'746b8cee-2eac-406e-8a3a-321b499b33e7',0,0,'Y',TO_DATE('2019-03-27 15:17:32','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:32','YYYY-MM-DD HH24:MI:SS'),100,20,200113,200014,'B',200152)
;
-- Mar 27, 2019 3:17:33 PM BRT
INSERT INTO AD_Process (AD_Process_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,IsReport,Value,IsDirectPrint,Classname,AccessLevel,EntityType,Statistic_Count,Statistic_Seconds,IsBetaFunctionality,IsServerProcess,ShowHelp,CopyFromProcess,AD_Process_UU) VALUES (200114,0,0,'Y',TO_DATE('2019-03-27 15:17:32','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:32','YYYY-MM-DD HH24:MI:SS'),100,'Delete','N','DeleteSupportRole','N','org.idempiere.process.MaintainSupportRoles','4','D',6,52,'N','N','S','N','dd2a56da-3f62-4bec-b186-6c2b0aead59b')
;
-- Mar 27, 2019 3:17:33 PM BRT
INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_Process_ID,SeqNo,AD_Reference_ID,AD_Reference_Value_ID,IsRange,FieldLength,IsMandatory,DefaultValue,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted) VALUES (200276,0,0,'Y',TO_DATE('2019-03-27 15:17:33','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:33','YYYY-MM-DD HH24:MI:SS'),100,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200114,10,17,200167,'N',1,'N','D','IsActive','Y','D',348,'0a1630f1-6c3c-448e-b3cb-94163dea26a8','N')
;
-- Mar 27, 2019 3:17:34 PM BRT
INSERT INTO AD_InfoProcess (AD_InfoProcess_ID,AD_InfoProcess_UU,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,SeqNo,AD_Process_ID,AD_InfoWindow_ID,LayoutType,AD_InfoColumn_ID) VALUES (200007,'aba479a2-91bf-4931-a21a-c5654975b637',0,0,'Y',TO_DATE('2019-03-27 15:17:33','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:33','YYYY-MM-DD HH24:MI:SS'),100,30,200114,200014,'B',200152)
;
-- Mar 27, 2019 3:17:34 PM BRT
INSERT INTO AD_Menu (AD_Menu_ID,Name,Action,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,AD_Menu_UU,AD_InfoWindow_ID) VALUES (200171,'Support Users vs Roles','I',0,0,'Y',TO_DATE('2019-03-27 15:17:34','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2019-03-27 15:17:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','D','Y','a86fb1cd-7266-4376-9705-dc5bc72f806e',200014)
;
-- Mar 27, 2019 3:17:34 PM BRT
INSERT INTO AD_TREENODEMM(AD_Client_ID, AD_Org_ID, CreatedBy, UpdatedBy, Parent_ID, SeqNo, AD_Tree_ID, Node_ID)VALUES(0, 0, 0, 0, 367,23, 10, 200171)
;
UPDATE ad_treenodemm SET ad_treenodemm_uu='e507c008-8a01-4937-880c-cc6a6e64f5b5' WHERE node_id=200171 AND ad_tree_id=10 AND ad_treenodemm_uu IS NULL;
-- Mar 27, 2019, 3:47:38 PM BRT
UPDATE AD_InfoWindow SET WhereClause='u.IsActive=''Y'' AND u.IsSupportUser=''Y'' AND r.IsActive=''Y'' AND r.RoleType=''SS'' AND r.AD_AllRoles_V_ID>0 AND u.AD_AllUsers_V_ID>100 AND r.IsMasterRole=''N''', IsValid='Y',Updated=TO_DATE('2019-03-27 15:47:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200014
;
-- Mar 27, 2019, 3:48:19 PM BRT
UPDATE AD_Val_Rule SET Code='AD_AllRoles_V.RoleType=''SS'' AND AD_AllRoles_V.AD_AllRoles_V_ID>0 AND AD_AllRoles_V.IsMasterRole=''N''',Updated=TO_DATE('2019-03-27 15:48:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200133
;
-- Mar 27, 2019, 3:49:15 PM BRT
UPDATE AD_InfoColumn SET IsDisplayed='N',Updated=TO_DATE('2019-03-27 15:49:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200155
;
SELECT register_migration_script('201903271134_IDEMPIERE-3936.sql') FROM dual
;

View File

@ -0,0 +1,12 @@
-- IDEMPIERE-2895
-- Mar 26, 2019, 9:06:37 AM BRT
INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200125,'AD_Menu.Action - no Detail','S','AD_Ref_List.Value <> ''D''',0,0,'Y',TO_TIMESTAMP('2019-03-26 09:06:36','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-26 09:06:36','YYYY-MM-DD HH24:MI:SS'),100,'D','a7067092-dff7-4e79-b277-7ee2131fcb69')
;
-- Mar 26, 2019, 9:06:48 AM BRT
UPDATE AD_Column SET AD_Val_Rule_ID=200125,Updated=TO_TIMESTAMP('2019-03-26 09:06:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=232
;
SELECT register_migration_script('201903260907_IDEMPIERE-2895.sql') FROM dual
;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,8 @@
-- IDEMPIERE-1085 Loading Info windows dynamically
-- Mar 26, 2019, 3:56:49 PM BRT
UPDATE AD_Column SET DefaultValue='@SQL=SELECT NVL(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_InfoWindow',Updated=TO_TIMESTAMP('2019-03-26 15:56:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=210510
;
SELECT register_migration_script('201903261557_IDEMPIERE-1085.sql') FROM dual
;

View File

@ -0,0 +1,237 @@
-- IDEMPIERE-3936 Info Window to maintain Support Roles
-- Mar 27, 2019 11:32:10 AM BRT
UPDATE AD_Element SET Name='Role (All)', PrintName='Role (All)',Updated=TO_TIMESTAMP('2019-03-27 11:32:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=203312
;
-- Mar 27, 2019 11:32:10 AM BRT
UPDATE AD_Column SET ColumnName='AD_AllRoles_V_ID', Name='Role (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203312
;
-- Mar 27, 2019 11:32:10 AM BRT
UPDATE AD_Process_Para SET ColumnName='AD_AllRoles_V_ID', Name='Role (All)', Description=NULL, Help=NULL, AD_Element_ID=203312 WHERE UPPER(ColumnName)='AD_ALLROLES_V_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Mar 27, 2019 11:32:10 AM BRT
UPDATE AD_Process_Para SET ColumnName='AD_AllRoles_V_ID', Name='Role (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203312 AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:10 AM BRT
UPDATE AD_InfoColumn SET ColumnName='AD_AllRoles_V_ID', Name='Role (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203312 AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:10 AM BRT
UPDATE AD_Field SET Name='Role (All)', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=203312) AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:10 AM BRT
UPDATE AD_PrintFormatItem SET PrintName='Role (All)', Name='Role (All)' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=203312)
;
-- Mar 27, 2019 11:32:21 AM BRT
UPDATE AD_Element SET Name='User (All)', PrintName='User (All)',Updated=TO_TIMESTAMP('2019-03-27 11:32:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=203121
;
-- Mar 27, 2019 11:32:21 AM BRT
UPDATE AD_Column SET ColumnName='AD_AllUsers_V_ID', Name='User (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203121
;
-- Mar 27, 2019 11:32:21 AM BRT
UPDATE AD_Process_Para SET ColumnName='AD_AllUsers_V_ID', Name='User (All)', Description=NULL, Help=NULL, AD_Element_ID=203121 WHERE UPPER(ColumnName)='AD_ALLUSERS_V_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Mar 27, 2019 11:32:21 AM BRT
UPDATE AD_Process_Para SET ColumnName='AD_AllUsers_V_ID', Name='User (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203121 AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:21 AM BRT
UPDATE AD_InfoColumn SET ColumnName='AD_AllUsers_V_ID', Name='User (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203121 AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:21 AM BRT
UPDATE AD_Field SET Name='User (All)', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=203121) AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:21 AM BRT
UPDATE AD_PrintFormatItem SET PrintName='User (All)', Name='User (All)' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=203121)
;
-- Mar 27, 2019 11:32:30 AM BRT
UPDATE AD_Element SET Name='Client (All)', PrintName='Client (All)',Updated=TO_TIMESTAMP('2019-03-27 11:32:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=203119
;
-- Mar 27, 2019 11:32:30 AM BRT
UPDATE AD_Column SET ColumnName='AD_AllClients_V_ID', Name='Client (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203119
;
-- Mar 27, 2019 11:32:30 AM BRT
UPDATE AD_Process_Para SET ColumnName='AD_AllClients_V_ID', Name='Client (All)', Description=NULL, Help=NULL, AD_Element_ID=203119 WHERE UPPER(ColumnName)='AD_ALLCLIENTS_V_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Mar 27, 2019 11:32:30 AM BRT
UPDATE AD_Process_Para SET ColumnName='AD_AllClients_V_ID', Name='Client (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203119 AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:30 AM BRT
UPDATE AD_InfoColumn SET ColumnName='AD_AllClients_V_ID', Name='Client (All)', Description=NULL, Help=NULL WHERE AD_Element_ID=203119 AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:30 AM BRT
UPDATE AD_Field SET Name='Client (All)', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=203119) AND IsCentrallyMaintained='Y'
;
-- Mar 27, 2019 11:32:30 AM BRT
UPDATE AD_PrintFormatItem SET PrintName='Client (All)', Name='Client (All)' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=203119)
;
-- IDEMPIERE-3936 Info Window to maintain Support Roles
-- Mar 27, 2019 3:17:19 PM BRT
INSERT INTO AD_InfoWindow (AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Table_ID,EntityType,FromClause,Processing,AD_InfoWindow_UU,IsDefault,IsDistinct,OrderByClause,IsValid,SeqNo,IsShowInDashboard,MaxQueryRecords,isLoadPageNum) VALUES (200013,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:18','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:18','YYYY-MM-DD HH24:MI:SS'),100,'Role (All)',200255,'D','AD_AllRoles_V r','N','927cfb7d-e612-4a3b-a2dd-7799cfc08f80','Y','N','r.Name, r.AD_AllClients_V_ID','Y',0,'N',0,'Y')
;
-- Mar 27, 2019 3:17:19 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200148,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:19','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:19','YYYY-MM-DD HH24:MI:SS'),100,'Client (All)',200013,'D','r.AD_AllClients_V_ID',20,'Y','Y',203119,30,'1456a03c-c683-4b4b-acff-46b7e81106bc','Y','AD_AllClients_V_ID','=','N',20,'N','N')
;
-- Mar 27, 2019 3:17:20 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,QueryFunction,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200149,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:19','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:19','YYYY-MM-DD HH24:MI:SS'),100,'Name','Alphanumeric identifier of the entity','The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',200013,'D','r.Name',10,'Y','Y',469,10,'146d9ab8-e4c2-4d07-b833-44ce35198407','Y','Name','Like','Upper','Y',10,'N','N')
;
-- Mar 27, 2019 3:17:20 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,QueryFunction,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200150,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:20','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:20','YYYY-MM-DD HH24:MI:SS'),100,'Description','Optional short description of the record','A description is limited to 255 characters.',200013,'D','r.Description',30,'Y','Y',275,10,'85e5a368-f95b-4e47-8b1d-bac24185ebf0','Y','Description','Like','Upper','N',30,'N','N')
;
-- Mar 27, 2019 3:17:21 PM BRT
INSERT INTO AD_InfoWindow (AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_Table_ID,EntityType,FromClause,Processing,AD_InfoWindow_UU,WhereClause,IsDefault,IsDistinct,OrderByClause,IsValid,SeqNo,IsShowInDashboard,MaxQueryRecords,isLoadPageNum) VALUES (200014,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:20','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:20','YYYY-MM-DD HH24:MI:SS'),100,'Support Users vs Roles',200255,'D','AD_AllRoles_V r
JOIN AD_AllUsers_V u ON (1=1)
LEFT JOIN AD_AllUserRoles_V ur ON (ur.AD_AllUsers_V_ID=u.AD_AllUsers_V_ID AND ur.AD_AllRoles_V_ID=r.AD_AllRoles_V_ID)','N','ede4d13f-fefc-4de6-843b-3236c1941ce4','u.IsActive=''Y'' AND u.IsSupportUser=''Y'' AND r.IsActive=''Y'' AND r.RoleType=''SS'' AND r.AD_AllRoles_V_ID>0 AND u.AD_AllUsers_V_ID>100','N','N','u.Name, r.Name, u.AD_AllUsers_V_ID, r.AD_AllRoles_V_ID','Y',0,'N',0,'Y')
;
-- Mar 27, 2019 3:17:22 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,QueryFunction,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200151,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:21','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:21','YYYY-MM-DD HH24:MI:SS'),100,'Created','Date this record was created','The Created field indicates the date that this record was created.',200014,'D','ur.Created',50,'Y','N',245,15,'85c737d2-cb15-426a-979e-865a2b56ca50','Y','Created','=','Trunc','N',0,'N','N')
;
-- Mar 27, 2019 3:17:22 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,QueryFunction,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200152,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:22','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:22','YYYY-MM-DD HH24:MI:SS'),100,'Info','Information','The Information displays data from the source document line.',200014,'D','u.AD_AllUsers_V_ID||''|''||r.AD_AllRoles_V_ID',60,'N','N',1270,10,'13c207d6-4d04-4a39-ac4c-2a766d7f521c','Y','Info','Like','Upper','N',0,'N','N')
;
-- Mar 27, 2019 3:17:23 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200153,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:22','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:22','YYYY-MM-DD HH24:MI:SS'),100,'Test ID',200014,'D','ROW_NUMBER() OVER (ORDER BY u.AD_AllUsers_V_ID)',70,'N','N',592,19,'d0ce4aaa-8f97-4447-b0b5-062dc7ac46a3','Y','Test_ID','=','N',0,'N','Y')
;
-- Mar 27, 2019 3:17:24 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,AD_Reference_Value_ID,IsCentrallyMaintained,ColumnName,QueryOperator,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200154,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:23','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:23','YYYY-MM-DD HH24:MI:SS'),100,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200014,'D','COALESCE(ur.IsActive,''N'')',40,'Y','Y',348,17,'401a4472-3c34-4585-b2b7-8e75a961bf5e',319,'Y','IsActive','=','N',30,'N','N')
;
-- Mar 27, 2019 3:17:24 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,QueryFunction,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200155,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:24','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:24','YYYY-MM-DD HH24:MI:SS'),100,'Role Name',200014,'D','r.Name',80,'Y','Y',469,10,'d712c8bc-3855-4a43-9107-0e68f32baf4b','N','Name','Like','Upper','N',40,'N','N')
;
-- Mar 27, 2019 3:17:25 PM BRT
INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200132,'AD_AllUsers_V - Support Users','S','AD_AllUsers_V.IsSupportUser=''Y'' AND AD_AllUsers_V.AD_AllUsers_V_ID>100',0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:24','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:24','YYYY-MM-DD HH24:MI:SS'),100,'D','2251d55c-2e14-4b2d-a154-cc57c29346ee')
;
-- Mar 27, 2019 3:17:25 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,AD_Val_Rule_ID,IsCentrallyMaintained,ColumnName,QueryOperator,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200156,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:25','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:25','YYYY-MM-DD HH24:MI:SS'),100,'User (All)',200014,'D','u.AD_AllUsers_V_ID',10,'Y','Y',203121,19,'4a190248-2ef9-48a4-bf72-5a0183e467c9',200132,'Y','AD_AllUsers_V_ID','=','N',10,'N','N')
;
-- Mar 27, 2019 3:17:26 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,IsCentrallyMaintained,ColumnName,QueryOperator,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200157,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:25','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:25','YYYY-MM-DD HH24:MI:SS'),100,'Client (All)',200014,'D','r.AD_AllClients_V_ID',20,'Y','Y',203119,30,'d81e3460-fc90-4452-894e-4769c0551202','Y','AD_AllClients_V_ID','=','N',20,'N','N')
;
-- Mar 27, 2019 3:17:26 PM BRT
INSERT INTO AD_Val_Rule (AD_Val_Rule_ID,Name,Type,Code,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Val_Rule_UU) VALUES (200133,'AD_AllRoles_V - Support Roles','S','AD_AllRoles_V.RoleType=''SS'' AND AD_AllRoles_V.AD_AllRoles_V_ID>0',0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:26','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:26','YYYY-MM-DD HH24:MI:SS'),100,'D','fcc15cc7-9248-4cf0-8b46-e224a5ba1ec8')
;
-- Mar 27, 2019 3:17:27 PM BRT
INSERT INTO AD_InfoColumn (AD_InfoColumn_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,AD_InfoWindow_ID,EntityType,SelectClause,SeqNo,IsDisplayed,IsQueryCriteria,AD_Element_ID,AD_Reference_ID,AD_InfoColumn_UU,AD_Val_Rule_ID,IsCentrallyMaintained,ColumnName,QueryOperator,IsIdentifier,SeqNoSelection,IsMandatory,IsKey) VALUES (200158,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:26','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:26','YYYY-MM-DD HH24:MI:SS'),100,'Role (All)',200014,'D','r.AD_AllRoles_V_ID',30,'Y','Y',203312,30,'997b7097-85fd-4b24-84bc-b91c20bb44ea',200133,'Y','AD_AllRoles_V_ID','=','N',50,'N','N')
;
-- Mar 27, 2019 3:17:28 PM BRT
INSERT INTO AD_Process (AD_Process_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,IsReport,Value,IsDirectPrint,Classname,AccessLevel,EntityType,Statistic_Count,Statistic_Seconds,IsBetaFunctionality,IsServerProcess,ShowHelp,CopyFromProcess,AD_Process_UU) VALUES (200112,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:27','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:27','YYYY-MM-DD HH24:MI:SS'),100,'Activate','N','ActivateSupportRole','N','org.idempiere.process.MaintainSupportRoles','4','D',28,1098,'N','N','S','N','ef977b06-1d1b-4030-b3a7-f404c540767d')
;
-- Mar 27, 2019 3:17:28 PM BRT
INSERT INTO AD_Reference (AD_Reference_ID,Name,ValidationType,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,IsOrderByValue,AD_Reference_UU) VALUES (200167,'Activate/Deactivate/Delete','L',0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:28','YYYY-MM-DD HH24:MI:SS'),100,'D','N','4fa8918c-0b18-40b6-a133-f7847d5d3404')
;
-- Mar 27, 2019 3:17:29 PM BRT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,Name,AD_Reference_ID,Value,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Ref_List_UU) VALUES (200467,'Delete',200167,'D',0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:28','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:28','YYYY-MM-DD HH24:MI:SS'),100,'D','9d82b99a-e6e7-45ef-9b49-3eb25683de0d')
;
-- Mar 27, 2019 3:17:29 PM BRT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,Name,AD_Reference_ID,Value,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Ref_List_UU) VALUES (200468,'Deactivate',200167,'N',0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:29','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:29','YYYY-MM-DD HH24:MI:SS'),100,'D','780929ff-b83f-4588-95d7-6b84a6457d9b')
;
-- Mar 27, 2019 3:17:30 PM BRT
INSERT INTO AD_Ref_List (AD_Ref_List_ID,Name,AD_Reference_ID,Value,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,EntityType,AD_Ref_List_UU) VALUES (200469,'Activate',200167,'Y',0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:29','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:29','YYYY-MM-DD HH24:MI:SS'),100,'D','efec64a4-b591-49c9-8e99-f5b339383a82')
;
-- Mar 27, 2019 3:17:30 PM BRT
INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_Process_ID,SeqNo,AD_Reference_ID,AD_Reference_Value_ID,IsRange,FieldLength,IsMandatory,DefaultValue,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted) VALUES (200274,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:30','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:30','YYYY-MM-DD HH24:MI:SS'),100,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200112,10,17,200167,'N',1,'N','Y','IsActive','Y','D',348,'5e399381-93cb-492c-ab22-1cbd7483b231','N')
;
-- Mar 27, 2019 3:17:31 PM BRT
INSERT INTO AD_InfoProcess (AD_InfoProcess_ID,AD_InfoProcess_UU,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,SeqNo,AD_Process_ID,AD_InfoWindow_ID,LayoutType,AD_InfoColumn_ID) VALUES (200005,'642882e5-f464-433b-803f-70737552fa1a',0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:30','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:30','YYYY-MM-DD HH24:MI:SS'),100,10,200112,200014,'B',200152)
;
-- Mar 27, 2019 3:17:31 PM BRT
INSERT INTO AD_Process (AD_Process_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,IsReport,Value,IsDirectPrint,Classname,AccessLevel,EntityType,Statistic_Count,Statistic_Seconds,IsBetaFunctionality,IsServerProcess,ShowHelp,CopyFromProcess,AD_Process_UU) VALUES (200113,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:31','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:31','YYYY-MM-DD HH24:MI:SS'),100,'Deactivate','N','DeactivateSupportRole','N','org.idempiere.process.MaintainSupportRoles','4','D',10,683,'N','N','S','N','7587be02-733c-4c7e-a40c-becbef1cc1d7')
;
-- Mar 27, 2019 3:17:32 PM BRT
INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_Process_ID,SeqNo,AD_Reference_ID,AD_Reference_Value_ID,IsRange,FieldLength,IsMandatory,DefaultValue,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted) VALUES (200275,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:31','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:31','YYYY-MM-DD HH24:MI:SS'),100,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200113,10,17,200167,'N',1,'N','N','IsActive','Y','D',348,'01786cdf-a245-4923-bda8-a146a4a60aa9','N')
;
-- Mar 27, 2019 3:17:32 PM BRT
INSERT INTO AD_InfoProcess (AD_InfoProcess_ID,AD_InfoProcess_UU,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,SeqNo,AD_Process_ID,AD_InfoWindow_ID,LayoutType,AD_InfoColumn_ID) VALUES (200006,'746b8cee-2eac-406e-8a3a-321b499b33e7',0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:32','YYYY-MM-DD HH24:MI:SS'),100,20,200113,200014,'B',200152)
;
-- Mar 27, 2019 3:17:33 PM BRT
INSERT INTO AD_Process (AD_Process_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,IsReport,Value,IsDirectPrint,Classname,AccessLevel,EntityType,Statistic_Count,Statistic_Seconds,IsBetaFunctionality,IsServerProcess,ShowHelp,CopyFromProcess,AD_Process_UU) VALUES (200114,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:32','YYYY-MM-DD HH24:MI:SS'),100,'Delete','N','DeleteSupportRole','N','org.idempiere.process.MaintainSupportRoles','4','D',6,52,'N','N','S','N','dd2a56da-3f62-4bec-b186-6c2b0aead59b')
;
-- Mar 27, 2019 3:17:33 PM BRT
INSERT INTO AD_Process_Para (AD_Process_Para_ID,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,Name,Description,Help,AD_Process_ID,SeqNo,AD_Reference_ID,AD_Reference_Value_ID,IsRange,FieldLength,IsMandatory,DefaultValue,ColumnName,IsCentrallyMaintained,EntityType,AD_Element_ID,AD_Process_Para_UU,IsEncrypted) VALUES (200276,0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:33','YYYY-MM-DD HH24:MI:SS'),100,'Active','The record is active in the system','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',200114,10,17,200167,'N',1,'N','D','IsActive','Y','D',348,'0a1630f1-6c3c-448e-b3cb-94163dea26a8','N')
;
-- Mar 27, 2019 3:17:34 PM BRT
INSERT INTO AD_InfoProcess (AD_InfoProcess_ID,AD_InfoProcess_UU,AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,SeqNo,AD_Process_ID,AD_InfoWindow_ID,LayoutType,AD_InfoColumn_ID) VALUES (200007,'aba479a2-91bf-4931-a21a-c5654975b637',0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:33','YYYY-MM-DD HH24:MI:SS'),100,30,200114,200014,'B',200152)
;
-- Mar 27, 2019 3:17:34 PM BRT
INSERT INTO AD_Menu (AD_Menu_ID,Name,"action",AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsSummary,IsSOTrx,IsReadOnly,EntityType,IsCentrallyMaintained,AD_Menu_UU,AD_InfoWindow_ID) VALUES (200171,'Support Users vs Roles','I',0,0,'Y',TO_TIMESTAMP('2019-03-27 15:17:34','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2019-03-27 15:17:34','YYYY-MM-DD HH24:MI:SS'),100,'N','Y','N','D','Y','a86fb1cd-7266-4376-9705-dc5bc72f806e',200014)
;
-- Mar 27, 2019 3:17:34 PM BRT
INSERT INTO AD_TREENODEMM(AD_Client_ID, AD_Org_ID, CreatedBy, UpdatedBy, Parent_ID, SeqNo, AD_Tree_ID, Node_ID)VALUES(0, 0, 0, 0, 367,23, 10, 200171)
;
UPDATE ad_treenodemm SET ad_treenodemm_uu='e507c008-8a01-4937-880c-cc6a6e64f5b5' WHERE node_id=200171 AND ad_tree_id=10 AND ad_treenodemm_uu IS NULL;
-- Mar 27, 2019, 3:47:38 PM BRT
UPDATE AD_InfoWindow SET WhereClause='u.IsActive=''Y'' AND u.IsSupportUser=''Y'' AND r.IsActive=''Y'' AND r.RoleType=''SS'' AND r.AD_AllRoles_V_ID>0 AND u.AD_AllUsers_V_ID>100 AND r.IsMasterRole=''N''', IsValid='Y',Updated=TO_TIMESTAMP('2019-03-27 15:47:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200014
;
-- Mar 27, 2019, 3:48:19 PM BRT
UPDATE AD_Val_Rule SET Code='AD_AllRoles_V.RoleType=''SS'' AND AD_AllRoles_V.AD_AllRoles_V_ID>0 AND AD_AllRoles_V.IsMasterRole=''N''',Updated=TO_TIMESTAMP('2019-03-27 15:48:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200133
;
-- Mar 27, 2019, 3:49:15 PM BRT
UPDATE AD_InfoColumn SET IsDisplayed='N',Updated=TO_TIMESTAMP('2019-03-27 15:49:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200155
;
SELECT register_migration_script('201903271134_IDEMPIERE-3936.sql') FROM dual
;

View File

@ -0,0 +1,119 @@
/***********************************************************************
* This file is part of iDempiere ERP Open Source *
* http://www.idempiere.org *
* *
* Copyright (C) Contributors *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
* as published by the Free Software Foundation; either version 2 *
* of the License, or (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the Free Software *
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
* MA 02110-1301, USA. *
* *
* Contributors: *
* - Carlos Ruiz - globalqss *
* Sponsored by FH *
**********************************************************************/
package org.idempiere.process;
import java.util.List;
import java.util.logging.Level;
import org.compiere.model.MRole;
import org.compiere.model.MUserRoles;
import org.compiere.model.Query;
import org.compiere.process.ProcessInfoParameter;
import org.compiere.process.SvrProcess;
import org.compiere.util.DB;
/**
* @author Carlos Ruiz - globalqss
*/
public class MaintainSupportRoles extends SvrProcess {
private String p_IsActive;
private static final String ACTION_ACTIVATE = "Y";
private static final String ACTION_DEACTIVATE = "N";
private static final String ACTION_DELETE = "D";
/**
* Prepare - e.g., get Parameters.
*/
protected void prepare() {
for (ProcessInfoParameter para : getParameter()) {
String name = para.getParameterName();
if ("IsActive".equals(name)) {
p_IsActive = para.getParameterAsString();
} else {
log.log(Level.SEVERE, "Unknown Parameter: " + name);
}
}
} // prepare
/**
* Perform process.
* @return Message
* @throws Exception
*/
protected String doIt() throws Exception
{
if (log.isLoggable(Level.INFO)) log.info("IsActive=" + p_IsActive);
List<List<Object>> rows = DB.getSQLArrayObjectsEx(get_TrxName(), "SELECT ViewID FROM T_Selection WHERE AD_PInstance_ID=?", getAD_PInstance_ID());
int cnt = 0;
if (rows != null) {
for (List<Object> row : rows) {
Object viewID = row.get(0);
if (viewID != null && viewID instanceof String) {
String[] ids = ((String)viewID).split("\\|");
int userID = Integer.valueOf(ids[0]);
int roleID = Integer.valueOf(ids[1]);
MUserRoles ur = new Query(getCtx(), MUserRoles.Table_Name, "AD_User_ID=? AND AD_Role_ID=?", get_TrxName())
.setParameters(userID, roleID)
.first();
if (ACTION_ACTIVATE.equals(p_IsActive)) {
if (ur != null) {
if (!ur.isActive()) {
ur.setIsActive(true);
ur.saveEx();
cnt++;
}
} else {
ur = new MUserRoles(getCtx(), userID, roleID, get_TrxName());
MRole role = MRole.get(getCtx(), roleID);
ur.set_ValueNoCheck ("AD_Client_ID", role.getAD_Client_ID());
ur.set_ValueNoCheck ("AD_Org_ID", 0);
ur.saveEx();
cnt++;
}
} else if (ACTION_DEACTIVATE.equals(p_IsActive)) {
if (ur != null && ur.isActive()) {
ur.setIsActive(false);
ur.saveEx();
cnt++;
}
} else if (ACTION_DELETE.equals(p_IsActive)) {
if (ur != null) {
ur.deleteEx(true);
ur.saveEx();
cnt++;
}
}
}
}
}
return cnt+" @Processed@";
} // doIt
} // MaintainSupportRoles

View File

@ -465,9 +465,10 @@ public class MConversionRate extends X_C_Conversion_Rate
return true;
} // beforeSave
private volatile static boolean recursiveCall = false;
@Override
protected boolean afterSave(boolean newRecord, boolean success) {
if (success) {
if (success && !recursiveCall) {
String whereClause = "ValidFrom=? AND ValidTo=? "
+ "AND C_Currency_ID=? AND C_Currency_ID_To=? "
+ "AND C_ConversionType_ID=? "
@ -490,9 +491,15 @@ public class MConversionRate extends X_C_Conversion_Rate
reciprocal.setC_Currency_ID(getC_Currency_ID_To());
reciprocal.setC_Currency_ID_To(getC_Currency_ID());
}
reciprocal.setDivideRate(getMultiplyRate());
reciprocal.setMultiplyRate(getDivideRate());
// avoid recalculation
reciprocal.set_Value(COLUMNNAME_DivideRate, getMultiplyRate());
reciprocal.set_Value(COLUMNNAME_MultiplyRate, getDivideRate());
recursiveCall = true;
try {
reciprocal.saveEx();
} finally {
recursiveCall = false;
}
}
return success;
}

View File

@ -189,7 +189,7 @@ public class WebDoc
m_topRight.addElement(new img("res:org/compiere/images/iD10030.png")
.setAlign(AlignType.RIGHT).setAlt("iDempiere"));
} else {
m_topRight.addElement(new img("images/header-logo.png")
m_topRight.addElement(new img("webui/theme/default/images/header-logo.png")
.setAlign(AlignType.RIGHT).setAlt("iDempiere"));
}
m_topRow.addElement(m_topRight);

View File

@ -189,7 +189,7 @@ public class WebLogin
m_session.invalidate ();
}
// Forward to unsecure /
WebUtil.createForwardPage(m_response, "Logout", "http://" + m_request.getServerName() + "/", 2);
WebUtil.createForwardPage(m_response, "Logout", m_request.getScheme() + "://" + m_request.getServerName() + ":" + m_request.getServerPort() + "/", 2);
}
// Send EMail *** Send Password EMail Request
else if ("SendEMail".equals(m_mode))

View File

@ -159,7 +159,7 @@ select count(*) from ad_migrationscript where name='$BASEFIX';" | $SILENTCMD | s
notify_error()
{
echo -e "$MSGERROR"
printf '\n%s\n' "Errors were found during the process (see message above) - please inform and integrate a fix to restart this process again"
printf '\n%s\n%s\n' "Error=true" "Errors were found during the process (see message above) - please inform and integrate a fix to restart this process again"
SUPPORTEMAIL=$(echo "set heading off
set feedback off
set pagesize 0

View File

@ -174,7 +174,7 @@ process_fix()
notify_error()
{
echo -e "$MSGERROR"
printf '\n%s\n' "Errors were found during the process (see message above) - please inform and integrate a fix to restart this process again"
printf '\n%s\n%s\n' "Error=true" "Errors were found during the process (see message above) - please inform and integrate a fix to restart this process again"
SUPPORTEMAIL=$($SILENTCMD -c "select supportemail from ad_system" | sed -e 's/ //g')
SENDMAIL=$(command -v sendmail)
FROM="$(whoami)@$(hostname)"

View File

@ -27,6 +27,7 @@ Import-Package: javax.jms;version="1.1.0",
org.restlet,
org.restlet.data,
org.restlet.ext.servlet,
org.restlet.ext.servlet.internal,
org.restlet.representation,
org.restlet.resource,
org.restlet.routing,

View File

@ -32,12 +32,12 @@
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<!-- <servlet>
<description>iDempiere Server Status Info</description>
<display-name>Server Status</display-name>
<servlet-name>StatusInfo</servlet-name>
<servlet-class>org.compiere.web.StatusInfo</servlet-class>
</servlet>
</servlet> -->
<servlet>
<description>iDempiere Server Monitor</description>
<display-name>iDempiere Monitor</display-name>
@ -46,31 +46,30 @@
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Restlet adapter -->
<servlet>
<!-- <servlet>
<servlet-name>RestletServlet</servlet-name>
<servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
<init-param>
<!-- Application class name -->
<param-name>org.restlet.application</param-name>
<param-value>org.adempiere.web.server.ServerApplication</param-value>
</init-param>
</servlet>
</servlet> -->
<servlet-mapping>
<servlet-name>JnlpDownloadServlet</servlet-name>
<url-pattern>*.jnlp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<!-- <servlet-mapping>
<servlet-name>StatusInfo</servlet-name>
<url-pattern>/statusInfo</url-pattern>
</servlet-mapping>
</servlet-mapping> -->
<servlet-mapping>
<servlet-name>idempiereMonitor</servlet-name>
<url-pattern>/idempiereMonitor/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<!-- <servlet-mapping>
<servlet-name>RestletServlet</servlet-name>
<url-pattern>/server/*</url-pattern>
</servlet-mapping>
</servlet-mapping> -->
<session-config>
<session-timeout>15</session-timeout>
</session-config>
@ -95,9 +94,9 @@
<web-resource-name>service</web-resource-name>
<url-pattern>/server/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<!-- <user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</user-data-constraint> -->
</security-constraint>
<welcome-file-list>
<welcome-file>idempiere.jsp</welcome-file>

View File

@ -43,7 +43,7 @@ public final class ConfirmPanel extends Div
/**
*
*/
private static final long serialVersionUID = 3257542169107223645L;
private static final long serialVersionUID = -5522843675498634948L;
/** Action String OK. */
public static final String A_OK = "Ok";
@ -114,6 +114,17 @@ public final class ConfirmPanel extends Div
return button;
}
public Button createButton(String name, String image, String tooltip)
{
Button button = ButtonFactory.createButton(name, image, tooltip);
button.setId(name);
buttonMap.put(name, button);
if (!Util.isEmpty(extraButtonSClass))
LayoutUtils.addSclass(extraButtonSClass, button);
return button;
}
/**
* create confirm panel with multiple options
* @param withCancelButton with cancel
@ -263,7 +274,7 @@ public final class ConfirmPanel extends Div
* @param imgName
* @return
*/
public Button addProcessButton (String btName, String imgName){
public Button addButton (String btName, String imgName){
Button btProcess = createButton(btName);
// replace default image with image set at info process
if (m_withImage && imgName != null && imgName.trim().length() > 0)
@ -272,6 +283,15 @@ public final class ConfirmPanel extends Div
return btProcess;
}
public Button addProcessButton (String btName, String imgName){
Button btProcess = createButton(btName, imgName, null);
// replace default image with image set at info process
if (m_withImage && imgName != null && imgName.trim().length() > 0)
btProcess.setImage(ThemeManager.getThemeResource("images/" + imgName));
addComponentsCenter(btProcess);
return btProcess;
}
/**
* add button to the left side of the confirm panel
* @param button button

View File

@ -45,7 +45,7 @@ public class DPDocumentStatus extends DashboardPanel implements EventListener<Ev
/**
*
*/
private static final long serialVersionUID = 8569879231642492255L;
private static final long serialVersionUID = 7904122964566112177L;
private WDocumentStatusPanel statusPanel;
@Override
@ -64,7 +64,8 @@ public class DPDocumentStatus extends DashboardPanel implements EventListener<Ev
super();
statusPanel = WDocumentStatusPanel.get();
if (statusPanel != null)
if (statusPanel == null)
return;
this.appendChild(statusPanel);
Toolbar recentItemsToolbar = new Toolbar();
@ -85,4 +86,9 @@ public class DPDocumentStatus extends DashboardPanel implements EventListener<Ev
statusPanel.updateUI();
}
}
@Override
public boolean isPooling() {
return true;
}
}

View File

@ -795,7 +795,7 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
String query = "SELECT t.TableName, c.ColumnName "
+ "FROM AD_Column c "
+ " INNER JOIN AD_Table t ON (c.AD_Table_ID=t.AD_Table_ID AND t.IsView='N') "
+ " INNER JOIN AD_Table t ON (c.AD_Table_ID=t.AD_Table_ID) "
+ "WHERE (c.ColumnName IN ('DocumentNo', 'Value', 'Name') OR c.IsIdentifier='Y')"
+ " AND c.AD_Reference_ID IN (10,14)"
+ " AND EXISTS (SELECT * FROM AD_Column cc WHERE cc.AD_Table_ID=t.AD_Table_ID"

View File

@ -378,7 +378,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
confirmPanel.addComponentsCenter(cbbProcess);
btCbbProcess = confirmPanel.addProcessButton(Msg.getMsg(Env.getCtx(), ConfirmPanel.A_PROCESS), null);
btCbbProcess = confirmPanel.addButton(Msg.getMsg(Env.getCtx(), ConfirmPanel.A_PROCESS), null);
btCbbProcess.addEventListener(Events.ON_CLICK, this);
}
@ -402,7 +402,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
confirmPanel.appendChild(ipMenu);
// init button to show menu
btMenuProcess = confirmPanel.addProcessButton("ProcessMenu", null);
btMenuProcess = confirmPanel.addButton("ProcessMenu", null);
btMenuProcess.setPopup("ipMenu, before_start");
}
}
@ -1633,8 +1633,8 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener, EventL
dataSql = dataSql + " " + otherClause;
}
if (m_sqlUserOrder != null && m_sqlUserOrder.trim().length() > 0)
dataSql = dataSql + m_sqlUserOrder;
if (indexOrderColumn > -1)
dataSql = dataSql + getUserOrderClause();
else
dataSql = dataSql + m_sqlOrder;

View File

@ -81,6 +81,7 @@ import org.compiere.model.X_AD_CtxHelp;
import org.compiere.process.ProcessInfo;
import org.compiere.util.CLogger;
import org.compiere.util.DB;
import org.compiere.util.DisplayType;
import org.compiere.util.Env;
import org.compiere.util.KeyNamePair;
import org.compiere.util.Msg;
@ -370,7 +371,10 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
protected String m_sqlCount;
/** Order By Clause */
protected String m_sqlOrder;
protected String m_sqlUserOrder;
private String m_sqlUserOrder;
/* sql column of infocolumn (can be alias) */
protected int indexOrderColumn = -1;
protected Boolean isColumnSortAscending = null;
/**ValueChange listeners */
private ArrayList<ValueChangeListener> listeners = new ArrayList<ValueChangeListener>();
/** Loading success indicator */
@ -718,10 +722,17 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
continue;
MInfoColumn infoColumnAppend = (MInfoColumn) modelHasInfoColumn.getAD_InfoColumn();
//TODO: improve read data to get data by data type of column.
String appendData = null;
Object appendData = null;
try {
if (DisplayType.isID(infoColumnAppend.getAD_Reference_ID())) {
appendData = rs.getInt(infoColumnAppend.getColumnName());
} else if (DisplayType.isDate(infoColumnAppend.getAD_Reference_ID())) {
appendData = rs.getTimestamp(infoColumnAppend.getColumnName());
} else if (DisplayType.isNumeric(infoColumnAppend.getAD_Reference_ID())) {
appendData = rs.getBigDecimal(infoColumnAppend.getColumnName());
} else {
appendData = rs.getString(infoColumnAppend.getColumnName());
}
} catch (SQLException e) {
appendData = null;
}
@ -1030,8 +1041,8 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
int index = sql.lastIndexOf(" WHERE");
sql.delete(index, sql.length());
}
if (m_sqlUserOrder != null && m_sqlUserOrder.trim().length() > 0)
sql.append(m_sqlUserOrder);
if (indexOrderColumn > -1)
sql.append(getUserOrderClause());
else
sql.append(m_sqlOrder);
dataSql = Msg.parseTranslation(Env.getCtx(), sql.toString()); // Variables
@ -1044,6 +1055,60 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
return dataSql;
}
/**
* build order clause of current sort order, and save it to m_sqlUserOrder
* @return
*/
protected String getUserOrderClause() {
if (indexOrderColumn < 0) {
return null;
}
if (m_sqlUserOrder == null) {
m_sqlUserOrder = getUserOrderClause (indexOrderColumn);
}
return m_sqlUserOrder;
}
/**
* build order clause of give column
* if call that function before init list will raise a NPE. care about your code
* @param col
* @return
*/
protected String getUserOrderClause(int col) {
String colsql = p_layout[col].getColSQL().trim();
int lastSpaceIdx = colsql.lastIndexOf(" ");
if (lastSpaceIdx > 0)
{
String tmp = colsql.substring(0, lastSpaceIdx).trim();
char last = tmp.charAt(tmp.length() - 1);
String alias = colsql.substring(lastSpaceIdx).trim();
boolean hasAlias = alias.matches("^[a-zA-Z_][a-zA-Z0-9_]*$"); // valid SQL alias - starts with letter then digits, letters, underscore
if (tmp.toLowerCase().endsWith("as") && hasAlias)
{
colsql = alias;
}
else if (!(last == '*' || last == '-' || last == '+' || last == '/' || last == '>' || last == '<' || last == '='))
{
if (alias.startsWith("\"") && alias.endsWith("\""))
{
colsql = alias;
}
else
{
if (hasAlias)
{
colsql = alias;
}
}
}
}
return String.format(" ORDER BY %s %s ", colsql, isColumnSortAscending? "" : "DESC");
}
private void addDoubleClickListener() {
Iterator<EventListener<? extends Event>> i = contentPanel.getEventListeners(Events.ON_DOUBLE_CLICK).iterator();
while (i.hasNext()) {
@ -1406,7 +1471,7 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
if (keyColumValue instanceof Integer){
keyValue = (Integer)keyColumValue;
}else {
String msg = "column play keyView should is integer";
String msg = "keyView column must be integer";
AdempiereException ex = new AdempiereException (msg);
log.severe(msg);
throw ex;
@ -2011,7 +2076,7 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
isRequeryByRunSuccessProcess = true;
Clients.response(new AuEcho(InfoPanel.this, "onQueryCallback", null));
}
recordSelectedData.clear();
}
//HengSin -- end --
@ -2198,10 +2263,15 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
for(Object obj : headers)
{
Listheader header = (Listheader) obj;
// idempiere use mix method. sometime call model method, sometime call component method
// so index can be difference on complicate case, just wait to fix
if (header.getColumnIndex() == indexOrderColumn)
header.setSortDirection(isColumnSortAscending?"ascending":"descending");
else
header.setSortDirection("natural");
}
}
m_sqlUserOrder="";
// m_sqlUserOrder="";
// event == null mean direct call from reset button
if (event == null)
m_count = 0;
@ -2336,49 +2406,22 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
public void sort(Comparator<Object> cmpr, boolean ascending) {
updateListSelected();
WListItemRenderer.ColumnComparator lsc = (WListItemRenderer.ColumnComparator) cmpr;
// keep column order
int col = lsc.getColumnIndex();
indexOrderColumn = col;
isColumnSortAscending = ascending;
m_sqlUserOrder = null; // clear cache value
if (m_useDatabasePaging)
{
int col = lsc.getColumnIndex();
String colsql = p_layout[col].getColSQL().trim();
int lastSpaceIdx = colsql.lastIndexOf(" ");
if (lastSpaceIdx > 0)
{
String tmp = colsql.substring(0, lastSpaceIdx).trim();
char last = tmp.charAt(tmp.length() - 1);
String alias = colsql.substring(lastSpaceIdx).trim();
boolean hasAlias = alias.matches("^[a-zA-Z_][a-zA-Z0-9_]*$"); // valid SQL alias - starts with letter then digits, letters, underscore
if (tmp.toLowerCase().endsWith("as") && hasAlias)
{
colsql = alias;
}
else if (!(last == '*' || last == '-' || last == '+' || last == '/' || last == '>' || last == '<' || last == '='))
{
if (alias.startsWith("\"") && alias.endsWith("\""))
{
colsql = alias;
}
else
{
if (hasAlias)
{
colsql = alias;
}
}
}
}
m_sqlUserOrder = " ORDER BY " + colsql;
if (!ascending)
m_sqlUserOrder += " DESC ";
executeQuery();
renderItems();
}
else
{
Collections.sort(line, lsc);
renderItems();
}
renderItems();
}
public boolean isLookup()

View File

@ -555,7 +555,7 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
ZKUpdateUtil.setVflex(south, "min");
ZKUpdateUtil.setHeight(winAdvanced, "100%");
ZKUpdateUtil.setWidth(winAdvanced, "99%");
ZKUpdateUtil.setWidth(winAdvanced, "100%");
winAdvanced.addEventListener(Events.ON_OK,this);
LayoutUtils.addSclass("find-window-advanced", winAdvanced);
@ -635,7 +635,7 @@ public class FindWindow extends Window implements EventListener<Event>, ValueCha
winAdvanced = new Window();
winLookupRecord = new Window();
Tabpanel tabPanel = new Tabpanel();
tabPanel.setStyle("height: 100%; width: 100%; padding-right: 2px; margin: auto;");
tabPanel.setStyle("height: 100%; width: 100%;");
tabPanel.appendChild(winLookupRecord);
tabPanel.setId("simpleSearch");
winMain.addTab(tabPanel, Msg.getMsg(Env.getCtx(), "Find").replaceAll("&", ""),false, true);

View File

@ -39,7 +39,7 @@ text-align: left;
height: 20px;
overflow: hidden;
}
.progressmeter-setupwizard-img {
.progressmeter-setupwizard-image {
display: inline-block;
background: #90EE90;
background-image: none;

View File

@ -7,7 +7,7 @@
--%>
<div id="header">
<div id="headerIcon">
<a href="http://<c:out value='${pageContext.request.serverName}'/>/">
<a href="${pageContext.request.scheme}://<c:out value='${pageContext.request.serverName}:${pageContext.request.serverPort}'/>/">
<img src="<c:out value='${ctx.webParam1}' default='AdempiereERP.gif'/>" alt="Adempiere - 1999-2007" /></a>
</div>
<div id="headerMenu">

View File

@ -31,9 +31,9 @@
<url-pattern>/orderServlet</url-pattern>
</web-resource-collection>
<user-data-constraint>
<!-- <user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</user-data-constraint> -->
</security-constraint>
<session-config>