Implement [2598506] - FR - Implement Initial Client Setup

https://sourceforge.net/tracker2/?func=detail&atid=955896&aid=2598506&group_id=176962
Implemented as a process - the form VSetup can be deprecated now
This commit is contained in:
Carlos Ruiz 2009-02-14 17:09:33 +00:00
parent 5237d11828
commit 6a5dc09ce0
3 changed files with 753 additions and 0 deletions

View File

@ -0,0 +1,215 @@
/**********************************************************************
* This file is part of Adempiere ERP Bazaar *
* http://www.adempiere.org *
* *
* Copyright (C) Carlos Ruiz - globalqss *
* 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 *
* *
* Sponsors: *
* - Company (http://www.globalqss.com) *
***********************************************************************/
package org.adempiere.process;
import java.io.File;
import java.util.logging.Level;
import org.adempiere.exceptions.AdempiereException;
import org.adempiere.plaf.AdempierePLAF;
import org.compiere.apps.ADialog;
import org.compiere.model.MCurrency;
import org.compiere.model.MSetup;
import org.compiere.model.X_C_City;
import org.compiere.print.PrintUtil;
import org.compiere.process.ProcessInfoParameter;
import org.compiere.process.SvrProcess;
import org.compiere.util.DB;
import org.compiere.util.Env;
import org.compiere.util.KeyNamePair;
/**
* Process to create a new client (tenant)
*
* @author Carlos Ruiz
* [ 2598506 ] FR - Implement Initial Client Setup
*/
public class InitialClientSetup extends SvrProcess
{
// Process Parameters
private String p_ClientName = null;
private String p_OrgName = null;
private String p_AdminUserName = null;
private String p_NormalUserName = null;
private int p_C_Currency_ID = 0;
private int p_C_Country_ID = 0;
private int p_C_Region_ID = 0;
private String p_CityName = null;
private int p_C_City_ID = 0;
private boolean p_IsUseBPDimension = true;
private boolean p_IsUseProductDimension = true;
private boolean p_IsUseProjectDimension = false;
private boolean p_IsUseCampaignDimension = false;
private boolean p_IsUseSalesRegionDimension = false;
private String p_CoAFile = null;
/** WindowNo for this process */
public static final int WINDOW_THIS_PROCESS = 9999;
/**
* Prepare
*/
protected void prepare ()
{
ProcessInfoParameter[] para = getParameter();
for (int i = 0; i < para.length; i++)
{
String name = para[i].getParameterName();
if (para[i].getParameter() == null)
;
else if (name.equals("ClientName"))
p_ClientName = (String) para[i].getParameter();
else if (name.equals("OrgName"))
p_OrgName = (String) para[i].getParameter();
else if (name.equals("AdminUserName"))
p_AdminUserName = (String) para[i].getParameter();
else if (name.equals("NormalUserName"))
p_NormalUserName = (String) para[i].getParameter();
else if (name.equals("C_Currency_ID"))
p_C_Currency_ID = para[i].getParameterAsInt();
else if (name.equals("C_Country_ID"))
p_C_Country_ID = para[i].getParameterAsInt();
else if (name.equals("C_Region_ID"))
p_C_Region_ID = para[i].getParameterAsInt();
else if (name.equals("CityName"))
p_CityName = (String) para[i].getParameter();
else if (name.equals("C_City_ID"))
p_C_City_ID = para[i].getParameterAsInt();
else if (name.equals("IsUseBPDimension"))
p_IsUseBPDimension = para[i].getParameter().equals("Y");
else if (name.equals("IsUseProductDimension"))
p_IsUseProductDimension = para[i].getParameter().equals("Y");
else if (name.equals("IsUseProjectDimension"))
p_IsUseProjectDimension = para[i].getParameter().equals("Y");
else if (name.equals("IsUseCampaignDimension"))
p_IsUseCampaignDimension = para[i].getParameter().equals("Y");
else if (name.equals("IsUseSalesRegionDimension"))
p_IsUseSalesRegionDimension = para[i].getParameter().equals("Y");
else if (name.equals("CoAFile"))
p_CoAFile = (String) para[i].getParameter();
else
log.log(Level.SEVERE, "Unknown Parameter: " + name);
}
} // prepare
/**
* Process
* @return info
* @throws Exception
*/
protected String doIt () throws Exception
{
log.info("InitialClientSetup"
+ ": ClientName=" + p_ClientName
+ ", OrgName=" + p_OrgName
+ ", AdminUserName=" + p_AdminUserName
+ ", NormalUserName=" + p_NormalUserName
+ ", C_Currency_ID=" + p_C_Currency_ID
+ ", C_Country_ID=" + p_C_Country_ID
+ ", C_Region_ID=" + p_C_Region_ID
+ ", CityName=" + p_CityName
+ ", C_City_ID=" + p_C_City_ID
+ ", IsUseBPDimension=" + p_IsUseBPDimension
+ ", IsUseProductDimension=" + p_IsUseProductDimension
+ ", IsUseProjectDimension=" + p_IsUseProjectDimension
+ ", IsUseCampaignDimension=" + p_IsUseCampaignDimension
+ ", IsUseSalesRegionDimension=" + p_IsUseSalesRegionDimension
+ ", CoAFile=" + p_CoAFile
);
// Validations
// Validate Mandatory parameters
if ( p_ClientName == null || p_ClientName.length() == 0
|| p_OrgName == null || p_OrgName.length() == 0
|| p_AdminUserName == null || p_AdminUserName.length() == 0
|| p_NormalUserName == null || p_NormalUserName.length() == 0
|| p_C_Currency_ID <= 0
|| p_C_Country_ID <= 0
|| p_CoAFile == null || p_CoAFile.length() == 0
)
throw new IllegalArgumentException("Missing required parameters");
// Validate Uniqueness of client and users name
// Unique Client Name
if (DB.executeUpdate("UPDATE AD_CLient SET CreatedBy=0 WHERE Name=?", new Object[] {p_ClientName}, false, null) != 0)
throw new AdempiereException("@NotUnique@ " + p_ClientName);
// Unique User Names
if (DB.executeUpdate("UPDATE AD_User SET CreatedBy=0 WHERE Name=?", new Object[] {p_AdminUserName}, false, null) != 0)
throw new AdempiereException("@NotUnique@ " + p_AdminUserName);
if (DB.executeUpdate("UPDATE AD_User SET CreatedBy=0 WHERE Name=?", new Object[] {p_NormalUserName}, false, null) != 0)
throw new AdempiereException("@NotUnique@ " + p_NormalUserName);
// City_ID overrides CityName if both used
if (p_CityName != null && p_CityName.length() > 0 && p_C_City_ID > 0) {
X_C_City city = new X_C_City(getCtx(), p_C_City_ID, null);
p_CityName = city.getName();
}
// Validate existence and read permissions on CoA file
File coaFile = new File(p_CoAFile);
if (!coaFile.exists())
throw new AdempiereException("CoaFile " + p_CoAFile + " does not exist");
if (!coaFile.canRead())
throw new AdempiereException("Cannot read CoaFile " + p_CoAFile);
if (!coaFile.isFile())
throw new AdempiereException("CoaFile " + p_CoAFile + " is not a file");
if (coaFile.length() <= 0L)
throw new AdempiereException("CoaFile " + p_CoAFile + " is empty");
// Process
MSetup ms = new MSetup(Env.getCtx(), WINDOW_THIS_PROCESS);
if (! ms.createClient(p_ClientName, p_OrgName, p_AdminUserName, p_NormalUserName))
throw new AdempiereException("Create client failed");
addLog(ms.getInfo());
// Generate Accounting
MCurrency currency = MCurrency.get(getCtx(), p_C_Currency_ID);
KeyNamePair currency_kp = new KeyNamePair(p_C_Currency_ID, currency.getDescription());
if (!ms.createAccounting(currency_kp,
p_IsUseProductDimension, p_IsUseBPDimension, p_IsUseProjectDimension, p_IsUseCampaignDimension, p_IsUseSalesRegionDimension,
coaFile))
throw new AdempiereException("@AccountSetupError@");
// Generate Entities
ms.createEntities(p_C_Country_ID, p_CityName, p_C_Region_ID, p_C_Currency_ID);
addLog(ms.getInfo());
// Create Print Documents
PrintUtil.setupPrintForm(ms.getAD_Client_ID());
return "@OK@";
} // doIt
} // ASPGenerateLevel

View File

@ -0,0 +1,269 @@
-- Feb 14, 2009 10:26:49 AM COT
-- FR2598506 Implement Initial Client Setup
INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,Classname,Created,CreatedBy,EntityType,IsActive,IsBetaFunctionality,IsDirectPrint,IsReport,IsServerProcess,Name,ShowHelp,Statistic_Count,Statistic_Seconds,Updated,UpdatedBy,Value) VALUES ('4',0,0,53161,'org.adempiere.process.InitialClientSetup',TO_DATE('2009-02-14 10:26:47','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','N','N','N','Initial Client Setup Process','Y',0,0,TO_DATE('2009-02-14 10:26:47','YYYY-MM-DD HH24:MI:SS'),100,'InitialClientSetup')
;
-- Feb 14, 2009 10:26:49 AM COT
INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=53161 AND EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_ID!=t.AD_Process_ID)
;
-- Feb 14, 2009 10:26:49 AM COT
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53161,50002,TO_DATE('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:26:49 AM COT
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53161,0,TO_DATE('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:26:49 AM COT
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53161,102,TO_DATE('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:26:49 AM COT
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53161,103,TO_DATE('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:26:49 AM COT
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53161,50001,TO_DATE('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_DATE('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:27:04 AM COT
INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,Created,CreatedBy,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES ('P',0,53202,0,53161,TO_DATE('2009-02-14 10:27:03','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','N','N','Initial Client Setup Process',TO_DATE('2009-02-14 10:27:03','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:27:04 AM COT
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=53202 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID)
;
-- Feb 14, 2009 10:27:04 AM COT
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', SysDate, 0, SysDate, 0,t.AD_Tree_ID, 53202, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=53202)
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=225
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53202
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=261
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=148
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=529
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=397
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=531
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=530
;
-- Feb 14, 2009 10:28:55 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53282,10,'ClientName',TO_DATE('2009-02-14 10:28:54','YYYY-MM-DD HH24:MI:SS'),100,'D',60,'Y','Y','Y','N','Client Name',10,TO_DATE('2009-02-14 10:28:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:28:55 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53282 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:29:18 AM COT
UPDATE AD_Process_Para SET DefaultValue='client',Updated=TO_DATE('2009-02-14 10:29:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53282
;
-- Feb 14, 2009 10:29:55 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53283,10,'OrgName',TO_DATE('2009-02-14 10:29:55','YYYY-MM-DD HH24:MI:SS'),100,'org','D',60,'Y','Y','Y','N','Organization Name',10,TO_DATE('2009-02-14 10:29:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:29:55 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53283 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:30:44 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53284,10,'AdminUserName',TO_DATE('2009-02-14 10:30:43','YYYY-MM-DD HH24:MI:SS'),100,'clientAdmin','D',60,'Y','Y','Y','N','Administrative User Name',20,TO_DATE('2009-02-14 10:30:43','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:30:44 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53284 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:31:12 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53285,10,'NormalUserName',TO_DATE('2009-02-14 10:31:12','YYYY-MM-DD HH24:MI:SS'),100,'clientUser','D',60,'Y','Y','Y','N','Normal User Name',40,TO_DATE('2009-02-14 10:31:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:31:12 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53285 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:31:19 AM COT
UPDATE AD_Process_Para SET SeqNo=20,Updated=TO_DATE('2009-02-14 10:31:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53283
;
-- Feb 14, 2009 10:31:21 AM COT
UPDATE AD_Process_Para SET SeqNo=30,Updated=TO_DATE('2009-02-14 10:31:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53284
;
-- Feb 14, 2009 10:38:19 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,193,0,53161,53286,19,'C_Currency_ID',TO_DATE('2009-02-14 10:38:19','YYYY-MM-DD HH24:MI:SS'),100,'@SQL=SELECT MIN(cu.C_Currency_ID) AS DefaultValue FROM C_Currency cu JOIN C_Country co ON (co.C_Currency_ID = cu.C_Currency_ID) JOIN AD_Language l ON (co.AD_Language = l.AD_Language) WHERE l.AD_Language = ''@#AD_Language@''','The Currency for this record','D',0,'Indicates the Currency to be used when processing or reporting on this record','Y','Y','Y','N','Currency',50,TO_DATE('2009-02-14 10:38:19','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:38:20 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53286 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:44:07 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,192,0,53161,53287,19,'C_Country_ID',TO_DATE('2009-02-14 10:44:06','YYYY-MM-DD HH24:MI:SS'),100,'@SQL=SELECT MIN(co.C_Country_ID) AS DefaultValue FROM C_Country co JOIN AD_Language l ON (co.AD_Language = l.AD_Language) WHERE l.AD_Language = ''@#AD_Language@''','Country','D',0,'The Country defines a Country. Each Country must be defined before it can be used in any document.','Y','Y','Y','N','Country',60,TO_DATE('2009-02-14 10:44:06','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:44:07 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53287 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:45:57 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,209,0,53161,53288,19,153,'C_Region_ID',TO_DATE('2009-02-14 10:45:57','YYYY-MM-DD HH24:MI:SS'),100,'D',0,'Y','Y','N','N','Region',70,TO_DATE('2009-02-14 10:45:57','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:45:57 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53288 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:47:58 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53289,10,'CityName',TO_DATE('2009-02-14 10:47:58','YYYY-MM-DD HH24:MI:SS'),100,'D',60,'Y','Y','N','N','City Name',80,TO_DATE('2009-02-14 10:47:58','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:47:58 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53289 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:49:19 AM COT
INSERT INTO AD_Val_Rule (AD_Client_ID,AD_Org_ID,AD_Val_Rule_ID,Code,Created,CreatedBy,EntityType,IsActive,Name,Type,Updated,UpdatedBy) VALUES (0,0,52045,'C_City.C_Region_ID=@C_Region_ID@',TO_DATE('2009-02-14 10:49:17','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','C_City of Region','S',TO_DATE('2009-02-14 10:49:17','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:49:29 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1830,0,53161,53290,19,52045,'C_City_ID',TO_DATE('2009-02-14 10:49:28','YYYY-MM-DD HH24:MI:SS'),100,'D',60,'Y','Y','N','N','City',90,TO_DATE('2009-02-14 10:49:28','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:49:29 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53290 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:52:43 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53291,20,'IsUseBPDimension',TO_DATE('2009-02-14 10:52:42','YYYY-MM-DD HH24:MI:SS'),100,'Y','Use BP accounting dimension','D',0,'Define if this client will use business partner accounting dimension. This can be changed later in Accounting Schema window of the client.','Y','Y','Y','N','BP Accounting',100,TO_DATE('2009-02-14 10:52:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:52:43 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53291 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:53:18 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53292,20,'IsUseBPDimension',TO_DATE('2009-02-14 10:53:17','YYYY-MM-DD HH24:MI:SS'),100,'Y','Use Product accounting dimension','D',0,'Define if this client will use product accounting dimension. This can be changed later in Accounting Schema window of the client.','Y','Y','Y','N','Product Accounting',110,TO_DATE('2009-02-14 10:53:17','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:53:18 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53292 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:53:54 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53293,20,'IsUseProjectDimension',TO_DATE('2009-02-14 10:53:54','YYYY-MM-DD HH24:MI:SS'),100,'N','Use Project accounting dimension','D',0,'Define if this client will use project accounting dimension. This can be changed later in Accounting Schema window of the client.','Y','Y','Y','N','Project Accounting',120,TO_DATE('2009-02-14 10:53:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:53:54 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53293 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:54:01 AM COT
UPDATE AD_Process_Para SET ColumnName='IsUseProductDimension',Updated=TO_DATE('2009-02-14 10:54:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53292
;
-- Feb 14, 2009 10:54:27 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53294,20,'IsUseCampaignDimension',TO_DATE('2009-02-14 10:54:26','YYYY-MM-DD HH24:MI:SS'),100,'N','Use Campaign accounting dimension','D',0,'Define if this client will use campaign accounting dimension. This can be changed later in Accounting Schema window of the client.','Y','Y','Y','N','Campaign Accounting',130,TO_DATE('2009-02-14 10:54:26','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:54:27 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53294 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:54:56 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53295,20,'IsUseSalesRegionDimension',TO_DATE('2009-02-14 10:54:56','YYYY-MM-DD HH24:MI:SS'),100,'N','Use Sales Region accounting dimension','D',0,'Define if this client will use sales region accounting dimension. This can be changed later in Accounting Schema window of the client.','Y','Y','Y','N','Sales Region Accounting',140,TO_DATE('2009-02-14 10:54:56','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:54:56 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53295 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:55:43 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53296,39,'CoAFile',TO_DATE('2009-02-14 10:55:42','YYYY-MM-DD HH24:MI:SS'),100,'D',0,'Y','Y','Y','N','Chart of Accounts File',150,TO_DATE('2009-02-14 10:55:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:55:43 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53296 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:56:19 AM COT
UPDATE AD_Process_Para SET Description='Location of the chart of accounts to be used with this client. At this stage just the default accounts will be created.',Updated=TO_DATE('2009-02-14 10:56:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53296
;
-- Feb 14, 2009 10:56:19 AM COT
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53296
;

View File

@ -0,0 +1,269 @@
-- Feb 14, 2009 10:26:49 AM COT
-- FR2598506 Implement Initial Client Setup
INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,Classname,Created,CreatedBy,EntityType,IsActive,IsBetaFunctionality,IsDirectPrint,IsReport,IsServerProcess,Name,ShowHelp,Statistic_Count,Statistic_Seconds,Updated,UpdatedBy,Value) VALUES ('4',0,0,53161,'org.adempiere.process.InitialClientSetup',TO_TIMESTAMP('2009-02-14 10:26:47','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','N','N','N','Initial Client Setup Process','Y',0,0,TO_TIMESTAMP('2009-02-14 10:26:47','YYYY-MM-DD HH24:MI:SS'),100,'InitialClientSetup')
;
-- Feb 14, 2009 10:26:49 AM COT
INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=53161 AND EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_ID!=t.AD_Process_ID)
;
-- Feb 14, 2009 10:26:49 AM COT
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53161,50002,TO_TIMESTAMP('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:26:49 AM COT
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53161,0,TO_TIMESTAMP('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:26:49 AM COT
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53161,102,TO_TIMESTAMP('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:26:49 AM COT
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53161,103,TO_TIMESTAMP('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:26:49 AM COT
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53161,50001,TO_TIMESTAMP('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100,'Y',TO_TIMESTAMP('2009-02-14 10:26:49','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:27:04 AM COT
INSERT INTO AD_Menu ("action",AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,Created,CreatedBy,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES ('P',0,53202,0,53161,TO_TIMESTAMP('2009-02-14 10:27:03','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','N','N','Initial Client Setup Process',TO_TIMESTAMP('2009-02-14 10:27:03','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:27:04 AM COT
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=53202 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID)
;
-- Feb 14, 2009 10:27:04 AM COT
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0,t.AD_Tree_ID, 53202, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=53202)
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=225
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53202
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=261
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=148
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=529
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=397
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=531
;
-- Feb 14, 2009 10:27:08 AM COT
UPDATE AD_TreeNodeMM SET Parent_ID=156, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=530
;
-- Feb 14, 2009 10:28:55 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53282,10,'ClientName',TO_TIMESTAMP('2009-02-14 10:28:54','YYYY-MM-DD HH24:MI:SS'),100,'D',60,'Y','Y','Y','N','Client Name',10,TO_TIMESTAMP('2009-02-14 10:28:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:28:55 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53282 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:29:18 AM COT
UPDATE AD_Process_Para SET DefaultValue='client',Updated=TO_TIMESTAMP('2009-02-14 10:29:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53282
;
-- Feb 14, 2009 10:29:55 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53283,10,'OrgName',TO_TIMESTAMP('2009-02-14 10:29:55','YYYY-MM-DD HH24:MI:SS'),100,'org','D',60,'Y','Y','Y','N','Organization Name',10,TO_TIMESTAMP('2009-02-14 10:29:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:29:55 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53283 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:30:44 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53284,10,'AdminUserName',TO_TIMESTAMP('2009-02-14 10:30:43','YYYY-MM-DD HH24:MI:SS'),100,'clientAdmin','D',60,'Y','Y','Y','N','Administrative User Name',20,TO_TIMESTAMP('2009-02-14 10:30:43','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:30:44 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53284 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:31:12 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53285,10,'NormalUserName',TO_TIMESTAMP('2009-02-14 10:31:12','YYYY-MM-DD HH24:MI:SS'),100,'clientUser','D',60,'Y','Y','Y','N','Normal User Name',40,TO_TIMESTAMP('2009-02-14 10:31:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:31:12 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53285 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:31:19 AM COT
UPDATE AD_Process_Para SET SeqNo=20,Updated=TO_TIMESTAMP('2009-02-14 10:31:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53283
;
-- Feb 14, 2009 10:31:21 AM COT
UPDATE AD_Process_Para SET SeqNo=30,Updated=TO_TIMESTAMP('2009-02-14 10:31:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53284
;
-- Feb 14, 2009 10:38:20 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,193,0,53161,53286,19,'C_Currency_ID',TO_TIMESTAMP('2009-02-14 10:38:19','YYYY-MM-DD HH24:MI:SS'),100,'@SQL=SELECT MIN(cu.C_Currency_ID) AS DefaultValue FROM C_Currency cu JOIN C_Country co ON (co.C_Currency_ID = cu.C_Currency_ID) JOIN AD_Language l ON (co.AD_Language = l.AD_Language) WHERE l.AD_Language = ''@#AD_Language@''','The Currency for this record','D',0,'Indicates the Currency to be used when processing or reporting on this record','Y','Y','Y','N','Currency',50,TO_TIMESTAMP('2009-02-14 10:38:19','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:38:20 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53286 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:44:07 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,192,0,53161,53287,19,'C_Country_ID',TO_TIMESTAMP('2009-02-14 10:44:06','YYYY-MM-DD HH24:MI:SS'),100,'@SQL=SELECT MIN(co.C_Country_ID) AS DefaultValue FROM C_Country co JOIN AD_Language l ON (co.AD_Language = l.AD_Language) WHERE l.AD_Language = ''@#AD_Language@''','Country','D',0,'The Country defines a Country. Each Country must be defined before it can be used in any document.','Y','Y','Y','N','Country',60,TO_TIMESTAMP('2009-02-14 10:44:06','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:44:07 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53287 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:45:57 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,209,0,53161,53288,19,153,'C_Region_ID',TO_TIMESTAMP('2009-02-14 10:45:57','YYYY-MM-DD HH24:MI:SS'),100,'D',0,'Y','Y','N','N','Region',70,TO_TIMESTAMP('2009-02-14 10:45:57','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:45:57 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53288 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:47:58 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53289,10,'CityName',TO_TIMESTAMP('2009-02-14 10:47:58','YYYY-MM-DD HH24:MI:SS'),100,'D',60,'Y','Y','N','N','City Name',80,TO_TIMESTAMP('2009-02-14 10:47:58','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:47:58 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53289 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:49:19 AM COT
INSERT INTO AD_Val_Rule (AD_Client_ID,AD_Org_ID,AD_Val_Rule_ID,Code,Created,CreatedBy,EntityType,IsActive,Name,Type,Updated,UpdatedBy) VALUES (0,0,52045,'C_City.C_Region_ID=@C_Region_ID@',TO_TIMESTAMP('2009-02-14 10:49:17','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','C_City of Region','S',TO_TIMESTAMP('2009-02-14 10:49:17','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:49:29 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1830,0,53161,53290,19,52045,'C_City_ID',TO_TIMESTAMP('2009-02-14 10:49:28','YYYY-MM-DD HH24:MI:SS'),100,'D',60,'Y','Y','N','N','City',90,TO_TIMESTAMP('2009-02-14 10:49:28','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:49:29 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53290 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:52:43 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53291,20,'IsUseBPDimension',TO_TIMESTAMP('2009-02-14 10:52:42','YYYY-MM-DD HH24:MI:SS'),100,'Y','Use BP accounting dimension','D',0,'Define if this client will use business partner accounting dimension. This can be changed later in Accounting Schema window of the client.','Y','Y','Y','N','BP Accounting',100,TO_TIMESTAMP('2009-02-14 10:52:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:52:43 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53291 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:53:18 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53292,20,'IsUseBPDimension',TO_TIMESTAMP('2009-02-14 10:53:17','YYYY-MM-DD HH24:MI:SS'),100,'Y','Use Product accounting dimension','D',0,'Define if this client will use product accounting dimension. This can be changed later in Accounting Schema window of the client.','Y','Y','Y','N','Product Accounting',110,TO_TIMESTAMP('2009-02-14 10:53:17','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:53:18 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53292 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:53:54 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53293,20,'IsUseProjectDimension',TO_TIMESTAMP('2009-02-14 10:53:54','YYYY-MM-DD HH24:MI:SS'),100,'N','Use Project accounting dimension','D',0,'Define if this client will use project accounting dimension. This can be changed later in Accounting Schema window of the client.','Y','Y','Y','N','Project Accounting',120,TO_TIMESTAMP('2009-02-14 10:53:54','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:53:54 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53293 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:54:01 AM COT
UPDATE AD_Process_Para SET ColumnName='IsUseProductDimension',Updated=TO_TIMESTAMP('2009-02-14 10:54:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53292
;
-- Feb 14, 2009 10:54:27 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53294,20,'IsUseCampaignDimension',TO_TIMESTAMP('2009-02-14 10:54:26','YYYY-MM-DD HH24:MI:SS'),100,'N','Use Campaign accounting dimension','D',0,'Define if this client will use campaign accounting dimension. This can be changed later in Accounting Schema window of the client.','Y','Y','Y','N','Campaign Accounting',130,TO_TIMESTAMP('2009-02-14 10:54:26','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:54:27 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53294 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:54:56 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53295,20,'IsUseSalesRegionDimension',TO_TIMESTAMP('2009-02-14 10:54:56','YYYY-MM-DD HH24:MI:SS'),100,'N','Use Sales Region accounting dimension','D',0,'Define if this client will use sales region accounting dimension. This can be changed later in Accounting Schema window of the client.','Y','Y','Y','N','Sales Region Accounting',140,TO_TIMESTAMP('2009-02-14 10:54:56','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:54:56 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53295 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:55:43 AM COT
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53161,53296,39,'CoAFile',TO_TIMESTAMP('2009-02-14 10:55:42','YYYY-MM-DD HH24:MI:SS'),100,'D',0,'Y','Y','Y','N','Chart of Accounts File',150,TO_TIMESTAMP('2009-02-14 10:55:42','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Feb 14, 2009 10:55:43 AM COT
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53296 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Feb 14, 2009 10:56:19 AM COT
UPDATE AD_Process_Para SET Description='Location of the chart of accounts to be used with this client. At this stage just the default accounts will be created.',Updated=TO_TIMESTAMP('2009-02-14 10:56:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53296
;
-- Feb 14, 2009 10:56:19 AM COT
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53296
;