From cbb8d70e6361916d4176175cda75356d6ab5ddef Mon Sep 17 00:00:00 2001 From: "Redhuan D. Oon" Date: Wed, 17 Dec 2008 16:35:27 +0000 Subject: [PATCH] REVERTING REVISION of [ FR 2432892 ] Re-org of migration directory --- .../185_1974950_CreateOutInvoice.sql | 125 ++ .../351a-352a/188_FB1980626_BOMImplosion.sql | 45 + .../351a-352a/189_BF1981079_print_bom.sql | 11 + .../190_Fix_ManufacturingWorkflow_window.sql | 188 ++ migration/351a-352a/191_BF1981833.sql | 5 + migration/351a-352a/192_BF1977318.sql | 18 + migration/351a-352a/193_FR1926882.sql | 53 + .../194_Fix_Manufacturing_Resource_Window.sql | 140 ++ migration/351a-352a/195_libero_fixes.sql | 46 + .../351a-352a/196_FB1983672_refactory.sql | 74 + .../197_Fix_InternalUseWindow_Attributes.sql | 5 + .../198_Fix_HR_Payroll_Identifier.sql | 3 + migration/351a-352a/199_Fix_EntityTypes.sql | 2 + .../200_BF1989305_createGWJournalBatch.sql | 17 + migration/351a-352a/201_FR1992542.sql | 24 + .../351a-352a/202_BF1994221_MfgWorkflows.sql | 24 + migration/351a-352a/203_BF1963128.sql | 15 + .../204_FR1999156_CreatePlanningData.sql | 40 + .../205_FR1999230_AddSafetyStock.sql | 23 + .../206_BF1980521_RVPPOrderBOMLine.sql | 267 +++ migration/351a-352a/207_BF2000549.sql | 20 + migration/351a-352a/208_BF2000598.sql | 5 + migration/351a-352a/209_BF2001820.sql | 10 + migration/351a-352a/210_FixDRP.sql | 205 ++ migration/351a-352a/211_BF1995132.sql | 50 + migration/351a-352a/213_FR2007264_MRP.sql | 35 + migration/351a-352a/214_BF2008762.sql | 28 + migration/351a-352a/215_BF1991523_CopyBOM.sql | 15 + .../351a-352a/216_BF2011489_BOM_Window.sql | 90 + migration/351a-352a/217_BF2012439.sql | 10 + migration/351a-352a/218_BF2012468.sql | 55 + .../219_FR2012882_PlanningHorizon.sql | 161 ++ ...22_FR2003044_AutocompleteForTextfields.sql | 269 +++ .../226_FinancialReportSourceCombination.sql | 1753 ++++++++++++++++ .../227_MessageVPayPrintPrintCheck.sql | 5 + .../351a-352a/228_BF2003790_BOM_Verify.sql | 25 + migration/351a-352a/229_FinReportSpeedUp.sql | 67 + .../230_BF2021146_VMRPDetail_and_Report.sql | 766 +++++++ .../351a-352a/231_SetPaymentProjectCharge.sql | 8 + .../232_FR_PayrollProjectActivityControl.sql | 360 ++++ .../233_fix_wrong_column_in_displaylogic.sql | 6 + migration/351a-352a/234_create_nextidfunc.sql | 2 + .../235_BF2027432_DistributionPrintOrder.sql | 1763 +++++++++++++++++ migration/351a-352a/236_gwperiodfix.sql | 5 + .../351a-352a/237_inactivateUnusedRoles.sql | 60 + .../238_Fix_Window_Tax_Rate_Parent.sql | 5 + migration/351a-352a/239_FR1783032.sql | 5 + migration/351a-352a/240_FR1810133.sql | 29 + migration/351a-352a/241_BF2019115.sql | 10 + .../242_Field_Movement_POReference.sql | 522 +++++ migration/351a-352a/243_FixCalloutDO.sql | 330 +++ .../244_FR2030865DistributionRunDO.sql | 134 ++ ...45_BF2031000_Detail_Order_Distribution.sql | 993 ++++++++++ migration/351a-352a/245_BF_2022372.sql | 26 + .../351a-352a/246_AD_User_IsInPayroll.sql | 87 + migration/351a-352a/247_BF1979978.sql | 11 + migration/351a-352a/248_FixReferenceType.sql | 11 + migration/351a-352a/249_version352a.sql | 6 + migration/351a-352a/build.xml | 50 + .../185_1974950_CreateOutInvoice.sql | 122 ++ .../postgresql/188_FB1980626_BOMImplosion.sql | 45 + .../postgresql/189_BF1981079_print_bom.sql | 11 + .../190_Fix_ManufacturingWorkflow_window.sql | 188 ++ .../351a-352a/postgresql/191_BF1981833.sql | 5 + .../351a-352a/postgresql/192_BF1977318.sql | 16 + .../351a-352a/postgresql/193_FR1926882.sql | 114 ++ .../194_Fix_Manufacturing_Resource_Window.sql | 140 ++ .../351a-352a/postgresql/195_libero_fixes.sql | 46 + .../postgresql/196_FB1983672_refactory.sql | 74 + .../197_Fix_InternalUseWindow_Attributes.sql | 5 + .../198_Fix_HR_Payroll_Identifier.sql | 3 + .../postgresql/199_Fix_EntityTypes.sql | 2 + .../200_BF1989305_createGWJournalBatch.sql | 17 + .../351a-352a/postgresql/201_FR1992542.sql | 24 + .../postgresql/202_BF1994221_MfgWorkflows.sql | 24 + .../351a-352a/postgresql/203_BF1963128.sql | 15 + .../204_FR1999156_CreatePlanningData.sql | 40 + .../205_FR1999230_AddSafetyStock.sql | 25 + .../206_BF1980521_RVPPOrderBOMLine.sql | 265 +++ .../351a-352a/postgresql/207_BF2000549.sql | 20 + .../351a-352a/postgresql/208_BF2000598.sql | 5 + .../351a-352a/postgresql/209_BF2001820.sql | 10 + migration/351a-352a/postgresql/210_FixDRP.sql | 204 ++ .../351a-352a/postgresql/211_BF1995132.sql | 50 + .../postgresql/213_FR2007264_MRP.sql | 35 + .../351a-352a/postgresql/214_BF2008762.sql | 28 + .../postgresql/215_BF1991523_CopyBOM.sql | 15 + .../postgresql/216_BF2011489_BOM_Window.sql | 90 + .../351a-352a/postgresql/217_BF2012439.sql | 10 + .../351a-352a/postgresql/218_BF2012468.sql | 55 + .../219_FR2012882_PlanningHorizon.sql | 160 ++ ...22_FR2003044_AutocompleteForTextfields.sql | 241 +++ .../226_FinancialReportSourceCombination.sql | 1760 ++++++++++++++++ .../227_MessageVPayPrintPrintCheck.sql | 4 + .../postgresql/228_BF2003790_BOM_Verify.sql | 25 + .../postgresql/229_FinReportSpeedUp.sql | 67 + .../230_BF2021146_VMRPDetail_and_Report.sql | 720 +++++++ .../231_SetPaymentProjectCharge.sql | 8 + .../232_FR_PayrollProjectActivityControl.sql | 360 ++++ .../233_fix_wrong_column_in_displaylogic.sql | 6 + .../postgresql/234_create_nextidfunc.sql | 7 + .../235_BF2027432_DistributionPrintOrder.sql | 1760 ++++++++++++++++ .../351a-352a/postgresql/236_gwperiodfix.sql | 5 + .../postgresql/237_inactivateUnusedRoles.sql | 60 + .../238_Fix_Window_Tax_Rate_Parent.sql | 5 + .../351a-352a/postgresql/239_FR1783032.sql | 5 + .../351a-352a/postgresql/240_FR1810133.sql | 29 + .../351a-352a/postgresql/241_BF2019115.sql | 15 + .../242_Field_Movement_POReference.sql | 522 +++++ .../351a-352a/postgresql/243_FixCalloutDO.sql | 330 +++ .../244_FR2030865DistributionRunDO.sql | 132 ++ ...45_BF2031000_Detail_Order_Distribution.sql | 991 +++++++++ .../351a-352a/postgresql/245_BF_2022372.sql | 29 + .../postgresql/246_AD_User_IsInPayroll.sql | 87 + .../351a-352a/postgresql/247_BF1979978.sql | 11 + .../postgresql/248_FixReferenceType.sql | 11 + .../351a-352a/postgresql/249_version352a.sql | 6 + migration/351a-352a/postgresql/build.xml | 50 + 118 files changed, 18226 insertions(+) create mode 100644 migration/351a-352a/185_1974950_CreateOutInvoice.sql create mode 100644 migration/351a-352a/188_FB1980626_BOMImplosion.sql create mode 100644 migration/351a-352a/189_BF1981079_print_bom.sql create mode 100644 migration/351a-352a/190_Fix_ManufacturingWorkflow_window.sql create mode 100644 migration/351a-352a/191_BF1981833.sql create mode 100644 migration/351a-352a/192_BF1977318.sql create mode 100644 migration/351a-352a/193_FR1926882.sql create mode 100644 migration/351a-352a/194_Fix_Manufacturing_Resource_Window.sql create mode 100644 migration/351a-352a/195_libero_fixes.sql create mode 100644 migration/351a-352a/196_FB1983672_refactory.sql create mode 100644 migration/351a-352a/197_Fix_InternalUseWindow_Attributes.sql create mode 100644 migration/351a-352a/198_Fix_HR_Payroll_Identifier.sql create mode 100644 migration/351a-352a/199_Fix_EntityTypes.sql create mode 100644 migration/351a-352a/200_BF1989305_createGWJournalBatch.sql create mode 100644 migration/351a-352a/201_FR1992542.sql create mode 100644 migration/351a-352a/202_BF1994221_MfgWorkflows.sql create mode 100644 migration/351a-352a/203_BF1963128.sql create mode 100644 migration/351a-352a/204_FR1999156_CreatePlanningData.sql create mode 100644 migration/351a-352a/205_FR1999230_AddSafetyStock.sql create mode 100644 migration/351a-352a/206_BF1980521_RVPPOrderBOMLine.sql create mode 100644 migration/351a-352a/207_BF2000549.sql create mode 100644 migration/351a-352a/208_BF2000598.sql create mode 100644 migration/351a-352a/209_BF2001820.sql create mode 100644 migration/351a-352a/210_FixDRP.sql create mode 100644 migration/351a-352a/211_BF1995132.sql create mode 100644 migration/351a-352a/213_FR2007264_MRP.sql create mode 100644 migration/351a-352a/214_BF2008762.sql create mode 100644 migration/351a-352a/215_BF1991523_CopyBOM.sql create mode 100644 migration/351a-352a/216_BF2011489_BOM_Window.sql create mode 100644 migration/351a-352a/217_BF2012439.sql create mode 100644 migration/351a-352a/218_BF2012468.sql create mode 100644 migration/351a-352a/219_FR2012882_PlanningHorizon.sql create mode 100755 migration/351a-352a/222_FR2003044_AutocompleteForTextfields.sql create mode 100644 migration/351a-352a/226_FinancialReportSourceCombination.sql create mode 100644 migration/351a-352a/227_MessageVPayPrintPrintCheck.sql create mode 100755 migration/351a-352a/228_BF2003790_BOM_Verify.sql create mode 100644 migration/351a-352a/229_FinReportSpeedUp.sql create mode 100644 migration/351a-352a/230_BF2021146_VMRPDetail_and_Report.sql create mode 100644 migration/351a-352a/231_SetPaymentProjectCharge.sql create mode 100644 migration/351a-352a/232_FR_PayrollProjectActivityControl.sql create mode 100644 migration/351a-352a/233_fix_wrong_column_in_displaylogic.sql create mode 100644 migration/351a-352a/234_create_nextidfunc.sql create mode 100644 migration/351a-352a/235_BF2027432_DistributionPrintOrder.sql create mode 100644 migration/351a-352a/236_gwperiodfix.sql create mode 100644 migration/351a-352a/237_inactivateUnusedRoles.sql create mode 100644 migration/351a-352a/238_Fix_Window_Tax_Rate_Parent.sql create mode 100644 migration/351a-352a/239_FR1783032.sql create mode 100644 migration/351a-352a/240_FR1810133.sql create mode 100644 migration/351a-352a/241_BF2019115.sql create mode 100644 migration/351a-352a/242_Field_Movement_POReference.sql create mode 100644 migration/351a-352a/243_FixCalloutDO.sql create mode 100644 migration/351a-352a/244_FR2030865DistributionRunDO.sql create mode 100644 migration/351a-352a/245_BF2031000_Detail_Order_Distribution.sql create mode 100644 migration/351a-352a/245_BF_2022372.sql create mode 100644 migration/351a-352a/246_AD_User_IsInPayroll.sql create mode 100644 migration/351a-352a/247_BF1979978.sql create mode 100644 migration/351a-352a/248_FixReferenceType.sql create mode 100755 migration/351a-352a/249_version352a.sql create mode 100644 migration/351a-352a/build.xml create mode 100644 migration/351a-352a/postgresql/185_1974950_CreateOutInvoice.sql create mode 100644 migration/351a-352a/postgresql/188_FB1980626_BOMImplosion.sql create mode 100644 migration/351a-352a/postgresql/189_BF1981079_print_bom.sql create mode 100644 migration/351a-352a/postgresql/190_Fix_ManufacturingWorkflow_window.sql create mode 100644 migration/351a-352a/postgresql/191_BF1981833.sql create mode 100644 migration/351a-352a/postgresql/192_BF1977318.sql create mode 100644 migration/351a-352a/postgresql/193_FR1926882.sql create mode 100644 migration/351a-352a/postgresql/194_Fix_Manufacturing_Resource_Window.sql create mode 100644 migration/351a-352a/postgresql/195_libero_fixes.sql create mode 100644 migration/351a-352a/postgresql/196_FB1983672_refactory.sql create mode 100644 migration/351a-352a/postgresql/197_Fix_InternalUseWindow_Attributes.sql create mode 100644 migration/351a-352a/postgresql/198_Fix_HR_Payroll_Identifier.sql create mode 100644 migration/351a-352a/postgresql/199_Fix_EntityTypes.sql create mode 100644 migration/351a-352a/postgresql/200_BF1989305_createGWJournalBatch.sql create mode 100644 migration/351a-352a/postgresql/201_FR1992542.sql create mode 100644 migration/351a-352a/postgresql/202_BF1994221_MfgWorkflows.sql create mode 100644 migration/351a-352a/postgresql/203_BF1963128.sql create mode 100644 migration/351a-352a/postgresql/204_FR1999156_CreatePlanningData.sql create mode 100644 migration/351a-352a/postgresql/205_FR1999230_AddSafetyStock.sql create mode 100644 migration/351a-352a/postgresql/206_BF1980521_RVPPOrderBOMLine.sql create mode 100644 migration/351a-352a/postgresql/207_BF2000549.sql create mode 100644 migration/351a-352a/postgresql/208_BF2000598.sql create mode 100644 migration/351a-352a/postgresql/209_BF2001820.sql create mode 100644 migration/351a-352a/postgresql/210_FixDRP.sql create mode 100644 migration/351a-352a/postgresql/211_BF1995132.sql create mode 100644 migration/351a-352a/postgresql/213_FR2007264_MRP.sql create mode 100644 migration/351a-352a/postgresql/214_BF2008762.sql create mode 100644 migration/351a-352a/postgresql/215_BF1991523_CopyBOM.sql create mode 100644 migration/351a-352a/postgresql/216_BF2011489_BOM_Window.sql create mode 100644 migration/351a-352a/postgresql/217_BF2012439.sql create mode 100644 migration/351a-352a/postgresql/218_BF2012468.sql create mode 100644 migration/351a-352a/postgresql/219_FR2012882_PlanningHorizon.sql create mode 100755 migration/351a-352a/postgresql/222_FR2003044_AutocompleteForTextfields.sql create mode 100644 migration/351a-352a/postgresql/226_FinancialReportSourceCombination.sql create mode 100644 migration/351a-352a/postgresql/227_MessageVPayPrintPrintCheck.sql create mode 100755 migration/351a-352a/postgresql/228_BF2003790_BOM_Verify.sql create mode 100644 migration/351a-352a/postgresql/229_FinReportSpeedUp.sql create mode 100644 migration/351a-352a/postgresql/230_BF2021146_VMRPDetail_and_Report.sql create mode 100644 migration/351a-352a/postgresql/231_SetPaymentProjectCharge.sql create mode 100644 migration/351a-352a/postgresql/232_FR_PayrollProjectActivityControl.sql create mode 100644 migration/351a-352a/postgresql/233_fix_wrong_column_in_displaylogic.sql create mode 100644 migration/351a-352a/postgresql/234_create_nextidfunc.sql create mode 100644 migration/351a-352a/postgresql/235_BF2027432_DistributionPrintOrder.sql create mode 100644 migration/351a-352a/postgresql/236_gwperiodfix.sql create mode 100644 migration/351a-352a/postgresql/237_inactivateUnusedRoles.sql create mode 100644 migration/351a-352a/postgresql/238_Fix_Window_Tax_Rate_Parent.sql create mode 100644 migration/351a-352a/postgresql/239_FR1783032.sql create mode 100644 migration/351a-352a/postgresql/240_FR1810133.sql create mode 100644 migration/351a-352a/postgresql/241_BF2019115.sql create mode 100644 migration/351a-352a/postgresql/242_Field_Movement_POReference.sql create mode 100644 migration/351a-352a/postgresql/243_FixCalloutDO.sql create mode 100644 migration/351a-352a/postgresql/244_FR2030865DistributionRunDO.sql create mode 100644 migration/351a-352a/postgresql/245_BF2031000_Detail_Order_Distribution.sql create mode 100644 migration/351a-352a/postgresql/245_BF_2022372.sql create mode 100644 migration/351a-352a/postgresql/246_AD_User_IsInPayroll.sql create mode 100644 migration/351a-352a/postgresql/247_BF1979978.sql create mode 100644 migration/351a-352a/postgresql/248_FixReferenceType.sql create mode 100755 migration/351a-352a/postgresql/249_version352a.sql create mode 100644 migration/351a-352a/postgresql/build.xml diff --git a/migration/351a-352a/185_1974950_CreateOutInvoice.sql b/migration/351a-352a/185_1974950_CreateOutInvoice.sql new file mode 100644 index 0000000000..7ca887d83e --- /dev/null +++ b/migration/351a-352a/185_1974950_CreateOutInvoice.sql @@ -0,0 +1,125 @@ +SET DEFINE OFF + +SET SQLBLANKLINES ON + +-- May 29, 2008 11:15:59 PM CDT +-- New Form Shipments & Invoices +INSERT INTO AD_Form (AD_Client_ID,AD_Form_ID,AD_Org_ID,AccessLevel,Classname,Created,CreatedBy,Description,EntityType,Help,IsActive,IsBetaFunctionality,Name,Updated,UpdatedBy) VALUES (0,53010,0,'1','org.eevolution.form.VInOutInvoiceGen',TO_DATE('2008-05-29 23:15:59','YYYY-MM-DD HH24:MI:SS'),0,'Select and generate shipments & Invoices','D','Generate Shipments & Invoices from Orders. +Select the orders to generate the shipments & Invoices for.','Y','N','Generate Shipments & Invoices (manual)',TO_DATE('2008-05-29 23:15:59','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- May 29, 2008 11:15:59 PM CDT +-- New Form Shipments & Invoices +INSERT INTO AD_Form_Trl (AD_Language,AD_Form_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Form_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_Form t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Form_ID=53010 AND EXISTS (SELECT * FROM AD_Form_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Form_ID!=t.AD_Form_ID) +; + +-- May 29, 2008 11:16:00 PM CDT +-- New Form Shipments & Invoices +INSERT INTO AD_Form_Access (AD_Client_ID,AD_Form_ID,AD_Org_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,53010,0,0,TO_DATE('2008-05-29 23:16:00','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2008-05-29 23:16:00','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- May 29, 2008 11:18:19 PM CDT +-- New Form Shipments & Invoices +INSERT INTO AD_Menu (AD_Client_ID,AD_Form_ID,AD_Menu_ID,AD_Org_ID,Action,Created,CreatedBy,Description,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (0,53010,53132,0,'X',TO_DATE('2008-05-29 23:18:19','YYYY-MM-DD HH24:MI:SS'),0,'Select and generate shipments & Invoices','D','Y','N','N','N','Generate Shipments & Invoices (manual)',TO_DATE('2008-05-29 23:18:19','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- May 29, 2008 11:18:19 PM CDT +-- New Form Shipments & Invoices +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=53132 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID) +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53083 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=459, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=346 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=459, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53132 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=459, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=193 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=459, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=180 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=459, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=494 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=459, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=444 +; + diff --git a/migration/351a-352a/188_FB1980626_BOMImplosion.sql b/migration/351a-352a/188_FB1980626_BOMImplosion.sql new file mode 100644 index 0000000000..8a2490cd6b --- /dev/null +++ b/migration/351a-352a/188_FB1980626_BOMImplosion.sql @@ -0,0 +1,45 @@ +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_Element SET ColumnName='Implosion', Name='Implosion',Updated=TO_DATE('2008-05-31 16:10:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53466 +; + +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53466 +; + +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_Column SET ColumnName='Implosion', Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.' WHERE AD_Element_ID=53466 +; + +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_Field SET Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53466) AND IsCentrallyMaintained='Y' +; + +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_Process_Para SET ColumnName='Implosion', Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.', AD_Element_ID=53466 WHERE UPPER(ColumnName)='IMPLOSION' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_Process_Para SET ColumnName='Implosion', Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.' WHERE AD_Element_ID=53466 AND IsCentrallyMaintained='Y' +; + +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_PrintFormatItem pi SET PrintName='Implosion', Name='Implosion' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53466) +; + +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_PrintFormatItem pi SET PrintName='Implosion', Name='Implosion' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53466) +; + +-- May 31, 2008 4:14:43 PM CDT +-- Fix Libero +ALTER TABLE T_BOMLine ADD Implosion CHAR(1) DEFAULT 'N' CHECK (Implosion IN ('Y','N')) +; + diff --git a/migration/351a-352a/189_BF1981079_print_bom.sql b/migration/351a-352a/189_BF1981079_print_bom.sql new file mode 100644 index 0000000000..087bb831da --- /dev/null +++ b/migration/351a-352a/189_BF1981079_print_bom.sql @@ -0,0 +1,11 @@ +-- June 1, 2008 1:20:00 PM EST +-- BF1981079 - MultiLevel BOM & Formula Detail +DROP VIEW RV_PP_PRODUCT_BOMLINE; + +CREATE VIEW RV_PP_PRODUCT_BOMLINE (SEQNO, LEVELNO, LEVELS, AD_CLIENT_ID, AD_ORG_ID, CREATEDBY, UPDATEDBY, UPDATED, CREATED, AD_PINSTANCE_ID, IMPLOSION, M_PRODUCT_ID, ISACTIVE, PP_PRODUCT_BOM_ID, PP_PRODUCT_BOMLINE_ID, DESCRIPTION, ISCRITICAL, COMPONENTTYPE, TM_PRODUCT_ID, C_UOM_ID, ISSUEMETHOD, LINE, M_ATTRIBUTESETINSTANCE_ID, SCRAP, VALIDFROM, VALIDTO, QTYBOM, QTYBATCH, ISQTYPERCENTAGE) AS + SELECT t.seqno, t.levelno, t.levels, t.ad_client_id, t.ad_org_id, t.createdby, t.updatedby, t.updated, t.created, t.ad_pinstance_id, t.implosion, t.sel_product_id, bl.isactive, bl.pp_product_bom_id, bl.pp_product_bomline_id, bl.description, bl.iscritical, bl.componenttype, t.m_product_id, bl.c_uom_id, bl.issuemethod, bl.line, bl.m_attributesetinstance_id, bl.scrap, bl.validfrom, bl.validto, bl.qtybom, bl.qtybatch, bl.isqtypercentage + FROM t_bomline t + LEFT JOIN pp_product_bomline bl ON t.pp_product_bomline_id = bl.pp_product_bomline_id + ORDER BY t.seqno; + +ALTER TABLE T_BOMLine DROP COLUMN Implotion; diff --git a/migration/351a-352a/190_Fix_ManufacturingWorkflow_window.sql b/migration/351a-352a/190_Fix_ManufacturingWorkflow_window.sql new file mode 100644 index 0000000000..6cbdbc4396 --- /dev/null +++ b/migration/351a-352a/190_Fix_ManufacturingWorkflow_window.sql @@ -0,0 +1,188 @@ +-- 02.06.2008 11:01:31 EEST +-- Fix Manufacturing Workflows window +DELETE FROM AD_Tab_Trl WHERE AD_Tab_ID=53018 +; + +-- 02.06.2008 11:01:31 EEST +-- Fix Manufacturing Workflows window +DELETE FROM AD_Tab WHERE AD_Tab_ID=53018 +; + +-- 02.06.2008 11:01:50 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Tab SET IsInsertRecord='N', TabLevel=1,Updated=TO_DATE('2008-06-02 11:01:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53019 +; + +-- 02.06.2008 11:03:13 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,701,56255,0,53019,TO_DATE('2008-06-02 11:03:12','YYYY-MM-DD HH24:MI:SS'),0,'The record is active in the system',1,'D','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.','Y','Y','Y','N','N','N','N','N','Active',TO_DATE('2008-06-02 11:03:12','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:14 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56255 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:14 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,1213,56256,0,53019,TO_DATE('2008-06-02 11:03:14','YYYY-MM-DD HH24:MI:SS'),0,'Client/Tenant for this installation.',22,'D','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','Y','Y','N','N','N','N','N','Client',TO_DATE('2008-06-02 11:03:14','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:14 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56256 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:15 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,316,56257,0,53019,TO_DATE('2008-06-02 11:03:14','YYYY-MM-DD HH24:MI:SS'),0,'Comment or Hint',2000,'D','The Help field contains a hint, comment or help about the use of this item.','Y','Y','Y','N','N','N','N','N','Comment/Help',TO_DATE('2008-06-02 11:03:14','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:15 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56257 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:16 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,315,56258,0,53019,TO_DATE('2008-06-02 11:03:15','YYYY-MM-DD HH24:MI:SS'),0,'Optional short description of the record',255,'D','A description is limited to 255 characters.','Y','Y','Y','N','N','N','N','N','Description',TO_DATE('2008-06-02 11:03:15','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:16 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56258 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:16 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,313,56259,0,53019,TO_DATE('2008-06-02 11:03:16','YYYY-MM-DD HH24:MI:SS'),0,'Language for this entity',6,'D','The Language identifies the language to use for display and formatting','Y','Y','Y','N','N','N','N','N','Language',TO_DATE('2008-06-02 11:03:16','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:16 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56259 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:17 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,314,56260,0,53019,TO_DATE('2008-06-02 11:03:16','YYYY-MM-DD HH24:MI:SS'),0,'Alphanumeric identifier of the entity',60,'D','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.','Y','Y','Y','N','N','N','N','N','Name',TO_DATE('2008-06-02 11:03:16','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:17 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56260 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:18 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,1214,56261,0,53019,TO_DATE('2008-06-02 11:03:17','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client',22,'D','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','Y','Y','N','N','N','N','N','Organization',TO_DATE('2008-06-02 11:03:17','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:18 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56261 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:19 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,317,56262,0,53019,TO_DATE('2008-06-02 11:03:18','YYYY-MM-DD HH24:MI:SS'),0,'This column is translated',1,'D','The Translated checkbox indicates if this column is translated.','Y','Y','Y','N','N','N','N','N','Translated',TO_DATE('2008-06-02 11:03:18','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:19 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56262 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:19 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,312,56263,0,53019,TO_DATE('2008-06-02 11:03:19','YYYY-MM-DD HH24:MI:SS'),0,'Workflow or combination of tasks',22,'D','The Workflow field identifies a unique Workflow in the system.','Y','Y','Y','N','N','N','N','N','Workflow',TO_DATE('2008-06-02 11:03:19','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:19 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56263 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=56256 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=56261 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=56263 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=56259 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=56255 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=56262 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=56260 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=56258 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=56257 +; + +-- 02.06.2008 11:07:03 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET DisplayLength=14, IsReadOnly='Y',Updated=TO_DATE('2008-06-02 11:07:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56256 +; + +-- 02.06.2008 11:07:12 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET DisplayLength=14, IsSameLine='Y',Updated=TO_DATE('2008-06-02 11:07:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56261 +; + +-- 02.06.2008 11:07:25 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET DisplayLength=14, IsReadOnly='Y',Updated=TO_DATE('2008-06-02 11:07:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56263 +; + +-- 02.06.2008 11:08:21 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET DisplayLength=14, IsDisplayed='Y', IsReadOnly='Y', IsSameLine='N', SeqNo=40,Updated=TO_DATE('2008-06-02 11:08:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56259 +; + +-- 02.06.2008 11:08:21 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET DisplayLength=60, IsDisplayed='Y', IsReadOnly='N', IsSameLine='N', SeqNo=80,Updated=TO_DATE('2008-06-02 11:08:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56258 +; + +-- 02.06.2008 11:08:21 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET DisplayLength=60, IsDisplayed='Y', IsReadOnly='N', IsSameLine='N', SeqNo=90,Updated=TO_DATE('2008-06-02 11:08:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56257 +; + +-- 02.06.2008 11:11:28 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Tab SET TabLevel=2,Updated=TO_DATE('2008-06-02 11:11:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53026 +; + diff --git a/migration/351a-352a/191_BF1981833.sql b/migration/351a-352a/191_BF1981833.sql new file mode 100644 index 0000000000..a24f3c0cce --- /dev/null +++ b/migration/351a-352a/191_BF1981833.sql @@ -0,0 +1,5 @@ +-- 02.06.2008 11:29:41 EEST +-- +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2008-06-02 11:29:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53295 +; + diff --git a/migration/351a-352a/192_BF1977318.sql b/migration/351a-352a/192_BF1977318.sql new file mode 100644 index 0000000000..a5a68d1552 --- /dev/null +++ b/migration/351a-352a/192_BF1977318.sql @@ -0,0 +1,18 @@ +-- Jun 2, 2008 9:43:00 PM EST +-- Default comment for updating dictionary +UPDATE AD_COLUMN SET FieldLength=22, IsUpdateable='N',Updated=TO_DATE('2008-06-02 21:43:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=14866 +; + +-- Jun 2, 2008 9:43:14 PM EST +-- Default comment for updating dictionary +ALTER TABLE R_ISSUERECOMMENDATION MODIFY R_IssueRecommendation_ID NUMBER(10) +; + +--ALTER TABLE R_ISSUERECOMMENDATION MODIFY R_IssueRecommendation_ID NOT NULL +--; + +--ALTER TABLE R_ISSUERECOMMENDATION ADD (CONSTRAINT r_issuerecommendation_pkey PRIMARY KEY (r_issuerecommendation_id)) +--; + +ALTER TABLE R_ISSUEKNOWN ADD (CONSTRAINT RIssueRecommendation_RIssueKno FOREIGN KEY (R_IssueRecommendation_ID) REFERENCES R_ISSUERECOMMENDATION) +; diff --git a/migration/351a-352a/193_FR1926882.sql b/migration/351a-352a/193_FR1926882.sql new file mode 100644 index 0000000000..b55460222d --- /dev/null +++ b/migration/351a-352a/193_FR1926882.sql @@ -0,0 +1,53 @@ +CREATE OR REPLACE VIEW C_INVOICE_V +(C_INVOICE_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, + CREATEDBY, UPDATED, UPDATEDBY, ISSOTRX, DOCUMENTNO, + DOCSTATUS, DOCACTION, PROCESSING, PROCESSED, C_DOCTYPE_ID, + C_DOCTYPETARGET_ID, C_ORDER_ID, DESCRIPTION, ISAPPROVED, ISTRANSFERRED, + SALESREP_ID, DATEINVOICED, DATEPRINTED, DATEACCT, C_BPARTNER_ID, + C_BPARTNER_LOCATION_ID, AD_USER_ID, POREFERENCE, DATEORDERED, C_CURRENCY_ID, + C_CONVERSIONTYPE_ID, PAYMENTRULE, C_PAYMENTTERM_ID, C_CHARGE_ID, M_PRICELIST_ID, + C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, ISPRINTED, ISDISCOUNTPRINTED, + ISPAID, ISINDISPUTE, ISPAYSCHEDULEVALID, C_INVOICEPAYSCHEDULE_ID, INVOICECOLLECTIONTYPE,DUNNINGGRACE, + CHARGEAMT, TOTALLINES, GRANDTOTAL, MULTIPLIER, MULTIPLIERAP, + DOCBASETYPE, DUEDATE + ) +AS +SELECT i.C_Invoice_ID, i.AD_Client_ID, i.AD_Org_ID, i.IsActive, i.Created, i.CreatedBy, i.Updated, i.UpdatedBy, + i.IsSOTrx, i.DocumentNo, i.DocStatus, i.DocAction, i.Processing, i.Processed, i.C_DocType_ID, + i.C_DocTypeTarget_ID, i.C_Order_ID, i.Description, i.IsApproved, i.IsTransferred, + i.SalesRep_ID, i.DateInvoiced, i.DatePrinted, i.DateAcct, i.C_BPartner_ID, i.C_BPartner_Location_ID, + i.AD_User_ID, i.POReference, i.DateOrdered, i.C_Currency_ID, i.C_ConversionType_ID, i.PaymentRule, + i.C_PaymentTerm_ID, i.C_Charge_ID, i.M_PriceList_ID, i.C_Campaign_ID, i.C_Project_ID, + i.C_Activity_ID, i.IsPrinted, i.IsDiscountPrinted, i.IsPaid, i.IsInDispute, + i.IsPayScheduleValid, cast(null as numeric) AS C_InvoicePaySchedule_ID, i.InvoiceCollectionType,i.DunningGrace, + cast(CASE WHEN charAt(d.DocBaseType,3)='C' THEN i.ChargeAmt*-1 ELSE i.ChargeAmt END as numeric) AS ChargeAmt, + cast(CASE WHEN charAt(d.DocBaseType,3)='C' THEN i.TotalLines*-1 ELSE i.TotalLines END as numeric) AS TotalLines, + cast(CASE WHEN charAt(d.DocBaseType,3)='C' THEN i.GrandTotal*-1 ELSE i.GrandTotal END as numeric) AS GrandTotal, + cast(CASE WHEN charAt(d.DocBaseType,3)='C' THEN -1 ELSE 1 END as numeric) AS Multiplier, + cast(CASE WHEN charAt(d.DocBaseType,2)='P' THEN -1 ELSE 1 END AS numeric) as MultiplierAP, + d.DocBaseType + , paymentTermDueDate(i.C_PaymentTerm_ID, i.DateInvoiced) as DueDate +FROM C_Invoice i + INNER JOIN C_DocType d ON (i.C_DocType_ID=d.C_DocType_ID) +WHERE i.IsPayScheduleValid<>'Y' +UNION +SELECT i.C_Invoice_ID, i.AD_Client_ID, i.AD_Org_ID, i.IsActive, i.Created, i.CreatedBy, i.Updated, i.UpdatedBy, + i.IsSOTrx, i.DocumentNo, i.DocStatus, i.DocAction, i.Processing, i.Processed, i.C_DocType_ID, + i.C_DocTypeTarget_ID, i.C_Order_ID, i.Description, i.IsApproved, i.IsTransferred, + i.SalesRep_ID, i.DateInvoiced, i.DatePrinted, i.DateAcct, i.C_BPartner_ID, i.C_BPartner_Location_ID, + i.AD_User_ID, i.POReference, i.DateOrdered, i.C_Currency_ID, i.C_ConversionType_ID, i.PaymentRule, + i.C_PaymentTerm_ID, i.C_Charge_ID, i.M_PriceList_ID, i.C_Campaign_ID, i.C_Project_ID, + i.C_Activity_ID, i.IsPrinted, i.IsDiscountPrinted, i.IsPaid, i.IsInDispute, + i.IsPayScheduleValid, ips.C_InvoicePaySchedule_ID, i.InvoiceCollectionType, i.DunningGrace, + null AS ChargeAmt, + null AS TotalLines, + CASE WHEN charAt(d.DocBaseType,3)='C' THEN ips.DueAmt*-1 ELSE ips.DueAmt END AS GrandTotal, + CASE WHEN charAt(d.DocBaseType,3)='C' THEN -1 ELSE 1 END AS Multiplier, + CASE WHEN charAt(d.DocBaseType,2)='P' THEN -1 ELSE 1 END AS MultiplierAP, + d.DocBaseType + , ips.DueDate +FROM C_Invoice i + INNER JOIN C_DocType d ON (i.C_DocType_ID=d.C_DocType_ID) + INNER JOIN C_InvoicePaySchedule ips ON (i.C_Invoice_ID=ips.C_Invoice_ID) +WHERE i.IsPayScheduleValid='Y' + AND ips.IsValid='Y'; diff --git a/migration/351a-352a/194_Fix_Manufacturing_Resource_Window.sql b/migration/351a-352a/194_Fix_Manufacturing_Resource_Window.sql new file mode 100644 index 0000000000..2db67a2890 --- /dev/null +++ b/migration/351a-352a/194_Fix_Manufacturing_Resource_Window.sql @@ -0,0 +1,140 @@ +-- 03.06.2008 12:09:57 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET DefaultValue='Y', IsReadOnly='Y',Updated=TO_DATE('2008-06-03 12:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53299 +; + +-- 03.06.2008 12:12:50 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-06-03 12:12:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53300 +; + +-- 03.06.2008 12:12:54 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-06-03 12:12:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53301 +; + +-- 03.06.2008 12:13:00 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-06-03 12:13:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53302 +; + +-- 03.06.2008 12:13:03 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-06-03 12:13:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53303 +; + +-- 03.06.2008 12:13:06 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-06-03 12:13:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53304 +; + +-- 03.06.2008 12:14:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=53296 +; + +-- 03.06.2008 12:14:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=53292 +; + +-- 03.06.2008 12:14:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=53291 +; + +-- 03.06.2008 12:14:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=53294 +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Element SET Name='Manufacturing Resource', PrintName='Manufacturing Resource',Updated=TO_DATE('2008-06-03 12:15:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53232 +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53232 +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Column SET ColumnName='IsManufacturingResource', Name='Manufacturing Resource', Description=NULL, Help=NULL WHERE AD_Element_ID=53232 +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET Name='Manufacturing Resource', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53232) AND IsCentrallyMaintained='Y' +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Process_Para SET ColumnName='IsManufacturingResource', Name='Manufacturing Resource', Description=NULL, Help=NULL, AD_Element_ID=53232 WHERE UPPER(ColumnName)='ISMANUFACTURINGRESOURCE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Process_Para SET ColumnName='IsManufacturingResource', Name='Manufacturing Resource', Description=NULL, Help=NULL WHERE AD_Element_ID=53232 AND IsCentrallyMaintained='Y' +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_PrintFormatItem pi SET PrintName='Manufacturing Resource', Name='Manufacturing Resource' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53232) +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_PrintFormatItem pi SET PrintName='Manufacturing Resource', Name='Manufacturing Resource' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53232) +; + +-- 03.06.2008 12:17:25 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Element_Trl SET IsTranslated='Y',Name='Resursa de productie',PrintName='Resursa de productie',Updated=TO_DATE('2008-06-03 12:17:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53232 AND AD_Language='ro_RO' +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Element SET Name='Manufacturing Resource Type', PrintName='Manufacturing Resource Type',Updated=TO_DATE('2008-06-03 12:19:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53233 +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53233 +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Column SET ColumnName='ManufacturingResourceType', Name='Manufacturing Resource Type', Description=NULL, Help=NULL WHERE AD_Element_ID=53233 +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET Name='Manufacturing Resource Type', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53233) AND IsCentrallyMaintained='Y' +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Process_Para SET ColumnName='ManufacturingResourceType', Name='Manufacturing Resource Type', Description=NULL, Help=NULL, AD_Element_ID=53233 WHERE UPPER(ColumnName)='MANUFACTURINGRESOURCETYPE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Process_Para SET ColumnName='ManufacturingResourceType', Name='Manufacturing Resource Type', Description=NULL, Help=NULL WHERE AD_Element_ID=53233 AND IsCentrallyMaintained='Y' +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_PrintFormatItem pi SET PrintName='Manufacturing Resource Type', Name='Manufacturing Resource Type' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53233) +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_PrintFormatItem pi SET PrintName='Manufacturing Resource Type', Name='Manufacturing Resource Type' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53233) +; + +-- 03.06.2008 12:19:27 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Element_Trl SET IsTranslated='Y',Name='Tip resursa productie',PrintName='Tip resursa productie',Updated=TO_DATE('2008-06-03 12:19:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53233 AND AD_Language='ro_RO' +; + diff --git a/migration/351a-352a/195_libero_fixes.sql b/migration/351a-352a/195_libero_fixes.sql new file mode 100644 index 0000000000..80e0e6a146 --- /dev/null +++ b/migration/351a-352a/195_libero_fixes.sql @@ -0,0 +1,46 @@ +-- 03.06.2008 13:08:34 EEST +-- Fix AD_WF_Node.C_BPartner_ID reference +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2008-06-03 13:08:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53309 +; + +-- 03.06.2008 16:25:28 EEST +-- Fix PP_Product_Planning.AD_Workflow_ID : set AD_Val_Rule_ID=MFG WF +UPDATE AD_Column SET AD_Val_Rule_ID=52003,Updated=TO_DATE('2008-06-03 16:25:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53377 +; + +-- Create Product Planning unique contraint: +create unique index PP_Product_Planning_UQ on PP_Product_Planning (M_Product_ID, S_Resource_ID, M_Warehouse_ID, AD_Org_ID); + +-- 03.06.2008 18:16:22 EEST +-- PP_Order_Node.A_Asset_ID set to Search +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2008-06-03 18:16:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53743 +; + +-- 03.06.2008 18:17:53 EEST +-- PP_Order_Node.C_BPartner_ID set to Search +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2008-06-03 18:17:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53460 +; + +-- 03.06.2008 18:18:34 EEST +-- PP_MRP.C_BPartner_ID set to Search +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2008-06-03 18:18:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54025 +; + + +-- +-- M_Product_ID fields in Manufacturing tables should have AD_Reference_ID=Search +UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_DATE('2008-06-03 18:20:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53389 +; +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2008-06-03 18:20:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53549 +; +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2008-06-03 18:20:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53610 +; +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2008-06-03 18:20:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53733 +; +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2008-06-03 18:20:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53763 +; +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2008-06-03 18:21:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53993 +; +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2008-06-03 18:21:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54043 +; + diff --git a/migration/351a-352a/196_FB1983672_refactory.sql b/migration/351a-352a/196_FB1983672_refactory.sql new file mode 100644 index 0000000000..fff62de218 --- /dev/null +++ b/migration/351a-352a/196_FB1983672_refactory.sql @@ -0,0 +1,74 @@ +-- 04-jun-2008 23:12:26 CDT +-- Fix Libero + +-- added first to fix [ 1985198 ] 196_FB1983672_refactory script failing +INSERT INTO AD_COLUMN + (AD_COLUMN_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, + CREATED, + UPDATED, CREATEDBY, + UPDATEDBY, NAME, DESCRIPTION, VERSION, + ENTITYTYPE, COLUMNNAME, AD_TABLE_ID, AD_REFERENCE_ID, + FIELDLENGTH, ISKEY, ISPARENT, ISMANDATORY, ISUPDATEABLE, + READONLYLOGIC, ISIDENTIFIER, ISTRANSLATED, ISENCRYPTED, + ISSELECTIONCOLUMN, AD_ELEMENT_ID, ISSYNCDATABASE, + ISALWAYSUPDATEABLE + ) + VALUES (56076, 0, 0, 'Y', + TO_DATE('2008-06-04 23:11:54','YYYY-MM-DD HH24:MI:SS'), + TO_DATE('2008-06-04 23:11:54','YYYY-MM-DD HH24:MI:SS'), 100, + 100, 'Current Cost Price Low Level', 'The low level cost is using to accumulation the cost for low level in a bill of material or formula.', 0, + 'EE01', 'CurrentCostPriceLL', 771, 37, + 22, 'N', 'N', 'Y', 'Y', + '@CostingMethod@!x & @CostingMethod@!S', 'N', 'N', 'N', + 'N', 53296, 'N', + 'N' + ); + + +-- 04-jun-2008 23:12:26 CDT +-- Fix Libero +INSERT INTO AD_FIELD (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,NAME,Updated,UpdatedBy) VALUES (0,56076,56266,0,701,TO_DATE('2008-06-04 23:11:54','YYYY-MM-DD HH24:MI:SS'),0,'The low level cost is using to accumulation the cost for low level in a bill of material or formula.',22,'EE01','The low level cost is using to accumulation the cost for low level in a bill of material or formula.','Y','Y','Y','N','N','N','N','N','Current Cost Price Low Level',TO_DATE('2008-06-04 23:11:54','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 04-jun-2008 23:12:26 CDT +-- Fix Libero +INSERT INTO AD_FIELD_TRL (AD_LANGUAGE,AD_Field_ID, Description,Help,NAME, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_LANGUAGE,t.AD_Field_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_FIELD t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56266 AND EXISTS (SELECT * FROM AD_FIELD_TRL tt WHERE tt.AD_LANGUAGE!=l.AD_LANGUAGE OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 04-jun-2008 23:14:30 CDT +-- Fix Libero +UPDATE AD_FIELD SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=56266 +; + +-- 04-jun-2008 23:14:30 CDT +-- Fix Libero +UPDATE AD_FIELD SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=11352 +; + +-- 04-jun-2008 23:14:30 CDT +-- Fix Libero +UPDATE AD_FIELD SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=12318 +; + +-- 04-jun-2008 23:14:30 CDT +-- Fix Libero +UPDATE AD_FIELD SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=12175 +; + +-- 04-jun-2008 23:14:30 CDT +-- Fix Libero +UPDATE AD_FIELD SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=12176 +; + +-- 04-jun-2008 23:14:30 CDT +-- Fix Libero +UPDATE AD_FIELD SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=12319 +; + +-- 04-jun-2008 23:14:39 CDT +-- Fix Libero +UPDATE AD_FIELD SET IsSameLine='Y',Updated=TO_DATE('2008-06-04 23:14:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=11352 +; + +-- Add CurrentCostPriceLL column to database +ALTER TABLE M_Cost ADD CurrentCostPriceLL NUMBER DEFAULT 0; diff --git a/migration/351a-352a/197_Fix_InternalUseWindow_Attributes.sql b/migration/351a-352a/197_Fix_InternalUseWindow_Attributes.sql new file mode 100644 index 0000000000..552b6e74e9 --- /dev/null +++ b/migration/351a-352a/197_Fix_InternalUseWindow_Attributes.sql @@ -0,0 +1,5 @@ +-- 05.06.2008 20:16:23 EEST +-- Internal Use Inventory / Attributes it's an advanced tab +UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_DATE('2008-06-05 20:16:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53134 +; + diff --git a/migration/351a-352a/198_Fix_HR_Payroll_Identifier.sql b/migration/351a-352a/198_Fix_HR_Payroll_Identifier.sql new file mode 100644 index 0000000000..e1678b9931 --- /dev/null +++ b/migration/351a-352a/198_Fix_HR_Payroll_Identifier.sql @@ -0,0 +1,3 @@ +-- Reset SeqNo for HR_Payroll.Value, there is already HR_Payroll.Name as identifier +update AD_Column set SeqNo=null +where AD_Column_ID=54887 and IsIdentifier='N' and SeqNo=1; diff --git a/migration/351a-352a/199_Fix_EntityTypes.sql b/migration/351a-352a/199_Fix_EntityTypes.sql new file mode 100644 index 0000000000..b1958d0f25 --- /dev/null +++ b/migration/351a-352a/199_Fix_EntityTypes.sql @@ -0,0 +1,2 @@ +update AD_Table set EntityType='EE01' +where TableName in ('RV_PP_MRP', 'RV_PP_Order_BOMLine', 'RV_PP_WIP') and EntityType<>'EE01'; diff --git a/migration/351a-352a/200_BF1989305_createGWJournalBatch.sql b/migration/351a-352a/200_BF1989305_createGWJournalBatch.sql new file mode 100644 index 0000000000..7e4c6a53d1 --- /dev/null +++ b/migration/351a-352a/200_BF1989305_createGWJournalBatch.sql @@ -0,0 +1,17 @@ +-- Jun 9, 2008 8:18:13 PM COT +-- [ 1989305 ] Missing GL Journal Batch in GardenWorld +INSERT INTO AD_Sequence (UpdatedBy,IsAutoSequence,AD_Org_ID,AD_Sequence_ID,Updated,CurrentNext,IsTableID,Created,StartNewYear,IsAudited,IncrementNo,AD_Client_ID,StartNo,Name,CurrentNextSys,CreatedBy,IsActive) VALUES (100,'Y',0,53162,TO_DATE('2008-06-09 20:18:12','YYYY-MM-DD HH24:MI:SS'),100,'N',TO_DATE('2008-06-09 20:18:12','YYYY-MM-DD HH24:MI:SS'),'N','N',1,11,1000,'GL Journal Batch',1002,100,'Y') +; + +-- Jun 9, 2008 8:18:33 PM COT +INSERT INTO C_DocType (IsSOTrx,UpdatedBy,IsDocNoControlled,AD_Org_ID,DocNoSequence_ID,Updated,DocumentCopies,HasCharges,C_DocType_ID,Created,IsDefault,GL_Category_ID,PrintName,AD_Client_ID,HasProforma,Name,CreatedBy,IsShipConfirm,IsPickQAConfirm,DocBaseType,IsDefaultCounterDoc,IsActive,IsSplitWhenDifference,IsCreateCounter,IsInTransit,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,IsIndexed) VALUES ('N',100,'Y',0,53162,TO_DATE('2008-06-09 20:18:32','YYYY-MM-DD HH24:MI:SS'),0,'N',50001,TO_DATE('2008-06-09 20:18:32','YYYY-MM-DD HH24:MI:SS'),'N',108,'Journal Batch',11,'N','GL Journal Batch',100,'N','N','GLJ','N','Y','N','Y','N','N','N','Y') +; + +-- Jun 9, 2008 8:18:34 PM COT +INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, DocumentNote,PrintName,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.C_DocType_ID, t.DocumentNote,t.PrintName,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=50001 AND EXISTS (SELECT * FROM C_DocType_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.C_DocType_ID!=t.C_DocType_ID) +; + +-- Jun 9, 2008 8:18:34 PM COT +INSERT INTO AD_Document_Action_Access (AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,C_DocType_ID , AD_Ref_List_ID, AD_Role_ID) (SELECT 11,0,'Y', SysDate,100, SysDate,100, doctype.C_DocType_ID, action.AD_Ref_List_ID, rol.AD_Role_ID FROM AD_Client client INNER JOIN C_DocType doctype ON (doctype.AD_Client_ID=client.AD_Client_ID) INNER JOIN AD_Ref_List action ON (action.AD_Reference_ID=135) INNER JOIN AD_Role rol ON (rol.AD_Client_ID=client.AD_Client_ID) WHERE client.AD_Client_ID=11 AND doctype.C_DocType_ID=50001 AND rol.IsManual='N') +; + diff --git a/migration/351a-352a/201_FR1992542.sql b/migration/351a-352a/201_FR1992542.sql new file mode 100644 index 0000000000..69132f4ef0 --- /dev/null +++ b/migration/351a-352a/201_FR1992542.sql @@ -0,0 +1,24 @@ +-- Jun 12, 2008 7:57:23 PM COT +-- FR 1992542 - Import Payment doesn't have DocAction parameter +UPDATE AD_Process_Para SET SeqNo=40,Updated=TO_DATE('2008-06-12 19:57:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=712 +; + +-- Jun 12, 2008 7:58:40 PM COT +-- FR 1992542 - Import Payment doesn't have DocAction parameter +INSERT INTO AD_Process_Para (FieldLength,UpdatedBy,ColumnName,AD_Org_ID,AD_Process_Para_ID,SeqNo,Updated,Help,DefaultValue,Created,IsCentrallyMaintained,AD_Process_ID,AD_Client_ID,IsRange,AD_Reference_ID,EntityType,AD_Val_Rule_ID,Name,CreatedBy,IsMandatory,AD_Reference_Value_ID,IsActive,AD_Element_ID,Description) VALUES (1,100,'DocAction',0,53177,30,TO_DATE('2008-06-12 19:58:39','YYYY-MM-DD HH24:MI:SS'),'You find the current status in the Document Status field. The options are listed in a popup','PR',TO_DATE('2008-06-12 19:58:39','YYYY-MM-DD HH24:MI:SS'),'Y',343,0,'N',17,'D',219,'Document Action',100,'N',135,'Y',287,'The targeted status of the document') +; + +-- Jun 12, 2008 7:58:40 PM COT +-- FR 1992542 - Import Payment doesn't have DocAction parameter +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, '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=53177 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) +; + +-- Jun 12, 2008 8:32:52 PM COT +-- FR 1992542 - Import Payment doesn't have DocAction parameter +INSERT INTO AD_Val_Rule (UpdatedBy,Code,AD_Org_ID,Updated,Type,Created,AD_Client_ID,EntityType,AD_Val_Rule_ID,Name,CreatedBy,IsActive) VALUES (100,'AD_Ref_List.Value IN (''CO'')',0,TO_DATE('2008-06-12 20:32:50','YYYY-MM-DD HH24:MI:SS'),'S',TO_DATE('2008-06-12 20:32:50','YYYY-MM-DD HH24:MI:SS'),0,'D',52027,'List - DocAction - Complete',100,'Y') +; + +-- Jun 12, 2008 8:33:09 PM COT +-- FR 1992542 - Import Payment doesn't have DocAction parameter +UPDATE AD_Process_Para SET DefaultValue=NULL, AD_Val_Rule_ID=52027,Updated=TO_DATE('2008-06-12 20:33:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53177 +; diff --git a/migration/351a-352a/202_BF1994221_MfgWorkflows.sql b/migration/351a-352a/202_BF1994221_MfgWorkflows.sql new file mode 100644 index 0000000000..7d21697451 --- /dev/null +++ b/migration/351a-352a/202_BF1994221_MfgWorkflows.sql @@ -0,0 +1,24 @@ +-- Jun 15, 2008 12:35:47 PM EST +-- Fix Manufacturing Workflows +UPDATE AD_Workflow SET IsValid='Y', AD_WF_Node_ID=50029,Updated=TO_DATE('2008-06-15 12:35:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50008 +; + +-- Jun 15, 2008 12:39:50 PM EST +-- Fix Manufacturing Workflows +UPDATE AD_Workflow SET IsValid='Y', AD_WF_Node_ID=50033,Updated=TO_DATE('2008-06-15 12:39:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50009 +; + +-- Jun 15, 2008 1:09:43 PM EST +-- Fix Manufacturing Workflows +UPDATE AD_WF_NodeNext SET SeqNo=100,Updated=TO_DATE('2008-06-15 13:09:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_WF_NodeNext_ID=50010 +; + +-- Jun 15, 2008 1:13:45 PM EST +-- Fix Manufacturing Workflows +UPDATE AD_Workflow SET IsValid='Y', AD_WF_Node_ID=50016,Updated=TO_DATE('2008-06-15 13:13:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50005 +; + +-- Jun 15, 2008 1:18:01 PM EST +-- Fix Manufacturing Workflows +UPDATE AD_Workflow SET IsValid='Y', AD_WF_Node_ID=50020,Updated=TO_DATE('2008-06-15 13:18:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50006 +; diff --git a/migration/351a-352a/203_BF1963128.sql b/migration/351a-352a/203_BF1963128.sql new file mode 100644 index 0000000000..be42bc0e39 --- /dev/null +++ b/migration/351a-352a/203_BF1963128.sql @@ -0,0 +1,15 @@ +-- 20.06.2008 14:06:53 EEST +-- BF [ 1963128 ] Running a process w/o trl should display an error +INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53038,0,TO_DATE('2008-06-20 14:06:43','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Check Missing Translation Records','E',TO_DATE('2008-06-20 14:06:43','YYYY-MM-DD HH24:MI:SS'),0,'CheckMissingTrl') +; + +-- 20.06.2008 14:06:53 EEST +-- BF [ 1963128 ] Running a process w/o trl should display an error +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53038 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID) +; + +-- 20.06.2008 14:08:39 EEST +-- BF [ 1963128 ] Running a process w/o trl should display an error +UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='Lipsesc liniile de traducere',Updated=TO_DATE('2008-06-20 14:08:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Message_ID=53038 AND AD_Language='ro_RO' +; + diff --git a/migration/351a-352a/204_FR1999156_CreatePlanningData.sql b/migration/351a-352a/204_FR1999156_CreatePlanningData.sql new file mode 100644 index 0000000000..580e2e7b2f --- /dev/null +++ b/migration/351a-352a/204_FR1999156_CreatePlanningData.sql @@ -0,0 +1,40 @@ +-- Jun 20, 2008 3:24:52 PM CDT +-- Fixed Libero Issue +UPDATE AD_Column SET AD_Val_Rule_ID=52002,Updated=TO_DATE('2008-06-20 15:24:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53400 +; + +-- Jun 20, 2008 3:27:23 PM CDT +-- Fixed Libero Issue +UPDATE AD_Column SET IsMandatory='N',Updated=TO_DATE('2008-06-20 15:27:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53400 +; + +-- Jun 20, 2008 3:30:05 PM CDT +-- Fixed Libero Issue +UPDATE AD_Process_Para SET AD_Element_ID=1777, AD_Val_Rule_ID=52002,Updated=TO_DATE('2008-06-20 15:30:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53035 +; + +-- Jun 20, 2008 3:32:17 PM CDT +-- Fixed Libero Issue +UPDATE AD_Process_Para SET AD_Val_Rule_ID=52003,Updated=TO_DATE('2008-06-20 15:32:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53036 +; + +-- Jun 20, 2008 3:35:42 PM CDT +-- Fixed Libero Issue +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,53340,0,53010,53183,30,'DD_NetworkDistribution_ID',TO_DATE('2008-06-20 15:35:33','YYYY-MM-DD HH24:MI:SS'),0,'Network Distribution','EE01',22,NULL,'Y','Y','N','N','Network Distribution',75,TO_DATE('2008-06-20 15:35:33','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jun 20, 2008 3:35:42 PM CDT +-- Fixed Libero Issue +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=53183 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) +; + +-- Jun 20, 2008 3:37:05 PM CDT +-- Fixed Libero Issue +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2008-06-20 15:37:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53660 +; + +-- Jun 20, 2008 3:38:45 PM CDT +-- Fixed Libero Issue +UPDATE AD_Process_Para SET AD_Reference_ID=19,Updated=TO_DATE('2008-06-20 15:38:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53183 +; + diff --git a/migration/351a-352a/205_FR1999230_AddSafetyStock.sql b/migration/351a-352a/205_FR1999230_AddSafetyStock.sql new file mode 100644 index 0000000000..fce598f2f9 --- /dev/null +++ b/migration/351a-352a/205_FR1999230_AddSafetyStock.sql @@ -0,0 +1,23 @@ +-- Jun 20, 2008 6:33:56 PM CDT +-- Fixed Libero Issue +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,53354,0,53010,53184,29,'SafetyStock',TO_DATE('2008-06-20 18:33:47','YYYY-MM-DD HH24:MI:SS'),0,'Safety Stock Qty','EE01',22,'Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.','Y','Y','N','N','Safety Stock Qty',130,TO_DATE('2008-06-20 18:33:47','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jun 20, 2008 6:33:56 PM CDT +-- Fixed Libero Issue +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=53184 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) +; + +-- Jun 20, 2008 6:34:14 PM CDT +-- Fixed Libero Issue +UPDATE AD_Process_Para SET SeqNo=105,Updated=TO_DATE('2008-06-20 18:34:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53184 +; + +ALTER TABLE PP_Product_Planning DROP CONSTRAINT ddnetworkdistribution_ppproduc; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT adworkflow_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT mwarehouse_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT planner_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT ppproductbom_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT sresource_ppproductplanning; + +DROP INDEX pp_product_planning_uq; diff --git a/migration/351a-352a/206_BF1980521_RVPPOrderBOMLine.sql b/migration/351a-352a/206_BF1980521_RVPPOrderBOMLine.sql new file mode 100644 index 0000000000..f9db195028 --- /dev/null +++ b/migration/351a-352a/206_BF1980521_RVPPOrderBOMLine.sql @@ -0,0 +1,267 @@ +SET DEFINE OFF +SET SQLBLANKLINES ON +-- Jun 23, 2008 9:58:30 AM EST +-- RV_PP_Order_BOMLine dictionary columns +UPDATE AD_Table SET IsView='Y',Updated=TO_DATE('2008-06-23 09:58:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53028 +; + +-- Jun 23, 2008 9:59:10 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56089,102,0,19,53028,'AD_Client_ID',TO_DATE('2008-06-23 09:59:02','YYYY-MM-DD HH24:MI:SS'),100,'Client/Tenant for this installation.','EE01',10,'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','N','N','N','N','Y','N','N','N','N','Client',TO_DATE('2008-06-23 09:59:02','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 9:59:10 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56089 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 9:59:11 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56090,113,0,19,53028,'AD_Org_ID',TO_DATE('2008-06-23 09:59:10','YYYY-MM-DD HH24:MI:SS'),100,'Organizational entity within client','EE01',10,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','N','N','N','N','Y','N','N','N','N','Organization',TO_DATE('2008-06-23 09:59:10','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 9:59:11 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56090 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 9:59:11 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56091,246,0,18,110,53028,'CreatedBy',TO_DATE('2008-06-23 09:59:11','YYYY-MM-DD HH24:MI:SS'),100,'User who created this records','EE01',10,'The Created By field indicates the user who created this record.','Y','N','N','N','N','Y','N','N','N','N','Created By',TO_DATE('2008-06-23 09:59:11','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 9:59:11 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56091 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:31 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56092,608,0,18,110,53028,'UpdatedBy',TO_DATE('2008-06-23 11:04:30','YYYY-MM-DD HH24:MI:SS'),100,'User who updated this records','EE01',10,'The Updated By field indicates the user who updated this record.','Y','N','N','N','N','Y','N','N','N','N','Updated By',TO_DATE('2008-06-23 11:04:30','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:31 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56092 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:31 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56093,607,0,16,53028,'Updated',TO_DATE('2008-06-23 11:04:31','YYYY-MM-DD HH24:MI:SS'),100,'Date this record was updated','EE01',7,'The Updated field indicates the date that this record was updated.','Y','N','N','N','N','Y','N','N','N','N','Updated',TO_DATE('2008-06-23 11:04:31','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:31 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56093 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:32 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56094,245,0,16,53028,'Created',TO_DATE('2008-06-23 11:04:32','YYYY-MM-DD HH24:MI:SS'),100,'Date this record was created','EE01',7,'The Created field indicates the date that this record was created.','Y','N','N','N','N','Y','N','N','N','N','Created',TO_DATE('2008-06-23 11:04:32','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:32 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56094 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:33 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56095,348,0,20,53028,'IsActive',TO_DATE('2008-06-23 11:04:32','YYYY-MM-DD HH24:MI:SS'),100,'The record is active in the system','EE01',1,'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.','Y','N','N','N','N','Y','N','N','N','N','Active',TO_DATE('2008-06-23 11:04:32','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:33 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56095 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:34 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56096,53298,0,19,53028,'PP_Order_BOM_ID',TO_DATE('2008-06-23 11:04:33','YYYY-MM-DD HH24:MI:SS'),100,'EE01',10,'Y','N','N','N','N','Y','N','N','N','N','PP_Order_BOM_ID',TO_DATE('2008-06-23 11:04:33','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:34 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56096 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:35 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56097,53275,0,19,53028,'PP_Order_BOMLine_ID',TO_DATE('2008-06-23 11:04:34','YYYY-MM-DD HH24:MI:SS'),100,'EE01',10,'Y','N','N','N','N','Y','N','N','N','N','PP_Order_BOMLine_ID',TO_DATE('2008-06-23 11:04:34','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:35 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56097 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:36 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56098,53276,0,19,53028,'PP_Order_ID',TO_DATE('2008-06-23 11:04:35','YYYY-MM-DD HH24:MI:SS'),100,'EE01',10,'Y','N','N','N','N','Y','N','N','N','N','PP_Order_ID',TO_DATE('2008-06-23 11:04:35','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:36 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56098 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:37 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56099,53251,0,20,53028,'IsCritical',TO_DATE('2008-06-23 11:04:36','YYYY-MM-DD HH24:MI:SS'),100,'Indicate that a Manufacturing Order can not begin without have this component','EE01',1,'Indicate that a Manufacturing Order can not begin without have this component','Y','N','N','N','N','Y','N','N','N','N','Is Critical Component',TO_DATE('2008-06-23 11:04:36','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:37 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56099 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:38 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56100,53249,0,17,53028,'ComponentType',TO_DATE('2008-06-23 11:04:37','YYYY-MM-DD HH24:MI:SS'),100,'Component Type for a Bill of Material or Formula','EE01',2,'The Component Type can be: + +1.- By Product: Define a By Product as Component into BOM +2.- Component: Define a normal Component into BOM +3.- Option: Define an Option for Product Configure BOM +4.- Phantom: Define a Phantom as Component into BOM +5.- Packing: Define a Packing as Component into BOM +6.- Planning : Define Planning as Component into BOM +7.- Tools: Define Tools as Component into BOM +8.- Variant: Define Variant for Product Configure BOM +','Y','N','N','N','N','N','N','N','N','N','Component Type',TO_DATE('2008-06-23 11:04:37','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:38 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56100 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:39 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56101,454,0,19,53028,'M_Product_ID',TO_DATE('2008-06-23 11:04:38','YYYY-MM-DD HH24:MI:SS'),100,'Product, Service, Item','EE01',10,'Identifies an item which is either purchased or sold in this organization.','Y','N','N','N','N','Y','N','N','N','N','Product',TO_DATE('2008-06-23 11:04:38','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:39 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56101 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:40 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56102,215,0,19,53028,'C_UOM_ID',TO_DATE('2008-06-23 11:04:39','YYYY-MM-DD HH24:MI:SS'),100,'Unit of Measure','EE01',10,'The UOM defines a unique non monetary Unit of Measure','Y','N','N','N','N','Y','N','N','N','N','UOM',TO_DATE('2008-06-23 11:04:39','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:40 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56102 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:41 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56103,53288,0,29,53028,'QtyRequiered',TO_DATE('2008-06-23 11:04:40','YYYY-MM-DD HH24:MI:SS'),100,'EE01',22,'Y','N','N','N','N','N','N','N','N','N','QtyRequiered',TO_DATE('2008-06-23 11:04:40','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:41 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56103 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:42 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56104,532,0,29,53028,'QtyReserved',TO_DATE('2008-06-23 11:04:41','YYYY-MM-DD HH24:MI:SS'),100,'Reserved Quantity','EE01',22,'The Reserved Quantity indicates the quantity of a product that is currently reserved.','Y','N','N','N','N','N','N','N','N','N','Reserved Quantity',TO_DATE('2008-06-23 11:04:41','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:42 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56104 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:43 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56105,2238,0,29,53028,'QtyAvailable',TO_DATE('2008-06-23 11:04:42','YYYY-MM-DD HH24:MI:SS'),100,'Available Quantity (On Hand - Reserved)','EE01',22,'Quantity available to promise = On Hand minus Reserved Quantity','Y','N','N','N','N','N','N','N','N','N','Available Quantity',TO_DATE('2008-06-23 11:04:42','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:43 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56105 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:44 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56106,530,0,29,53028,'QtyOnHand',TO_DATE('2008-06-23 11:04:43','YYYY-MM-DD HH24:MI:SS'),100,'On Hand Quantity','EE01',22,'The On Hand Quantity indicates the quantity of a product that is on hand in a warehouse.','Y','N','N','N','N','N','N','N','N','N','On Hand Quantity',TO_DATE('2008-06-23 11:04:43','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:44 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56106 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:45 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56107,459,0,19,53028,'M_Warehouse_ID',TO_DATE('2008-06-23 11:04:44','YYYY-MM-DD HH24:MI:SS'),100,'Storage Warehouse and Service Point','EE01',10,'The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','N','N','N','N','Y','N','N','N','N','Warehouse',TO_DATE('2008-06-23 11:04:44','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:45 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56107 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:45 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56108,53255,0,29,53028,'QtyBOM',TO_DATE('2008-06-23 11:04:45','YYYY-MM-DD HH24:MI:SS'),100,'Indicate the Quantity use in this BOM','EE01',22,'Exist two way the add a compenent to a BOM or Formula: + +1.- Adding a Component based in quantity to use in this BOM +2.- Adding a Component based in % to use the Order Quantity of Manufacturing Order in this Formula. +','Y','N','N','N','N','N','N','N','N','N','Quantity',TO_DATE('2008-06-23 11:04:45','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:45 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56108 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:46 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56109,53252,0,29,53028,'IsQtyPercentage',TO_DATE('2008-06-23 11:04:45','YYYY-MM-DD HH24:MI:SS'),100,'Indicate that this component is based in % Quantity','EE01',1,'Indicate that this component is based in % Quantity','Y','N','N','N','N','N','N','N','N','N','Is Qty Percentage',TO_DATE('2008-06-23 11:04:45','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:46 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56109 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:47 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56110,53256,0,29,53028,'QtyBatch',TO_DATE('2008-06-23 11:04:46','YYYY-MM-DD HH24:MI:SS'),100,'Indicate the Quantity % use in this Formula','EE01',22,'Exist two way the add a compenent to a BOM or Formula: + +1.- Adding a Component based in quantity to use in this BOM +2.- Adding a Component based in % to use the Order Quantity of Manufacturing Order in this Formula. +','Y','N','N','N','N','N','N','N','N','N','Quantity %',TO_DATE('2008-06-23 11:04:46','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:47 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56110 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:48 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56111,53243,0,29,53028,'QtyBatchSize',TO_DATE('2008-06-23 11:04:47','YYYY-MM-DD HH24:MI:SS'),100,'EE01',22,'Y','N','N','N','N','N','N','N','N','N','QtyBatchSize',TO_DATE('2008-06-23 11:04:47','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:48 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56111 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:15:46 AM EST +-- RV_PP_Order_BOMLine dictionary columns +UPDATE AD_Element SET PrintName='QtyRequired',Updated=TO_DATE('2008-06-23 11:15:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53288 +; + +-- Jun 23, 2008 11:15:47 AM EST +-- RV_PP_Order_BOMLine dictionary columns +UPDATE AD_PrintFormatItem pi SET PrintName='QtyRequired', Name='QtyRequiered' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53288) +; diff --git a/migration/351a-352a/207_BF2000549.sql b/migration/351a-352a/207_BF2000549.sql new file mode 100644 index 0000000000..2bba587e63 --- /dev/null +++ b/migration/351a-352a/207_BF2000549.sql @@ -0,0 +1,20 @@ +-- 23.06.2008 10:33:45 EEST +-- +UPDATE AD_Column SET DefaultValue='N', IsMandatory='Y',Updated=TO_DATE('2008-06-23 10:33:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54951 +; + +-- 23.06.2008 10:33:47 EEST +-- +ALTER TABLE HR_PayrollConcept MODIFY IsPrinted CHAR(1) DEFAULT 'N' +; + +-- 23.06.2008 10:33:47 EEST +-- +UPDATE HR_PayrollConcept SET IsPrinted='N' WHERE IsPrinted IS NULL +; + +-- 23.06.2008 10:33:47 EEST +-- +ALTER TABLE HR_PayrollConcept MODIFY IsPrinted NOT NULL +; + diff --git a/migration/351a-352a/208_BF2000598.sql b/migration/351a-352a/208_BF2000598.sql new file mode 100644 index 0000000000..04d50769d8 --- /dev/null +++ b/migration/351a-352a/208_BF2000598.sql @@ -0,0 +1,5 @@ +-- 23.06.2008 12:02:32 EEST +-- +UPDATE AD_Field SET SortNo=1.000000000000,Updated=TO_DATE('2008-06-23 12:02:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55104 +; + diff --git a/migration/351a-352a/209_BF2001820.sql b/migration/351a-352a/209_BF2001820.sql new file mode 100644 index 0000000000..a4ba9ebfa6 --- /dev/null +++ b/migration/351a-352a/209_BF2001820.sql @@ -0,0 +1,10 @@ +-- Jun 25, 2008 9:00:46 AM EST +-- BF2001820 +ALTER TABLE PP_Order_Workflow MODIFY EntityType VARCHAR2(40) DEFAULT 'U' +; + +-- Jun 25, 2008 9:00:47 AM EST +-- BF2001820 +UPDATE PP_Order_Workflow SET EntityType='U' WHERE EntityType IS NULL +; + diff --git a/migration/351a-352a/210_FixDRP.sql b/migration/351a-352a/210_FixDRP.sql new file mode 100644 index 0000000000..935b53177d --- /dev/null +++ b/migration/351a-352a/210_FixDRP.sql @@ -0,0 +1,205 @@ +-- Jun 22, 2008 5:51:42 PM CDT +-- New Event Model Validator +UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-06-22 17:51:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53072 +; + +-- Jun 22, 2008 6:01:35 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=53513 +; + +-- Jun 22, 2008 6:01:35 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=53512 +; + +-- Jun 22, 2008 6:01:45 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2008-06-22 18:01:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53513 +; + +-- Jun 22, 2008 6:01:47 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-06-22 18:01:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53512 +; + +-- Jun 22, 2008 6:02:06 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET DisplayLength=30,Updated=TO_DATE('2008-06-22 18:02:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54392 +; + +-- Jun 22, 2008 6:02:35 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2008-06-22 18:02:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55434 +; + +-- Jun 22, 2008 6:02:49 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2008-06-22 18:02:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53522 +; + +-- Jun 22, 2008 6:05:22 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET DisplayLogic='@Order_Policy@=''POQ''',Updated=TO_DATE('2008-06-22 18:05:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53526 +; + +-- Jun 22, 2008 6:08:03 PM CDT +-- New Event Model Validator +UPDATE AD_Tab SET AD_Column_ID=53389,Updated=TO_DATE('2008-06-22 18:08:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53030 +; + +-- Jun 22, 2008 6:09:53 PM CDT +-- New Event Model Validator +UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-06-22 18:09:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53030 +; + +-- Jun 22, 2008 6:09:57 PM CDT +-- New Event Model Validator +UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-06-22 18:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53033 +; + +-- Jun 22, 2008 6:10:01 PM CDT +-- New Event Model Validator +UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-06-22 18:10:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53031 +; + +-- Jun 22, 2008 6:10:04 PM CDT +-- New Event Model Validator +UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-06-22 18:10:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53034 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=53533 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=53525 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=53526 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=53527 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=53528 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=53529 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=53530 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=53531 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=53532 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=54420 +; + +-- Jun 22, 2008 6:12:20 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-06-22 18:12:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53533 +; + +-- Jun 22, 2008 6:13:09 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=53533 +; + +-- Jun 22, 2008 6:13:09 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=53523 +; + +-- Jun 22, 2008 6:13:09 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=53524 +; + +-- Jun 22, 2008 6:14:30 PM CDT +-- New Event Model Validator +UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_DATE('2008-06-22 18:14:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53376 +; + +-- Jun 22, 2008 6:14:51 PM CDT +-- New Event Model Validator +UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_DATE('2008-06-22 18:14:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53390 +; + +-- Jun 22, 2008 6:19:12 PM CDT +-- New Event Model Validator +UPDATE AD_Column SET IsUpdateable='N',Updated=TO_DATE('2008-06-22 18:19:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53376 +; + +-- Jun 22, 2008 6:45:01 PM CDT +-- New Event Model Validator +UPDATE AD_Process_Para SET IsMandatory='Y',Updated=TO_DATE('2008-06-22 18:45:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53035 +; + +-- Jun 22, 2008 6:46:14 PM CDT +-- New Event Model Validator +UPDATE AD_Process_Para SET SeqNo=195,Updated=TO_DATE('2008-06-22 18:46:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53052 +; + +-- Jun 22, 2008 6:46:40 PM CDT +-- New Event Model Validator +UPDATE AD_Process_Para SET DefaultValue='@Order_Policy@=''POQ''',Updated=TO_DATE('2008-06-22 18:46:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53052 +; + + +-- Jun 23, 2008 12:30:57 AM CDT +-- Completed the DRP +INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgTip,MsgType,Updated,UpdatedBy,Value) VALUES (0,53039,0,TO_DATE('2008-06-23 00:30:56','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Do not exist default Locator for Warehouse','Do not exist default Locator for Warehouse','I',TO_DATE('2008-06-23 00:30:56','YYYY-MM-DD HH24:MI:SS'),0,'DRP-001') +; + +-- Jun 23, 2008 12:30:57 AM CDT +-- Completed the DRP +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53039 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID) +; + +-- Jun 23, 2008 12:31:53 AM CDT +-- Completed the DRP +INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgTip,MsgType,Updated,UpdatedBy,Value) VALUES (0,53040,0,TO_DATE('2008-06-23 00:31:52','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Do not exist Shipper for Create Distribution Order','Do not exist Shipper for Create Distribution Order','I',TO_DATE('2008-06-23 00:31:52','YYYY-MM-DD HH24:MI:SS'),0,'DRP-030') +; + +-- Jun 23, 2008 12:31:53 AM CDT +-- Completed the DRP +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53040 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID) +; + +-- Jun 23, 2008 12:34:18 AM CDT +-- Completed the DRP +UPDATE AD_Column SET IsMandatory='Y',Updated=TO_DATE('2008-06-23 00:34:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54298 +; + +-- Jun 23, 2008 12:34:21 AM CDT +-- Completed the DRP +ALTER TABLE DD_NetworkDistributionLine MODIFY M_Shipper_ID NUMBER(10) DEFAULT NULL +; + +-- Jun 23, 2008 12:35:46 AM CDT +-- Completed the DRP +ALTER TABLE DD_NetworkDistributionLine MODIFY M_Shipper_ID NOT NULL +; diff --git a/migration/351a-352a/211_BF1995132.sql b/migration/351a-352a/211_BF1995132.sql new file mode 100644 index 0000000000..6207357eac --- /dev/null +++ b/migration/351a-352a/211_BF1995132.sql @@ -0,0 +1,50 @@ +-- Jun 26, 2008 9:57:54 AM EST +-- Default comment for updating dictionary +UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-06-26 09:57:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53030 +; + +-- Jun 26, 2008 9:58:19 AM EST +-- Default comment for updating dictionary +UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-06-26 09:58:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53033 +; + +-- Jun 26, 2008 9:58:28 AM EST +-- Default comment for updating dictionary +UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-06-26 09:58:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53031 +; + +-- Jun 26, 2008 9:58:36 AM EST +-- Default comment for updating dictionary +UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-06-26 09:58:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53034 +; + +-- Jun 26, 2008 9:58:43 AM EST +-- Default comment for updating dictionary +UPDATE AD_Tab SET AD_Column_ID=3668,Updated=TO_DATE('2008-06-26 09:58:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53034 +; + +-- Jun 26, 2008 10:00:40 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=53523 +; + +-- Jun 26, 2008 10:00:40 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=53522 +; + +-- Jun 26, 2008 10:00:40 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=53525 +; + +-- Jun 26, 2008 10:00:40 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=53524 +; + +-- Jun 26, 2008 10:03:16 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2008-06-26 10:03:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53526 +; + diff --git a/migration/351a-352a/213_FR2007264_MRP.sql b/migration/351a-352a/213_FR2007264_MRP.sql new file mode 100644 index 0000000000..80efc6dc7f --- /dev/null +++ b/migration/351a-352a/213_FR2007264_MRP.sql @@ -0,0 +1,35 @@ +-- Jun 30, 2008 7:42:57 PM CDT +-- Improve MRP +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,113,0,53014,53206,19,202,'AD_Org_ID',TO_DATE('2008-06-30 19:42:51','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client','EE01',22,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','Y','N','N','Organization',10,TO_DATE('2008-06-30 19:42:51','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jun 30, 2008 7:42:57 PM CDT +-- Improve MRP +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=53206 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) +; + +-- Jun 30, 2008 7:44:28 PM CDT +-- Improve MRP +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,Description,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1777,0,53014,53207,19,52002,'S_Resource_ID',TO_DATE('2008-06-30 19:44:25','YYYY-MM-DD HH24:MI:SS'),0,'Resource','EE01',22,'Y','Y','Y','N','Resource',20,TO_DATE('2008-06-30 19:44:25','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jun 30, 2008 7:44:28 PM CDT +-- Improve MRP +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=53207 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) +; + +-- Jun 30, 2008 7:46:01 PM CDT +-- Improve MRP +UPDATE AD_Process_Para SET AD_Val_Rule_ID=189,Updated=TO_DATE('2008-06-30 19:46:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53133 +; + +-- Jun 30, 2008 7:46:15 PM CDT +-- Improve MRP +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,459,0,53014,53208,19,189,'M_Warehouse_ID',TO_DATE('2008-06-30 19:46:13','YYYY-MM-DD HH24:MI:SS'),0,'Storage Warehouse and Service Point','EE01',22,'The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','Y','N','N','Warehouse',30,TO_DATE('2008-06-30 19:46:13','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jun 30, 2008 7:46:15 PM CDT +-- Improve MRP +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=53208 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) +; + diff --git a/migration/351a-352a/214_BF2008762.sql b/migration/351a-352a/214_BF2008762.sql new file mode 100644 index 0000000000..ec70286de4 --- /dev/null +++ b/migration/351a-352a/214_BF2008762.sql @@ -0,0 +1,28 @@ +-- Mar 13, 2008 11:51:15 AM CET +UPDATE AD_Val_Rule SET Code='( +EXISTS ( + /* UOM is a default UOM and no product selected */ + SELECT * + FROM C_UOM uu + WHERE C_UOM.C_UOM_ID=uu.C_UOM_ID AND IsDefault=''Y'' AND @M_Product_ID@=0 +) +OR EXISTS ( + /* UOM is the products UOM */ + SELECT * + FROM M_Product p + WHERE C_UOM.C_UOM_ID=p.C_UOM_ID AND @M_Product_ID@=p.M_Product_ID +) +OR EXISTS ( + /* For the products UOM there is a conversion that is explicitly bound to the product */ + SELECT * + FROM M_Product p INNER JOIN C_UOM_Conversion c ON (p.C_UOM_ID=c.C_UOM_ID AND p.M_PRODUCT_ID=c.M_Product_ID) + WHERE C_UOM.C_UOM_ID=c.C_UOM_TO_ID AND @M_Product_ID@=p.M_Product_ID +) +OR EXISTS ( + /* For the products UOM there is a conversion that is not bound to any product explicitly */ + SELECT * + FROM M_Product p INNER JOIN C_UOM_Conversion c ON (p.C_UOM_ID=c.C_UOM_ID AND c.M_Product_ID IS NULL) + WHERE C_UOM.C_UOM_ID=c.C_UOM_TO_ID AND @M_Product_ID@=p.M_Product_ID +))',Updated=TO_DATE('2008-03-13 11:51:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=210 +; + diff --git a/migration/351a-352a/215_BF1991523_CopyBOM.sql b/migration/351a-352a/215_BF1991523_CopyBOM.sql new file mode 100644 index 0000000000..d44f83f36f --- /dev/null +++ b/migration/351a-352a/215_BF1991523_CopyBOM.sql @@ -0,0 +1,15 @@ +-- Jul 4, 2008 6:11:43 PM EST +-- Default comment for updating dictionary +UPDATE AD_Process SET Help='This process copies BOM Lines from the Selected BOM to the Current BOM. The BOM being copied to must have any existing BOM Lines', +Updated=TO_DATE('2008-07-04 18:11:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=53004 +; + +-- Jul 5, 2008 4:51:47 PM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET IsCentrallyMaintained='N', Name='Copy BOM Lines From', Description='Copy BOM Lines from an exising BOM', Help='Copy BOM Lines from an exising BOM. The BOM being copied to, must not have any existing BOM Lines.',Updated=TO_DATE('2008-07-05 16:51:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53480 +; + +-- Jul 5, 2008 4:51:47 PM EST +-- Default comment for updating dictionary +UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=53480 +; diff --git a/migration/351a-352a/216_BF2011489_BOM_Window.sql b/migration/351a-352a/216_BF2011489_BOM_Window.sql new file mode 100644 index 0000000000..a946ae8b98 --- /dev/null +++ b/migration/351a-352a/216_BF2011489_BOM_Window.sql @@ -0,0 +1,90 @@ +-- Jul 6, 2008 10:30:49 AM EST +-- Default comment for updating dictionary +UPDATE AD_Column SET Callout='org.eevolution.model.CalloutBOM.getdefaults',Updated=TO_DATE('2008-07-06 10:30:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53333 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=53474 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=53475 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=53464 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=53476 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=53465 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=53466 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=53467 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=53468 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=53469 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=53470 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=53471 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=53472 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=53473 +; + +-- Jul 6, 2008 10:44:59 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-07-06 10:44:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53476 +; + +-- Jul 6, 2008 10:46:09 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-07-06 10:46:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53474 +; + +-- Jul 6, 2008 10:46:15 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-07-06 10:46:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53476 +; + +-- Jul 6, 2008 10:50:46 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET DisplayLength=22,Updated=TO_DATE('2008-07-06 10:50:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53464 +; + diff --git a/migration/351a-352a/217_BF2012439.sql b/migration/351a-352a/217_BF2012439.sql new file mode 100644 index 0000000000..dbfaac2a65 --- /dev/null +++ b/migration/351a-352a/217_BF2012439.sql @@ -0,0 +1,10 @@ +-- 07.07.2008 15:22:56 EEST +-- +UPDATE AD_Column SET ReadOnlyLogic='@M_Product_ID@!0',Updated=TO_DATE('2008-07-07 15:22:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=6610 +; + +-- 07.07.2008 15:23:12 EEST +-- +UPDATE AD_Column SET ReadOnlyLogic='@M_Product_Category_ID@!0',Updated=TO_DATE('2008-07-07 15:23:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=6611 +; + diff --git a/migration/351a-352a/218_BF2012468.sql b/migration/351a-352a/218_BF2012468.sql new file mode 100644 index 0000000000..71000a7892 --- /dev/null +++ b/migration/351a-352a/218_BF2012468.sql @@ -0,0 +1,55 @@ +-- 07.07.2008 15:40:27 EEST +-- +UPDATE AD_Tab SET DisplayLogic='@DiscountType@=B', ReadOnlyLogic=NULL,Updated=TO_DATE('2008-07-07 15:40:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=406 +; + +-- 07.07.2008 15:42:10 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-07-07 15:42:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5273 +; + +-- 07.07.2008 15:42:12 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-07-07 15:42:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5274 +; + +-- 07.07.2008 15:42:15 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-07-07 15:42:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5276 +; + +-- 07.07.2008 15:42:18 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-07-07 15:42:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5275 +; + +-- 07.07.2008 15:42:21 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-07-07 15:42:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5277 +; + +-- 07.07.2008 15:42:24 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-07-07 15:42:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5280 +; + +-- 07.07.2008 15:42:27 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-07-07 15:42:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5281 +; + +-- 07.07.2008 15:42:31 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-07-07 15:42:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5278 +; + +-- 07.07.2008 15:42:34 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-07-07 15:42:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=10479 +; + +-- 07.07.2008 15:42:41 EEST +-- +UPDATE AD_Field SET DisplayLogic='@IsBPartnerFlatDiscount@=N',Updated=TO_DATE('2008-07-07 15:42:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5279 +; + diff --git a/migration/351a-352a/219_FR2012882_PlanningHorizon.sql b/migration/351a-352a/219_FR2012882_PlanningHorizon.sql new file mode 100644 index 0000000000..c8fa20ae54 --- /dev/null +++ b/migration/351a-352a/219_FR2012882_PlanningHorizon.sql @@ -0,0 +1,161 @@ +-- Jul 7, 2008 12:21:56 PM CDT +-- Improve MRP +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53656,0,'PlanningHorizon',TO_DATE('2008-07-07 12:21:51','YYYY-MM-DD HH24:MI:SS'),0,'The planning horizon is the amount of time an organisation will look into the future when preparing a strategic plan.','EE01','The planning horizon is the amount of time an organisation will look into the future when preparing a strategic plan.','Y','Planning Horizon','Planning Horizon',TO_DATE('2008-07-07 12:21:51','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 7, 2008 12:21:56 PM CDT +-- Improve MRP +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53656 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 7, 2008 12:23:05 PM CDT +-- Improve MRP +UPDATE AD_Element SET Description='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.', Help='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.',Updated=TO_DATE('2008-07-07 12:23:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53656 +; + +-- Jul 7, 2008 12:23:05 PM CDT +-- Improve MRP +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53656 +; + +-- Jul 7, 2008 12:23:05 PM CDT +-- Improve MRP +UPDATE AD_Column SET ColumnName='PlanningHorizon', Name='Planning Horizon', Description='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.', Help='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.' WHERE AD_Element_ID=53656 +; + +-- Jul 7, 2008 12:23:06 PM CDT +-- Improve MRP +UPDATE AD_Field SET Name='Planning Horizon', Description='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.', Help='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53656) AND IsCentrallyMaintained='Y' +; + +-- Jul 7, 2008 12:23:06 PM CDT +-- Improve MRP +UPDATE AD_Process_Para SET ColumnName='PlanningHorizon', Name='Planning Horizon', Description='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.', Help='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.', AD_Element_ID=53656 WHERE UPPER(ColumnName)='PLANNINGHORIZON' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Jul 7, 2008 12:23:06 PM CDT +-- Improve MRP +UPDATE AD_Process_Para SET ColumnName='PlanningHorizon', Name='Planning Horizon', Description='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.', Help='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.' WHERE AD_Element_ID=53656 AND IsCentrallyMaintained='Y' +; + +-- Jul 7, 2008 12:23:06 PM CDT +-- Improve MRP +UPDATE AD_PrintFormatItem pi SET PrintName='Planning Horizon', Name='Planning Horizon' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53656) +; + +-- Jul 7, 2008 12:23:06 PM CDT +-- Improve MRP +UPDATE AD_PrintFormatItem pi SET PrintName='Planning Horizon', Name='Planning Horizon' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53656) +; + +-- Jul 7, 2008 12:23:26 PM CDT +-- Improve MRP +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56150,53656,0,11,487,'PlanningHorizon',TO_DATE('2008-07-07 12:23:24','YYYY-MM-DD HH24:MI:SS'),0,'0','The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.','EE01',22,'The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.','Y','N','N','N','N','N','N','N','N','N','Y','Planning Horizon',0,TO_DATE('2008-07-07 12:23:24','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 7, 2008 12:23:26 PM CDT +-- Improve MRP +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56150 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 7, 2008 12:23:31 PM CDT +-- Improve MRP +ALTER TABLE S_Resource ADD PlanningHorizon NUMBER(10) DEFAULT 0 +; + +-- Jul 7, 2008 12:24:42 PM CDT +-- Improve MRP +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56150,56280,0,53015,TO_DATE('2008-07-07 12:24:21','YYYY-MM-DD HH24:MI:SS'),0,'The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.',22,'EE01','The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.','Y','Y','Y','N','N','N','N','N','Planning Horizon',TO_DATE('2008-07-07 12:24:21','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 7, 2008 12:24:42 PM CDT +-- Improve MRP +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56280 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 7, 2008 12:24:58 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=53293 +; + +-- Jul 7, 2008 12:24:58 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=53294 +; + +-- Jul 7, 2008 12:24:58 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=56280 +; + +-- Jul 7, 2008 12:24:58 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=53301 +; + +-- Jul 7, 2008 12:24:58 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=53302 +; + +-- Jul 7, 2008 12:24:58 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=53303 +; + +-- Jul 7, 2008 12:24:58 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=53304 +; + + +-- Jul 7, 2008 12:26:04 PM CDT +-- Improve MRP +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-07-07 12:26:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53301 +; + +-- Jul 7, 2008 12:26:24 PM CDT +-- Improve MRP +UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2008-07-07 12:26:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53301 +; + +-- Jul 7, 2008 12:31:27 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=53296 +; + +-- Jul 7, 2008 12:31:27 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=53293 +; + +-- Jul 7, 2008 12:31:27 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=53292 +; + +-- Jul 7, 2008 12:31:27 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=53291 +; + +-- Jul 7, 2008 12:31:27 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=53297 +; + +-- Jul 7, 2008 12:31:27 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=53294 +; + +-- Jul 7, 2008 12:35:03 PM CDT +-- Improve MRP +UPDATE AD_Field SET DisplayLogic='@IsManufacturingResource@=''Y'' & @ManufacturingResourceType@=''PT''',Updated=TO_DATE('2008-07-07 12:35:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56280 +; + +-- Jul 7, 2008 12:35:50 PM CDT +-- Improve MRP +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-07-07 12:35:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56280 +; + diff --git a/migration/351a-352a/222_FR2003044_AutocompleteForTextfields.sql b/migration/351a-352a/222_FR2003044_AutocompleteForTextfields.sql new file mode 100755 index 0000000000..98272d3a91 --- /dev/null +++ b/migration/351a-352a/222_FR2003044_AutocompleteForTextfields.sql @@ -0,0 +1,269 @@ +-- Jun 26, 2008 12:37:51 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +INSERT INTO AD_Element (AD_Org_ID,UpdatedBy,Updated,PrintName,Name,IsActive,Help,EntityType,Description,CreatedBy,Created,ColumnName,AD_Element_ID,AD_Client_ID) VALUES (0,100,TO_DATE('2008-06-26 12:37:50','YYYY-MM-DD HH24:MI:SS'),'Autocomplete','Autocomplete','Y','The autocompletion uses all existing values (from the same client and organization) of the field.','D','Automatic completion for textfields',100,TO_DATE('2008-06-26 12:37:50','YYYY-MM-DD HH24:MI:SS'),'IsAutocomplete',53655,0) +; + +-- Jun 26, 2008 12:37:51 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, PrintName,PO_PrintName,PO_Name,PO_Help,PO_Description,Name,Help,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.PrintName,t.PO_PrintName,t.PO_Name,t.PO_Help,t.PO_Description,t.Name,t.Help,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53655 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jun 26, 2008 12:37:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Element SET EntityType='D',Updated=TO_DATE('2008-06-26 12:37:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53655 +; + +-- Jun 26, 2008 12:37:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Column SET ColumnName='IsAutocomplete', Name='Autocomplete', Description='Automatic completion for textfields', Help='The autocompletion uses all existing values (from the same client and organization) of the field.' WHERE AD_Element_ID=53655 +; + +-- Jun 26, 2008 12:37:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET Name='Autocomplete', Description='Automatic completion for textfields', Help='The autocompletion uses all existing values (from the same client and organization) of the field.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53655) AND IsCentrallyMaintained='Y' +; + +-- Jun 26, 2008 12:37:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Process_Para SET ColumnName='IsAutocomplete', Name='Autocomplete', Description='Automatic completion for textfields', Help='The autocompletion uses all existing values (from the same client and organization) of the field.', AD_Element_ID=53655 WHERE UPPER(ColumnName)='ISAUTOCOMPLETE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Jun 26, 2008 12:38:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Process_Para SET ColumnName='IsAutocomplete', Name='Autocomplete', Description='Automatic completion for textfields', Help='The autocompletion uses all existing values (from the same client and organization) of the field.' WHERE AD_Element_ID=53655 AND IsCentrallyMaintained='Y' +; + +-- Jun 26, 2008 12:38:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_PrintFormatItem pi SET PrintName='Autocomplete', Name='Autocomplete' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53655) +; + +-- Jun 26, 2008 12:38:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_PrintFormatItem pi SET PrintName='Autocomplete', Name='Autocomplete' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53655) +; + +-- Jun 26, 2008 12:39:11 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +INSERT INTO AD_Column (AD_Org_ID,Version,UpdatedBy,Updated,SeqNo,Name,IsUpdateable,IsTranslated,IsSyncDatabase,IsSelectionColumn,IsParent,IsMandatory,IsKey,IsIdentifier,IsEncrypted,IsAlwaysUpdateable,IsActive,Help,FieldLength,EntityType,Description,DefaultValue,CreatedBy,Created,ColumnName,AD_Table_ID,AD_Reference_ID,AD_Element_ID,AD_Column_ID,AD_Client_ID) VALUES (0,0,100,TO_DATE('2008-06-26 12:39:10','YYYY-MM-DD HH24:MI:SS'),0,'Autocomplete','Y','N','N','N','N','Y','N','N','N','N','Y','The autocompletion uses all existing values (from the same client and organization) of the field.',1,'D','Automatic completion for textfields','N',100,TO_DATE('2008-06-26 12:39:10','YYYY-MM-DD HH24:MI:SS'),'IsAutocomplete',101,20,53655,56149,0) +; + +-- Jun 26, 2008 12:39:11 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56149 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 26, 2008 12:39:16 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Column SET EntityType='D',Updated=TO_DATE('2008-06-26 12:39:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56149 +; + +-- Jun 26, 2008 12:39:22 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +ALTER TABLE AD_Column ADD IsAutocomplete CHAR(1) DEFAULT 'N' CHECK (IsAutocomplete IN ('Y','N')) NOT NULL +; + +-- Jun 26, 2008 12:40:30 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +INSERT INTO AD_Field (AD_Column_ID,AD_Org_ID,UpdatedBy,Updated,Name,IsSameLine,IsReadOnly,IsHeading,IsFieldOnly,IsEncrypted,IsDisplayed,IsCentrallyMaintained,IsActive,Help,EntityType,DisplayLength,Description,CreatedBy,Created,AD_Tab_ID,AD_Field_ID,AD_Client_ID) VALUES (56149,0,100,TO_DATE('2008-06-26 12:40:30','YYYY-MM-DD HH24:MI:SS'),'Autocomplete','N','N','N','N','N','Y','Y','Y','The autocompletion uses all existing values (from the same client and organization) of the field.','D',1,'Automatic completion for textfields',100,TO_DATE('2008-06-26 12:40:30','YYYY-MM-DD HH24:MI:SS'),101,56279,0) +; + +-- Jun 26, 2008 12:40:31 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Name,Help,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Name,t.Help,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56279 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=56279 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=2526 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=171 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=54403 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=2574 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=2573 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=160 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=161 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=162 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=166 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=2370 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=169 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=10128 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=4941 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=50188 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=168 +; + +-- Jun 26, 2008 12:53:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=159 +; + +-- Jun 26, 2008 12:53:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=825 +; + +-- Jun 26, 2008 12:53:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=4940 +; + +-- Jun 26, 2008 12:53:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=167 +; + +-- Jun 26, 2008 12:53:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=5121 +; + +-- Jun 26, 2008 12:53:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=5122 +; + +-- Jun 26, 2008 12:53:41 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@AD_Reference_ID@=10',Updated=TO_DATE('2008-06-26 12:53:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56279 +; + +-- Jul 29, 2008 12:51:57 PM COT +UPDATE AD_Field SET SeqNo=380,Updated=TO_DATE('2008-07-29 12:51:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5122 +; + + drop view AD_FIELD_V; + + CREATE OR REPLACE VIEW AD_FIELD_V + (AD_WINDOW_ID, AD_TAB_ID, AD_FIELD_ID, AD_TABLE_ID, AD_COLUMN_ID, NAME, DESCRIPTION, HELP, ISDISPLAYED, + DISPLAYLOGIC, DISPLAYLENGTH, SEQNO, SORTNO, ISSAMELINE, ISHEADING, ISFIELDONLY, ISREADONLY, ISENCRYPTEDFIELD, + OBSCURETYPE, COLUMNNAME, COLUMNSQL, FIELDLENGTH, VFORMAT, DEFAULTVALUE, ISKEY, ISPARENT, ISMANDATORY, ISIDENTIFIER, + ISTRANSLATED, AD_REFERENCE_VALUE_ID, CALLOUT, AD_REFERENCE_ID, AD_VAL_RULE_ID, AD_PROCESS_ID, ISALWAYSUPDATEABLE, + READONLYLOGIC, MANDATORYLOGIC, ISUPDATEABLE, ISENCRYPTEDCOLUMN, ISSELECTIONCOLUMN, TABLENAME, VALUEMIN, VALUEMAX, + FIELDGROUP, VALIDATIONCODE, INCLUDED_TAB_ID, FIELDGROUPTYPE, ISCOLLAPSEDBYDEFAULT, INFOFACTORYCLASS, ISAUTOCOMPLETE) AS + SELECT t.AD_Window_ID, f.AD_Tab_ID, f.AD_Field_ID, tbl.AD_Table_ID, f.AD_Column_ID, + f.NAME, f.Description, f.Help, f.IsDisplayed, f.DisplayLogic, f.DisplayLength, + f.SeqNo, f.SortNo, f.IsSameLine, f.IsHeading, f.IsFieldOnly, f.IsReadOnly, + f.IsEncrypted AS IsEncryptedField, f.ObscureType, + c.ColumnName, c.ColumnSQL, c.FieldLength, c.VFormat, + COALESCE(f.DefaultValue, c.DefaultValue) AS DefaultValue, + c.IsKey, c.IsParent, + COALESCE(f.IsMandatory, c.IsMandatory) AS IsMandatory, + c.IsIdentifier, c.IsTranslated, COALESCE(f.AD_Reference_Value_ID, c.AD_Reference_Value_ID) AS AD_Reference_Value_ID, + c.Callout, COALESCE(f.AD_Reference_ID, c.AD_Reference_ID) AS AD_Reference_ID, + COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID) AS AD_Val_Rule_ID, c.AD_Process_ID, c.IsAlwaysUpdateable, + c.ReadOnlyLogic, c.MandatoryLogic, c.IsUpdateable, c.IsEncrypted AS IsEncryptedColumn, + c.IsSelectionColumn, + tbl.TableName, c.ValueMin, c.ValueMax, + fg.NAME AS FieldGroup, vr.Code AS ValidationCode, + f.Included_Tab_ID, fg.FieldGroupType, fg.IsCollapsedByDefault, + COALESCE(f.InfoFactoryClass, c.InfoFactoryClass) as InfoFactoryClass, + c.IsAutocomplete +FROM AD_FIELD f + INNER JOIN AD_TAB t ON (f.AD_Tab_ID = t.AD_Tab_ID) + LEFT OUTER JOIN AD_FIELDGROUP fg ON (f.AD_FieldGroup_ID = fg.AD_FieldGroup_ID) + LEFT OUTER JOIN AD_COLUMN c ON (f.AD_Column_ID = c.AD_Column_ID) + INNER JOIN AD_TABLE tbl ON (c.AD_Table_ID = tbl.AD_Table_ID) + INNER JOIN AD_REFERENCE r ON (c.AD_Reference_ID = r.AD_Reference_ID) + LEFT OUTER JOIN AD_VAL_RULE vr ON (vr.AD_Val_Rule_ID = COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID)) +WHERE f.IsActive = 'Y' + AND c.IsActive = 'Y'; + + drop view AD_FIELD_VT; + + CREATE OR REPLACE VIEW AD_FIELD_VT (AD_LANGUAGE, AD_WINDOW_ID, AD_TAB_ID, AD_FIELD_ID, AD_TABLE_ID, + AD_COLUMN_ID, NAME, DESCRIPTION, HELP, ISDISPLAYED, DISPLAYLOGIC, DISPLAYLENGTH, SEQNO, SORTNO, ISSAMELINE, + ISHEADING, ISFIELDONLY, ISREADONLY, ISENCRYPTEDFIELD, OBSCURETYPE, COLUMNNAME, COLUMNSQL, FIELDLENGTH, VFORMAT, + DEFAULTVALUE, ISKEY, ISPARENT, ISMANDATORY, ISIDENTIFIER, ISTRANSLATED, AD_REFERENCE_VALUE_ID, CALLOUT, + AD_REFERENCE_ID, AD_VAL_RULE_ID, AD_PROCESS_ID, ISALWAYSUPDATEABLE, READONLYLOGIC, MANDATORYLOGIC, ISUPDATEABLE, + ISENCRYPTEDCOLUMN, ISSELECTIONCOLUMN, TABLENAME, VALUEMIN, VALUEMAX, FIELDGROUP, VALIDATIONCODE, INCLUDED_TAB_ID, + FIELDGROUPTYPE, ISCOLLAPSEDBYDEFAULT, INFOFACTORYCLASS, ISAUTOCOMPLETE) AS + SELECT trl.AD_LANGUAGE, t.AD_Window_ID, f.AD_Tab_ID, f.AD_Field_ID, tbl.AD_Table_ID, f.AD_Column_ID, + trl.NAME, trl.Description, trl.Help, f.IsDisplayed, f.DisplayLogic, f.DisplayLength, + f.SeqNo, f.SortNo, f.IsSameLine, f.IsHeading, f.IsFieldOnly, f.IsReadOnly, + f.IsEncrypted AS IsEncryptedField, f.ObscureType, + c.ColumnName, c.ColumnSQL, c.FieldLength, c.VFormat, + COALESCE(f.DefaultValue, c.DefaultValue) AS DefaultValue, + c.IsKey, c.IsParent, + COALESCE(f.IsMandatory, c.IsMandatory) AS IsMandatory, + c.IsIdentifier, c.IsTranslated, COALESCE(f.AD_Reference_Value_ID, c.AD_Reference_Value_ID) AS AD_Reference_Value_ID, + c.Callout, COALESCE(f.AD_Reference_ID, c.AD_Reference_ID) AS AD_Reference_ID, + COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID) as AD_Val_Rule_ID, c.AD_Process_ID, c.IsAlwaysUpdateable, + c.ReadOnlyLogic, c.MandatoryLogic, c.IsUpdateable, c.IsEncrypted AS IsEncryptedColumn, c.IsSelectionColumn, + tbl.TableName, c.ValueMin, c.ValueMax, + fgt.NAME AS FieldGroup, vr.Code AS ValidationCode, + f.Included_Tab_ID, fg.FieldGroupType, fg.IsCollapsedByDefault, + COALESCE(f.InfoFactoryClass, c.InfoFactoryClass) as InfoFactoryClass, + c.IsAutocomplete + FROM AD_FIELD f + INNER JOIN AD_FIELD_TRL trl ON (f.AD_Field_ID = trl.AD_Field_ID) + INNER JOIN AD_TAB t ON (f.AD_Tab_ID = t.AD_Tab_ID) + LEFT OUTER JOIN AD_FIELDGROUP fg ON (f.AD_FieldGroup_ID = fg.AD_FieldGroup_ID) + LEFT OUTER JOIN AD_FIELDGROUP_TRL fgt ON + (f.AD_FieldGroup_ID = fgt.AD_FieldGroup_ID AND trl.AD_LANGUAGE=fgt.AD_LANGUAGE) + LEFT OUTER JOIN AD_COLUMN c ON (f.AD_Column_ID = c.AD_Column_ID) + INNER JOIN AD_TABLE tbl ON (c.AD_Table_ID = tbl.AD_Table_ID) + INNER JOIN AD_REFERENCE r ON (c.AD_Reference_ID = r.AD_Reference_ID) + LEFT OUTER JOIN AD_VAL_RULE vr ON (vr.AD_Val_Rule_ID=COALESCE(f.AD_Val_Rule_ID, c.AD_Val_Rule_ID)) + WHERE f.IsActive = 'Y' + AND c.IsActive = 'Y'; diff --git a/migration/351a-352a/226_FinancialReportSourceCombination.sql b/migration/351a-352a/226_FinancialReportSourceCombination.sql new file mode 100644 index 0000000000..efd670324f --- /dev/null +++ b/migration/351a-352a/226_FinancialReportSourceCombination.sql @@ -0,0 +1,1753 @@ +-- Jul 9, 2008 3:33:39 PM COT +-- Financial Report Source with Type Combination + +-- recreate index to include the two new columns + +drop index FACT_ACCT_BALANCE_AKEY; + +CREATE UNIQUE INDEX FACT_ACCT_BALANCE_AKEY ON FACT_ACCT_BALANCE +(AD_CLIENT_ID, AD_ORG_ID, C_ACCTSCHEMA_ID, DATEACCT, ACCOUNT_ID, +POSTINGTYPE, M_PRODUCT_ID, C_BPARTNER_ID, C_PROJECT_ID, AD_ORGTRX_ID, +C_SALESREGION_ID, C_ACTIVITY_ID, C_CAMPAIGN_ID, C_LOCTO_ID, C_LOCFROM_ID, +USER1_ID, USER2_ID, USERELEMENT1_ID, USERELEMENT2_ID, GL_BUDGET_ID); + + +/* + +Alternatively - in case you replaced fact_acct_balance with a view - this is the view replacement: + +CREATE OR REPLACE VIEW fact_acct_balance +AS + SELECT ad_client_id, ad_org_id, c_acctschema_id, + TRUNC (dateacct) as dateacct, account_id, postingtype, + m_product_id, c_bpartner_id, c_project_id, ad_orgtrx_id, + c_salesregion_id, c_activity_id, c_campaign_id, c_locto_id, + c_locfrom_id, user1_id, user2_id, gl_budget_id, + COALESCE (SUM (amtacctdr), 0) as amtacctdr, + COALESCE (SUM (amtacctcr), 0) as amtacctcr, + COALESCE (SUM (qty), 0) as qty, MAX (createdby) as createdby, + MAX (created) as created, MAX (updatedby) as updatedby, + MAX (updated) as updated, MAX (isactive) as isactive, + MAX (c_subacct_id) as c_subacct_id, userelement1_id, + userelement2_id, MAX (c_projectphase_id) as c_projectphase_id, + MAX (c_projecttask_id) as c_projecttask_id + FROM fact_acct a + GROUP BY ad_client_id, ad_org_id, c_acctschema_id, + TRUNC (dateacct), account_id, postingtype, + m_product_id, c_bpartner_id, c_project_id, ad_orgtrx_id, + c_salesregion_id, c_activity_id, c_campaign_id, c_locto_id, + c_locfrom_id, user1_id, user2_id, + userelement1_id, userelement2_id, + gl_budget_id +/ + +*/ + +INSERT INTO AD_Reference (UpdatedBy,ValidationType,AD_Org_ID,Updated,VFormat,Help,Created,AD_Client_ID,AD_Reference_ID,EntityType,Name,CreatedBy,IsActive,Description,IsOrderByValue) VALUES (100,'L',0,TO_DATE('2008-07-09 15:33:11','YYYY-MM-DD HH24:MI:SS'),'AA','Hardcoded Element Types',TO_DATE('2008-07-09 15:33:11','YYYY-MM-DD HH24:MI:SS'),0,53280,'D','PA_ReportSource ElementType',100,'Y','Element Types for Accounting Elements - equal to C_AcctSchema ElementType plus Combination','N') +; + +-- Jul 9, 2008 3:33:39 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53280 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID) +; + +-- Jul 9, 2008 3:34:47 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Reference_Trl SET Description='Tipos de elementos para elementos contables - igual a C_AcctSchema ElementType mas Combinación',Help='Tipos de elementos definidos en forma fija',Updated=TO_DATE('2008-07-09 15:34:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53280 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:35:28 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:35:10','YYYY-MM-DD HH24:MI:SS'),'AC',TO_DATE('2008-07-09 15:35:10','YYYY-MM-DD HH24:MI:SS'),0,53280,53418,'D','Account',100,'Y','Natural Account') +; + +-- Jul 9, 2008 3:35:28 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53418 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:36:12 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:35:58','YYYY-MM-DD HH24:MI:SS'),'AY',TO_DATE('2008-07-09 15:35:58','YYYY-MM-DD HH24:MI:SS'),0,53280,53419,'D','Activity',100,'Y','Business Activity') +; + +-- Jul 9, 2008 3:36:12 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53419 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:36:42 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:36:38','YYYY-MM-DD HH24:MI:SS'),'BP',TO_DATE('2008-07-09 15:36:38','YYYY-MM-DD HH24:MI:SS'),0,53280,53420,'D','BPartner',100,'Y','Business Partner') +; + +-- Jul 9, 2008 3:36:42 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53420 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:37:02 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:36:55','YYYY-MM-DD HH24:MI:SS'),'LF',TO_DATE('2008-07-09 15:36:55','YYYY-MM-DD HH24:MI:SS'),0,53280,53421,'D','Location From',100,'Y','Location From') +; + +-- Jul 9, 2008 3:37:02 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53421 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:37:14 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:37:13','YYYY-MM-DD HH24:MI:SS'),'LT',TO_DATE('2008-07-09 15:37:13','YYYY-MM-DD HH24:MI:SS'),0,53280,53422,'D','Location To',100,'Y','Location To') +; + +-- Jul 9, 2008 3:37:14 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53422 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:37:32 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:37:31','YYYY-MM-DD HH24:MI:SS'),'MC',TO_DATE('2008-07-09 15:37:31','YYYY-MM-DD HH24:MI:SS'),0,53280,53423,'D','Campaign',100,'Y','Marketing Campaign') +; + +-- Jul 9, 2008 3:37:32 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53423 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:37:46 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:37:45','YYYY-MM-DD HH24:MI:SS'),'OO',TO_DATE('2008-07-09 15:37:45','YYYY-MM-DD HH24:MI:SS'),0,53280,53424,'D','Organization',100,'Y','Owning Organization') +; + +-- Jul 9, 2008 3:37:46 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53424 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:38:00 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:37:59','YYYY-MM-DD HH24:MI:SS'),'OT',TO_DATE('2008-07-09 15:37:59','YYYY-MM-DD HH24:MI:SS'),0,53280,53425,'D','Org Trx',100,'Y','Transaction Organization') +; + +-- Jul 9, 2008 3:38:00 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53425 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:38:16 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:38:11','YYYY-MM-DD HH24:MI:SS'),'PJ',TO_DATE('2008-07-09 15:38:11','YYYY-MM-DD HH24:MI:SS'),0,53280,53426,'D','Project',100,'Y','Project') +; + +-- Jul 9, 2008 3:38:16 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53426 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:38:26 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:38:25','YYYY-MM-DD HH24:MI:SS'),'PR',TO_DATE('2008-07-09 15:38:25','YYYY-MM-DD HH24:MI:SS'),0,53280,53427,'D','Product',100,'Y','Product') +; + +-- Jul 9, 2008 3:38:26 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53427 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:38:37 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:38:37','YYYY-MM-DD HH24:MI:SS'),'SA',TO_DATE('2008-07-09 15:38:37','YYYY-MM-DD HH24:MI:SS'),0,53280,53428,'D','Sub Account',100,'Y','Sub Account for Element Value') +; + +-- Jul 9, 2008 3:38:37 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53428 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:38:50 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:38:49','YYYY-MM-DD HH24:MI:SS'),'SR',TO_DATE('2008-07-09 15:38:49','YYYY-MM-DD HH24:MI:SS'),0,53280,53429,'D','Sales Region',100,'Y','Sales Region') +; + +-- Jul 9, 2008 3:38:50 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53429 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:39:01 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:39:01','YYYY-MM-DD HH24:MI:SS'),'U1',TO_DATE('2008-07-09 15:39:01','YYYY-MM-DD HH24:MI:SS'),0,53280,53430,'D','User List 1',100,'Y','User 1') +; + +-- Jul 9, 2008 3:39:01 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53430 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:39:16 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:39:15','YYYY-MM-DD HH24:MI:SS'),'U2',TO_DATE('2008-07-09 15:39:15','YYYY-MM-DD HH24:MI:SS'),0,53280,53431,'D','User List 2',100,'Y','User 2') +; + +-- Jul 9, 2008 3:39:16 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53431 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:39:28 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive) VALUES (100,0,TO_DATE('2008-07-09 15:39:27','YYYY-MM-DD HH24:MI:SS'),'X1',TO_DATE('2008-07-09 15:39:27','YYYY-MM-DD HH24:MI:SS'),0,53280,53432,'D','User Element 1',100,'Y') +; + +-- Jul 9, 2008 3:39:28 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53432 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:39:40 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive) VALUES (100,0,TO_DATE('2008-07-09 15:39:39','YYYY-MM-DD HH24:MI:SS'),'X2',TO_DATE('2008-07-09 15:39:39','YYYY-MM-DD HH24:MI:SS'),0,53280,53433,'D','User Element 2',100,'Y') +; + +-- Jul 9, 2008 3:39:40 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53433 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:40:02 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_DATE('2008-07-09 15:39:57','YYYY-MM-DD HH24:MI:SS'),'CO',TO_DATE('2008-07-09 15:39:57','YYYY-MM-DD HH24:MI:SS'),0,53280,53434,'D','Combination',100,'Y','Combination of accounting dimensions') +; + +-- Jul 9, 2008 3:40:02 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53434 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:40:17 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Cuenta',Description='Cuenta Natural',Updated=TO_DATE('2008-07-09 15:40:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53418 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:40:32 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Actividad',Description=NULL,Updated=TO_DATE('2008-07-09 15:40:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53419 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:40:49 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Socio del Negocio',Description='Socio del Negocio',Updated=TO_DATE('2008-07-09 15:40:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53420 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:41:05 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Localización Desde',Description='Localización Desde',Updated=TO_DATE('2008-07-09 15:41:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53421 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:41:18 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Localización A',Description='Localización A',Updated=TO_DATE('2008-07-09 15:41:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53422 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:41:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Campaña',Description='Campaña de Mercadotecnia',Updated=TO_DATE('2008-07-09 15:41:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53423 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:41:50 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Organización',Description='Organización Poseedora',Updated=TO_DATE('2008-07-09 15:41:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53424 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:42:05 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Trans Org',Description='Transacción de la Organización',Updated=TO_DATE('2008-07-09 15:42:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53425 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:42:19 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Proyecto',Description='Proyecto',Updated=TO_DATE('2008-07-09 15:42:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53426 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:42:31 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Producto',Description='Producto',Updated=TO_DATE('2008-07-09 15:42:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53427 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:42:47 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Sub Cuenta',Description='Sub Cuenta para Valor del Elemento',Updated=TO_DATE('2008-07-09 15:42:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53428 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:43:02 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Región de Ventas',Description='Región de Ventas',Updated=TO_DATE('2008-07-09 15:43:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53429 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:43:24 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Lista Usuario 1',Description='Usuario 1',Updated=TO_DATE('2008-07-09 15:43:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53430 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:43:39 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Lista Usuario 2',Description='Usuario 2',Updated=TO_DATE('2008-07-09 15:43:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53431 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:43:52 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Elemento de Usuario 1',Updated=TO_DATE('2008-07-09 15:43:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53432 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:44:01 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Elemento de Usuario 2',Updated=TO_DATE('2008-07-09 15:44:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53433 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:44:20 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Combinación',Description='Combinacion de dimensiones contables',Updated=TO_DATE('2008-07-09 15:44:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53434 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:45:38 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Column SET AD_Reference_Value_ID=53280,Updated=TO_DATE('2008-07-09 15:45:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=6085 +; + +-- Jul 9, 2008 3:46:39 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Column SET AD_Reference_Value_ID=53280,Updated=TO_DATE('2008-07-09 15:46:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=6024 +; + +-- Jul 9, 2008 3:48:55 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=OO | @ElementType@=OT | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:48:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4815 +; + +-- Jul 9, 2008 3:48:57 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=AC | @ElementType@=U1 | @ElementType@=U2 | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:48:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4805 +; + +-- Jul 9, 2008 3:48:59 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=BP | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:48:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4816 +; + +-- Jul 9, 2008 3:49:01 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=PR | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:49:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4807 +; + +-- Jul 9, 2008 3:49:02 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=LF | @ElementType@=LT | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:49:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4808 +; + +-- Jul 9, 2008 3:49:04 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=PJ | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:49:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4806 +; + +-- Jul 9, 2008 3:49:05 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=SR | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4809 +; + +-- Jul 9, 2008 3:49:06 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=AY | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4810 +; + +-- Jul 9, 2008 3:49:09 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=MC | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:49:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4817 +; + +-- Jul 9, 2008 3:49:44 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=OO | @ElementType@=OT | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:49:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4764 +; + +-- Jul 9, 2008 3:49:45 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=AC | @ElementType@=U1 | @ElementType@=U2 | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:49:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4765 +; + +-- Jul 9, 2008 3:49:47 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=PR | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:49:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4766 +; + +-- Jul 9, 2008 3:49:49 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=MC | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:49:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4777 +; + +-- Jul 9, 2008 3:49:50 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=BP | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:49:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4776 +; + +-- Jul 9, 2008 3:49:51 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=PJ | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:49:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4775 +; + +-- Jul 9, 2008 3:49:53 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=LF | @ElementType@=LT | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:49:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4767 +; + +-- Jul 9, 2008 3:49:54 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=SR | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:49:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4768 +; + +-- Jul 9, 2008 3:50:03 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=AY | @ElementType@=CO',Updated=TO_DATE('2008-07-09 15:50:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4769 +; + +-- Jul 9, 2008 3:50:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-07-09 15:50:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4756 +; + +-- Jul 9, 2008 3:57:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Val_Rule SET Code='C_ElementValue.C_Element_ID IN +(SELECT C_Element_ID FROM C_AcctSchema_Element WHERE C_AcctSchema_ID=@$C_AcctSchema_ID@ AND (ElementType=''@ElementType@'' OR (''@ElementType@''=''CO'' AND ElementType=''AC'')))',Updated=TO_DATE('2008-07-09 15:57:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=258 +; + +-- Jul 9, 2008 5:40:22 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,Help,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',10,100,'UserElement1_ID',0,'N',0,TO_DATE('2008-07-09 17:40:17','YYYY-MM-DD HH24:MI:SS'),'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested)','N',TO_DATE('2008-07-09 17:40:17','YYYY-MM-DD HH24:MI:SS'),0,56151,13,'D','User Element 1','N',100,'N','N','Y',2877,'User defined accounting Element','N','N') +; + +-- Jul 9, 2008 5:40:22 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56151 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 9, 2008 5:40:28 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD UserElement1_ID NUMBER(10) +; + +-- Jul 9, 2008 5:41:13 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,Help,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',10,100,'UserElement2_ID',0,'N',0,TO_DATE('2008-07-09 17:41:12','YYYY-MM-DD HH24:MI:SS'),'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested) ','N',TO_DATE('2008-07-09 17:41:12','YYYY-MM-DD HH24:MI:SS'),0,56152,13,'D','User Element 2','N',100,'N','N','Y',2878,'User defined accounting Element','N','N') +; + +-- Jul 9, 2008 5:41:13 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56152 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 9, 2008 5:41:16 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD UserElement2_ID NUMBER(10) +; + +-- Jul 9, 2008 5:42:04 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,Help,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',10,100,'UserElement1_ID',0,'N',0,TO_DATE('2008-07-09 17:42:00','YYYY-MM-DD HH24:MI:SS'),'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested)','N',TO_DATE('2008-07-09 17:42:00','YYYY-MM-DD HH24:MI:SS'),0,56153,13,'D','User Element 1','N',100,'N','N','Y',2877,'User defined accounting Element','N','N') +; + +-- Jul 9, 2008 5:42:04 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56153 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 9, 2008 5:42:07 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD UserElement1_ID NUMBER(10) +; + +-- Jul 9, 2008 5:42:48 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,Help,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',10,100,'UserElement2_ID',0,'N',0,TO_DATE('2008-07-09 17:42:43','YYYY-MM-DD HH24:MI:SS'),'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested) ','N',TO_DATE('2008-07-09 17:42:43','YYYY-MM-DD HH24:MI:SS'),0,56154,13,'D','User Element 2','N',100,'N','N','Y',2878,'User defined accounting Element','N','N') +; + +-- Jul 9, 2008 5:42:48 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56154 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 9, 2008 5:42:49 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD UserElement2_ID NUMBER(10) +; + +-- Jul 9, 2008 5:48:36 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,SeqNo,Updated,DisplayLength,Help,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,DisplayLogic,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,310,TO_DATE('2008-07-09 17:48:33','YYYY-MM-DD HH24:MI:SS'),14,'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested)',TO_DATE('2008-07-09 17:48:33','YYYY-MM-DD HH24:MI:SS'),'Y',0,56151,'N','D','N','User Element 1','N','@ElementType@=X1 | @ElementType@=CO & @$Element_X1@=Y',100,'Y','Y',56281,'User defined accounting Element','N') +; + +-- Jul 9, 2008 5:48:37 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56281 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 9, 2008 5:48:58 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,SeqNo,Updated,DisplayLength,Help,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,DisplayLogic,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,320,TO_DATE('2008-07-09 17:48:58','YYYY-MM-DD HH24:MI:SS'),14,'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested) ',TO_DATE('2008-07-09 17:48:58','YYYY-MM-DD HH24:MI:SS'),'Y',0,56152,'N','D','N','User Element 2','N','@ElementType@=X2 | @ElementType@=CO & @$Element_X2@=Y',100,'Y','Y',56282,'User defined accounting Element','N') +; + +-- Jul 9, 2008 5:48:59 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56282 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 9, 2008 5:50:43 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,SeqNo,Updated,DisplayLength,Help,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,DisplayLogic,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,170,TO_DATE('2008-07-09 17:50:43','YYYY-MM-DD HH24:MI:SS'),14,'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested)',TO_DATE('2008-07-09 17:50:43','YYYY-MM-DD HH24:MI:SS'),'Y',0,56153,'N','D','N','User Element 1','N','@ElementType@=X1 | @ElementType@=CO & @$Element_X1@=Y',100,'Y','Y',56283,'User defined accounting Element','N') +; + +-- Jul 9, 2008 5:50:44 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56283 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 9, 2008 5:51:07 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,SeqNo,Updated,DisplayLength,Help,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,DisplayLogic,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,180,TO_DATE('2008-07-09 17:51:02','YYYY-MM-DD HH24:MI:SS'),14,'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested) ',TO_DATE('2008-07-09 17:51:02','YYYY-MM-DD HH24:MI:SS'),'Y',0,56154,'N','D','N','User Element 2','N','@ElementType@=X2 | @ElementType@=CO & @$Element_X2@=Y',100,'Y','Y',56284,'User defined accounting Element','N') +; + +-- Jul 9, 2008 5:51:07 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56284 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:40:12 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsOrg',0,TO_DATE('2008-07-10 16:40:08','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2008-07-10 16:40:08','YYYY-MM-DD HH24:MI:SS'),'Include Nulls Org',0,'D','Include Nulls Org',100,'Y',53657,'Include nulls in the selection of the organization') +; + +-- Jul 10, 2008 4:40:12 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53657 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:41:23 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsElementValue',0,TO_DATE('2008-07-10 16:41:22','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2008-07-10 16:41:22','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in Account',0,'D','Include Nulls in Account',100,'Y',53658,'Include nulls in the selection of the account') +; + +-- Jul 10, 2008 4:41:23 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53658 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Element SET PrintName='Include Nulls in Org', Name='Include Nulls in Org',Updated=TO_DATE('2008-07-10 16:41:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53657 +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53657 +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Column SET ColumnName='IsIncludeNullsOrg', Name='Include Nulls in Org', Description='Include nulls in the selection of the organization', Help=NULL WHERE AD_Element_ID=53657 +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET Name='Include Nulls in Org', Description='Include nulls in the selection of the organization', Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53657) AND IsCentrallyMaintained='Y' +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Process_Para SET ColumnName='IsIncludeNullsOrg', Name='Include Nulls in Org', Description='Include nulls in the selection of the organization', Help=NULL, AD_Element_ID=53657 WHERE UPPER(ColumnName)='ISINCLUDENULLSORG' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Process_Para SET ColumnName='IsIncludeNullsOrg', Name='Include Nulls in Org', Description='Include nulls in the selection of the organization', Help=NULL WHERE AD_Element_ID=53657 AND IsCentrallyMaintained='Y' +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_PrintFormatItem pi SET PrintName='Include Nulls in Org', Name='Include Nulls in Org' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53657) +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_PrintFormatItem pi SET PrintName='Include Nulls in Org', Name='Include Nulls in Org' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53657) +; + +-- Jul 10, 2008 4:41:55 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Help,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsBpartner',0,TO_DATE('2008-07-10 16:41:54','YYYY-MM-DD HH24:MI:SS'),NULL,TO_DATE('2008-07-10 16:41:54','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in BPartner',0,'D','Include Nulls in BPartner',100,'Y',53659,'Include nulls in the selection of the business partner') +; + +-- Jul 10, 2008 4:41:55 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53659 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:42:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Element SET ColumnName='IsIncludeNullsBPartner',Updated=TO_DATE('2008-07-10 16:42:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53659 +; + +-- Jul 10, 2008 4:42:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Column SET ColumnName='IsIncludeNullsBPartner', Name='Include Nulls in BPartner', Description='Include nulls in the selection of the business partner', Help=NULL WHERE AD_Element_ID=53659 +; + +-- Jul 10, 2008 4:42:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET Name='Include Nulls in BPartner', Description='Include nulls in the selection of the business partner', Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53659) AND IsCentrallyMaintained='Y' +; + +-- Jul 10, 2008 4:42:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Process_Para SET ColumnName='IsIncludeNullsBPartner', Name='Include Nulls in BPartner', Description='Include nulls in the selection of the business partner', Help=NULL, AD_Element_ID=53659 WHERE UPPER(ColumnName)='ISINCLUDENULLSBPARTNER' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Jul 10, 2008 4:42:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Process_Para SET ColumnName='IsIncludeNullsBPartner', Name='Include Nulls in BPartner', Description='Include nulls in the selection of the business partner', Help=NULL WHERE AD_Element_ID=53659 AND IsCentrallyMaintained='Y' +; + +-- Jul 10, 2008 4:42:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_PrintFormatItem pi SET PrintName='Include Nulls in BPartner', Name='Include Nulls in BPartner' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53659) +; + +-- Jul 10, 2008 4:42:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_PrintFormatItem pi SET PrintName='Include Nulls in BPartner', Name='Include Nulls in BPartner' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53659) +; + +-- Jul 10, 2008 4:42:37 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsProduct',0,TO_DATE('2008-07-10 16:42:37','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2008-07-10 16:42:37','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in Product',0,'D','Include Nulls in Product',100,'Y',53660,'Include nulls in the selection of the product') +; + +-- Jul 10, 2008 4:42:37 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53660 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:42:54 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsLocation',0,TO_DATE('2008-07-10 16:42:53','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2008-07-10 16:42:53','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in Location',0,'D','Include Nulls in Location',100,'Y',53661,'Include nulls in the selection of the location') +; + +-- Jul 10, 2008 4:42:55 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53661 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:43:14 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsProject',0,TO_DATE('2008-07-10 16:43:13','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2008-07-10 16:43:13','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in Project',0,'D','Include Nulls in Project',100,'Y',53662,'Include nulls in the selection of the project') +; + +-- Jul 10, 2008 4:43:15 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53662 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:43:34 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsSalesRegion',0,TO_DATE('2008-07-10 16:43:33','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2008-07-10 16:43:33','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in Sales Region',0,'D','Include Nulls in Sales Region',100,'Y',53663,'Include nulls in the selection of the sales region') +; + +-- Jul 10, 2008 4:43:34 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53663 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:43:51 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsActivity',0,TO_DATE('2008-07-10 16:43:50','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2008-07-10 16:43:50','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in Activity',0,'D','Include Nulls in Activity',100,'Y',53664,'Include nulls in the selection of the activity') +; + +-- Jul 10, 2008 4:43:51 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53664 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:44:05 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsCampaign',0,TO_DATE('2008-07-10 16:44:04','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2008-07-10 16:44:04','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in Campaign',0,'D','Include Nulls in Campaign',100,'Y',53665,'Include nulls in the selection of the campaign') +; + +-- Jul 10, 2008 4:44:05 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53665 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:44:23 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsUserElement1',0,TO_DATE('2008-07-10 16:44:22','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2008-07-10 16:44:22','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in User Element 1',0,'D','Include Nulls in User Element 1',100,'Y',53666,'Include nulls in the selection of the user element 1') +; + +-- Jul 10, 2008 4:44:23 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53666 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:44:31 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsUserElement2',0,TO_DATE('2008-07-10 16:44:30','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2008-07-10 16:44:30','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in User Element 2',0,'D','Include Nulls in User Element 2',100,'Y',53667,'Include nulls in the selection of the user element 2') +; + +-- Jul 10, 2008 4:44:31 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53667 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:45:53 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsOrg',0,'N',0,TO_DATE('2008-07-10 16:45:51','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:45:51','YYYY-MM-DD HH24:MI:SS'),0,56155,20,'D','Include Nulls in Org','N',100,'Y','N','Y',53657,'Include nulls in the selection of the organization','N','N') +; + +-- Jul 10, 2008 4:45:53 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56155 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:45:57 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD IsIncludeNullsOrg CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsOrg IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:46:26 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsElementValue',0,'N',0,TO_DATE('2008-07-10 16:46:26','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:46:26','YYYY-MM-DD HH24:MI:SS'),0,56156,20,'D','Include Nulls in Account','N',100,'Y','N','Y',53658,'Include nulls in the selection of the account','N','N') +; + +-- Jul 10, 2008 4:46:26 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56156 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:46:31 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD IsIncludeNullsElementValue CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsElementValue IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:46:47 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsBPartner',0,'N',0,TO_DATE('2008-07-10 16:46:46','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:46:46','YYYY-MM-DD HH24:MI:SS'),0,56157,20,'D','Include Nulls in BPartner','N',100,'Y','N','Y',53659,'Include nulls in the selection of the business partner','N','N') +; + +-- Jul 10, 2008 4:46:47 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56157 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:46:50 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD IsIncludeNullsBPartner CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsBPartner IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:47:02 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsProduct',0,'N',0,TO_DATE('2008-07-10 16:47:02','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:47:02','YYYY-MM-DD HH24:MI:SS'),0,56158,20,'D','Include Nulls in Product','N',100,'Y','N','Y',53660,'Include nulls in the selection of the product','N','N') +; + +-- Jul 10, 2008 4:47:03 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56158 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:47:04 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD IsIncludeNullsProduct CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsProduct IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:47:16 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsLocation',0,'N',0,TO_DATE('2008-07-10 16:47:15','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:47:15','YYYY-MM-DD HH24:MI:SS'),0,56159,20,'D','Include Nulls in Location','N',100,'Y','N','Y',53661,'Include nulls in the selection of the location','N','N') +; + +-- Jul 10, 2008 4:47:16 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56159 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:47:18 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD IsIncludeNullsLocation CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsLocation IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:47:30 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsProject',0,'N',0,TO_DATE('2008-07-10 16:47:29','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:47:29','YYYY-MM-DD HH24:MI:SS'),0,56160,20,'D','Include Nulls in Project','N',100,'Y','N','Y',53662,'Include nulls in the selection of the project','N','N') +; + +-- Jul 10, 2008 4:47:30 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56160 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:47:32 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD IsIncludeNullsProject CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsProject IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:47:43 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsSalesRegion',0,'N',0,TO_DATE('2008-07-10 16:47:42','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:47:42','YYYY-MM-DD HH24:MI:SS'),0,56161,20,'D','Include Nulls in Sales Region','N',100,'Y','N','Y',53663,'Include nulls in the selection of the sales region','N','N') +; + +-- Jul 10, 2008 4:47:43 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56161 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:47:45 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD IsIncludeNullsSalesRegion CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsSalesRegion IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:48:04 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsActivity',0,'N',0,TO_DATE('2008-07-10 16:48:03','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:48:03','YYYY-MM-DD HH24:MI:SS'),0,56162,20,'D','Include Nulls in Activity','N',100,'Y','N','Y',53664,'Include nulls in the selection of the activity','N','N') +; + +-- Jul 10, 2008 4:48:04 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56162 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:48:06 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD IsIncludeNullsActivity CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsActivity IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:48:17 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsCampaign',0,'N',0,TO_DATE('2008-07-10 16:48:16','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:48:16','YYYY-MM-DD HH24:MI:SS'),0,56163,20,'D','Include Nulls in Campaign','N',100,'Y','N','Y',53665,'Include nulls in the selection of the campaign','N','N') +; + +-- Jul 10, 2008 4:48:17 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56163 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:48:19 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD IsIncludeNullsCampaign CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsCampaign IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:49:00 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsUserElement1',0,'N',0,TO_DATE('2008-07-10 16:48:59','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:48:59','YYYY-MM-DD HH24:MI:SS'),0,56164,20,'D','Include Nulls in User Element 1','N',100,'Y','N','Y',53666,'Include nulls in the selection of the user element 1','N','N') +; + +-- Jul 10, 2008 4:49:00 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56164 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:49:03 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD IsIncludeNullsUserElement1 CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsUserElement1 IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:49:13 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsUserElement2',0,'N',0,TO_DATE('2008-07-10 16:49:12','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:49:12','YYYY-MM-DD HH24:MI:SS'),0,56165,20,'D','Include Nulls in User Element 2','N',100,'Y','N','Y',53667,'Include nulls in the selection of the user element 2','N','N') +; + +-- Jul 10, 2008 4:49:13 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56165 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:49:15 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD IsIncludeNullsUserElement2 CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsUserElement2 IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:51:52 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsOrg',0,'N',0,TO_DATE('2008-07-10 16:51:51','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:51:51','YYYY-MM-DD HH24:MI:SS'),0,56166,20,'D','Include Nulls in Org','N',100,'Y','N','Y',53657,'Include nulls in the selection of the organization','N','N') +; + +-- Jul 10, 2008 4:51:52 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56166 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:51:53 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD IsIncludeNullsOrg CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsOrg IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:52:12 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsElementValue',0,'N',0,TO_DATE('2008-07-10 16:52:12','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:52:12','YYYY-MM-DD HH24:MI:SS'),0,56167,20,'D','Include Nulls in Account','N',100,'Y','N','Y',53658,'Include nulls in the selection of the account','N','N') +; + +-- Jul 10, 2008 4:52:12 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56167 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:52:14 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD IsIncludeNullsElementValue CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsElementValue IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:52:32 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsBPartner',0,'N',0,TO_DATE('2008-07-10 16:52:31','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:52:31','YYYY-MM-DD HH24:MI:SS'),0,56168,20,'D','Include Nulls in BPartner','N',100,'Y','N','Y',53659,'Include nulls in the selection of the business partner','N','N') +; + +-- Jul 10, 2008 4:52:32 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56168 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:52:34 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD IsIncludeNullsBPartner CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsBPartner IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:52:48 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsProduct',0,'N',0,TO_DATE('2008-07-10 16:52:46','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:52:46','YYYY-MM-DD HH24:MI:SS'),0,56169,20,'D','Include Nulls in Product','N',100,'Y','N','Y',53660,'Include nulls in the selection of the product','N','N') +; + +-- Jul 10, 2008 4:52:48 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56169 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:52:50 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD IsIncludeNullsProduct CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsProduct IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:53:00 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsLocation',0,'N',0,TO_DATE('2008-07-10 16:52:59','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:52:59','YYYY-MM-DD HH24:MI:SS'),0,56170,20,'D','Include Nulls in Location','N',100,'Y','N','Y',53661,'Include nulls in the selection of the location','N','N') +; + +-- Jul 10, 2008 4:53:00 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56170 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:53:01 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD IsIncludeNullsLocation CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsLocation IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:53:13 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsProject',0,'N',0,TO_DATE('2008-07-10 16:53:12','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:53:12','YYYY-MM-DD HH24:MI:SS'),0,56171,20,'D','Include Nulls in Project','N',100,'Y','N','Y',53662,'Include nulls in the selection of the project','N','N') +; + +-- Jul 10, 2008 4:53:13 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56171 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:53:14 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD IsIncludeNullsProject CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsProject IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:53:28 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsSalesRegion',0,'N',0,TO_DATE('2008-07-10 16:53:26','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:53:26','YYYY-MM-DD HH24:MI:SS'),0,56172,20,'D','Include Nulls in Sales Region','N',100,'Y','N','Y',53663,'Include nulls in the selection of the sales region','N','N') +; + +-- Jul 10, 2008 4:53:28 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56172 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:53:29 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD IsIncludeNullsSalesRegion CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsSalesRegion IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:53:42 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsActivity',0,'N',0,TO_DATE('2008-07-10 16:53:40','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:53:40','YYYY-MM-DD HH24:MI:SS'),0,56173,20,'D','Include Nulls in Activity','N',100,'Y','N','Y',53664,'Include nulls in the selection of the activity','N','N') +; + +-- Jul 10, 2008 4:53:42 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56173 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:53:44 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD IsIncludeNullsActivity CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsActivity IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:53:54 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsCampaign',0,'N',0,TO_DATE('2008-07-10 16:53:54','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:53:54','YYYY-MM-DD HH24:MI:SS'),0,56174,20,'D','Include Nulls in Campaign','N',100,'Y','N','Y',53665,'Include nulls in the selection of the campaign','N','N') +; + +-- Jul 10, 2008 4:53:55 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56174 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:53:58 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD IsIncludeNullsCampaign CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsCampaign IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:54:10 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsUserElement1',0,'N',0,TO_DATE('2008-07-10 16:54:09','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:54:09','YYYY-MM-DD HH24:MI:SS'),0,56175,20,'D','Include Nulls in User Element 1','N',100,'Y','N','Y',53666,'Include nulls in the selection of the user element 1','N','N') +; + +-- Jul 10, 2008 4:54:10 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56175 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:54:12 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD IsIncludeNullsUserElement1 CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsUserElement1 IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:54:24 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsUserElement2',0,'N',0,TO_DATE('2008-07-10 16:54:23','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_DATE('2008-07-10 16:54:23','YYYY-MM-DD HH24:MI:SS'),0,56176,20,'D','Include Nulls in User Element 2','N',100,'Y','N','Y',53667,'Include nulls in the selection of the user element 2','N','N') +; + +-- Jul 10, 2008 4:54:24 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56176 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:54:26 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD IsIncludeNullsUserElement2 CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsUserElement2 IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:55:32 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_DATE('2008-07-10 16:55:29','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:55:29','YYYY-MM-DD HH24:MI:SS'),'Y',0,56156,'N','D','N','Include Nulls in Account','N',100,'Y','Y',56285,'Include nulls in the selection of the account','N') +; + +-- Jul 10, 2008 4:55:33 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56285 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:34 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_DATE('2008-07-10 16:55:33','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:55:33','YYYY-MM-DD HH24:MI:SS'),'Y',0,56162,'N','D','N','Include Nulls in Activity','N',100,'Y','Y',56286,'Include nulls in the selection of the activity','N') +; + +-- Jul 10, 2008 4:55:34 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56286 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:35 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_DATE('2008-07-10 16:55:34','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:55:34','YYYY-MM-DD HH24:MI:SS'),'Y',0,56157,'N','D','N','Include Nulls in BPartner','N',100,'Y','Y',56287,'Include nulls in the selection of the business partner','N') +; + +-- Jul 10, 2008 4:55:36 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56287 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:36 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_DATE('2008-07-10 16:55:36','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:55:36','YYYY-MM-DD HH24:MI:SS'),'Y',0,56163,'N','D','N','Include Nulls in Campaign','N',100,'Y','Y',56288,'Include nulls in the selection of the campaign','N') +; + +-- Jul 10, 2008 4:55:36 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56288 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:37 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_DATE('2008-07-10 16:55:36','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:55:36','YYYY-MM-DD HH24:MI:SS'),'Y',0,56159,'N','D','N','Include Nulls in Location','N',100,'Y','Y',56289,'Include nulls in the selection of the location','N') +; + +-- Jul 10, 2008 4:55:38 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56289 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:39 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_DATE('2008-07-10 16:55:38','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:55:38','YYYY-MM-DD HH24:MI:SS'),'Y',0,56155,'N','D','N','Include Nulls in Org','N',100,'Y','Y',56290,'Include nulls in the selection of the organization','N') +; + +-- Jul 10, 2008 4:55:39 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56290 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:40 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_DATE('2008-07-10 16:55:39','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:55:39','YYYY-MM-DD HH24:MI:SS'),'Y',0,56158,'N','D','N','Include Nulls in Product','N',100,'Y','Y',56291,'Include nulls in the selection of the product','N') +; + +-- Jul 10, 2008 4:55:41 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56291 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:43 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_DATE('2008-07-10 16:55:41','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:55:41','YYYY-MM-DD HH24:MI:SS'),'Y',0,56160,'N','D','N','Include Nulls in Project','N',100,'Y','Y',56292,'Include nulls in the selection of the project','N') +; + +-- Jul 10, 2008 4:55:43 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56292 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:44 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_DATE('2008-07-10 16:55:43','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:55:43','YYYY-MM-DD HH24:MI:SS'),'Y',0,56161,'N','D','N','Include Nulls in Sales Region','N',100,'Y','Y',56293,'Include nulls in the selection of the sales region','N') +; + +-- Jul 10, 2008 4:55:44 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56293 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:45 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_DATE('2008-07-10 16:55:45','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:55:45','YYYY-MM-DD HH24:MI:SS'),'Y',0,56164,'N','D','N','Include Nulls in User Element 1','N',100,'Y','Y',56294,'Include nulls in the selection of the user element 1','N') +; + +-- Jul 10, 2008 4:55:46 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56294 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:47 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_DATE('2008-07-10 16:55:46','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:55:46','YYYY-MM-DD HH24:MI:SS'),'Y',0,56165,'N','D','N','Include Nulls in User Element 2','N',100,'Y','Y',56295,'Include nulls in the selection of the user element 2','N') +; + +-- Jul 10, 2008 4:55:47 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56295 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=4811 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=4812 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=4813 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=4803 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=4802 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=4814 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=4804 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=4815 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=56290 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=56285 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=4816 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=56287 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=4807 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=56291 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=4808 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=56289 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=4806 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=56292 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=4809 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=56293 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=4810 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=56286 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=4817 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=56288 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=56283 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=56294 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=56284 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=56295 +; + +-- Jul 10, 2008 4:57:40 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-07-10 16:57:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56290 +; + +-- Jul 10, 2008 4:57:52 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 16:57:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56290 +; + +-- Jul 10, 2008 4:57:56 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 16:57:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56285 +; + +-- Jul 10, 2008 4:57:59 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 16:57:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56287 +; + +-- Jul 10, 2008 4:58:03 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 16:58:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56291 +; + +-- Jul 10, 2008 4:58:06 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 16:58:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56289 +; + +-- Jul 10, 2008 4:58:10 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 16:58:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56292 +; + +-- Jul 10, 2008 4:58:12 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 16:58:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56293 +; + +-- Jul 10, 2008 4:58:16 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 16:58:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56286 +; + +-- Jul 10, 2008 4:58:19 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 16:58:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56288 +; + +-- Jul 10, 2008 4:58:29 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO & @$Element_X1@=Y',Updated=TO_DATE('2008-07-10 16:58:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56294 +; + +-- Jul 10, 2008 4:58:38 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO & @$Element_X2@=Y',Updated=TO_DATE('2008-07-10 16:58:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56295 +; + +-- Jul 10, 2008 4:58:52 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLength=14,Updated=TO_DATE('2008-07-10 16:58:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4816 +; + +-- Jul 10, 2008 4:58:54 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLength=14,Updated=TO_DATE('2008-07-10 16:58:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4807 +; + +-- Jul 10, 2008 4:58:58 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLength=14,Updated=TO_DATE('2008-07-10 16:58:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4808 +; + +-- Jul 10, 2008 4:59:19 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_DATE('2008-07-10 16:59:18','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:59:18','YYYY-MM-DD HH24:MI:SS'),'Y',0,56167,'N','D','N','Include Nulls in Account','N',100,'Y','Y',56296,'Include nulls in the selection of the account','N') +; + +-- Jul 10, 2008 4:59:20 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56296 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:21 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_DATE('2008-07-10 16:59:20','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:59:20','YYYY-MM-DD HH24:MI:SS'),'Y',0,56173,'N','D','N','Include Nulls in Activity','N',100,'Y','Y',56297,'Include nulls in the selection of the activity','N') +; + +-- Jul 10, 2008 4:59:21 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56297 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:22 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_DATE('2008-07-10 16:59:21','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:59:21','YYYY-MM-DD HH24:MI:SS'),'Y',0,56168,'N','D','N','Include Nulls in BPartner','N',100,'Y','Y',56298,'Include nulls in the selection of the business partner','N') +; + +-- Jul 10, 2008 4:59:22 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56298 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:23 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_DATE('2008-07-10 16:59:22','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:59:22','YYYY-MM-DD HH24:MI:SS'),'Y',0,56174,'N','D','N','Include Nulls in Campaign','N',100,'Y','Y',56299,'Include nulls in the selection of the campaign','N') +; + +-- Jul 10, 2008 4:59:23 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56299 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:24 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_DATE('2008-07-10 16:59:23','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:59:23','YYYY-MM-DD HH24:MI:SS'),'Y',0,56170,'N','D','N','Include Nulls in Location','N',100,'Y','Y',56300,'Include nulls in the selection of the location','N') +; + +-- Jul 10, 2008 4:59:24 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56300 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:25 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_DATE('2008-07-10 16:59:24','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:59:24','YYYY-MM-DD HH24:MI:SS'),'Y',0,56166,'N','D','N','Include Nulls in Org','N',100,'Y','Y',56301,'Include nulls in the selection of the organization','N') +; + +-- Jul 10, 2008 4:59:25 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56301 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:26 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_DATE('2008-07-10 16:59:25','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:59:25','YYYY-MM-DD HH24:MI:SS'),'Y',0,56169,'N','D','N','Include Nulls in Product','N',100,'Y','Y',56302,'Include nulls in the selection of the product','N') +; + +-- Jul 10, 2008 4:59:26 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56302 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:27 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_DATE('2008-07-10 16:59:26','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:59:26','YYYY-MM-DD HH24:MI:SS'),'Y',0,56171,'N','D','N','Include Nulls in Project','N',100,'Y','Y',56303,'Include nulls in the selection of the project','N') +; + +-- Jul 10, 2008 4:59:27 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56303 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:29 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_DATE('2008-07-10 16:59:27','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:59:27','YYYY-MM-DD HH24:MI:SS'),'Y',0,56172,'N','D','N','Include Nulls in Sales Region','N',100,'Y','Y',56304,'Include nulls in the selection of the sales region','N') +; + +-- Jul 10, 2008 4:59:29 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56304 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:30 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_DATE('2008-07-10 16:59:29','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:59:29','YYYY-MM-DD HH24:MI:SS'),'Y',0,56175,'N','D','N','Include Nulls in User Element 1','N',100,'Y','Y',56305,'Include nulls in the selection of the user element 1','N') +; + +-- Jul 10, 2008 4:59:30 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56305 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:31 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_DATE('2008-07-10 16:59:30','YYYY-MM-DD HH24:MI:SS'),1,TO_DATE('2008-07-10 16:59:30','YYYY-MM-DD HH24:MI:SS'),'Y',0,56176,'N','D','N','Include Nulls in User Element 2','N',100,'Y','Y',56306,'Include nulls in the selection of the user element 2','N') +; + +-- Jul 10, 2008 4:59:31 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56306 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=4747 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=4748 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=4771 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=4749 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=4750 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=4751 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=4772 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=4752 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=4773 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=4753 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=4754 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=4760 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=4758 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=4774 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=4770 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=4756 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=4757 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=4759 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=4761 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=4762 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=4763 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=4764 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=56301 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=56296 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=4766 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=56302 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=4777 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=56299 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=4776 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=56298 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=4775 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=56303 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=4767 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=56300 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=4768 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=56304 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=4769 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=380,IsDisplayed='Y' WHERE AD_Field_ID=56297 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=390,IsDisplayed='Y' WHERE AD_Field_ID=56281 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=400,IsDisplayed='Y' WHERE AD_Field_ID=56305 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=56282 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=420,IsDisplayed='Y' WHERE AD_Field_ID=56306 +; + +-- Jul 10, 2008 5:04:32 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 17:04:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56301 +; + +-- Jul 10, 2008 5:04:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 17:04:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56296 +; + +-- Jul 10, 2008 5:04:39 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 17:04:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56302 +; + +-- Jul 10, 2008 5:04:47 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 17:04:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56299 +; + +-- Jul 10, 2008 5:04:50 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 17:04:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56298 +; + +-- Jul 10, 2008 5:04:52 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 17:04:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56303 +; + +-- Jul 10, 2008 5:04:54 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 17:04:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56300 +; + +-- Jul 10, 2008 5:04:57 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 17:04:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56304 +; + +-- Jul 10, 2008 5:05:01 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_DATE('2008-07-10 17:05:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56297 +; + +-- Jul 10, 2008 5:05:09 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO & @$Element_X1@=Y',Updated=TO_DATE('2008-07-10 17:05:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56305 +; + +-- Jul 10, 2008 5:05:14 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO & @$Element_X2@=Y',Updated=TO_DATE('2008-07-10 17:05:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56306 +; + +-- Jul 10, 2008 5:05:20 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLength=14,Updated=TO_DATE('2008-07-10 17:05:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4766 +; + +-- Jul 10, 2008 5:05:22 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLength=14,Updated=TO_DATE('2008-07-10 17:05:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4776 +; + +-- Jul 10, 2008 5:05:25 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLength=14,Updated=TO_DATE('2008-07-10 17:05:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4767 +; diff --git a/migration/351a-352a/227_MessageVPayPrintPrintCheck.sql b/migration/351a-352a/227_MessageVPayPrintPrintCheck.sql new file mode 100644 index 0000000000..d0fd19ce6b --- /dev/null +++ b/migration/351a-352a/227_MessageVPayPrintPrintCheck.sql @@ -0,0 +1,5 @@ +-- Jul 11, 2008 3:04:33 AM COT +-- Changes to Payment Selection and Print +UPDATE AD_Column SET AD_Reference_Value_ID=343,Updated=TO_DATE('2008-07-11 03:04:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=7719 +; + diff --git a/migration/351a-352a/228_BF2003790_BOM_Verify.sql b/migration/351a-352a/228_BF2003790_BOM_Verify.sql new file mode 100755 index 0000000000..5a8bcb9b67 --- /dev/null +++ b/migration/351a-352a/228_BF2003790_BOM_Verify.sql @@ -0,0 +1,25 @@ +-- Jul 7, 2008 1:24:00 PM EST +-- Default comment for updating dictionary +UPDATE AD_Process SET Classname='org.eevolution.process.PP_Product_BOM_Check', Value='PP_Product_BOM',Updated=TO_DATE('2008-07-07 13:24:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=136 +; + +-- Jul 7, 2008 1:26:22 PM EST +-- Default comment for updating dictionary +UPDATE AD_Process SET Description='Verify BOM Structure and Update Low Level',Updated=TO_DATE('2008-07-07 13:26:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=136 +; + +-- Jul 7, 2008 1:26:22 PM EST +-- Default comment for updating dictionary +UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=136 +; + +-- Jul 7, 2008 1:28:22 PM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET Description='Verify BOM Structure and Update Low Level', DisplayLogic='@IsSummary@=''N'' & @IsBOM@=''Y''',Updated=TO_DATE('2008-07-07 13:28:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3747 +; + +-- Jul 7, 2008 1:28:22 PM EST +-- Default comment for updating dictionary +UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=3747 +; + diff --git a/migration/351a-352a/229_FinReportSpeedUp.sql b/migration/351a-352a/229_FinReportSpeedUp.sql new file mode 100644 index 0000000000..20de9377f2 --- /dev/null +++ b/migration/351a-352a/229_FinReportSpeedUp.sql @@ -0,0 +1,67 @@ +-- 1642765 - problem with Facc_act_balance slow financial report + +DROP TABLE FACT_ACCT_BALANCE +; + +CREATE OR REPLACE VIEW fact_acct_balance +AS + SELECT ad_client_id, ad_org_id, c_acctschema_id, + TRUNC (dateacct) as dateacct, account_id, postingtype, + m_product_id, c_bpartner_id, c_project_id, ad_orgtrx_id, + c_salesregion_id, c_activity_id, c_campaign_id, c_locto_id, + c_locfrom_id, user1_id, user2_id, gl_budget_id, + COALESCE (SUM (amtacctdr), 0) as amtacctdr, + COALESCE (SUM (amtacctcr), 0) as amtacctcr, + COALESCE (SUM (qty), 0) as qty, MAX (createdby) as createdby, + MAX (created) as created, MAX (updatedby) as updatedby, + MAX (updated) as updated, MAX (isactive) as isactive, + MAX (c_subacct_id) as c_subacct_id, userelement1_id, + userelement2_id, MAX (c_projectphase_id) as c_projectphase_id, + MAX (c_projecttask_id) as c_projecttask_id + FROM fact_acct a + GROUP BY ad_client_id, ad_org_id, c_acctschema_id, + TRUNC (dateacct), account_id, postingtype, + m_product_id, c_bpartner_id, c_project_id, ad_orgtrx_id, + c_salesregion_id, c_activity_id, c_campaign_id, c_locto_id, + c_locfrom_id, user1_id, user2_id, + userelement1_id, userelement2_id, + gl_budget_id +; + +CREATE INDEX FACT_ACCT_TRUNC_DATEACCT ON FACT_ACCT (TRUNC(dateacct)) +; + +-- Jul 15, 2008 1:27:48 AM COT +-- 1642765 - problem with Facc_act_balance slow financial report +UPDATE AD_Table SET IsView='Y',Updated=TO_DATE('2008-07-15 01:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=547 +; + +-- Jul 15, 2008 1:31:01 AM COT +-- 1642765 - problem with Facc_act_balance slow financial report +UPDATE AD_Process_Para SET IsActive = 'N',Updated=TO_DATE('2008-07-15 01:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=283 +; + +-- Jul 15, 2008 1:32:35 AM COT +-- 1642765 - problem with Facc_act_balance slow financial report +UPDATE AD_Menu SET IsActive = 'N',Updated=TO_DATE('2008-07-15 01:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=393 +; + +-- Jul 15, 2008 1:32:44 AM COT +-- 1642765 - problem with Facc_act_balance slow financial report +UPDATE AD_Process SET IsActive = 'N',Updated=TO_DATE('2008-07-15 01:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=203 +; + +-- Jul 15, 2008 1:34:15 AM COT +-- 1642765 - problem with Facc_act_balance slow financial report +UPDATE AD_Process_Para SET IsActive = 'N',Updated=TO_DATE('2008-07-15 01:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=453 +; + +-- Jul 15, 2008 1:34:26 AM COT +-- 1642765 - problem with Facc_act_balance slow financial report +UPDATE AD_Process_Para SET IsActive = 'N',Updated=TO_DATE('2008-07-15 01:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53123 +; + +-- Jul 15, 2008 1:35:05 AM COT +-- 1642765 - problem with Facc_act_balance slow financial report +UPDATE AD_Process_Para SET IsActive = 'N',Updated=TO_DATE('2008-07-15 01:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=454 +; \ No newline at end of file diff --git a/migration/351a-352a/230_BF2021146_VMRPDetail_and_Report.sql b/migration/351a-352a/230_BF2021146_VMRPDetail_and_Report.sql new file mode 100644 index 0000000000..f1a96d7654 --- /dev/null +++ b/migration/351a-352a/230_BF2021146_VMRPDetail_and_Report.sql @@ -0,0 +1,766 @@ +-- Jul 16, 2008 3:40:38 PM CDT +-- MRP Detail Report +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,113,0,53018,53211,19,130,'AD_Org_ID',TO_DATE('2008-07-16 15:40:13','YYYY-MM-DD HH24:MI:SS'),100,'Organizational entity within client','EE01',10,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','Y','N','N','Organization',10,TO_DATE('2008-07-16 15:40:13','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 16, 2008 3:40:38 PM CDT +-- MRP Detail Report +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=53211 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) +; + +-- Jul 16, 2008 3:42:51 PM CDT +-- MRP Detail Report +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1777,0,53018,53212,19,52002,'Resource',TO_DATE('2008-07-16 15:42:44','YYYY-MM-DD HH24:MI:SS'),100,'Resource','EE01',10,'Resource','Y','Y','N','N','Resource',10,TO_DATE('2008-07-16 15:42:44','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 16, 2008 3:42:51 PM CDT +-- MRP Detail Report +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=53212 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) +; + +-- Jul 16, 2008 3:47:18 PM CDT +-- MRP Detail Report +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_Reference_Value_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1514,0,53018,53213,17,154,'Priority',TO_DATE('2008-07-16 15:47:16','YYYY-MM-DD HH24:MI:SS'),100,'Priority','EE01',10,'Priority','Y','Y','N','N','Priority',70,TO_DATE('2008-07-16 15:47:16','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 16, 2008 3:47:18 PM CDT +-- MRP Detail Report +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=53213 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) +; + +-- Jul 16, 2008 3:49:11 PM CDT +-- MRP Detail Report +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,459,0,53018,53214,19,189,'M_Warehouse_ID',TO_DATE('2008-07-16 15:49:05','YYYY-MM-DD HH24:MI:SS'),100,'Storage Warehouse and Service Point','EE01',22,'The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','Y','N','N','Warehouse',80,TO_DATE('2008-07-16 15:49:05','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 16, 2008 3:49:11 PM CDT +-- MRP Detail Report +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=53214 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) +; + +-- Jul 16, 2008 3:54:22 PM CDT +-- MRP Detail Report +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,454,0,53018,53215,30,'Product',TO_DATE('2008-07-16 15:54:14','YYYY-MM-DD HH24:MI:SS'),100,'Product, Service, Item','EE01',22,'Identifies an item which is either purchased or sold in this organization.','Y','Y','N','N','Product',90,TO_DATE('2008-07-16 15:54:14','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 16, 2008 3:54:22 PM CDT +-- MRP Detail Report +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=53215 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) +; + +-- Jul 16, 2008 3:55:17 PM CDT +-- MRP Detail Report +UPDATE AD_Reference SET Name='_TypeMRP',Updated=TO_DATE('2008-07-16 15:55:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53229 +; + +-- Jul 16, 2008 3:55:17 PM CDT +-- MRP Detail Report +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53229 +; + +-- Jul 16, 2008 3:55:44 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Forecast',Updated=TO_DATE('2008-07-16 15:55:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53275 +; + +-- Jul 16, 2008 3:55:44 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53275 +; + +-- Jul 16, 2008 3:56:01 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Manufacturing Order',Updated=TO_DATE('2008-07-16 15:56:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53276 +; + +-- Jul 16, 2008 3:56:01 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53276 +; + +-- Jul 16, 2008 3:56:16 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Purchase Order',Updated=TO_DATE('2008-07-16 15:56:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53277 +; + +-- Jul 16, 2008 3:56:16 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53277 +; + +-- Jul 16, 2008 3:57:10 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Material Requisition',Updated=TO_DATE('2008-07-16 15:57:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53278 +; + +-- Jul 16, 2008 3:57:10 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53278 +; + +-- Jul 16, 2008 3:57:25 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Orden de Venta',Updated=TO_DATE('2008-07-16 15:57:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53279 +; + +-- Jul 16, 2008 3:57:25 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53279 +; + +-- Jul 16, 2008 4:00:16 PM CDT +-- MRP Detail Report +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53435,53229,TO_DATE('2008-07-16 16:00:10','YYYY-MM-DD HH24:MI:SS'),100,'EE01','Y','Distribution Order',TO_DATE('2008-07-16 16:00:10','YYYY-MM-DD HH24:MI:SS'),100,'DOO') +; + +-- Jul 16, 2008 4:00:16 PM CDT +-- MRP Detail Report +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_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_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53435 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 16, 2008 4:00:24 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Sales Order',Updated=TO_DATE('2008-07-16 16:00:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53279 +; + +-- Jul 16, 2008 4:00:24 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53279 +; + +-- Jul 16, 2008 4:01:47 PM CDT +-- MRP Detail Report +UPDATE AD_Reference SET Name='_PP_MRP Type',Updated=TO_DATE('2008-07-16 16:01:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53230 +; + +-- Jul 16, 2008 4:01:47 PM CDT +-- MRP Detail Report +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53230 +; + +-- Jul 16, 2008 4:01:55 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Demand',Updated=TO_DATE('2008-07-16 16:01:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53280 +; + +-- Jul 16, 2008 4:01:55 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53280 +; + +-- Jul 16, 2008 4:02:07 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Supply',Updated=TO_DATE('2008-07-16 16:02:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53281 +; + +-- Jul 16, 2008 4:02:07 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53281 +; + +-- Jul 16, 2008 4:14:52 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET FieldLength=10,Updated=TO_DATE('2008-07-16 16:14:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53058 +; + +-- Jul 16, 2008 4:15:43 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET AD_Reference_ID=17, AD_Reference_Value_ID=319,Updated=TO_DATE('2008-07-16 16:15:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53059 +; + +-- Jul 16, 2008 4:20:49 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET ColumnName='S_Resource_ID',Updated=TO_DATE('2008-07-16 16:20:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53212 +; + +-- Jul 16, 2008 4:21:05 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=20,Updated=TO_DATE('2008-07-16 16:21:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53212 +; + +-- Jul 16, 2008 4:21:17 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=30,Updated=TO_DATE('2008-07-16 16:21:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53214 +; + +-- Jul 16, 2008 4:21:54 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=40,Updated=TO_DATE('2008-07-16 16:21:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53060 +; + +-- Jul 16, 2008 4:22:04 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=50,Updated=TO_DATE('2008-07-16 16:22:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53057 +; + +-- Jul 16, 2008 4:22:33 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=60,Updated=TO_DATE('2008-07-16 16:22:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53215 +; + +-- Jul 16, 2008 4:22:49 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=70,Updated=TO_DATE('2008-07-16 16:22:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53056 +; + +-- Jul 16, 2008 4:22:55 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=80,Updated=TO_DATE('2008-07-16 16:22:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53058 +; + +-- Jul 16, 2008 4:23:11 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=90,Updated=TO_DATE('2008-07-16 16:23:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53215 +; + +-- Jul 16, 2008 4:23:15 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=100,Updated=TO_DATE('2008-07-16 16:23:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53055 +; + +-- Jul 16, 2008 4:23:23 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=110,Updated=TO_DATE('2008-07-16 16:23:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53055 +; + +-- Jul 16, 2008 4:23:36 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=60,Updated=TO_DATE('2008-07-16 16:23:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53059 +; + +-- Jul 16, 2008 4:26:01 PM CDT +-- MRP Detail Report +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,290,0,53018,53217,10,'DocumentNo',TO_DATE('2008-07-16 16:25:51','YYYY-MM-DD HH24:MI:SS'),100,'Document sequence number of the document','EE01',40,'The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>".','Y','Y','N','N','Document No',100,TO_DATE('2008-07-16 16:25:51','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 16, 2008 4:26:01 PM CDT +-- MRP Detail Report +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=53217 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) +; + +-- Jul 16, 2008 4:28:28 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET ColumnName='M_Product_ID',Updated=TO_DATE('2008-07-16 16:28:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53215 +; + +-- Jul 16, 2008 4:28:50 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET FieldLength=22,Updated=TO_DATE('2008-07-16 16:28:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53217 +; + +-- Jul 16, 2008 4:29:53 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=60,Updated=TO_DATE('2008-07-16 16:29:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53056 +; + +-- Jul 16, 2008 4:30:01 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=70,Updated=TO_DATE('2008-07-16 16:30:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53058 +; + +-- Jul 16, 2008 4:30:06 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=80,Updated=TO_DATE('2008-07-16 16:30:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53059 +; + +-- Jul 16, 2008 4:30:12 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=90,Updated=TO_DATE('2008-07-16 16:30:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53213 +; + +-- Jul 16, 2008 4:30:27 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=100,Updated=TO_DATE('2008-07-16 16:30:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53215 +; + +-- Jul 16, 2008 4:30:31 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=110,Updated=TO_DATE('2008-07-16 16:30:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53217 +; + +-- Jul 16, 2008 4:30:38 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=120,Updated=TO_DATE('2008-07-16 16:30:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53055 +; + +-- Jul 16, 2008 4:30:59 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET Description='Is MPS',Updated=TO_DATE('2008-07-16 16:30:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53059 +; + +-- Jul 16, 2008 4:30:59 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53059 +; + +-- Jul 16, 2008 4:01:55 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET EntityType='EE01',Updated=TO_DATE('2008-07-16 16:01:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53229 +; + +-- Jul 16, 2008 4:47:31 PM CDT +-- MRP Detail Report +UPDATE AD_Reference SET Name='_MRP Order Type',Updated=TO_DATE('2008-07-16 16:47:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53229 +; + +-- Jul 16, 2008 4:47:31 PM CDT +-- MRP Detail Report +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53229 +; + +-- Jul 16, 2008 4:47:37 PM CDT +-- MRP Detail Report +UPDATE AD_Column SET AD_Element_ID=52020, AD_Reference_ID=17, AD_Reference_Value_ID=53229, ColumnName='OrderType', Description=NULL, Help=NULL, Name='OrderType',Updated=TO_DATE('2008-07-16 16:47:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=54055 +; + +-- Jul 16, 2008 4:47:37 PM CDT +-- MRP Detail Report +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=54055 +; + +-- Jul 16, 2008 4:47:37 PM CDT +-- MRP Detail Report +UPDATE AD_Field SET Name='OrderType', Description=NULL, Help=NULL WHERE AD_Column_ID=54055 AND IsCentrallyMaintained='Y' +; + +-- Jul 16, 2008 4:49:15 PM CDT +-- MRP Detail Report +UPDATE AD_Reference SET Description='MRP type can be a Demand or Supply', Name='_Type MRP',Updated=TO_DATE('2008-07-16 16:49:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53230 +; + +-- Jul 16, 2008 4:49:15 PM CDT +-- MRP Detail Report +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53230 +; + +-- Jul 16, 2008 4:49:18 PM CDT +-- MRP Detail Report +UPDATE AD_Column SET AD_Element_ID=53282, AD_Reference_ID=17, AD_Reference_Value_ID=53230, ColumnName='TypeMRP', Description=NULL, Help=NULL, Name='TypeMRP',Updated=TO_DATE('2008-07-16 16:49:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=54054 +; + +-- Jul 16, 2008 4:49:18 PM CDT +-- MRP Detail Report +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=54054 +; + +-- Jul 16, 2008 4:49:18 PM CDT +-- MRP Detail Report +UPDATE AD_Field SET Name='TypeMRP', Description=NULL, Help=NULL WHERE AD_Column_ID=54054 AND IsCentrallyMaintained='Y' +; + +-- Jul 16, 2008 4:50:46 PM CDT +-- MRP Detail Report +UPDATE AD_Column SET AD_Element_ID=52020, AD_Reference_ID=17, AD_Reference_Value_ID=53229, ColumnName='OrderType', Description=NULL, Help=NULL, Name='OrderType',Updated=TO_DATE('2008-07-16 16:50:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53440 +; + +-- Jul 16, 2008 4:50:46 PM CDT +-- MRP Detail Report +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=53440 +; + +-- Jul 16, 2008 4:50:46 PM CDT +-- MRP Detail Report +UPDATE AD_Field SET Name='OrderType', Description=NULL, Help=NULL WHERE AD_Column_ID=53440 AND IsCentrallyMaintained='Y' +; + +-- Jul 16, 2008 4:59:27 PM CDT +-- MRP Detail Report +UPDATE AD_Column SET AD_Element_ID=53282, ColumnName='TypeMRP', Description=NULL, Help=NULL, Name='TypeMRP',Updated=TO_DATE('2008-07-16 16:59:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53439 +; + +-- Jul 16, 2008 4:59:27 PM CDT +-- MRP Detail Report +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=53439 +; + +-- Jul 16, 2008 4:59:27 PM CDT +-- MRP Detail Report +UPDATE AD_Field SET Name='TypeMRP', Description=NULL, Help=NULL WHERE AD_Column_ID=53439 AND IsCentrallyMaintained='Y' +; + +-- Jul 16, 2008 5:00:22 PM CDT +-- MRP Detail Report +UPDATE AD_Reference SET Name='_MRP Type',Updated=TO_DATE('2008-07-16 17:00:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53230 +; + +-- Jul 16, 2008 5:00:23 PM CDT +-- MRP Detail Report +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53230 +; + +-- Jul 16, 2008 5:02:13 PM CDT +-- MRP Detail Report +UPDATE AD_Column SET AD_Reference_ID=17, AD_Reference_Value_ID=53230,Updated=TO_DATE('2008-07-16 17:02:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53439 +; + +ALTER TABLE PP_MRP RENAME COLUMN Type TO OrderType; + +ALTER TABLE PP_MRP MODIFY (OrderType NVARCHAR2(3)); + +ALTER TABLE PP_MRP MODIFY (TypeMRP CHAR(1)); + +create or replace FUNCTION documentNo + ( + p_PP_MRP_ID IN pp_mrp.pp_mrp_id%TYPE DEFAULT 0) + RETURN pp_mrp.value%TYPE + /************************************************************************* + * Function documentNofunc - PL/SQL equivalent to pljava SQLJ function + * Author: Tony Snook (tspc) + ************************************************************************/ + AS + v_DocumentNo pp_mrp.value%TYPE := ''; + + CURSOR cur + IS + SELECT ordertype, m_forecast_id, c_order_id, dd_order_id, pp_order_id, m_requisition_id + FROM pp_mrp + WHERE pp_mrp_id = p_pp_mrp_id; + + rec cur%ROWTYPE; + + BEGIN + -- If NO id return null + IF p_PP_MRP_ID = 0 THEN + CLOSE cur; + RETURN ''; + END IF; + + CASE + WHEN rec.ordertype = 'FTC' THEN + SELECT f.Name INTO v_DocumentNo FROM M_Forecast f WHERE f.M_Forecast_ID=rec.M_Forecast_ID; + WHEN rec.ordertype = 'POO' THEN + SELECT co.DocumentNo INTO v_DocumentNo FROM C_Order co WHERE co.C_Order_ID=rec.C_Order_ID; + WHEN rec.ordertype = 'DOO' THEN + SELECT do.DocumentNo INTO v_DocumentNo FROM DD_Order DO WHERE do.DD_Order_ID=rec.DD_Order_ID; + WHEN rec.ordertype = 'SOO' THEN + SELECT co.DocumentNo INTO v_DocumentNo FROM C_Order co WHERE co.C_Order_ID=rec.C_Order_ID; + WHEN rec.ordertype = 'MOP' THEN + SELECT po.DocumentNo INTO v_DocumentNo FROM PP_Order po WHERE po.PP_Order_ID=rec.PP_Order_ID; + WHEN rec.ordertype = 'POR' THEN + SELECT r.DocumentNo INTO v_DocumentNo FROM M_Requisition r WHERE r.M_Requisition_ID=rec.M_Requisition_ID; + ELSE + v_documentno := ''; + END CASE; + + CLOSE cur; + -- + RETURN v_DocumentNo; + END documentNo; +/ + +DROP VIEW rv_pp_mrp; + +CREATE OR REPLACE VIEW rv_pp_mrp AS +SELECT +mrp.ad_client_id, +mrp.ad_org_id, +mrp.created, +mrp.createdby, +mrp.isactive, +mrp.updated, +mrp.updatedby, +pp.ismps, +mrp.c_order_id, +mrp.c_orderline_id, +mrp.dateordered, +mrp.dateconfirm, +mrp.datepromised, +mrp.datestartschedule, +mrp.datefinishschedule, +mrp.datestart, +mrp.datesimulation, +mrp.docstatus, +mrp.m_forecast_id, +mrp.m_forecastline_id, +mrp.value, +mrp.m_product_id, +mrp.m_requisition_id, +mrp.m_requisitionline_id, +mrp.m_warehouse_id, +mrp.pp_order_id, +mrp.qty, +mrp.name, +mrp.s_resource_id, +mrp.priority, +mrp.ordertype, +mrp.typemrp, +documentNo(mrp.pp_mrp_id) AS documentNo +FROM pp_mrp mrp +LEFT JOIN pp_product_planning pp ON pp.m_product_id = mrp.m_product_id AND mrp.m_warehouse_id = pp.m_warehouse_id; + +DROP VIEW rv_pp_operation_activity; + +CREATE OR REPLACE VIEW rv_pp_operation_activity AS +SELECT n.ad_client_id, +n.ad_org_id, +n.created, +n.createdby, +n.isactive, +n.updated, +n.updatedby, +n.pp_order_id, +n.docstatus, +n.value, +n.s_resource_id, +n.durationrequiered, +n.durationreal, +n.durationrequiered - n.durationreal AS duration, +n.qtydelivered, +n.qtyreject, +n.qtyscrap, +n.datestartschedule, +n.datefinishschedule +FROM pp_order_node n; + +DROP VIEW rv_pp_order_bomline; + +CREATE OR REPLACE VIEW rv_pp_order_bomline AS +SELECT +obl.ad_client_id, +obl.ad_org_id, +obl.createdby, +obl.updatedby, +obl.updated, +obl.created, +obl.isactive, +obl.pp_order_bom_id, +obl.pp_order_bomline_id, +obl.pp_order_id, +obl.iscritical, +obl.componenttype, +obl.m_product_id, +obl.c_uom_id, +round(obl.qtyrequiered, 4) AS qtyrequiered, +round(bomqtyreserved(obl.m_product_id, obl.m_warehouse_id, 0), 4) AS qtyreserved, +round(bomqtyavailable(obl.m_product_id, obl.m_warehouse_id, 0), 4) AS qtyavailable, +round(bomqtyonhand(obl.m_product_id, obl.m_warehouse_id, 0), 4) AS qtyonhand, +obl.m_warehouse_id, +round(obl.qtybom, 4) AS qtybom, +obl.isqtypercentage, +round(obl.qtybatch, 4) AS qtybatch, +CASE WHEN o.qtybatchs = 0 THEN 1 ELSE round(obl.qtyrequiered / o.qtybatchs, 4) END AS qtybatchsize +FROM pp_order_bomline obl +JOIN pp_order o ON o.pp_order_id = obl.pp_order_id; + +DROP VIEW rv_pp_order_receipt_issue; + +DROP VIEW rv_pp_order_storage; + +CREATE OR REPLACE VIEW rv_pp_order_storage AS +SELECT +obl.ad_client_id, +obl.ad_org_id, +obl.createdby, +obl.updatedby, +obl.updated, +obl.created, +obl.isactive, +obl.pp_order_bom_id, +obl.pp_order_bomline_id, +obl.pp_order_id, +obl.iscritical, +obl.m_product_id, +( SELECT p.name FROM m_product p WHERE p.m_product_id = o.m_product_id) AS name, +obl.c_uom_id, +s.qtyonhand, +round(obl.qtyrequiered, 4) AS qtyrequiered, +CASE WHEN o.qtybatchs = 0 THEN 1 ELSE round(obl.qtyrequiered / o.qtybatchs, 4) END AS qtybatchsize, +round(bomqtyreserved(obl.m_product_id, obl.m_warehouse_id, 0), 4) AS qtyreserved, +round(bomqtyavailable(obl.m_product_id, obl.m_warehouse_id,0), 4) AS qtyavailable, +obl.m_warehouse_id, +obl.qtybom, +obl.isqtypercentage, +round(obl.qtybatch, 4) AS qtybatch, +obl.m_attributesetinstance_id, +l.m_locator_id, +l.x, +l.y, +l.z +FROM pp_order_bomline obl +JOIN pp_order o ON o.pp_order_id = obl.pp_order_id +LEFT JOIN m_storage s ON s.m_product_id = obl.m_product_id AND s.qtyonhand <> 0 AND obl.m_warehouse_id = (( SELECT ld.m_warehouse_id FROM m_locator ld WHERE s.m_locator_id = ld.m_locator_id)) +LEFT JOIN m_locator l ON l.m_locator_id = s.m_locator_id +; + +CREATE OR REPLACE VIEW rv_pp_order_receipt_issue AS +SELECT obl.pp_order_bomline_id, +obl.iscritical, +p.value, +obl.m_product_id, +mos.name AS productname, +mos.m_attributesetinstance_id, +asi.description AS instancename, +mos.c_uom_id, +u.name AS uomname, +obl.qtyrequiered, +obl.qtyreserved AS qtyreserved_order, +mos.qtyonhand, +mos.qtyreserved AS qtyreserved_storage, +mos.qtyavailable, +mos.m_locator_id, +mos.m_warehouse_id, +w.name AS warehousename, +mos.qtybom, +mos.isqtypercentage, +mos.qtybatch, +obl.componenttype, +mos.qtyrequiered - obl.qtydelivered AS qtyopen, +obl.pp_order_id +FROM rv_pp_order_storage mos +JOIN pp_order_bomline obl ON mos.pp_order_bomline_id = obl.pp_order_bomline_id +JOIN m_attributesetinstance asi ON mos.m_attributesetinstance_id = asi.m_attributesetinstance_id +JOIN c_uom u ON mos.c_uom_id = u.c_uom_id +JOIN m_product p ON mos.m_product_id = p.m_product_id +JOIN m_warehouse w ON mos.m_warehouse_id = w.m_warehouse_id; + +DROP VIEW rv_pp_order_transactions; + +CREATE OR REPLACE VIEW rv_pp_order_transactions AS +SELECT DISTINCT +o.ad_client_id, +o.ad_org_id, +o.isactive, +o.created, +o.createdby, +o.updatedby, +o.updated, +o.documentno, +ol.m_product_id, +mt.m_locator_id, +mt.movementdate, +o.pp_order_id, +o.qtydelivered, +o.qtyscrap, +ol.qtydelivered AS qtydeliveredline, +o.qtydelivered * ol.qtybatch / 100 AS qtyissueshouldbe, +ol.qtyscrap AS qtyscrapline, +o.qtyscrap * ol.qtybatch / 100 AS qtyissuescrapshouldbe, +mt.createdby AS createdbyissue, +mt.updatedby AS updatedbyissue, +( SELECT sum(t.movementqty) AS sum FROM m_transaction t WHERE t.pp_order_bomline_id = ol.pp_order_bomline_id) AS qtytodeliver, +(o.qtydelivered + o.qtyscrap) * ol.qtybatch / 100 + (( SELECT sum(t.movementqty) AS sum FROM m_transaction t WHERE t.pp_order_bomline_id = ol.pp_order_bomline_id)) AS differenceqty, +o.issotrx, +o.dateordered +FROM pp_order o +JOIN pp_order_bomline ol ON ol.pp_order_id = o.pp_order_id +LEFT JOIN m_transaction mt ON mt.pp_order_bomline_id = ol.pp_order_bomline_id +; + +DROP VIEW rv_pp_order; + +CREATE OR REPLACE VIEW rv_pp_order AS +SELECT +o.ad_client_id, +o.ad_org_id, +o.isactive, +o.created, +o.createdby, +o.updated, +o.updatedby, +o.pp_order_id, +o.documentno, +o.docstatus, +o.m_warehouse_id, +o.m_product_id, +o.qtyentered, +o.qtyreject, +o.qtyscrap, +o.qtybatchs, +o.qtybatchsize, +o.dateordered, +o.datepromised, +o.datestart, +o.datestartschedule, +o.datefinish, +o.datefinishschedule, +o.dateconfirm, +o.datedelivered, +o.lot, +o.pp_product_bom_id, +o.ad_workflow_id, +( SELECT p.weight FROM m_product p WHERE p.m_product_id = o.m_product_id) AS weight, +o.c_doctypetarget_id, +o.m_attributesetinstance_id, +o.planner_id, +o.priorityrule, +o.ad_orgtrx_id, +o.user1_id, +o.user2_id, +o.c_doctype_id, +o.line, +o.description, +o.s_resource_id, +o.floatbefored, +o.floatafter, +o.c_uom_id, +o.qtyordered, +o.qtydelivered, +o.yield, +o.c_project_id, +o.c_campaign_id, +o.c_activity_id, +o.isapproved, +o.isprinted, +o.isselected, +o.processed, +o.assay, +o.isqtypercentage, +o.ordertype, +o.issotrx, +o.scheduletype, +o.serno +FROM pp_order o; + +DROP VIEW rv_pp_product_bomline; + +CREATE OR REPLACE VIEW rv_pp_product_bomline AS +SELECT +t.seqno, +t.levelno, +t.levels, +t.ad_client_id, +t.ad_org_id, +t.createdby, +t.updatedby, +t.updated, +t.created, +t.ad_pinstance_id, +bl.isactive, +bl.pp_product_bom_id, +bl.pp_product_bomline_id, +bl.description, bl.iscritical, +bl.componenttype, +t.m_product_id, +bl.c_uom_id, +bl.issuemethod, +bl.line, +bl.m_attributesetinstance_id, +bl.scrap, +bl.validfrom, +bl.validto, +bl.qtybom, +bl.qtybatch, +bl.isqtypercentage +FROM pp_product_bomline bl +RIGHT JOIN t_bomline t ON t.pp_product_bomline_id = bl.pp_product_bomline_id +; + + +UPDATE AD_Column SET EntityType='EE01' WHERE AD_Table_ID=53021; + +UPDATE AD_Table SET EntityType='EE01' WHERE AD_Table_ID=53021; + +-- Jul 16, 2008 5:18:24 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET AD_Element_ID=52020, AD_Reference_Value_ID=53229, ColumnName='OrderType', Description='Order Type', Help='Order Type', Name='Order Type',Updated=TO_DATE('2008-07-16 17:18:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53058 +; + +-- Jul 16, 2008 5:18:24 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53058 +; + +-- Jul 16, 2008 5:18:35 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET AD_Reference_Value_ID=53230,Updated=TO_DATE('2008-07-16 17:18:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53056 +; \ No newline at end of file diff --git a/migration/351a-352a/231_SetPaymentProjectCharge.sql b/migration/351a-352a/231_SetPaymentProjectCharge.sql new file mode 100644 index 0000000000..dc86ac19f6 --- /dev/null +++ b/migration/351a-352a/231_SetPaymentProjectCharge.sql @@ -0,0 +1,8 @@ +-- Jul 18, 2008 11:52:19 AM COT +-- Cannot assign project to payment with charge +UPDATE AD_Column SET ReadOnlyLogic=NULL,Updated=TO_DATE('2008-07-18 11:52:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=8554 +; + +UPDATE AD_Column SET Callout=NULL,Updated=TO_DATE('2008-07-18 12:48:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=8554 +; + diff --git a/migration/351a-352a/232_FR_PayrollProjectActivityControl.sql b/migration/351a-352a/232_FR_PayrollProjectActivityControl.sql new file mode 100644 index 0000000000..6398158b28 --- /dev/null +++ b/migration/351a-352a/232_FR_PayrollProjectActivityControl.sql @@ -0,0 +1,360 @@ +-- 18-jul-2008 19:14:17 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56177,1005,0,19,53088,'C_Activity_ID',TO_DATE('2008-07-18 19:14:05','YYYY-MM-DD HH24:MI:SS'),0,'Business Activity','EE02',10,'Activities indicate tasks that are performed and used to utilize Activity based Costing','Y','N','N','N','N','N','N','N','N','N','Y','Activity',0,TO_DATE('2008-07-18 19:14:05','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:14:17 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56177 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:16:36 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56178,550,0,19,53102,'C_Campaign_ID',TO_DATE('2008-07-18 19:16:34','YYYY-MM-DD HH24:MI:SS'),0,'Marketing Campaign','EE02',10,'The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign.','Y','N','N','N','N','N','N','N','N','N','Y','Campaign',0,TO_DATE('2008-07-18 19:16:34','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:16:36 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56178 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:17:37 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56179,112,0,19,53102,'AD_OrgTrx_ID',TO_DATE('2008-07-18 19:17:34','YYYY-MM-DD HH24:MI:SS'),0,'Performing or initiating organization','EE02',10,'The organization which performs or initiates this transaction (for another organization). The owning Organization may not be the transaction organization in a service bureau environment, with centralized services, and inter-organization transactions.','Y','N','N','N','N','N','N','N','N','N','Y','Trx Organization',0,TO_DATE('2008-07-18 19:17:34','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:17:37 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56179 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:17:58 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD C_Campaign_ID NUMBER(10) +; + +-- 18-jul-2008 19:18:06 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD AD_OrgTrx_ID NUMBER(10) +; + +-- 18-jul-2008 19:19:32 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56180,2073,0,19,53102,262,'C_ProjectPhase_ID',TO_DATE('2008-07-18 19:19:31','YYYY-MM-DD HH24:MI:SS'),0,'Phase of a Project','EE02',10,'Y','N','N','N','N','N','N','N','N','N','Y','Project Phase',0,TO_DATE('2008-07-18 19:19:31','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:19:32 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56180 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:19:36 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD C_ProjectPhase_ID NUMBER(10) +; + +-- 18-jul-2008 19:20:40 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56181,2074,0,19,53102,263,'C_ProjectTask_ID',TO_DATE('2008-07-18 19:20:39','YYYY-MM-DD HH24:MI:SS'),0,'Actual Project Task in a Phase','EE02',10,'A Project Task in a Project Phase represents the actual work.','Y','N','N','N','N','N','N','N','N','N','Y','Project Task',0,TO_DATE('2008-07-18 19:20:39','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:20:40 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56181 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:20:43 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD C_ProjectTask_ID NUMBER(10) +; + +-- 18-jul-2008 19:21:55 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56182,208,0,19,53102,'C_Project_ID',TO_DATE('2008-07-18 19:21:54','YYYY-MM-DD HH24:MI:SS'),0,'Financial Project','EE02',10,'A Project allows you to track and control internal or external activities.','Y','N','N','N','N','N','N','N','N','N','Y','Project',0,TO_DATE('2008-07-18 19:21:54','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:21:55 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56182 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:21:57 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD C_Project_ID NUMBER(10) +; + +-- 18-jul-2008 19:23:32 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56183,613,0,18,134,53102,'User1_ID',TO_DATE('2008-07-18 19:23:31','YYYY-MM-DD HH24:MI:SS'),0,'User defined list element #1','EE02',10,'The user defined element displays the optional elements that have been defined for this account combination.','Y','N','N','N','N','N','N','N','N','N','Y','User List 1',0,TO_DATE('2008-07-18 19:23:31','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:23:32 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56183 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:23:35 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD User1_ID NUMBER(10) +; + +-- 18-jul-2008 19:24:01 CDT +-- Improve in Payroll +UPDATE AD_Column SET AD_Element_ID=614, AD_Reference_Value_ID=137, ColumnName='User2_ID', Description='User defined list element #2', Help='The user defined element displays the optional elements that have been defined for this account combination.', Name='User List 2',Updated=TO_DATE('2008-07-18 19:24:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56183 +; + +-- 18-jul-2008 19:24:01 CDT +-- Improve in Payroll +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=56183 +; + +-- 18-jul-2008 19:24:01 CDT +-- Improve in Payroll +UPDATE AD_Field SET Name='User List 2', Description='User defined list element #2', Help='The user defined element displays the optional elements that have been defined for this account combination.' WHERE AD_Column_ID=56183 AND IsCentrallyMaintained='Y' +; + +-- 18-jul-2008 19:24:06 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD User2_ID NUMBER(10) +; + +-- 18-jul-2008 19:25:08 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56184,613,0,18,134,53102,'User1_ID',TO_DATE('2008-07-18 19:25:07','YYYY-MM-DD HH24:MI:SS'),0,'User defined list element #1','EE02',10,'The user defined element displays the optional elements that have been defined for this account combination.','Y','N','N','N','N','N','N','N','N','N','Y','User List 1',0,TO_DATE('2008-07-18 19:25:07','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:25:08 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56184 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:25:11 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement MODIFY User1_ID NUMBER(10) DEFAULT NULL +; + +-- 18-jul-2008 19:27:08 CDT +-- Improve in Payroll +UPDATE AD_Element SET Name='Manufacturing Order Activity', PrintName='Manufacturing Order Activity',Updated=TO_DATE('2008-07-18 19:27:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53285 +; + +-- 18-jul-2008 19:27:08 CDT +-- Improve in Payroll +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53285 +; + +-- 18-jul-2008 19:27:08 CDT +-- Improve in Payroll +UPDATE AD_Column SET ColumnName='PP_Order_Node_ID', Name='Manufacturing Order Activity', Description=NULL, Help=NULL WHERE AD_Element_ID=53285 +; + +-- 18-jul-2008 19:27:08 CDT +-- Improve in Payroll +UPDATE AD_Process_Para SET ColumnName='PP_Order_Node_ID', Name='Manufacturing Order Activity', Description=NULL, Help=NULL, AD_Element_ID=53285 WHERE UPPER(ColumnName)='PP_ORDER_NODE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- 18-jul-2008 19:27:08 CDT +-- Improve in Payroll +UPDATE AD_Process_Para SET ColumnName='PP_Order_Node_ID', Name='Manufacturing Order Activity', Description=NULL, Help=NULL WHERE AD_Element_ID=53285 AND IsCentrallyMaintained='Y' +; + +-- 18-jul-2008 19:27:08 CDT +-- Improve in Payroll +UPDATE AD_Field SET Name='Manufacturing Order Activity', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53285) AND IsCentrallyMaintained='Y' +; + +-- 18-jul-2008 19:27:09 CDT +-- Improve in Payroll +UPDATE AD_PrintFormatItem pi SET PrintName='Manufacturing Order Activity', Name='Manufacturing Order Activity' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53285) +; + +-- 18-jul-2008 19:27:36 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56185,53285,0,19,53102,'PP_Order_Node_ID',TO_DATE('2008-07-18 19:27:35','YYYY-MM-DD HH24:MI:SS'),0,'EE02',10,'Y','N','N','N','N','N','N','N','N','N','Y','Manufacturing Order Activity',0,TO_DATE('2008-07-18 19:27:35','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:27:36 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56185 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:27:39 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD PP_Order_Node_ID NUMBER(10) +; + +-- 18-jul-2008 19:30:21 CDT +-- Improve in Payroll +ALTER TABLE HR_Department ADD C_Activity_ID NUMBER(10) +; + +-- 18-jul-2008 19:31:05 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56177,56307,0,53109,TO_DATE('2008-07-18 19:31:04','YYYY-MM-DD HH24:MI:SS'),0,'Business Activity',10,'EE02','Activities indicate tasks that are performed and used to utilize Activity based Costing','Y','Y','Y','N','N','N','N','N','Activity',TO_DATE('2008-07-18 19:31:04','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:06 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56307 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:38 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56178,56308,0,53124,TO_DATE('2008-07-18 19:31:36','YYYY-MM-DD HH24:MI:SS'),0,'Marketing Campaign',10,'EE02','The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign.','Y','Y','Y','N','N','N','N','N','Campaign',TO_DATE('2008-07-18 19:31:36','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:38 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56308 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:39 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56185,56309,0,53124,TO_DATE('2008-07-18 19:31:38','YYYY-MM-DD HH24:MI:SS'),0,10,'EE02','Y','Y','Y','N','N','N','N','N','Manufacturing Order Activity',TO_DATE('2008-07-18 19:31:38','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:39 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56309 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:40 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56182,56310,0,53124,TO_DATE('2008-07-18 19:31:39','YYYY-MM-DD HH24:MI:SS'),0,'Financial Project',10,'EE02','A Project allows you to track and control internal or external activities.','Y','Y','Y','N','N','N','N','N','Project',TO_DATE('2008-07-18 19:31:39','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:40 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56310 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:41 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56180,56311,0,53124,TO_DATE('2008-07-18 19:31:40','YYYY-MM-DD HH24:MI:SS'),0,'Phase of a Project',10,'EE02','Y','Y','Y','N','N','N','N','N','Project Phase',TO_DATE('2008-07-18 19:31:40','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:41 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56311 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:42 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56181,56312,0,53124,TO_DATE('2008-07-18 19:31:41','YYYY-MM-DD HH24:MI:SS'),0,'Actual Project Task in a Phase',10,'EE02','A Project Task in a Project Phase represents the actual work.','Y','Y','Y','N','N','N','N','N','Project Task',TO_DATE('2008-07-18 19:31:41','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:42 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56312 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:43 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56179,56313,0,53124,TO_DATE('2008-07-18 19:31:42','YYYY-MM-DD HH24:MI:SS'),0,'Performing or initiating organization',10,'EE02','The organization which performs or initiates this transaction (for another organization). The owning Organization may not be the transaction organization in a service bureau environment, with centralized services, and inter-organization transactions.','Y','Y','Y','N','N','N','N','N','Trx Organization',TO_DATE('2008-07-18 19:31:42','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:43 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56313 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:44 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56184,56314,0,53124,TO_DATE('2008-07-18 19:31:43','YYYY-MM-DD HH24:MI:SS'),0,'User defined list element #1',10,'EE02','The user defined element displays the optional elements that have been defined for this account combination.','Y','Y','Y','N','N','N','N','N','User List 1',TO_DATE('2008-07-18 19:31:43','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:44 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56314 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:45 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56183,56315,0,53124,TO_DATE('2008-07-18 19:31:44','YYYY-MM-DD HH24:MI:SS'),0,'User defined list element #2',10,'EE02','The user defined element displays the optional elements that have been defined for this account combination.','Y','Y','Y','N','N','N','N','N','User List 2',TO_DATE('2008-07-18 19:31:44','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:45 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56315 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=56313 +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=56308 +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=56314 +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=56315 +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=56311 +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=56312 +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=56310 +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=56309 +; + +-- 18-jul-2008 19:33:53 CDT +-- Improve in Payroll +UPDATE AD_Tab SET Description='Introduce the Name to identify the operations from the manufacturing routing. If desired give a Description for activity.', Help='Introduce the Name to identify the operations from the manufacturing routing. If desired give a Description for activity.', Name='Activity',Updated=TO_DATE('2008-07-18 19:33:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53025 +; + +-- 18-jul-2008 19:33:53 CDT +-- Improve in Payroll +UPDATE AD_Tab_Trl SET IsTranslated='N' WHERE AD_Tab_ID=53025 +; + +-- 18-jul-2008 19:35:01 CDT +-- Improve in Payroll +UPDATE AD_Tab SET Description='Introduce the Name to identify the operations from the manufacturing routing. If desired give a Description for activity.', Help='Introduce the Name to identify the operations from the manufacturing routing. If desired give a Description for activity.', Name='Order Activity',Updated=TO_DATE('2008-07-18 19:35:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53036 +; + +-- 18-jul-2008 19:35:01 CDT +-- Improve in Payroll +UPDATE AD_Tab_Trl SET IsTranslated='N' WHERE AD_Tab_ID=53036 +; + +-- 18-jul-2008 19:36:05 CDT +-- Improve in Payroll +UPDATE AD_Menu SET Description='Activity Control', Name='Activity Control',Updated=TO_DATE('2008-07-18 19:36:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=53063 +; + +-- 18-jul-2008 19:36:05 CDT +-- Improve in Payroll +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53063 +; + +-- 18-jul-2008 19:36:38 CDT +-- Improve in Payroll +UPDATE AD_Menu SET Description='Show the Activity Control Transaction Details', Name='Activity Control Transaction Details',Updated=TO_DATE('2008-07-18 19:36:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=53065 +; + +-- 18-jul-2008 19:36:38 CDT +-- Improve in Payroll +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53065 +; + diff --git a/migration/351a-352a/233_fix_wrong_column_in_displaylogic.sql b/migration/351a-352a/233_fix_wrong_column_in_displaylogic.sql new file mode 100644 index 0000000000..54a3661c2c --- /dev/null +++ b/migration/351a-352a/233_fix_wrong_column_in_displaylogic.sql @@ -0,0 +1,6 @@ +-- Column wrong in displaylogic + +update ad_field + set displaylogic = '@IsOwned@=Y & @IsDepreciated@=Y' + where displaylogic = '@IsOwned@=Y & @IsDepeciated@=Y' +; \ No newline at end of file diff --git a/migration/351a-352a/234_create_nextidfunc.sql b/migration/351a-352a/234_create_nextidfunc.sql new file mode 100644 index 0000000000..83eaf8a5fa --- /dev/null +++ b/migration/351a-352a/234_create_nextidfunc.sql @@ -0,0 +1,2 @@ +-- placeholder +-- migration script just for postgresql diff --git a/migration/351a-352a/235_BF2027432_DistributionPrintOrder.sql b/migration/351a-352a/235_BF2027432_DistributionPrintOrder.sql new file mode 100644 index 0000000000..589d1cef4d --- /dev/null +++ b/migration/351a-352a/235_BF2027432_DistributionPrintOrder.sql @@ -0,0 +1,1763 @@ +SET DEFINE OFF + +-- Jul 24, 2008 3:37:40 PM CDT +-- Order Distribution +UPDATE AD_Tab SET AD_Column_ID=53930,Updated=TO_DATE('2008-07-24 15:37:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53050 +; + +-- Jul 24, 2008 3:38:15 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54027 +; + +-- Jul 24, 2008 3:38:15 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54036 +; + +-- Jul 24, 2008 3:38:15 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54037 +; + +-- Jul 24, 2008 3:38:15 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54038 +; + +-- Jul 24, 2008 3:38:15 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54039 +; + +-- Jul 24, 2008 3:38:52 PM CDT +-- Order Distribution +UPDATE AD_Field SET IsCentrallyMaintained='N', Name='Ordered Quantity',Updated=TO_DATE('2008-07-24 15:38:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54035 +; + +-- Jul 24, 2008 3:38:52 PM CDT +-- Order Distribution +UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=54035 +; + +-- Jul 24, 2008 3:38:59 PM CDT +-- Order Distribution +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-07-24 15:38:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54027 +; + +-- Jul 24, 2008 8:22:25 PM CDT +-- Order Distribution +UPDATE AD_Column SET DefaultValue='@DatePromised@',Updated=TO_DATE('2008-07-24 20:22:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53940 +; + +-- Jul 24, 2008 8:23:04 PM CDT +-- Order Distribution +UPDATE AD_Column SET DefaultValue='@DateOrdered@',Updated=TO_DATE('2008-07-24 20:23:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53939 +; + +-- Jul 24, 2008 8:36:04 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=31, AD_Reference_Value_ID=NULL,Updated=TO_DATE('2008-07-24 20:36:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53950 +; + +-- Jul 24, 2008 8:37:40 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=31, AD_Reference_Value_ID=NULL, DefaultValue='@M_LocatorTo_ID@',Updated=TO_DATE('2008-07-24 20:37:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53949 +; + +-- Jul 24, 2008 8:38:22 PM CDT +-- Order Distribution +UPDATE AD_Column SET DefaultValue='@M_Locator_ID@',Updated=TO_DATE('2008-07-24 20:38:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53950 +; + +-- Jul 24, 2008 8:41:33 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=19,Updated=TO_DATE('2008-07-24 20:41:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53950 +; + +-- Jul 24, 2008 8:41:56 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=191,Updated=TO_DATE('2008-07-24 20:41:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53949 +; + +-- Jul 24, 2008 8:43:39 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Val_Rule_ID=NULL,Updated=TO_DATE('2008-07-24 20:43:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53950 +; + +-- Jul 24, 2008 8:54:15 PM CDT +-- Order Distribution +UPDATE AD_Val_Rule SET Code='M_Warehouse.IsInTransit=''Y''',Updated=TO_DATE('2008-07-24 20:54:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Val_Rule_ID=52024 +; + +-- Jul 24, 2008 9:37:10 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56190,102,0,19,53039,'AD_Client_ID',TO_DATE('2008-07-24 21:37:08','YYYY-MM-DD HH24:MI:SS'),0,'Client/Tenant for this installation.','EE01',10,'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','N','N','N','N','N','N','N','N','N','Client',TO_DATE('2008-07-24 21:37:08','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:10 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56190 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:11 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56191,113,0,19,53039,'AD_Org_ID',TO_DATE('2008-07-24 21:37:10','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client','EE01',10,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','N','N','N','N','N','N','N','N','N','Organization',TO_DATE('2008-07-24 21:37:10','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:11 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56191 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:12 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56192,348,0,20,53039,'IsActive',TO_DATE('2008-07-24 21:37:11','YYYY-MM-DD HH24:MI:SS'),0,'The record is active in the system','EE01',1,'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.','Y','N','N','N','N','N','N','N','N','Y','Active',TO_DATE('2008-07-24 21:37:11','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:12 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56192 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:13 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56193,245,0,16,53039,'Created',TO_DATE('2008-07-24 21:37:12','YYYY-MM-DD HH24:MI:SS'),0,'Date this record was created','EE01',29,'The Created field indicates the date that this record was created.','Y','N','N','N','N','N','N','N','N','N','Created',TO_DATE('2008-07-24 21:37:12','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:13 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56193 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:14 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56194,246,0,18,110,53039,'CreatedBy',TO_DATE('2008-07-24 21:37:13','YYYY-MM-DD HH24:MI:SS'),0,'User who created this records','EE01',10,'The Created By field indicates the user who created this record.','Y','N','N','N','N','N','N','N','N','N','Created By',TO_DATE('2008-07-24 21:37:13','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:14 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56194 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:14 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56195,607,0,16,53039,'Updated',TO_DATE('2008-07-24 21:37:14','YYYY-MM-DD HH24:MI:SS'),0,'Date this record was updated','EE01',29,'The Updated field indicates the date that this record was updated.','Y','N','N','N','N','N','N','N','N','N','Updated',TO_DATE('2008-07-24 21:37:14','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:14 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56195 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:15 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56196,608,0,18,110,53039,'UpdatedBy',TO_DATE('2008-07-24 21:37:14','YYYY-MM-DD HH24:MI:SS'),0,'User who updated this records','EE01',10,'The Updated By field indicates the user who updated this record.','Y','N','N','N','N','N','N','N','N','N','Updated By',TO_DATE('2008-07-24 21:37:14','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:15 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56196 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:16 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56197,109,0,14,53039,'AD_Language',TO_DATE('2008-07-24 21:37:15','YYYY-MM-DD HH24:MI:SS'),0,'Language for this entity','EE01',2147483647,'The Language identifies the language to use for display and formatting','Y','N','N','N','N','N','N','N','N','Y','Language',TO_DATE('2008-07-24 21:37:15','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:16 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56197 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:16 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56198,558,0,19,53039,'C_Order_ID',TO_DATE('2008-07-24 21:37:16','YYYY-MM-DD HH24:MI:SS'),0,'Order','EE01',10,'The Order is a control document. The Order is complete when the quantity ordered is the same as the quantity shipped and invoiced. When you cloase an order, unshipped (backordered) quantities are cancelled.','Y','N','N','N','N','N','N','N','N','Y','Order',TO_DATE('2008-07-24 21:37:16','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:16 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56198 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:17 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56199,1106,0,20,53039,'IsSOTrx',TO_DATE('2008-07-24 21:37:16','YYYY-MM-DD HH24:MI:SS'),0,'This is a Sales Transaction','EE01',1,'The Sales Transaction checkbox indicates if this item is a Sales Transaction.','Y','N','N','N','N','N','N','N','N','Y','Sales Transaction',TO_DATE('2008-07-24 21:37:16','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:17 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56199 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:19 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56200,290,0,10,53039,'DocumentNo',TO_DATE('2008-07-24 21:37:17','YYYY-MM-DD HH24:MI:SS'),0,'Document sequence number of the document','EE01',30,'The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". + +If the document type of your document has no automatic document sequence defined, the field is empty if you create a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','Y','N','N','N','N','N','N','N','N','Y','Document No',TO_DATE('2008-07-24 21:37:17','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:19 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56200 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:19 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56201,289,0,17,53039,'DocStatus',TO_DATE('2008-07-24 21:37:19','YYYY-MM-DD HH24:MI:SS'),0,'The current status of the document','EE01',2,'The Document Status indicates the status of a document at this time. If you want to change the document status, use the Document Action field','Y','N','N','N','N','N','N','N','N','Y','Document Status',TO_DATE('2008-07-24 21:37:19','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:19 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56201 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:20 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56202,196,0,19,53039,'C_DocType_ID',TO_DATE('2008-07-24 21:37:19','YYYY-MM-DD HH24:MI:SS'),0,'Document type or rules','EE01',10,'The Document Type determines document sequence and processing rules','Y','N','N','N','N','N','N','N','N','Y','Document Type',TO_DATE('2008-07-24 21:37:19','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:20 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56202 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:21 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56203,187,0,19,53039,'C_BPartner_ID',TO_DATE('2008-07-24 21:37:20','YYYY-MM-DD HH24:MI:SS'),0,'Identifies a Business Partner','EE01',10,'A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','Y','N','N','N','N','N','N','N','N','Y','Business Partner ',TO_DATE('2008-07-24 21:37:20','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:21 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56203 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:21 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56204,1876,0,10,53039,'BPValue',TO_DATE('2008-07-24 21:37:21','YYYY-MM-DD HH24:MI:SS'),0,'Business Partner Key Value','EE01',40,'Search Key of Business Partner','Y','N','N','N','N','N','N','N','N','Y','BP Search Key',TO_DATE('2008-07-24 21:37:21','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:21 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56204 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:22 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56205,2266,0,10,53039,'BPTaxID',TO_DATE('2008-07-24 21:37:22','YYYY-MM-DD HH24:MI:SS'),0,'Tax ID of the Business Partner','EE01',20,'Y','N','N','N','N','N','N','N','N','Y','Partner Tax ID',TO_DATE('2008-07-24 21:37:22','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:22 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56205 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:23 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56206,468,0,10,53039,'NAICS',TO_DATE('2008-07-24 21:37:22','YYYY-MM-DD HH24:MI:SS'),0,'Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html','EE01',6,'The NAICS/SIC identifies either of these codes that may be applicable to this Business Partner.','Y','N','N','N','N','N','N','N','N','Y','NAICS/SIC',TO_DATE('2008-07-24 21:37:22','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:23 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56206 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:24 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56207,260,0,10,53039,'DUNS',TO_DATE('2008-07-24 21:37:23','YYYY-MM-DD HH24:MI:SS'),0,'Dun & Bradstreet Number','EE01',11,'Used for EDI - For details see www.dnb.com/dunsno/list.htm','Y','N','N','N','N','N','N','N','N','Y','D-U-N-S',TO_DATE('2008-07-24 21:37:23','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:24 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56207 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:25 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56208,1874,0,19,53039,'Org_Location_ID',TO_DATE('2008-07-24 21:37:24','YYYY-MM-DD HH24:MI:SS'),0,'Organization Location/Address','EE01',10,'Y','N','N','N','N','N','N','N','N','Y','Org Address',TO_DATE('2008-07-24 21:37:24','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:25 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56208 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:26 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56209,590,0,10,53039,'TaxID',TO_DATE('2008-07-24 21:37:25','YYYY-MM-DD HH24:MI:SS'),0,'Tax Identification','EE01',20,'The Tax ID field identifies the legal Identification number of this Entity.','Y','N','N','N','N','N','N','N','N','Y','Tax ID',TO_DATE('2008-07-24 21:37:25','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:26 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56209 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:26 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56210,459,0,19,53039,'M_Warehouse_ID',TO_DATE('2008-07-24 21:37:26','YYYY-MM-DD HH24:MI:SS'),0,'Storage Warehouse and Service Point','EE01',10,'The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','N','N','N','N','N','N','N','N','Y','Warehouse',TO_DATE('2008-07-24 21:37:26','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:26 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56210 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:27 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56211,1875,0,19,53039,'Warehouse_Location_ID',TO_DATE('2008-07-24 21:37:26','YYYY-MM-DD HH24:MI:SS'),0,'Warehouse Location/Address','EE01',10,'Address of Warehouse','Y','N','N','N','N','N','N','N','N','Y','Warehouse Address',TO_DATE('2008-07-24 21:37:26','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:27 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56211 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:28 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56212,1841,0,10,53039,'DocumentType',TO_DATE('2008-07-24 21:37:27','YYYY-MM-DD HH24:MI:SS'),0,'Document Type','EE01',60,'Y','N','N','N','N','N','N','N','N','Y','Document Type',TO_DATE('2008-07-24 21:37:27','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:28 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56212 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:29 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56213,1842,0,14,53039,'DocumentTypeNote',TO_DATE('2008-07-24 21:37:28','YYYY-MM-DD HH24:MI:SS'),0,'Optional note of a document type','EE01',2000,'Y','N','N','N','N','N','N','N','N','Y','Document Type Note',TO_DATE('2008-07-24 21:37:28','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:29 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56213 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:30 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56214,1063,0,18,190,53039,'SalesRep_ID',TO_DATE('2008-07-24 21:37:29','YYYY-MM-DD HH24:MI:SS'),0,'Sales Representative or Company Agent','EE01',10,'The Sales Representative indicates the Sales Rep for this Region. Any Sales Rep must be a valid internal user.','Y','N','N','N','N','N','N','N','N','Y','Sales Representative',TO_DATE('2008-07-24 21:37:29','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:30 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56214 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:31 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56215,1886,0,10,53039,'SalesRep_Name',TO_DATE('2008-07-24 21:37:30','YYYY-MM-DD HH24:MI:SS'),0,'EE01',60,'Y','N','N','N','N','N','N','N','N','Y','Sales Representative',TO_DATE('2008-07-24 21:37:30','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:31 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56215 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:31 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56216,268,0,16,53039,'DateOrdered',TO_DATE('2008-07-24 21:37:31','YYYY-MM-DD HH24:MI:SS'),0,'Date of Order','EE01',29,'Indicates the Date an item was ordered.','Y','N','N','N','N','N','N','N','N','Y','Date Ordered',TO_DATE('2008-07-24 21:37:31','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:31 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56216 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:32 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56217,269,0,16,53039,'DatePromised',TO_DATE('2008-07-24 21:37:31','YYYY-MM-DD HH24:MI:SS'),0,'Date Order was promised','EE01',29,'The Date Promised indicates the date, if any, that an Order was promised for.','Y','N','N','N','N','N','N','N','N','Y','Date Promised',TO_DATE('2008-07-24 21:37:31','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:32 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56217 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:34 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56218,1838,0,10,53039,'BPGreeting',TO_DATE('2008-07-24 21:37:32','YYYY-MM-DD HH24:MI:SS'),0,'Greeting for Business Partner','EE01',60,'Y','N','N','N','N','N','N','N','N','Y','BP Greeting',TO_DATE('2008-07-24 21:37:32','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:34 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56218 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:35 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56219,469,0,10,53039,'Name',TO_DATE('2008-07-24 21:37:34','YYYY-MM-DD HH24:MI:SS'),0,'Alphanumeric identifier of the entity','EE01',60,'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.','Y','N','N','Y','N','N','N','N','N','Y','Name',1,TO_DATE('2008-07-24 21:37:34','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:35 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56219 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:36 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56220,1111,0,10,53039,'Name2',TO_DATE('2008-07-24 21:37:35','YYYY-MM-DD HH24:MI:SS'),0,'Additional Name','EE01',60,'Y','N','N','N','N','N','N','N','N','Y','Name 2',TO_DATE('2008-07-24 21:37:35','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:36 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56220 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:36 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56221,1837,0,10,53039,'BPContactGreeting',TO_DATE('2008-07-24 21:37:36','YYYY-MM-DD HH24:MI:SS'),0,'Greeting for Business Partner Contact','EE01',60,'Y','N','N','N','N','N','N','N','N','Y','BP Contact Greeting',TO_DATE('2008-07-24 21:37:36','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:37 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56221 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:37 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56222,982,0,10,53039,'Title',TO_DATE('2008-07-24 21:37:37','YYYY-MM-DD HH24:MI:SS'),0,'Name this entity is referred to as','EE01',40,'The Title indicates the name that an entity is referred to as.','Y','N','N','N','N','N','N','N','N','Y','Title',TO_DATE('2008-07-24 21:37:37','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:37 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56222 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:38 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56223,505,0,10,53039,'Phone',TO_DATE('2008-07-24 21:37:37','YYYY-MM-DD HH24:MI:SS'),0,'Identifies a telephone number','EE01',40,'The Phone field identifies a telephone number','Y','N','N','N','N','N','N','N','N','Y','Phone',TO_DATE('2008-07-24 21:37:37','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:38 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56223 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:40 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56224,1839,0,14,53039,'ContactName',TO_DATE('2008-07-24 21:37:38','YYYY-MM-DD HH24:MI:SS'),0,'Business Partner Contact Name','EE01',2147483647,'Y','N','N','N','N','N','N','N','N','Y','Contact Name',TO_DATE('2008-07-24 21:37:38','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:40 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56224 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:40 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56225,202,0,21,53039,'C_Location_ID',TO_DATE('2008-07-24 21:37:40','YYYY-MM-DD HH24:MI:SS'),0,'Location or Address','EE01',10,'The Location / Address field defines the location of an entity.','Y','N','N','N','N','N','N','N','N','Y','Address',TO_DATE('2008-07-24 21:37:40','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:40 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56225 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:41 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56226,512,0,14,53039,'Postal',TO_DATE('2008-07-24 21:37:40','YYYY-MM-DD HH24:MI:SS'),0,'Postal code','EE01',2147483647,'The Postal Code or ZIP identifies the postal code for this entity''s address.','Y','N','N','N','N','N','N','N','N','Y','ZIP',TO_DATE('2008-07-24 21:37:40','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:41 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56226 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:42 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56227,540,0,10,53039,'ReferenceNo',TO_DATE('2008-07-24 21:37:41','YYYY-MM-DD HH24:MI:SS'),0,'Your customer or vendor number at the Business Partner''s site','EE01',40,'The reference number can be printed on orders and invoices to allow your business partner to faster identify your records.','Y','N','N','N','N','N','N','N','N','Y','Reference No',TO_DATE('2008-07-24 21:37:41','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:42 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56227 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:42 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56228,275,0,10,53039,'Description',TO_DATE('2008-07-24 21:37:42','YYYY-MM-DD HH24:MI:SS'),0,'Optional short description of the record','EE01',255,'A description is limited to 255 characters.','Y','N','N','N','N','N','N','N','N','Y','Description',TO_DATE('2008-07-24 21:37:42','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:43 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56228 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:43 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56229,952,0,10,53039,'POReference',TO_DATE('2008-07-24 21:37:43','YYYY-MM-DD HH24:MI:SS'),0,'Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner','EE01',20,'The business partner order reference is the order reference for this specific transaction; Often Purchase Order numbers are given to print on Invoices for easier reference. A standard number can be defined in the Business Partner (Customer) window.','Y','N','N','N','N','N','N','N','N','Y','Order Reference',TO_DATE('2008-07-24 21:37:43','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:43 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56229 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:44 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56230,968,0,19,53039,'C_Charge_ID',TO_DATE('2008-07-24 21:37:43','YYYY-MM-DD HH24:MI:SS'),0,'Additional document charges','EE01',10,'The Charge indicates a type of Charge (Handling, Shipping, Restocking)','Y','N','N','N','N','N','N','N','N','Y','Charge',TO_DATE('2008-07-24 21:37:43','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:44 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56230 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:45 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56231,849,0,12,53039,'ChargeAmt',TO_DATE('2008-07-24 21:37:44','YYYY-MM-DD HH24:MI:SS'),0,'Charge Amount','EE01',131089,'The Charge Amount indicates the amount for an additional charge.','Y','N','N','N','N','N','N','N','N','Y','Charge amount',TO_DATE('2008-07-24 21:37:44','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:45 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56231 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:46 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56232,627,0,22,53039,'Volume',TO_DATE('2008-07-24 21:37:45','YYYY-MM-DD HH24:MI:SS'),0,'Volume of a product','EE01',131089,'The Volume indicates the volume of the product in the Volume UOM of the Client','Y','N','N','N','N','N','N','N','N','Y','Volume',TO_DATE('2008-07-24 21:37:45','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:46 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56232 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:47 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56233,629,0,22,53039,'Weight',TO_DATE('2008-07-24 21:37:46','YYYY-MM-DD HH24:MI:SS'),0,'Weight of a product','EE01',131089,'The Weight indicates the weight of the product in the Weight UOM of the Client','Y','N','N','N','N','N','N','N','N','Y','Weight',TO_DATE('2008-07-24 21:37:46','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:47 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56233 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:49 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56234,550,0,19,53039,'C_Campaign_ID',TO_DATE('2008-07-24 21:37:47','YYYY-MM-DD HH24:MI:SS'),0,'Marketing Campaign','EE01',10,'The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign.','Y','N','N','N','N','N','N','N','N','Y','Campaign',TO_DATE('2008-07-24 21:37:47','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:49 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56234 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:49 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56235,208,0,19,53039,'C_Project_ID',TO_DATE('2008-07-24 21:37:49','YYYY-MM-DD HH24:MI:SS'),0,'Financial Project','EE01',10,'A Project allows you to track and control internal or external activities.','Y','N','N','N','N','N','N','N','N','Y','Project',TO_DATE('2008-07-24 21:37:49','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:50 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56235 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:50 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56236,1005,0,19,53039,'C_Activity_ID',TO_DATE('2008-07-24 21:37:50','YYYY-MM-DD HH24:MI:SS'),0,'Business Activity','EE01',10,'Activities indicate tasks that are performed and used to utilize Activity based Costing','Y','N','N','N','N','N','N','N','N','Y','Activity',TO_DATE('2008-07-24 21:37:50','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:50 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56236 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:51 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56237,455,0,19,53039,'M_Shipper_ID',TO_DATE('2008-07-24 21:37:50','YYYY-MM-DD HH24:MI:SS'),0,'Method or manner of product delivery','EE01',10,'The Shipper indicates the method of delivering product','Y','N','N','N','N','N','N','N','N','Y','Shipper',TO_DATE('2008-07-24 21:37:50','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:51 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56237 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:53 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56238,555,0,20,53039,'DeliveryRule',TO_DATE('2008-07-24 21:37:51','YYYY-MM-DD HH24:MI:SS'),0,'Defines the timing of Delivery','EE01',1,'The Delivery Rule indicates when an order should be delivered. For example should the order be delivered when the entire order is complete, when a line is complete or as the products become available.','Y','N','N','N','N','N','N','N','N','Y','Delivery Rule',TO_DATE('2008-07-24 21:37:51','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:53 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56238 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:54 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56239,274,0,20,53039,'DeliveryViaRule',TO_DATE('2008-07-24 21:37:53','YYYY-MM-DD HH24:MI:SS'),0,'How the order will be delivered','EE01',1,'The Delivery Via indicates how the products should be delivered. For example, will the order be picked up or shipped.','Y','N','N','N','N','N','N','N','N','Y','Delivery Via',TO_DATE('2008-07-24 21:37:53','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:54 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56239 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:55 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56240,522,0,20,53039,'PriorityRule',TO_DATE('2008-07-24 21:37:54','YYYY-MM-DD HH24:MI:SS'),0,'Priority of a document','EE01',1,'The Priority indicates the importance (high, medium, low) of this document','Y','N','N','N','N','N','N','N','N','Y','Priority',TO_DATE('2008-07-24 21:37:54','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:55 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56240 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:38:08 PM CDT +-- Order Distribution +UPDATE AD_Table SET IsView='Y',Updated=TO_DATE('2008-07-24 21:38:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Table_ID=53039 +; + +-- Jul 24, 2008 9:38:54 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56208, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:38:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50424 +; + +-- Jul 24, 2008 9:39:05 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56218, IsGroupBy='N', IsPageBreak='N', SortNo=0, XSpace=0, YSpace=0,Updated=TO_DATE('2008-07-24 21:39:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50425 +; + +-- Jul 24, 2008 9:39:13 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56219, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:39:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50426 +; + +-- Jul 24, 2008 9:39:18 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56220, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:39:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50427 +; + +-- Jul 24, 2008 9:39:31 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56221, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:39:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50428 +; + +-- Jul 24, 2008 9:39:38 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56222, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:39:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50429 +; + +-- Jul 24, 2008 9:39:44 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56224, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:39:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50430 +; + +-- Jul 24, 2008 9:40:06 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56225, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:40:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50431 +; + +-- Jul 24, 2008 9:40:12 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56217, IsGroupBy='N', IsPageBreak='N', SortNo=0, XSpace=0, YSpace=0,Updated=TO_DATE('2008-07-24 21:40:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50432 +; + +-- Jul 24, 2008 9:40:21 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56204, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:40:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50433 +; + +-- Jul 24, 2008 9:40:27 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56227, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:40:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50434 +; + +-- Jul 24, 2008 9:40:40 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56229, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:40:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50435 +; + +-- Jul 24, 2008 9:40:46 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56214, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:40:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50436 +; + +-- Jul 24, 2008 9:40:58 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56212, IsGroupBy='N', IsPageBreak='N', SortNo=0, XSpace=0, YSpace=0,Updated=TO_DATE('2008-07-24 21:40:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50437 +; + +-- Jul 24, 2008 9:41:05 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56200, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:41:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50438 +; + +-- Jul 24, 2008 9:41:10 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56216, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:41:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50439 +; + +-- Jul 24, 2008 9:41:21 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56213, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:41:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50440 +; + +-- Jul 24, 2008 9:41:29 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56228, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-24 21:41:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50441 +; + +-- Jul 24, 2008 9:43:40 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56241,53311,0,19,53039,'DD_Order_ID',TO_DATE('2008-07-24 21:43:37','YYYY-MM-DD HH24:MI:SS'),0,'EE01',10,'Y','N','N','N','N','N','N','N','N','N','Distribution Order',TO_DATE('2008-07-24 21:43:37','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:43:40 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56241 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:44:15 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56241, IsGroupBy='N', IsPageBreak='N', SortNo=0, XSpace=0, YSpace=0,Updated=TO_DATE('2008-07-24 21:44:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50442 +; + +-- Jul 24, 2008 9:45:00 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=10,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50361 +; + +-- Jul 24, 2008 9:45:00 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=20,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50364 +; + +-- Jul 24, 2008 9:45:00 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=30,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50382 +; + +-- Jul 24, 2008 9:45:00 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=40,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50385 +; + +-- Jul 24, 2008 9:45:00 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=50,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50363 +; + +-- Jul 24, 2008 9:45:00 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=60,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50378 +; + +-- Jul 24, 2008 9:45:35 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=10,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50378 +; + +-- Jul 24, 2008 9:45:35 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=20,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50361 +; + +-- Jul 24, 2008 9:45:35 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=30,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50364 +; + +-- Jul 24, 2008 9:45:35 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=40,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50382 +; + +-- Jul 24, 2008 9:45:35 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=50,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50385 +; + +-- Jul 24, 2008 9:45:35 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=60,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50363 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50369 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50370 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50371 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50372 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50378 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50373 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50374 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50375 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50376 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50377 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50379 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50380 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50381 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50383 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50384 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50385 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50386 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50387 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50388 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50389 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50390 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50391 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50392 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50393 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=10,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50361 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=20,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50362 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=30,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50363 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=40,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50364 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=50,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50382 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=60,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50365 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=70,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50366 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=80,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50367 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=90,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50368 +; + +-- Jul 24, 2008 9:55:43 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=10, FieldLength=20,Updated=TO_DATE('2008-07-24 21:55:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56197 +; + +-- Jul 24, 2008 9:56:07 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Val_Rule_ID=129,Updated=TO_DATE('2008-07-24 21:56:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56190 +; + +-- Jul 24, 2008 9:56:40 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Val_Rule_ID=104,Updated=TO_DATE('2008-07-24 21:56:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56191 +; + +-- Jul 24, 2008 9:58:27 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=10,Updated=TO_DATE('2008-07-24 21:58:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56224 +; + +-- Jul 24, 2008 10:02:17 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_Value_ID=131, DefaultValue='DR',Updated=TO_DATE('2008-07-24 22:02:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56201 +; + +-- Jul 24, 2008 10:03:20 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=10,Updated=TO_DATE('2008-07-24 22:03:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56213 +; + +-- Jul 24, 2008 10:04:28 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=21,Updated=TO_DATE('2008-07-24 22:04:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56208 +; + +-- Jul 24, 2008 10:05:36 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=10, FieldLength=20,Updated=TO_DATE('2008-07-24 22:05:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56226 +; + +-- Jul 24, 2008 10:06:13 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=17, AD_Reference_Value_ID=154,Updated=TO_DATE('2008-07-24 22:06:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56240 +; + +-- Jul 24, 2008 10:07:33 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=21,Updated=TO_DATE('2008-07-24 22:07:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56211 +; + +-- Jul 24, 2008 10:07:45 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:07:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56233 +; + +-- Jul 24, 2008 10:08:03 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:08:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56232 +; + +-- Jul 24, 2008 10:08:13 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:08:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56196 +; + +-- Jul 24, 2008 10:08:43 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=7,Updated=TO_DATE('2008-07-24 22:08:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56195 +; + +-- Jul 24, 2008 10:09:31 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:09:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56214 +; + +-- Jul 24, 2008 10:10:23 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:10:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56208 +; + +-- Jul 24, 2008 10:10:54 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:10:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56210 +; + +-- Jul 24, 2008 10:11:07 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:11:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56237 +; + +-- Jul 24, 2008 10:12:40 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=17, AD_Reference_Value_ID=151,Updated=TO_DATE('2008-07-24 22:12:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56239 +; + +-- Jul 24, 2008 10:15:24 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=17, AD_Reference_Value_ID=151,Updated=TO_DATE('2008-07-24 22:15:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56238 +; + +-- Jul 24, 2008 10:15:34 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_Value_ID=152,Updated=TO_DATE('2008-07-24 22:15:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56239 +; + +-- Jul 24, 2008 10:17:06 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=60,Updated=TO_DATE('2008-07-24 22:17:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56224 +; + +-- Jul 24, 2008 10:17:16 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:17:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56231 +; + +-- Jul 24, 2008 10:17:28 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:17:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56235 +; + +-- Jul 24, 2008 10:17:37 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:17:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56198 +; + +-- Jul 24, 2008 10:17:47 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:17:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56225 +; + +-- Jul 24, 2008 10:17:59 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:17:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56202 +; + +-- Jul 24, 2008 10:18:10 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:18:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56230 +; + +-- Jul 24, 2008 10:18:19 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:18:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56234 +; + +-- Jul 24, 2008 10:18:33 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:18:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56203 +; + +-- Jul 24, 2008 10:18:41 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:18:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56236 +; + +-- Jul 24, 2008 10:19:35 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:19:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56191 +; + +-- Jul 24, 2008 10:20:10 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_DATE('2008-07-24 22:20:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56190 +; + +-- Jul 25, 2008 12:41:32 AM CDT +-- Order Distribution +UPDATE AD_Process SET AD_PrintFormat_ID=NULL,Updated=TO_DATE('2008-07-25 00:41:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53028 +; + +-- Jul 25, 2008 12:42:06 AM CDT +-- Order Distribution +UPDATE AD_Process SET AD_PrintFormat_ID=NULL,Updated=TO_DATE('2008-07-25 00:42:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53044 +; + +-- Jul 25, 2008 1:09:20 AM CDT +-- Order Distribution +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53670,0,'Manuf_Order_MailText_ID',TO_DATE('2008-07-25 01:09:09','YYYY-MM-DD HH24:MI:SS'),0,'Email text used for sending Manufacturing Order','EE01','Standard email template used to send Manufacturing Order as attachments.','Y','Manufacturing Order Mail Text','Manufacturing Order Text',TO_DATE('2008-07-25 01:09:09','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:09:21 AM CDT +-- Order Distribution +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53670 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 25, 2008 1:11:42 AM CDT +-- Order Distribution +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53671,0,'Manuf_Order_PrintFormat_ID',TO_DATE('2008-07-25 01:11:38','YYYY-MM-DD HH24:MI:SS'),0,'Print Format for printing Manufacturing Order','EE01','You need to define a Print Format to print the document.','Y','Manufacturing Order Print Format','Manufacturing Order Print Format',TO_DATE('2008-07-25 01:11:38','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:11:42 AM CDT +-- Order Distribution +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53671 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 25, 2008 1:12:15 AM CDT +-- Order Distribution +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53672,0,'Distrib_Order_PrintFormat_ID',TO_DATE('2008-07-25 01:12:13','YYYY-MM-DD HH24:MI:SS'),0,'Print Format for printing Distribution Order','EE01','You need to define a Print Format to print the document.','Y','Distribution Order Print Format','Distribution Order Print Format',TO_DATE('2008-07-25 01:12:13','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:12:15 AM CDT +-- Order Distribution +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53672 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 25, 2008 1:12:52 AM CDT +-- Order Distribution +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53673,0,'DistributionOrder_MailText_ID',TO_DATE('2008-07-25 01:12:52','YYYY-MM-DD HH24:MI:SS'),0,'Email text used for sending Distribution Order','EE01','Standard email template used to send Manufacturing Order as attachments.','Y','Distribution Order Mail Text','Distribution Order Text',TO_DATE('2008-07-25 01:12:52','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:12:52 AM CDT +-- Order Distribution +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53673 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 25, 2008 1:18:14 AM CDT +-- Order Distribution +INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53281,TO_DATE('2008-07-25 01:18:14','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N','AD_PrintFormat Order Manufacturing',TO_DATE('2008-07-25 01:18:14','YYYY-MM-DD HH24:MI:SS'),0,'T') +; + +-- Jul 25, 2008 1:18:14 AM CDT +-- Order Distribution +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_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_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53281 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID) +; + +-- Jul 25, 2008 1:26:47 AM CDT +-- Order Distribution +INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,WhereClause) VALUES (0,7019,7026,0,53281,493,TO_DATE('2008-07-25 01:26:45','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N',TO_DATE('2008-07-25 01:26:45','YYYY-MM-DD HH24:MI:SS'),0,'AD_PrintFormat.AD_Table_ID=53027') +; + +-- Jul 25, 2008 1:29:25 AM CDT +-- Order Distribution +UPDATE AD_Reference SET Name='AD_PrintFormat Manufacturing Order',Updated=TO_DATE('2008-07-25 01:29:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=53281 +; + +-- Jul 25, 2008 1:29:25 AM CDT +-- Order Distribution +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53281 +; + +-- Jul 25, 2008 1:29:45 AM CDT +-- Order Distribution +INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53282,TO_DATE('2008-07-25 01:29:44','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N','AD_PrintFormat Distribution Order',TO_DATE('2008-07-25 01:29:44','YYYY-MM-DD HH24:MI:SS'),0,'T') +; + +-- Jul 25, 2008 1:29:45 AM CDT +-- Order Distribution +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_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_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53282 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID) +; + +-- Jul 25, 2008 1:32:17 AM CDT +-- Order Distribution +INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,WhereClause) VALUES (0,7019,7026,0,53282,493,TO_DATE('2008-07-25 01:32:17','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N',TO_DATE('2008-07-25 01:32:17','YYYY-MM-DD HH24:MI:SS'),0,'AD_PrintFormat.AD_Table_ID=53037') +; + +-- Jul 25, 2008 1:33:47 AM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56242,53670,0,18,274,454,'Manuf_Order_MailText_ID',TO_DATE('2008-07-25 01:33:46','YYYY-MM-DD HH24:MI:SS'),0,'Email text used for sending Manufacturing Order','EE01',22,'Standard email template used to send Manufacturing Order as attachments.','Y','N','N','N','N','N','N','N','N','N','Y','Manufacturing Order Mail Text',0,TO_DATE('2008-07-25 01:33:46','YYYY-MM-DD HH24:MI:SS'),0,1) +; + +-- Jul 25, 2008 1:33:47 AM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56242 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 25, 2008 1:33:53 AM CDT +-- Order Distribution +ALTER TABLE AD_PrintForm ADD Manuf_Order_MailText_ID NUMBER(10) +; + +-- Jul 25, 2008 1:34:57 AM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56243,53671,0,18,53281,454,'Manuf_Order_PrintFormat_ID',TO_DATE('2008-07-25 01:34:56','YYYY-MM-DD HH24:MI:SS'),0,'Print Format for printing Manufacturing Order','EE01',22,'You need to define a Print Format to print the document.','Y','N','N','N','N','N','N','N','N','N','Y','Manufacturing Order Print Format',0,TO_DATE('2008-07-25 01:34:56','YYYY-MM-DD HH24:MI:SS'),0,1) +; + +-- Jul 25, 2008 1:34:57 AM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56243 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 25, 2008 1:35:02 AM CDT +-- Order Distribution +ALTER TABLE AD_PrintForm ADD Manuf_Order_PrintFormat_ID NUMBER(10) +; + +-- Jul 25, 2008 1:35:47 AM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56244,53673,0,18,274,454,'Distrib_Order_MailText_ID',TO_DATE('2008-07-25 01:35:47','YYYY-MM-DD HH24:MI:SS'),0,'Email text used for sending Distribution Order','EE01',22,'Standard email template used to send Manufacturing Order as attachments.','Y','N','N','N','N','N','N','N','N','N','Y','Distribution Order Mail Text',0,TO_DATE('2008-07-25 01:35:47','YYYY-MM-DD HH24:MI:SS'),0,1) +; + +-- Jul 25, 2008 1:35:47 AM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56244 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 25, 2008 1:35:51 AM CDT +-- Order Distribution +ALTER TABLE AD_PrintForm ADD Distrib_Order_MailText_ID NUMBER(10) +; + +-- Jul 25, 2008 1:36:23 AM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56245,53672,0,18,53282,454,'Distrib_Order_PrintFormat_ID',TO_DATE('2008-07-25 01:36:22','YYYY-MM-DD HH24:MI:SS'),0,'Print Format for printing Distribution Order','EE01',22,'You need to define a Print Format to print the document.','Y','N','N','N','N','N','N','N','N','N','Y','Distribution Order Print Format',0,TO_DATE('2008-07-25 01:36:22','YYYY-MM-DD HH24:MI:SS'),0,1) +; + +-- Jul 25, 2008 1:36:23 AM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56245 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 25, 2008 1:36:25 AM CDT +-- Order Distribution +ALTER TABLE AD_PrintForm ADD Distrib_Order_PrintFormat_ID NUMBER(10) +; + +-- Jul 25, 2008 1:36:42 AM CDT +-- Order Distribution +ALTER TABLE AD_PrintForm MODIFY Distrib_Order_MailText_ID NUMBER(10) DEFAULT NULL +; + +-- Jul 25, 2008 1:38:11 AM CDT +-- Order Distribution +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56244,56319,0,385,TO_DATE('2008-07-25 01:38:10','YYYY-MM-DD HH24:MI:SS'),0,'Email text used for sending Distribution Order',22,'EE01','Standard email template used to send Manufacturing Order as attachments.','Y','Y','Y','N','N','N','N','N','Distribution Order Mail Text',TO_DATE('2008-07-25 01:38:10','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:38:11 AM CDT +-- Order Distribution +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56319 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 25, 2008 1:38:12 AM CDT +-- Order Distribution +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56245,56320,0,385,TO_DATE('2008-07-25 01:38:12','YYYY-MM-DD HH24:MI:SS'),0,'Print Format for printing Distribution Order',22,'EE01','You need to define a Print Format to print the document.','Y','Y','Y','N','N','N','N','N','Distribution Order Print Format',TO_DATE('2008-07-25 01:38:12','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:38:12 AM CDT +-- Order Distribution +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56320 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 25, 2008 1:38:13 AM CDT +-- Order Distribution +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56242,56321,0,385,TO_DATE('2008-07-25 01:38:12','YYYY-MM-DD HH24:MI:SS'),0,'Email text used for sending Manufacturing Order',22,'EE01','Standard email template used to send Manufacturing Order as attachments.','Y','Y','Y','N','N','N','N','N','Manufacturing Order Mail Text',TO_DATE('2008-07-25 01:38:12','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:38:13 AM CDT +-- Order Distribution +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56321 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 25, 2008 1:38:13 AM CDT +-- Order Distribution +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56243,56322,0,385,TO_DATE('2008-07-25 01:38:13','YYYY-MM-DD HH24:MI:SS'),0,'Print Format for printing Manufacturing Order',22,'EE01','You need to define a Print Format to print the document.','Y','Y','Y','N','N','N','N','N','Manufacturing Order Print Format',TO_DATE('2008-07-25 01:38:13','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:38:13 AM CDT +-- Order Distribution +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56322 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=4918 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=4919 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=4920 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=4922 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=4923 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=4921 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=5740 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=6222 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=5739 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=6224 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=5741 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=6223 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=5742 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=6225 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=6510 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=6509 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=56320 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=56319 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=56322 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=56321 +; + +-- Jul 25, 2008 1:38:43 AM CDT +-- Order Distribution +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-07-25 01:38:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56319 +; + +-- Jul 25, 2008 1:38:47 AM CDT +-- Order Distribution +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-07-25 01:38:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56321 +; + +-- Jul 25, 2008 1:59:58 AM CDT +-- Order Distribution +UPDATE AD_Ref_Table SET WhereClause='AD_PrintFormat.AD_Table_ID=53039',Updated=TO_DATE('2008-07-25 01:59:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=53282 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=100,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50360 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=110,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50369 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=120,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50370 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=130,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50371 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=140,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50358 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=150,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50372 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=160,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50359 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=170,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50378 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=180,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50373 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=190,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50374 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=200,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50375 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=210,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50376 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=220,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50377 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=230,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50379 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=240,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50380 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=250,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50381 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=260,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50357 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=270,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50383 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=280,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50384 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=290,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50385 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=300,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50386 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=310,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50387 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=320,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50388 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=330,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50389 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=340,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50390 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=350,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50391 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=360,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50392 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=370,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50393 +; + +-- Jul 25, 2008 2:17:02 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53926, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:17:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50361 +; + +-- Jul 25, 2008 2:17:09 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53940, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:17:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50362 +; + +-- Jul 25, 2008 2:17:15 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53929, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:17:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50363 +; + +-- Jul 25, 2008 2:17:27 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53928, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:17:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50364 +; + +-- Jul 25, 2008 2:17:35 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53951, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:17:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50382 +; + +-- Jul 25, 2008 2:17:47 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53950, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:17:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50365 +; + +-- Jul 25, 2008 2:17:57 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53949, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:17:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50366 +; + +-- Jul 25, 2008 2:18:05 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53948, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:18:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50367 +; + +-- Jul 25, 2008 2:18:10 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53947, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:18:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50368 +; + +-- Jul 25, 2008 2:18:16 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53943, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:18:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50360 +; + +-- Jul 25, 2008 2:18:22 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53965, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:18:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50369 +; + +-- Jul 25, 2008 2:18:28 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53966, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:18:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50370 +; + +-- Jul 25, 2008 2:18:33 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53931, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:18:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50371 +; + +-- Jul 25, 2008 2:18:37 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53961, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:18:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50358 +; + +-- Jul 25, 2008 2:18:51 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53927, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:18:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50372 +; + +-- Jul 25, 2008 2:18:56 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53937, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:18:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50359 +; + +-- Jul 25, 2008 2:19:01 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53930, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:19:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50378 +; + +-- Jul 25, 2008 2:19:06 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53938, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:19:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50373 +; + +-- Jul 25, 2008 2:19:11 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53939, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:19:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50374 +; + +-- Jul 25, 2008 2:19:21 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53953, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:19:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50375 +; + +-- Jul 25, 2008 2:19:26 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53941, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:19:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50376 +; + +-- Jul 25, 2008 2:19:37 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53944, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:19:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50377 +; + +-- Jul 25, 2008 2:19:41 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53942, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:19:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50379 +; + +-- Jul 25, 2008 2:19:47 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53945, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:19:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50380 +; + +-- Jul 25, 2008 2:20:17 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53946, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:20:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50381 +; + +-- Jul 25, 2008 2:20:23 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53964, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:20:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50357 +; + +-- Jul 25, 2008 2:20:35 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53952, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:20:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50383 +; + +-- Jul 25, 2008 2:20:40 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53932, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:20:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50384 +; + +-- Jul 25, 2008 2:20:48 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53927, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50385 +; + +-- Jul 25, 2008 2:21:03 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53928, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:21:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50386 +; + +-- Jul 25, 2008 2:21:14 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53955, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:21:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50387 +; + +-- Jul 25, 2008 2:21:19 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53956, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:21:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50388 +; + +-- Jul 25, 2008 2:21:26 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53957, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:21:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50389 +; + +-- Jul 25, 2008 2:21:32 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53963, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:21:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50390 +; + +-- Jul 25, 2008 2:21:43 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53933, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:21:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50391 +; + +-- Jul 25, 2008 2:21:50 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53960, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:21:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50392 +; + +-- Jul 25, 2008 2:21:56 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53962, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-07-25 02:21:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50393 +; + +-- Jul 25, 2008 2:23:13 AM CDT +-- Order Distribution +DELETE FROM AD_PrintFormatItem_Trl WHERE AD_PrintFormatItem_ID=50372 +; + +-- Jul 25, 2008 2:23:14 AM CDT +-- Order Distribution +DELETE FROM AD_PrintFormatItem WHERE AD_PrintFormatItem_ID=50372 +; + +-- Jul 25, 2008 2:23:28 AM CDT +-- Order Distribution +DELETE FROM AD_PrintFormatItem_Trl WHERE AD_PrintFormatItem_ID=50386 +; + +-- Jul 25, 2008 2:23:28 AM CDT +-- Order Distribution +DELETE FROM AD_PrintFormatItem WHERE AD_PrintFormatItem_ID=50386 +; + + diff --git a/migration/351a-352a/236_gwperiodfix.sql b/migration/351a-352a/236_gwperiodfix.sql new file mode 100644 index 0000000000..461d5c4b2b --- /dev/null +++ b/migration/351a-352a/236_gwperiodfix.sql @@ -0,0 +1,5 @@ +-- 25-jul-2008 10:06:30 COT +-- Default comment for updating dictionary +UPDATE C_AcctSchema SET Period_OpenHistory=10000,Updated=TO_DATE('2008-07-25 10:06:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_AcctSchema_ID=101 +; + diff --git a/migration/351a-352a/237_inactivateUnusedRoles.sql b/migration/351a-352a/237_inactivateUnusedRoles.sql new file mode 100644 index 0000000000..ab871d4356 --- /dev/null +++ b/migration/351a-352a/237_inactivateUnusedRoles.sql @@ -0,0 +1,60 @@ +-- 25-jul-2008 10:39:47 COT +-- Default comment for updating dictionary +UPDATE AD_Role SET IsActive='N', UserLevel='S ',Updated=TO_DATE('2008-07-25 10:39:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50002 +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +UPDATE AD_Role SET IsActive='N', UserLevel='S ',Updated=TO_DATE('2008-07-25 10:39:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50001 +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +DELETE FROM AD_Window_Access WHERE AD_Role_ID=50001 +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +INSERT INTO AD_Window_Access (AD_Window_ID, AD_Role_ID, AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadWrite) SELECT DISTINCT w.AD_Window_ID, 50001,0,0,'Y', SysDate,100, SysDate,100,'Y' FROM AD_Window w INNER JOIN AD_Tab t ON (w.AD_Window_ID=t.AD_Window_ID) INNER JOIN AD_Table tt ON (t.AD_Table_ID=tt.AD_Table_ID) WHERE t.SeqNo=(SELECT MIN(SeqNo) FROM AD_Tab xt WHERE xt.AD_Window_ID=w.AD_Window_ID)AND tt.AccessLevel IN ('4','7','6') +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +DELETE FROM AD_Process_Access WHERE AD_Role_ID=50001 +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +INSERT INTO AD_Process_Access (AD_Process_ID, AD_Role_ID, AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadWrite) SELECT DISTINCT p.AD_Process_ID, 50001,0,0,'Y', SysDate,100, SysDate,100,'Y' FROM AD_Process p WHERE AccessLevel IN ('4','7','6') +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +DELETE FROM AD_Form_Access WHERE AD_Role_ID=50001 +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +INSERT INTO AD_Form_Access (AD_Form_ID, AD_Role_ID, AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadWrite) SELECT f.AD_Form_ID, 50001,0,0,'Y', SysDate,100, SysDate,100,'Y' FROM AD_Form f WHERE AccessLevel IN ('4','7','6') +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +DELETE FROM AD_WorkFlow_Access WHERE AD_Role_ID=50001 +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +INSERT INTO AD_WorkFlow_Access (AD_WorkFlow_ID, AD_Role_ID, AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadWrite) SELECT w.AD_WorkFlow_ID, 50001,0,0,'Y', SysDate,100, SysDate,100,'Y' FROM AD_WorkFlow w WHERE AccessLevel IN ('4','7','6') +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +DELETE FROM AD_Document_Action_Access WHERE AD_Role_ID=50001 +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +INSERT INTO AD_Document_Action_Access (AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,C_DocType_ID , AD_Ref_List_ID, AD_Role_ID) (SELECT 0,0,'Y', SysDate,100, SysDate,100, doctype.C_DocType_ID, action.AD_Ref_List_ID, rol.AD_Role_ID FROM AD_Client client INNER JOIN C_DocType doctype ON (doctype.AD_Client_ID=client.AD_Client_ID) INNER JOIN AD_Ref_List action ON (action.AD_Reference_ID=135) INNER JOIN AD_Role rol ON (rol.AD_Client_ID=client.AD_Client_ID AND rol.AD_Role_ID=50001) ) +; + diff --git a/migration/351a-352a/238_Fix_Window_Tax_Rate_Parent.sql b/migration/351a-352a/238_Fix_Window_Tax_Rate_Parent.sql new file mode 100644 index 0000000000..10cdba69fd --- /dev/null +++ b/migration/351a-352a/238_Fix_Window_Tax_Rate_Parent.sql @@ -0,0 +1,5 @@ +-- 25.07.2008 21:48:11 EEST +-- +UPDATE AD_Field SET DefaultValue='Y', IsReadOnly='Y',Updated=TO_DATE('2008-07-25 21:48:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54515 +; + diff --git a/migration/351a-352a/239_FR1783032.sql b/migration/351a-352a/239_FR1783032.sql new file mode 100644 index 0000000000..8b97948797 --- /dev/null +++ b/migration/351a-352a/239_FR1783032.sql @@ -0,0 +1,5 @@ +-- Jul 26, 2008 5:50:38 PM COT +-- [ 1783032 ] Add DocAction parameter to Generate Invoices (manual) form +UPDATE AD_Val_Rule SET Code='DocStatus NOT IN (''DR'',''IP'') AND EXISTS (SELECT * FROM C_OrderLine WHERE C_Order.C_Order_ID=C_OrderLine.C_Order_ID AND QtyOrdered <> QtyInvoiced) AND IsSOTrx=''Y'' AND NOT EXISTS (SELECT * FROM C_Invoice i WHERE i.C_Order_ID=C_Order.C_Order_ID AND i.DocStatus IN (''IP'', ''CO'', ''CL''))',Updated=TO_DATE('2008-07-26 17:50:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=134 +; + diff --git a/migration/351a-352a/240_FR1810133.sql b/migration/351a-352a/240_FR1810133.sql new file mode 100644 index 0000000000..0ef1ac106e --- /dev/null +++ b/migration/351a-352a/240_FR1810133.sql @@ -0,0 +1,29 @@ +-- Jul 23, 2008 4:50:40 PM COT +-- [ 1810133 ] Add logging policy on column level +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53669,0,'IsAllowLogging',TO_DATE('2008-07-23 16:50:36','YYYY-MM-DD HH24:MI:SS'),100,'Determine if a column must be recorded into the change log','D','Y','IsAllowLogging','IsAllowLogging',TO_DATE('2008-07-23 16:50:36','YYYY-MM-DD HH24:MI:SS'),100) +; + +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53669 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +UPDATE AD_Element_Trl SET IsTranslated='Y',Name='RegistrarEnLog',PrintName='Registrar en Log de Cambios',Description='Determina si una columna debe ser registrada en el log de cambios',Updated=TO_DATE('2008-07-23 16:53:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53669 AND AD_Language='es_MX' +; + +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56187,53669,0,20,101,'IsAllowLogging',TO_DATE('2008-07-23 16:55:42','YYYY-MM-DD HH24:MI:SS'),100,'Y','Determine if a column must be recorded into the change log','D',1,'Y','N','N','N','N','N','N','N','N','N','Y','IsAllowLogging',0,TO_DATE('2008-07-23 16:55:42','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56187 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +ALTER TABLE AD_Column ADD IsAllowLogging CHAR(1) DEFAULT 'Y' CHECK (IsAllowLogging IN ('Y','N')) +; + +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,56187,56317,0,101,TO_DATE('2008-07-23 16:57:53','YYYY-MM-DD HH24:MI:SS'),100,'Determine if a column must be recorded into the change log',0,'D','Y','Y','Y','N','N','N','N','N','IsAllowLogging',370,0,TO_DATE('2008-07-23 16:57:53','YYYY-MM-DD HH24:MI:SS'),100) +; + +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56317 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + + +UPDATE AD_Column SET IsAllowLogging = 'N' WHERE AD_Column_ID IN (6652, 6653) +; diff --git a/migration/351a-352a/241_BF2019115.sql b/migration/351a-352a/241_BF2019115.sql new file mode 100644 index 0000000000..e1f8b942ce --- /dev/null +++ b/migration/351a-352a/241_BF2019115.sql @@ -0,0 +1,10 @@ +-- Jul 22, 2008 3:46:17 PM COT +-- [ 2019115 ] Don't allow UoM change if product already used +INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53043,0,TO_DATE('2008-07-22 15:46:13','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','UOM can''t be changed if the product has movements or costs','E',TO_DATE('2008-07-22 15:46:13','YYYY-MM-DD HH24:MI:SS'),100,'SaveUomError') +; + +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53043 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID) +; + +UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='UOM no puede ser modificado si el producto tiene movimientos o costos',Updated=TO_DATE('2008-07-22 15:47:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=53043 AND AD_Language like 'es_%' +; diff --git a/migration/351a-352a/242_Field_Movement_POReference.sql b/migration/351a-352a/242_Field_Movement_POReference.sql new file mode 100644 index 0000000000..4ad5d1916c --- /dev/null +++ b/migration/351a-352a/242_Field_Movement_POReference.sql @@ -0,0 +1,522 @@ +-- Jul 26, 2008 7:59:19 PM CDT +-- POReference +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56246,952,0,10,323,'POReference',TO_DATE('2008-07-26 19:59:18','YYYY-MM-DD HH24:MI:SS'),100,'Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner','EE01',20,'The business partner order reference is the order reference for this specific transaction; Often Purchase Order numbers are given to print on Invoices for easier reference. A standard number can be defined in the Business Partner (Customer) window.','Y','N','N','N','N','N','N','N','N','N','Y','Order Reference',0,TO_DATE('2008-07-26 19:59:18','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jul 26, 2008 7:59:19 PM CDT +-- POReference +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56246 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 26, 2008 7:59:22 PM CDT +-- POReference +ALTER TABLE M_Movement ADD POReference NVARCHAR2(20) +; + +-- Jul 26, 2008 8:00:02 PM CDT +-- POReference +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56246,56323,0,259,TO_DATE('2008-07-26 20:00:01','YYYY-MM-DD HH24:MI:SS'),100,'Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner',20,'EE01','The business partner order reference is the order reference for this specific transaction; Often Purchase Order numbers are given to print on Invoices for easier reference. A standard number can be defined in the Business Partner (Customer) window.','Y','Y','Y','N','N','N','N','N','Order Reference',TO_DATE('2008-07-26 20:00:01','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 26, 2008 8:00:02 PM CDT +-- POReference +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=1000501 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=56323 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=2726 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54046 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=2722 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=2725 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=10418 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54047 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54048 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54049 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=54050 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=54051 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=54052 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=54053 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=54054 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=7791 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=7788 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=7792 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=7793 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=7790 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=7789 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=10530 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=10529 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=54055 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=9223 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=9222 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=9224 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=9221 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=2727 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=5144 +; + +-- Jul 26, 2008 8:00:48 PM CDT +-- POReference +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-07-26 20:00:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56323 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=52001 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=460 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=301 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=129 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=543 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=195 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=1000019 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=407 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=406 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=335 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=436 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=507 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=472 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=448 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=1000006 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=449 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53050 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53049 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=445 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53051 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=52001 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=460 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=301 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=129 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=543 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=195 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=1000019 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=407 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=406 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=335 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=436 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=507 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=448 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=1000006 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=449 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53050 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53049 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=445 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=472 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53051 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=167 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=357 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=229 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=412 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=256 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=197 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=179 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=503 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=196 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=228 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=479 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=482 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=481 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=411 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=537 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=15, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=311 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=16, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=292 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=17, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=515 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=18, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=545 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53067 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=381 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53088 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=128 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53068 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=1000041 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53069 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53070 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=181 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=484 +; + + + diff --git a/migration/351a-352a/243_FixCalloutDO.sql b/migration/351a-352a/243_FixCalloutDO.sql new file mode 100644 index 0000000000..69f083b8f6 --- /dev/null +++ b/migration/351a-352a/243_FixCalloutDO.sql @@ -0,0 +1,330 @@ +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54010 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54029 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54035 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54027 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54011 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54036 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54037 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54038 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=54039 +; + +-- Jul 27, 2008 2:47:14 PM CDT +-- Order Distribution +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2008-07-27 14:47:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54035 +; + +-- Jul 27, 2008 2:54:43 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54029 +; + +-- Jul 27, 2008 2:54:43 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54010 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=54024 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=54033 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=54034 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=54029 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54010 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54035 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54027 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54011 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54036 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54037 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54038 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54039 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53050 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53049 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=472 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53051 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53067 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=381 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53088 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=128 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53068 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=445 +; + +-- Jul 27, 2008 2:57:45 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=1000041 +; + +-- Jul 27, 2008 2:57:45 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53069 +; + +-- Jul 27, 2008 2:57:45 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53070 +; + +-- Jul 27, 2008 2:57:45 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=181 +; + +-- Jul 27, 2008 2:57:45 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=484 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53050 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53049 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53051 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53067 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=381 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53088 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=128 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53068 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=445 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=472 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=1000041 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53069 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53070 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=181 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=484 +; + +-- Jul 27, 2008 3:01:46 PM CDT +-- Order Distribution +UPDATE AD_Menu SET Name='Distribution Run Process',Updated=TO_DATE('2008-07-27 15:01:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=1000041 +; + +-- Jul 27, 2008 3:01:46 PM CDT +-- Order Distribution +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=1000041 +; + +-- Jul 27, 2008 3:04:48 PM CDT +-- Order Distribution +UPDATE AD_Process SET Description='Create Distribution Run orders based on Distribution List line items', Name='Distribution Run Orders', Value='M_DistributionRun Orders',Updated=TO_DATE('2008-07-27 15:04:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=1000037 +; + +-- Jul 27, 2008 3:04:48 PM CDT +-- Order Distribution +UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=1000037 +; + +-- Jul 27, 2008 3:04:48 PM CDT +-- Order Distribution +UPDATE AD_Menu SET Description='Create Distribution Run orders based on Distribution List line items', IsActive='Y', Name='Distribution Run Orders',Updated=TO_DATE('2008-07-27 15:04:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=1000041 +; + +-- Jul 27, 2008 3:04:48 PM CDT +-- Order Distribution +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=1000041 +; + +-- Jul 27, 2008 3:32:28 PM CDT +-- Order Distribution +UPDATE AD_Column SET Callout='org.compiere.model.CalloutDistributionOrder.qty',Updated=TO_DATE('2008-07-27 15:32:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53933 +; + +-- Jul 27, 2008 3:32:43 PM CDT +-- Order Distribution +UPDATE AD_Column SET Callout='org.eevolution.model.CalloutDistributionOrder.qty',Updated=TO_DATE('2008-07-27 15:32:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53933 +; + +-- Jul 27, 2008 3:33:12 PM CDT +-- Order Distribution +UPDATE AD_Column SET Callout=NULL,Updated=TO_DATE('2008-07-27 15:33:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53948 +; + +-- Jul 27, 2008 3:33:18 PM CDT +-- Order Distribution +UPDATE AD_Column SET Callout=NULL,Updated=TO_DATE('2008-07-27 15:33:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53929 +; + +-- Jul 27, 2008 3:33:23 PM CDT +-- Order Distribution +UPDATE AD_Column SET Callout='org.eevolution.model.CalloutDistributionOrder.qty',Updated=TO_DATE('2008-07-27 15:33:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53954 +; + +-- Jul 27, 2008 3:33:29 PM CDT +-- Order Distribution +UPDATE AD_Column SET Callout='org.eevolution.model.CalloutDistributionOrder.qty',Updated=TO_DATE('2008-07-27 15:33:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53928 +; + diff --git a/migration/351a-352a/244_FR2030865DistributionRunDO.sql b/migration/351a-352a/244_FR2030865DistributionRunDO.sql new file mode 100644 index 0000000000..15b8902654 --- /dev/null +++ b/migration/351a-352a/244_FR2030865DistributionRunDO.sql @@ -0,0 +1,134 @@ + +-- Jul 29, 2008 11:00:46 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53675,0,'CreateDO',TO_DATE('2008-07-29 11:00:37','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Create Distribution Order','Create Distribution Order',TO_DATE('2008-07-29 11:00:37','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 29, 2008 11:00:46 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53675 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + + +-- Jul 28, 2008 8:27:38 PM CDT +-- Distribution Run Orders +INSERT INTO AD_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AccessLevel,Classname,Created,CreatedBy,Description,EntityType,Help,IsActive,IsBetaFunctionality,IsDirectPrint,IsReport,Name,ShowHelp,Statistic_Count,Statistic_Seconds,Updated,UpdatedBy,Value,WorkflowValue) VALUES (0,0,53150,'1','org.eevolution.process.DistributionRunOrders',TO_DATE('2008-07-28 20:27:26','YYYY-MM-DD HH24:MI:SS'),0,'Create Distribution Run Orders based on Distribution List and redistribute the quantity into Distribution Plan line items','EE01','Please note that due to rounding, the total quantity of the order(s) is likely to be higher then the quantity entered.','Y','N','N','N','Distribution Run Orders','Y',0,0,TO_DATE('2008-07-28 20:27:26','YYYY-MM-DD HH24:MI:SS'),0,'M_DistributionRun Orders',NULL) +; + +-- Jul 28, 2008 8:27:38 PM CDT +-- Distribution Run Orders +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=53150 AND EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_ID!=t.AD_Process_ID) +; + +-- Jul 28, 2008 8:27:39 PM CDT +-- Distribution Run Orders +UPDATE AD_Reference SET Description='Date mm/dd/yyyy', EntityType='D', Help=NULL, IsActive='Y', Name='Date', ValidationType='D',Updated=TO_DATE('2008-07-28 20:27:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=15 +; + +-- Jul 28, 2008 8:27:39 PM CDT +-- Distribution Run Orders +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=15 +; + +-- Jul 28, 2008 8:27:41 PM CDT +-- Distribution Run Orders +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,269,0,53150,53218,15,'DatePromised',TO_DATE('2008-07-28 20:27:40','YYYY-MM-DD HH24:MI:SS'),0,'Date Promised','EE01',8,'Date Promised','Y','Y','N','N','Date Promised',25,TO_DATE('2008-07-28 20:27:40','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 8:27:41 PM CDT +-- Distribution Run Orders +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=53218 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) +; + +-- Jul 28, 2008 8:27:41 PM CDT +-- Distribution Run Orders +UPDATE AD_Reference SET Description='CheckBox', EntityType='D', Help=NULL, IsActive='Y', Name='Yes-No', ValidationType='D',Updated=TO_DATE('2008-07-28 20:27:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=20 +; + +-- Jul 28, 2008 8:27:41 PM CDT +-- Distribution Run Orders +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=20 +; + +-- Jul 28, 2008 8:27:42 PM CDT +-- Distribution Run Orders +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,53675,0,53150,53219,20,'CreateDO',TO_DATE('2008-07-28 20:27:41','YYYY-MM-DD HH24:MI:SS'),0,'Create Distribution Order','EE01',1,'Create Distribution Order','Y','Y','N','N','Create Distribution Order',50,TO_DATE('2008-07-28 20:27:41','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 8:27:42 PM CDT +-- Distribution Run Orders +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=53219 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) +; + +-- Jul 28, 2008 8:27:43 PM CDT +-- Distribution Run Orders +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,2153,0,53150,53220,20,'IsTest',TO_DATE('2008-07-28 20:27:42','YYYY-MM-DD HH24:MI:SS'),0,'Test','EE01',1,'Execute in Test Mode','Y','Y','N','N','Test',40,TO_DATE('2008-07-28 20:27:42','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 8:27:43 PM CDT +-- Distribution Run Orders +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=53220 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) +; + +-- Jul 28, 2008 8:27:43 PM CDT +-- Distribution Run Orders +UPDATE AD_Reference SET Description='Direct Table Access', EntityType='D', Help=NULL, IsActive='Y', Name='Table Direct', ValidationType='D',Updated=TO_DATE('2008-07-28 20:27:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=19 +; + +-- Jul 28, 2008 8:27:43 PM CDT +-- Distribution Run Orders +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=19 +; + +-- Jul 28, 2008 8:27:44 PM CDT +-- Distribution Run Orders +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,2408,0,53150,53221,19,'M_DistributionList_ID',TO_DATE('2008-07-28 20:27:43','YYYY-MM-DD HH24:MI:SS'),0,'Distribution List','EE01',10,'Distribution Lists allow to distribute products to a selected list of partners','Y','N','Y','N','Distribution List',30,TO_DATE('2008-07-28 20:27:43','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 8:27:44 PM CDT +-- Distribution Run Orders +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=53221 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) +; + +-- Jul 28, 2008 8:27:45 PM CDT +-- Distribution Run Orders +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,459,0,53150,53222,19,'M_Warehouse_ID',TO_DATE('2008-07-28 20:27:44','YYYY-MM-DD HH24:MI:SS'),0,'Storage Warehouse and Service Point','EE01',10,'The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','Y','Y','N','Warehouse',20,TO_DATE('2008-07-28 20:27:44','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 8:27:45 PM CDT +-- Distribution Run Orders +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=53222 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) +; + +-- Jul 28, 2008 8:27:46 PM CDT +-- Distribution Run Orders +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,113,0,53150,53223,19,'AD_Org_ID',TO_DATE('2008-07-28 20:27:45','YYYY-MM-DD HH24:MI:SS'),0,'Organization','EE01',10,'Organizational entity within client','Y','Y','Y','N','Organization',10,TO_DATE('2008-07-28 20:27:45','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 8:27:46 PM CDT +-- Distribution Run Orders +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=53223 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) +; + +-- Jul 28, 2008 8:27:48 PM CDT +-- Distribution Run Orders +INSERT INTO AD_Menu (AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,Action,Created,CreatedBy,Description,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (0,53184,0,53150,'P',TO_DATE('2008-07-28 20:27:47','YYYY-MM-DD HH24:MI:SS'),0,'Create Distribution Run Orders based on Distribution List and redistribute the quantity into Distribution Plan line items','EE01','Y','N','N','N','Distribution Run Orders',TO_DATE('2008-07-28 20:27:47','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 8:27:48 PM CDT +-- Distribution Run Orders +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=53184 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID) +; + +-- Jul 28, 2008 8:27:48 PM CDT +-- Distribution Run Orders +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, 53066,7, 10, 53184) +; + +-- Jul 28, 2008 8:59:40 PM CDT +-- Distribution Run Orders +UPDATE AD_Val_Rule SET Code='C_DocType.DocBaseType IN (''SOO'', ''POO'',''DOO'')',Updated=TO_DATE('2008-07-28 20:59:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Val_Rule_ID=172 +; + + + diff --git a/migration/351a-352a/245_BF2031000_Detail_Order_Distribution.sql b/migration/351a-352a/245_BF2031000_Detail_Order_Distribution.sql new file mode 100644 index 0000000000..1c16ee8d06 --- /dev/null +++ b/migration/351a-352a/245_BF2031000_Detail_Order_Distribution.sql @@ -0,0 +1,993 @@ +SET DEFINE OFF; + +-- Jul 28, 2008 10:50:09 PM CDT +-- Order Distribution +INSERT INTO AD_Table (AD_Client_ID,AD_Org_ID,AD_Table_ID,AccessLevel,Created,CreatedBy,Description,EntityType,IsActive,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEnabled,IsView,LoadSeq,Name,ReplicationType,TableName,Updated,UpdatedBy) VALUES (0,0,53144,'3',TO_DATE('2008-07-28 22:49:59','YYYY-MM-DD HH24:MI:SS'),0,'Distribution Order & Line View','EE01','Y','N','N','N','N','Y',150,'Distribution Order Detail','L','RV_DD_OrderDetail',TO_DATE('2008-07-28 22:49:59','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 10:50:09 PM CDT +-- Order Distribution +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=53144 AND EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Table_ID!=t.AD_Table_ID) +; + +-- Jul 28, 2008 10:50:10 PM CDT +-- Order Distribution +INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53165,TO_DATE('2008-07-28 22:50:10','YYYY-MM-DD HH24:MI:SS'),0,1000000,50000,'Table RV_DD_OrderDetail',1,'Y','N','Y','Y','RV_DD_OrderDetail','N',1000000,TO_DATE('2008-07-28 22:50:10','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 10:50:39 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56249,102,0,19,53144,'AD_Client_ID',TO_DATE('2008-07-28 22:50:36','YYYY-MM-DD HH24:MI:SS'),0,'Client/Tenant for this installation.','EE01',10,'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','N','N','N','N','N','N','N','N','N','Client',TO_DATE('2008-07-28 22:50:36','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:39 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56249 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:39 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56250,113,0,19,53144,'AD_Org_ID',TO_DATE('2008-07-28 22:50:39','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client','EE01',10,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','N','N','N','N','N','N','N','N','N','Organization',TO_DATE('2008-07-28 22:50:39','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:39 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56250 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:41 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56251,348,0,20,53144,'IsActive',TO_DATE('2008-07-28 22:50:39','YYYY-MM-DD HH24:MI:SS'),0,'The record is active in the system','EE01',1,'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.','Y','N','N','N','N','N','N','N','N','N','Active',TO_DATE('2008-07-28 22:50:39','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:41 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56251 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:42 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56252,245,0,16,53144,'Created',TO_DATE('2008-07-28 22:50:41','YYYY-MM-DD HH24:MI:SS'),0,'Date this record was created','EE01',29,'The Created field indicates the date that this record was created.','Y','N','N','N','N','N','N','N','N','N','Created',TO_DATE('2008-07-28 22:50:41','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:42 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56252 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:44 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56253,246,0,18,110,53144,'CreatedBy',TO_DATE('2008-07-28 22:50:42','YYYY-MM-DD HH24:MI:SS'),0,'User who created this records','EE01',10,'The Created By field indicates the user who created this record.','Y','N','N','N','N','N','N','N','N','N','Created By',TO_DATE('2008-07-28 22:50:42','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:44 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56253 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:45 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56254,607,0,16,53144,'Updated',TO_DATE('2008-07-28 22:50:44','YYYY-MM-DD HH24:MI:SS'),0,'Date this record was updated','EE01',29,'The Updated field indicates the date that this record was updated.','Y','N','N','N','N','N','N','N','N','N','Updated',TO_DATE('2008-07-28 22:50:44','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:45 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56254 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:46 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56255,608,0,18,110,53144,'UpdatedBy',TO_DATE('2008-07-28 22:50:45','YYYY-MM-DD HH24:MI:SS'),0,'User who updated this records','EE01',10,'The Updated By field indicates the user who updated this record.','Y','N','N','N','N','N','N','N','N','N','Updated By',TO_DATE('2008-07-28 22:50:45','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:46 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56255 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:47 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56256,558,0,19,53144,'C_Order_ID',TO_DATE('2008-07-28 22:50:46','YYYY-MM-DD HH24:MI:SS'),0,'Order','EE01',10,'The Order is a control document. The Order is complete when the quantity ordered is the same as the quantity shipped and invoiced. When you cloase an order, unshipped (backordered) quantities are cancelled.','Y','N','N','N','N','N','N','N','N','N','Order',TO_DATE('2008-07-28 22:50:46','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:47 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56256 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:48 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56257,289,0,17,53144,'DocStatus',TO_DATE('2008-07-28 22:50:47','YYYY-MM-DD HH24:MI:SS'),0,'The current status of the document','EE01',2,'The Document Status indicates the status of a document at this time. If you want to change the document status, use the Document Action field','Y','N','N','N','N','N','N','N','N','N','Document Status',TO_DATE('2008-07-28 22:50:47','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:48 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56257 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:49 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56258,287,0,17,53144,'DocAction',TO_DATE('2008-07-28 22:50:48','YYYY-MM-DD HH24:MI:SS'),0,'The targeted status of the document','EE01',2,'You find the current status in the Document Status field. The options are listed in a popup','Y','N','N','N','N','N','N','N','N','N','Document Action',TO_DATE('2008-07-28 22:50:48','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:49 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56258 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:50 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56259,196,0,19,53144,'C_DocType_ID',TO_DATE('2008-07-28 22:50:49','YYYY-MM-DD HH24:MI:SS'),0,'Document type or rules','EE01',10,'The Document Type determines document sequence and processing rules','Y','N','N','N','N','N','N','N','N','N','Document Type',TO_DATE('2008-07-28 22:50:49','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:50 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56259 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:51 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56260,351,0,20,53144,'IsApproved',TO_DATE('2008-07-28 22:50:50','YYYY-MM-DD HH24:MI:SS'),0,'Indicates if this document requires approval','EE01',1,'The Approved checkbox indicates if this document requires approval before it can be processed.','Y','N','N','N','N','N','N','N','N','N','Approved',TO_DATE('2008-07-28 22:50:50','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:51 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56260 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:53 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56261,1063,0,18,190,53144,'SalesRep_ID',TO_DATE('2008-07-28 22:50:51','YYYY-MM-DD HH24:MI:SS'),0,'Sales Representative or Company Agent','EE01',10,'The Sales Representative indicates the Sales Rep for this Region. Any Sales Rep must be a valid internal user.','Y','N','N','N','N','N','N','N','N','N','Sales Representative',TO_DATE('2008-07-28 22:50:51','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:53 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56261 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:54 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56262,2466,0,20,53144,'IsDropShip',TO_DATE('2008-07-28 22:50:53','YYYY-MM-DD HH24:MI:SS'),0,'Drop Shipments are sent from the Vendor directly to the Customer','EE01',1,'Drop Shipments do not cause any Inventory reservations or movements as the Shipment is from the Vendor''s inventory. The Shipment of the Vendor to the Customer must be confirmed.','Y','N','N','N','N','N','N','N','N','N','Drop Shipment',TO_DATE('2008-07-28 22:50:53','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:54 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56262 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:55 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56263,138,0,19,53144,'AD_User_ID',TO_DATE('2008-07-28 22:50:54','YYYY-MM-DD HH24:MI:SS'),0,'User within the system - Internal or Business Partner Contact','EE01',10,'The User identifies a unique user in the system. This could be an internal user or a business partner contact','Y','N','N','N','N','N','N','N','N','N','User/Contact',TO_DATE('2008-07-28 22:50:54','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:55 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56263 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:56 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56264,952,0,10,53144,'POReference',TO_DATE('2008-07-28 22:50:55','YYYY-MM-DD HH24:MI:SS'),0,'Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner','EE01',20,'The business partner order reference is the order reference for this specific transaction; Often Purchase Order numbers are given to print on Invoices for easier reference. A standard number can be defined in the Business Partner (Customer) window.','Y','N','N','N','N','N','N','N','N','N','Order Reference',TO_DATE('2008-07-28 22:50:55','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:56 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56264 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:57 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56265,1106,0,20,53144,'IsSOTrx',TO_DATE('2008-07-28 22:50:56','YYYY-MM-DD HH24:MI:SS'),0,'This is a Sales Transaction','EE01',1,'The Sales Transaction checkbox indicates if this item is a Sales Transaction.','Y','N','N','N','N','N','N','N','N','N','Sales Transaction',TO_DATE('2008-07-28 22:50:56','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:57 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56265 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:58 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56266,550,0,19,53144,'C_Campaign_ID',TO_DATE('2008-07-28 22:50:57','YYYY-MM-DD HH24:MI:SS'),0,'Marketing Campaign','EE01',10,'The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign.','Y','N','N','N','N','N','N','N','N','N','Campaign',TO_DATE('2008-07-28 22:50:57','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:58 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56266 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:00 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56267,208,0,19,53144,'C_Project_ID',TO_DATE('2008-07-28 22:50:58','YYYY-MM-DD HH24:MI:SS'),0,'Financial Project','EE01',10,'A Project allows you to track and control internal or external activities.','Y','N','N','N','N','N','N','N','N','N','Project',TO_DATE('2008-07-28 22:50:58','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:00 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56267 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:01 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56268,1005,0,19,53144,'C_Activity_ID',TO_DATE('2008-07-28 22:51:00','YYYY-MM-DD HH24:MI:SS'),0,'Business Activity','EE01',10,'Activities indicate tasks that are performed and used to utilize Activity based Costing','Y','N','N','N','N','N','N','N','N','N','Activity',TO_DATE('2008-07-28 22:51:00','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:01 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56268 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:02 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56269,53313,0,19,53144,'DD_OrderLine_ID',TO_DATE('2008-07-28 22:51:01','YYYY-MM-DD HH24:MI:SS'),0,'EE01',10,'Y','N','N','N','N','N','N','N','N','N','Distribution Order Line',TO_DATE('2008-07-28 22:51:01','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:02 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56269 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:03 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56270,268,0,16,53144,'DateOrdered',TO_DATE('2008-07-28 22:51:02','YYYY-MM-DD HH24:MI:SS'),0,'Date of Order','EE01',29,'Indicates the Date an item was ordered.','Y','N','N','N','N','N','N','N','N','N','Date Ordered',TO_DATE('2008-07-28 22:51:02','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:03 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56270 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:04 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56271,269,0,16,53144,'DatePromised',TO_DATE('2008-07-28 22:51:03','YYYY-MM-DD HH24:MI:SS'),0,'Date Order was promised','EE01',29,'The Date Promised indicates the date, if any, that an Order was promised for.','Y','N','N','N','N','N','N','N','N','N','Date Promised',TO_DATE('2008-07-28 22:51:03','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:04 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56271 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:05 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56272,454,0,19,53144,'M_Product_ID',TO_DATE('2008-07-28 22:51:04','YYYY-MM-DD HH24:MI:SS'),0,'Product, Service, Item','EE01',10,'Identifies an item which is either purchased or sold in this organization.','Y','N','N','N','N','N','N','N','N','N','Product',TO_DATE('2008-07-28 22:51:04','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:05 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56272 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:06 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56273,448,0,19,53144,'M_Locator_ID',TO_DATE('2008-07-28 22:51:05','YYYY-MM-DD HH24:MI:SS'),0,'Warehouse Locator','EE01',10,'The Locator indicates where in a Warehouse a product is located.','Y','N','N','N','N','N','N','N','N','N','Locator',TO_DATE('2008-07-28 22:51:05','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:06 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56273 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:07 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56274,1029,0,19,53144,'M_LocatorTo_ID',TO_DATE('2008-07-28 22:51:06','YYYY-MM-DD HH24:MI:SS'),0,'Location inventory is moved to','EE01',10,'The Locator To indicates the location where the inventory is being moved to.','Y','N','N','N','N','N','N','N','N','N','Locator To',TO_DATE('2008-07-28 22:51:06','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:07 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56274 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:08 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56275,2019,0,35,53144,'M_AttributeSetInstance_ID',TO_DATE('2008-07-28 22:51:07','YYYY-MM-DD HH24:MI:SS'),0,'Product Attribute Set Instance','EE01',10,'The values of the actual Product Attribute Instances. The product level attributes are defined on Product level.','Y','N','N','N','N','N','N','N','N','N','Attribute Set Instance',TO_DATE('2008-07-28 22:51:07','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:08 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56275 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:09 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56276,2679,0,14,53144,'ProductAttribute',TO_DATE('2008-07-28 22:51:08','YYYY-MM-DD HH24:MI:SS'),0,'Product Attribute Instance Description','EE01',2147483647,'Y','N','N','N','N','N','N','N','N','N','Product Attribute',TO_DATE('2008-07-28 22:51:08','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:09 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56276 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:10 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56277,2799,0,19,53144,'M_AttributeSetInstanceTo_ID',TO_DATE('2008-07-28 22:51:09','YYYY-MM-DD HH24:MI:SS'),0,'Target Product Attribute Set Instance','EE01',10,'Y','N','N','N','N','N','N','N','N','N','Attribute Set Instance To',TO_DATE('2008-07-28 22:51:09','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:10 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56277 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:11 PM CDT +-- Order Distribution +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53674,0,'productattributeto',TO_DATE('2008-07-28 22:51:10','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','productattributeto','productattributeto',TO_DATE('2008-07-28 22:51:10','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 10:51:11 PM CDT +-- Order Distribution +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53674 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 28, 2008 10:51:12 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56278,53674,0,14,53144,'productattributeto',TO_DATE('2008-07-28 22:51:10','YYYY-MM-DD HH24:MI:SS'),0,'EE01',2147483647,'Y','N','N','N','N','N','N','N','N','N','productattributeto',TO_DATE('2008-07-28 22:51:10','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:12 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56278 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:13 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56279,2017,0,19,53144,'M_AttributeSet_ID',TO_DATE('2008-07-28 22:51:12','YYYY-MM-DD HH24:MI:SS'),0,'Product Attribute Set','EE01',10,'Define Product Attribute Sets to add additional attributes and values to the product. You need to define a Attribute Set if you want to enable Serial and Lot Number tracking.','Y','N','N','N','N','N','N','N','N','N','Attribute Set',TO_DATE('2008-07-28 22:51:12','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:13 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56279 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:14 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56280,2021,0,19,53144,'M_Lot_ID',TO_DATE('2008-07-28 22:51:13','YYYY-MM-DD HH24:MI:SS'),0,'Product Lot Definition','EE01',10,'The individual Lot of a Product','Y','N','N','N','N','N','N','N','N','N','Lot',TO_DATE('2008-07-28 22:51:13','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:14 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56280 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:15 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56281,1936,0,16,53144,'GuaranteeDate',TO_DATE('2008-07-28 22:51:14','YYYY-MM-DD HH24:MI:SS'),0,'Date when guarantee expires','EE01',29,'Date when the normal guarantee or availability expires','Y','N','N','N','N','N','N','N','N','N','Guarantee Date',TO_DATE('2008-07-28 22:51:14','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:15 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56281 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:17 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56282,446,0,10,53144,'Lot',TO_DATE('2008-07-28 22:51:15','YYYY-MM-DD HH24:MI:SS'),0,'Lot number (alphanumeric)','EE01',40,'The Lot Number indicates the specific lot that a product was part of.','Y','N','N','N','N','N','N','N','N','N','Lot No',TO_DATE('2008-07-28 22:51:15','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:17 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56282 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:17 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56283,568,0,10,53144,'SerNo',TO_DATE('2008-07-28 22:51:17','YYYY-MM-DD HH24:MI:SS'),0,'Product Serial Number ','EE01',40,'The Serial Number identifies a tracked, warranted product. It can only be used when the quantity is 1.','Y','N','N','N','N','N','N','N','N','N','Serial No',TO_DATE('2008-07-28 22:51:17','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:17 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56283 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:18 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56284,215,0,19,53144,'C_UOM_ID',TO_DATE('2008-07-28 22:51:17','YYYY-MM-DD HH24:MI:SS'),0,'Unit of Measure','EE01',10,'The UOM defines a unique non monetary Unit of Measure','Y','N','N','N','N','N','N','N','N','N','UOM',TO_DATE('2008-07-28 22:51:17','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:18 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56284 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:20 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56285,2589,0,29,53144,'QtyEntered',TO_DATE('2008-07-28 22:51:18','YYYY-MM-DD HH24:MI:SS'),0,'The Quantity Entered is based on the selected UoM','EE01',131089,'The Quantity Entered is converted to base product UoM quantity','Y','N','N','N','N','N','N','N','N','N','Quantity',TO_DATE('2008-07-28 22:51:18','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:20 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56285 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:20 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56286,531,0,29,53144,'QtyOrdered',TO_DATE('2008-07-28 22:51:20','YYYY-MM-DD HH24:MI:SS'),0,'Ordered Quantity','EE01',131089,'The Ordered Quantity indicates the quantity of a product that was ordered.','Y','N','N','N','N','N','N','N','N','N','Ordered Quantity',TO_DATE('2008-07-28 22:51:20','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:20 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56286 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:21 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56287,532,0,29,53144,'QtyReserved',TO_DATE('2008-07-28 22:51:20','YYYY-MM-DD HH24:MI:SS'),0,'Reserved Quantity','EE01',131089,'The Reserved Quantity indicates the quantity of a product that is currently reserved.','Y','N','N','N','N','N','N','N','N','N','Reserved Quantity',TO_DATE('2008-07-28 22:51:20','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:21 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56287 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:22 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56288,528,0,29,53144,'QtyDelivered',TO_DATE('2008-07-28 22:51:21','YYYY-MM-DD HH24:MI:SS'),0,'Delivered Quantity','EE01',131089,'The Delivered Quantity indicates the quantity of a product that has been delivered.','Y','N','N','N','N','N','N','N','N','N','Delivered Quantity',TO_DATE('2008-07-28 22:51:21','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:22 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56288 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:23 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56289,2386,0,29,53144,'ConfirmedQty',TO_DATE('2008-07-28 22:51:22','YYYY-MM-DD HH24:MI:SS'),0,'Confirmation of a received quantity','EE01',131089,'Confirmation of a received quantity','Y','N','N','N','N','N','N','N','N','N','Confirmed Quantity',TO_DATE('2008-07-28 22:51:22','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:23 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56289 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:24 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56290,53312,0,29,53144,'QtyInTransit',TO_DATE('2008-07-28 22:51:23','YYYY-MM-DD HH24:MI:SS'),0,'EE01',131089,'Y','N','N','N','N','N','N','N','N','N','QtyInTransit',TO_DATE('2008-07-28 22:51:23','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:24 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56290 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:25 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56291,2436,0,29,53144,'TargetQty',TO_DATE('2008-07-28 22:51:24','YYYY-MM-DD HH24:MI:SS'),0,'Target Movement Quantity','EE01',131089,'The Quantity which should have been received','Y','N','N','N','N','N','N','N','N','N','Target Quantity',TO_DATE('2008-07-28 22:51:24','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:25 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56291 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:27 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56292,1250,0,29,53144,'QtyToDeliver',TO_DATE('2008-07-28 22:51:25','YYYY-MM-DD HH24:MI:SS'),0,'EE01',131089,'Y','N','N','N','N','N','N','N','N','N','Qty to deliver',TO_DATE('2008-07-28 22:51:25','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:27 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56292 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:49 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Val_Rule_ID=129,Updated=TO_DATE('2008-07-28 22:51:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56249 +; + +-- Jul 28, 2008 10:52:05 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Val_Rule_ID=130,Updated=TO_DATE('2008-07-28 22:52:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56250 +; + +-- Jul 28, 2008 10:53:50 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_Value_ID=135,Updated=TO_DATE('2008-07-28 22:53:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56258 +; + +-- Jul 28, 2008 10:54:01 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56293,53311,0,19,53144,'DD_Order_ID',TO_DATE('2008-07-28 22:53:59','YYYY-MM-DD HH24:MI:SS'),0,'EE01',10,'Y','N','N','N','N','N','N','N','N','N','Distribution Order',TO_DATE('2008-07-28 22:53:59','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:54:01 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56293 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:54:35 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_Value_ID=131,Updated=TO_DATE('2008-07-28 22:54:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56257 +; + +-- Jul 28, 2008 10:56:13 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=35,Updated=TO_DATE('2008-07-28 22:56:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56277 +; + +-- Jul 28, 2008 10:56:32 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=31,Updated=TO_DATE('2008-07-28 22:56:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56274 +; + +-- Jul 28, 2008 10:56:38 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=31,Updated=TO_DATE('2008-07-28 22:56:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56273 +; + +-- Jul 28, 2008 10:59:02 PM CDT +-- Order Distribution +UPDATE AD_Element SET ColumnName='ProductAttributeTo', Name='Product Attribute To', PrintName='Product Attribute To',Updated=TO_DATE('2008-07-28 22:59:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53674 +; + +-- Jul 28, 2008 10:59:02 PM CDT +-- Order Distribution +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53674 +; + +-- Jul 28, 2008 10:59:02 PM CDT +-- Order Distribution +UPDATE AD_Column SET ColumnName='ProductAttributeTo', Name='Product Attribute To', Description=NULL, Help=NULL WHERE AD_Element_ID=53674 +; + +-- Jul 28, 2008 10:59:02 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET ColumnName='ProductAttributeTo', Name='Product Attribute To', Description=NULL, Help=NULL, AD_Element_ID=53674 WHERE UPPER(ColumnName)='PRODUCTATTRIBUTETO' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Jul 28, 2008 10:59:02 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET ColumnName='ProductAttributeTo', Name='Product Attribute To', Description=NULL, Help=NULL WHERE AD_Element_ID=53674 AND IsCentrallyMaintained='Y' +; + +-- Jul 28, 2008 10:59:02 PM CDT +-- Order Distribution +UPDATE AD_Field SET Name='Product Attribute To', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53674) AND IsCentrallyMaintained='Y' +; + +-- Jul 28, 2008 10:59:03 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem pi SET PrintName='Product Attribute To', Name='Product Attribute To' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53674) +; + +-- Jul 28, 2008 10:59:25 PM CDT +-- Order Distribution +UPDATE AD_Element SET Description='Product Attribute Instance Description',Updated=TO_DATE('2008-07-28 22:59:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53674 +; + +-- Jul 28, 2008 10:59:25 PM CDT +-- Order Distribution +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53674 +; + +-- Jul 28, 2008 10:59:25 PM CDT +-- Order Distribution +UPDATE AD_Column SET ColumnName='ProductAttributeTo', Name='Product Attribute To', Description='Product Attribute Instance Description', Help=NULL WHERE AD_Element_ID=53674 +; + +-- Jul 28, 2008 10:59:25 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET ColumnName='ProductAttributeTo', Name='Product Attribute To', Description='Product Attribute Instance Description', Help=NULL, AD_Element_ID=53674 WHERE UPPER(ColumnName)='PRODUCTATTRIBUTETO' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Jul 28, 2008 10:59:25 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET ColumnName='ProductAttributeTo', Name='Product Attribute To', Description='Product Attribute Instance Description', Help=NULL WHERE AD_Element_ID=53674 AND IsCentrallyMaintained='Y' +; + +-- Jul 28, 2008 10:59:25 PM CDT +-- Order Distribution +UPDATE AD_Field SET Name='Product Attribute To', Description='Product Attribute Instance Description', Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53674) AND IsCentrallyMaintained='Y' +; + +-- Jul 28, 2008 11:00:07 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:00:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56278 +; + +-- Jul 28, 2008 11:00:20 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:00:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56291 +; + +-- Jul 28, 2008 11:00:27 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:00:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56292 +; + +-- Jul 28, 2008 11:00:34 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:00:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56287 +; + +-- Jul 28, 2008 11:00:40 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:00:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56286 +; + +-- Jul 28, 2008 11:00:43 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:00:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56290 +; + +-- Jul 28, 2008 11:00:49 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:00:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56285 +; + +-- Jul 28, 2008 11:00:54 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:00:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56288 +; + +-- Jul 28, 2008 11:01:00 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:01:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56276 +; + +-- Jul 28, 2008 11:01:06 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:01:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56264 +; + +-- Jul 28, 2008 11:01:23 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:01:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56289 +; + +-- Jul 28, 2008 11:02:49 PM CDT +-- Order Distribution +INSERT INTO AD_ReportView (AD_Client_ID,AD_Org_ID,AD_ReportView_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy) VALUES (0,0,53023,53144,TO_DATE('2008-07-28 23:02:48','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','RV_DD_OrderDetail',TO_DATE('2008-07-28 23:02:48','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:04:34 PM CDT +-- Order Distribution +INSERT INTO AD_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_ReportView_ID,AccessLevel,Created,CreatedBy,Description,EntityType,Help,IsActive,IsBetaFunctionality,IsDirectPrint,IsReport,IsServerProcess,Name,ShowHelp,Statistic_Count,Statistic_Seconds,Updated,UpdatedBy,Value) VALUES (0,0,53151,53023,'3',TO_DATE('2008-07-28 23:04:33','YYYY-MM-DD HH24:MI:SS'),0,'Distribution Order Detail Report','EE01','The report includes order detail information Distribution Orders.','Y','N','N','Y','N','Distribution Order Detail','Y',0,0,TO_DATE('2008-07-28 23:04:33','YYYY-MM-DD HH24:MI:SS'),0,'RV_DD_OrderDetail') +; + +-- Jul 28, 2008 11:04:34 PM CDT +-- Order Distribution +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=53151 AND EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_ID!=t.AD_Process_ID) +; + +-- Jul 28, 2008 11:04:34 PM CDT +-- Order Distribution +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,53151,0,TO_DATE('2008-07-28 23:04:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2008-07-28 23:04:34','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:04:34 PM CDT +-- Order Distribution +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,53151,103,TO_DATE('2008-07-28 23:04:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2008-07-28 23:04:34','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:04:34 PM CDT +-- Order Distribution +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,53151,50001,TO_DATE('2008-07-28 23:04:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2008-07-28 23:04:34','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:04:35 PM CDT +-- Order Distribution +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,53151,102,TO_DATE('2008-07-28 23:04:35','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2008-07-28 23:04:35','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:04:35 PM CDT +-- Order Distribution +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,53151,50002,TO_DATE('2008-07-28 23:04:35','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2008-07-28 23:04:35','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:06:31 PM CDT +-- Order Distribution +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,196,0,53151,53224,19,52004,'C_DocType_ID',TO_DATE('2008-07-28 23:06:30','YYYY-MM-DD HH24:MI:SS'),0,'Document type or rules','EE01',0,'The Document Type determines document sequence and processing rules','Y','Y','N','N','Document Type',10,TO_DATE('2008-07-28 23:06:30','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:06:31 PM CDT +-- Order Distribution +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=53224 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) +; + +-- Jul 28, 2008 11:07:32 PM CDT +-- Order Distribution +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,187,0,53151,53225,30,'C_BPartner_ID',TO_DATE('2008-07-28 23:07:21','YYYY-MM-DD HH24:MI:SS'),0,'Identifies a Business Partner','EE01',0,'A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','Y','Y','N','N','Business Partner ',20,TO_DATE('2008-07-28 23:07:21','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:07:32 PM CDT +-- Order Distribution +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=53225 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) +; + +-- Jul 28, 2008 11:08:31 PM CDT +-- Order Distribution +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,454,0,53151,53226,30,'M_Product_ID',TO_DATE('2008-07-28 23:08:19','YYYY-MM-DD HH24:MI:SS'),0,'Product, Service, Item','EE01',0,'Identifies an item which is either purchased or sold in this organization.','Y','Y','N','N','Product',30,TO_DATE('2008-07-28 23:08:19','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:08:31 PM CDT +-- Order Distribution +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=53226 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) +; + +-- Jul 28, 2008 11:09:31 PM CDT +-- Order Distribution +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,268,0,53151,53227,15,'DateOrdered',TO_DATE('2008-07-28 23:09:30','YYYY-MM-DD HH24:MI:SS'),0,'Date of Order','EE01',0,'Indicates the Date an item was ordered.','Y','Y','N','N','Date Ordered',40,TO_DATE('2008-07-28 23:09:30','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:09:31 PM CDT +-- Order Distribution +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=53227 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) +; + +-- Jul 28, 2008 11:10:29 PM CDT +-- Order Distribution +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,269,0,53151,53228,15,'DatePromised',TO_DATE('2008-07-28 23:10:25','YYYY-MM-DD HH24:MI:SS'),0,'Date Order was promised','EE01',0,'The Date Promised indicates the date, if any, that an Order was promised for.','Y','Y','N','Y','Date Promised',40,TO_DATE('2008-07-28 23:10:25','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:10:29 PM CDT +-- Order Distribution +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=53228 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) +; + +-- Jul 28, 2008 11:10:34 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET IsRange='Y',Updated=TO_DATE('2008-07-28 23:10:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53227 +; + +-- Jul 28, 2008 11:11:59 PM CDT +-- Order Distribution +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_Reference_Value_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,289,0,53151,53229,17,131,'DocStatus',TO_DATE('2008-07-28 23:11:54','YYYY-MM-DD HH24:MI:SS'),0,'The current status of the document','EE01',0,'The Document Status indicates the status of a document at this time. If you want to change the document status, use the Document Action field','Y','Y','N','N','Document Status',50,TO_DATE('2008-07-28 23:11:54','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:11:59 PM CDT +-- Order Distribution +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=53229 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) +; + +-- Jul 28, 2008 11:13:57 PM CDT +-- Order Distribution +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,448,0,53151,53230,19,'M_Locator_ID',TO_DATE('2008-07-28 23:13:56','YYYY-MM-DD HH24:MI:SS'),0,'Warehouse Locator','EE01',10,'The Locator indicates where in a Warehouse a product is located.','Y','Y','N','N','Locator',60,TO_DATE('2008-07-28 23:13:56','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:13:57 PM CDT +-- Order Distribution +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=53230 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) +; + +-- Jul 28, 2008 11:15:02 PM CDT +-- Order Distribution +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_Reference_Value_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1029,0,53151,53231,18,191,'M_LocatorTo_ID',TO_DATE('2008-07-28 23:15:00','YYYY-MM-DD HH24:MI:SS'),0,'Location inventory is moved to','EE01',10,'The Locator To indicates the location where the inventory is being moved to.','Y','Y','N','N','Locator To',60,TO_DATE('2008-07-28 23:15:00','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:15:02 PM CDT +-- Order Distribution +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=53231 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) +; + +-- Jul 28, 2008 11:15:18 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:15:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53224 +; + +-- Jul 28, 2008 11:15:23 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:15:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53225 +; + +-- Jul 28, 2008 11:15:28 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:15:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53226 +; + +-- Jul 28, 2008 11:15:37 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:15:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53227 +; + +-- Jul 28, 2008 11:15:51 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET SeqNo=50,Updated=TO_DATE('2008-07-28 23:15:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53228 +; + +-- Jul 28, 2008 11:16:01 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:16:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53228 +; + +-- Jul 28, 2008 11:16:14 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET FieldLength=10,Updated=TO_DATE('2008-07-28 23:16:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53229 +; + +-- Jul 28, 2008 11:16:32 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET SeqNo=70,Updated=TO_DATE('2008-07-28 23:16:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53231 +; + +-- Jul 28, 2008 11:16:50 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET SeqNo=80,Updated=TO_DATE('2008-07-28 23:16:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53229 +; + +-- Jul 28, 2008 11:18:10 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=54027 +; + +-- Jul 28, 2008 11:18:10 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54031 +; + +-- Jul 28, 2008 11:19:21 PM CDT +-- Order Distribution +INSERT INTO AD_Menu (AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,Action,Created,CreatedBy,Description,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (0,53185,0,53151,'R',TO_DATE('2008-07-28 23:19:20','YYYY-MM-DD HH24:MI:SS'),0,'Distribution Order Detail Report','EE01','Y','N','N','N','Distribution Order Detail',TO_DATE('2008-07-28 23:19:20','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:19:21 PM CDT +-- Order Distribution +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=53185 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID) +; + +-- Jul 28, 2008 11:19:21 PM CDT +-- Order Distribution +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, 53185, 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=53185) +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53105 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=1000007 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=14, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=1000009 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53067 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=381 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53088 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=128 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53068 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53185 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=445 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=472 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=1000041 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53069 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53070 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=181 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=484 +; + +--DROP VIEW RV_DD_ORDERDETAIL; +CREATE OR REPLACE VIEW RV_DD_ORDERDETAIL AS +SELECT l.AD_Client_ID, l.AD_Org_ID, + l.IsActive, l.Created, l.CreatedBy, l.Updated, l.UpdatedBy, + o.C_Order_ID, o.DocStatus, o.DocAction, o.C_DocType_ID, o.IsApproved, --o.IsCreditApproved, + o.SalesRep_ID, + o.IsDropShip, + o.AD_User_ID, + o.POReference, + o.IsSOTrx, + l.C_Campaign_ID, l.C_Project_ID, l.C_Activity_ID, + --l.C_ProjectPhase_ID, l.C_ProjectTask_ID, + l.DD_OrderLine_ID, l.DateOrdered, l.DatePromised, l.M_Product_ID, l.M_Locator_ID,l.M_LocatorTo_ID, + l.M_AttributeSetInstance_ID, productAttribute(l.M_AttributeSetInstance_ID) AS ProductAttribute, + l.M_AttributeSetInstanceTo_ID, productAttribute(l.M_AttributeSetInstanceTo_ID) AS ProductAttributeTo, + pasi.M_AttributeSet_ID, pasi.M_Lot_ID, pasi.GuaranteeDate, pasi.Lot, pasi.SerNo, + l.C_UOM_ID, l.QtyEntered, l.QtyOrdered, l.QtyReserved, l.QtyDelivered, l.Confirmedqty, l.Qtyintransit, l.TargetQty, + l.QtyOrdered-l.QtyDelivered AS QtyToDeliver +FROM DD_Order o + INNER JOIN DD_OrderLine l ON (o.DD_Order_ID=l.DD_Order_ID) + LEFT OUTER JOIN M_AttributeSetInstance pasi ON (l.M_AttributeSetInstance_ID=pasi.M_AttributeSetInstance_ID) + LEFT OUTER JOIN M_AttributeSetInstance pasito ON (l.M_AttributeSetInstanceTo_ID=pasito.M_AttributeSetInstance_ID); + diff --git a/migration/351a-352a/245_BF_2022372.sql b/migration/351a-352a/245_BF_2022372.sql new file mode 100644 index 0000000000..fb81752f81 --- /dev/null +++ b/migration/351a-352a/245_BF_2022372.sql @@ -0,0 +1,26 @@ +-- Jul 29, 2008 2:35:59 AM CDT +-- Fix Payroll bug +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=55163 +; + +-- Jul 29, 2008 2:36:07 AM CDT +-- Fix Payroll bug +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=55163 +; + +-- Jul 29, 2008 2:36:07 AM CDT +-- Fix Payroll bug +DELETE FROM AD_Field WHERE AD_Field_ID=55163 +; + +-- Jul 29, 2008 2:36:16 AM CDT +-- Fix Payroll bug +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=55045 +; + +-- Jul 29, 2008 2:36:16 AM CDT +-- Fix Payroll bug +DELETE FROM AD_Column WHERE AD_Column_ID=55045 +; + +ALTER TABLE HR_Movement DROP COLUMN Posted; diff --git a/migration/351a-352a/246_AD_User_IsInPayroll.sql b/migration/351a-352a/246_AD_User_IsInPayroll.sql new file mode 100644 index 0000000000..fc16e03cf8 --- /dev/null +++ b/migration/351a-352a/246_AD_User_IsInPayroll.sql @@ -0,0 +1,87 @@ + +-- Jul 29, 2008 11:53:38 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53676,0,'IsInPayroll',TO_DATE('2008-07-29 11:53:37','YYYY-MM-DD HH24:MI:SS'),0,'Defined if any User Contact will be used for Calculate Payroll','EE02','Y','Is In Payroll','Is In Payroll',TO_DATE('2008-07-29 11:53:37','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 29, 2008 11:53:38 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53676 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 29, 2008 11:54:29 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,14619,56325,0,53108,TO_DATE('2008-07-29 11:54:27','YYYY-MM-DD HH24:MI:SS'),0,'How a Java Client connects to the server(s)',1,'D','Depending on the connection profile, different protocols are used and tasks are performed on the server rather then the client. Usually the user can select different profiles, unless it is enforced by the User or Role definition. The User level profile overwrites the Role based profile.','Y','Y','Y','N','N','N','N','N','Connection Profile',TO_DATE('2008-07-29 11:54:27','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 29, 2008 11:54:29 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56325 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 29, 2008 11:54:30 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,15975,56326,0,53108,TO_DATE('2008-07-29 11:54:29','YYYY-MM-DD HH24:MI:SS'),0,'Search key for the record in the format required - must be unique',40,'D','A search key allows you a fast method of finding a particular record. +If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','Y','Y','Y','N','N','N','N','N','Search Key',TO_DATE('2008-07-29 11:54:29','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 29, 2008 11:54:30 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56326 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 29, 2008 11:54:31 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,52066,56327,0,53108,TO_DATE('2008-07-29 11:54:30','YYYY-MM-DD HH24:MI:SS'),0,20,'D','Y','Y','Y','N','N','N','N','N','UserPIN',TO_DATE('2008-07-29 11:54:30','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 29, 2008 11:54:31 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56327 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 29, 2008 11:55:25 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56294,53676,0,20,114,'IsInPayroll',TO_DATE('2008-07-29 11:55:24','YYYY-MM-DD HH24:MI:SS'),0,'Defined if any User Contact will be used for Calculate Payroll','EE02',1,'Y','Y','N','N','N','N','N','N','N','N','N','Y','Is In Payroll',0,TO_DATE('2008-07-29 11:55:24','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 29, 2008 11:55:26 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56294 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 29, 2008 11:55:30 AM CDT +-- Fix Payroll bug +ALTER TABLE AD_User ADD IsInPayroll CHAR(1) CHECK (IsInPayroll IN ('Y','N')) +; + +-- Jul 29, 2008 11:55:40 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56294,56328,0,53108,TO_DATE('2008-07-29 11:55:40','YYYY-MM-DD HH24:MI:SS'),0,'Defined if any User Contact will be used for Calculate Payroll',1,'EE02','Y','Y','Y','N','N','N','N','N','Is In Payroll',TO_DATE('2008-07-29 11:55:40','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 29, 2008 11:55:40 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56328 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 29, 2008 11:56:01 AM CDT +-- Fix Payroll bug +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=56325 +; + +-- Jul 29, 2008 11:56:01 AM CDT +-- Fix Payroll bug +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=56326 +; + +-- Jul 29, 2008 11:56:01 AM CDT +-- Fix Payroll bug +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=56327 +; + +-- Jul 29, 2008 11:56:01 AM CDT +-- Fix Payroll bug +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=56328 +; + diff --git a/migration/351a-352a/247_BF1979978.sql b/migration/351a-352a/247_BF1979978.sql new file mode 100644 index 0000000000..bda182494f --- /dev/null +++ b/migration/351a-352a/247_BF1979978.sql @@ -0,0 +1,11 @@ +-- Jul 29, 2008 3:14:21 PM COT +-- [ 1979978 ] A_VALID_ASSET_COMBINATIONS in dict not in db +UPDATE AD_Column SET IsActive='N',Updated=TO_DATE('2008-07-29 15:14:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55992 +; + +UPDATE AD_Column SET IsActive='N',Updated=TO_DATE('2008-07-29 15:14:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55991 +; + +UPDATE AD_Table SET IsActive='N',Updated=TO_DATE('2008-07-29 15:14:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53140 +; + diff --git a/migration/351a-352a/248_FixReferenceType.sql b/migration/351a-352a/248_FixReferenceType.sql new file mode 100644 index 0000000000..4239d6bb96 --- /dev/null +++ b/migration/351a-352a/248_FixReferenceType.sql @@ -0,0 +1,11 @@ +-- Jul 29, 2008 4:04:35 PM CDT +-- Default comment for updating dictionary +UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=130,Updated=TO_DATE('2008-07-29 16:04:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56179 +; + +-- Jul 29, 2008 4:05:00 PM CDT +-- Default comment for updating dictionary +UPDATE AD_Column SET AD_Val_Rule_ID=104,Updated=TO_DATE('2008-07-29 16:05:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=55055 +; + + diff --git a/migration/351a-352a/249_version352a.sql b/migration/351a-352a/249_version352a.sql new file mode 100755 index 0000000000..b0edcded47 --- /dev/null +++ b/migration/351a-352a/249_version352a.sql @@ -0,0 +1,6 @@ +UPDATE AD_SYSTEM + SET releaseno = '352a', + VERSION = '2008-07-29' + WHERE ad_system_id = 0 AND ad_client_id = 0; + +COMMIT ; diff --git a/migration/351a-352a/build.xml b/migration/351a-352a/build.xml new file mode 100644 index 0000000000..2fb24a534e --- /dev/null +++ b/migration/351a-352a/build.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + File ${file.name} status ${sqlplus.result} + + + + + + diff --git a/migration/351a-352a/postgresql/185_1974950_CreateOutInvoice.sql b/migration/351a-352a/postgresql/185_1974950_CreateOutInvoice.sql new file mode 100644 index 0000000000..fa430f842e --- /dev/null +++ b/migration/351a-352a/postgresql/185_1974950_CreateOutInvoice.sql @@ -0,0 +1,122 @@ +-- May 29, 2008 11:15:59 PM CDT +-- New Form Shipments & Invoices +INSERT INTO AD_Form (AD_Client_ID,AD_Form_ID,AD_Org_ID,AccessLevel,Classname,Created,CreatedBy,Description,EntityType,Help,IsActive,IsBetaFunctionality,Name,Updated,UpdatedBy) VALUES (0,53010,0,'1','org.eevolution.form.VInOutInvoiceGen',TO_TIMESTAMP('2008-05-29 23:15:59','YYYY-MM-DD HH24:MI:SS'),0,'Select and generate shipments & Invoices','D','Generate Shipments & Invoices from Orders. +Select the orders to generate the shipments & Invoices for.','Y','N','Generate Shipments & Invoices (manual)',TO_TIMESTAMP('2008-05-29 23:15:59','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- May 29, 2008 11:15:59 PM CDT +-- New Form Shipments & Invoices +INSERT INTO AD_Form_Trl (AD_Language,AD_Form_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Form_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_Form t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Form_ID=53010 AND EXISTS (SELECT * FROM AD_Form_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Form_ID!=t.AD_Form_ID) +; + +-- May 29, 2008 11:16:00 PM CDT +-- New Form Shipments & Invoices +INSERT INTO AD_Form_Access (AD_Client_ID,AD_Form_ID,AD_Org_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,53010,0,0,TO_TIMESTAMP('2008-05-29 23:16:00','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2008-05-29 23:16:00','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- May 29, 2008 11:18:19 PM CDT +-- New Form Shipments & Invoices +INSERT INTO AD_Menu (AD_Client_ID,AD_Form_ID,AD_Menu_ID,AD_Org_ID,"action",Created,CreatedBy,Description,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (0,53010,53132,0,'X',TO_TIMESTAMP('2008-05-29 23:18:19','YYYY-MM-DD HH24:MI:SS'),0,'Select and generate shipments & Invoices','D','Y','N','N','N','Generate Shipments & Invoices (manual)',TO_TIMESTAMP('2008-05-29 23:18:19','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- May 29, 2008 11:18:19 PM CDT +-- New Form Shipments & Invoices +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=53132 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID) +; + + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=218 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=153 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=263 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=166 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=203 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=236 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=183 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=160 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=278 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=345 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53014 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53108 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53083 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=459, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=346 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=459, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53132 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=459, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=193 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=459, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=180 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=459, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=494 +; + +-- May 30, 2008 12:01:18 AM CDT +-- New Form Shipments & Invoices +UPDATE AD_TreeNodeMM SET Parent_ID=459, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=444 +; + diff --git a/migration/351a-352a/postgresql/188_FB1980626_BOMImplosion.sql b/migration/351a-352a/postgresql/188_FB1980626_BOMImplosion.sql new file mode 100644 index 0000000000..d01759e776 --- /dev/null +++ b/migration/351a-352a/postgresql/188_FB1980626_BOMImplosion.sql @@ -0,0 +1,45 @@ +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_Element SET ColumnName='Implosion', Name='Implosion',Updated=TO_TIMESTAMP('2008-05-31 16:10:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53466 +; + +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53466 +; + +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_Column SET ColumnName='Implosion', Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.' WHERE AD_Element_ID=53466 +; + +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_Field SET Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53466) AND IsCentrallyMaintained='Y' +; + +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_Process_Para SET ColumnName='Implosion', Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.', AD_Element_ID=53466 WHERE UPPER(ColumnName)='IMPLOSION' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_Process_Para SET ColumnName='Implosion', Name='Implosion', Description='Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.', Help='Commonly called a Where-Used report.' WHERE AD_Element_ID=53466 AND IsCentrallyMaintained='Y' +; + +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_PrintFormatItem SET PrintName='Implosion', Name='Implosion' 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=53466) +; + +-- May 31, 2008 4:10:49 PM CDT +-- Fix Libero +UPDATE AD_PrintFormatItem SET PrintName='Implosion', Name='Implosion' 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=53466) +; + +-- May 31, 2008 4:14:43 PM CDT +-- Fix Libero +ALTER TABLE T_BOMLine ADD COLUMN Implosion CHAR(1) DEFAULT 'N' CHECK (Implosion IN ('Y','N')) +; + diff --git a/migration/351a-352a/postgresql/189_BF1981079_print_bom.sql b/migration/351a-352a/postgresql/189_BF1981079_print_bom.sql new file mode 100644 index 0000000000..ca270ef475 --- /dev/null +++ b/migration/351a-352a/postgresql/189_BF1981079_print_bom.sql @@ -0,0 +1,11 @@ +-- June 1, 2008 1:20:00 PM EST +-- BF1981079 - MultiLevel BOM & Formula Detail +DROP VIEW rv_pp_product_bomline; + +CREATE VIEW rv_pp_product_bomline (seqno, levelno, levels, ad_client_id, ad_org_id, createdby, updatedby, updated, created, ad_pinstance_id, implosion, m_product_id, isactive, pp_product_bom_id, pp_product_bomline_id, description, iscritical, componenttype, tm_product_id, c_uom_id, issuemethod, line, m_attributesetinstance_id, scrap, validfrom, validto, qtybom, qtybatch, isqtypercentage) AS + SELECT t.seqno, t.levelno, t.levels, t.ad_client_id, t.ad_org_id, t.createdby, t.updatedby, t.updated, t.created, t.ad_pinstance_id, t.implosion, t.sel_product_id, bl.isactive, bl.pp_product_bom_id, bl.pp_product_bomline_id, bl.description, bl.iscritical, bl.componenttype, t.m_product_id, bl.c_uom_id, bl.issuemethod, bl.line, bl.m_attributesetinstance_id, bl.scrap, bl.validfrom, bl.validto, bl.qtybom, bl.qtybatch, bl.isqtypercentage + FROM t_bomline t + LEFT JOIN pp_product_bomline bl ON t.pp_product_bomline_id = bl.pp_product_bomline_id + ORDER BY t.seqno; + +ALTER TABLE T_BOMLine DROP COLUMN Implotion; diff --git a/migration/351a-352a/postgresql/190_Fix_ManufacturingWorkflow_window.sql b/migration/351a-352a/postgresql/190_Fix_ManufacturingWorkflow_window.sql new file mode 100644 index 0000000000..7f8be411cc --- /dev/null +++ b/migration/351a-352a/postgresql/190_Fix_ManufacturingWorkflow_window.sql @@ -0,0 +1,188 @@ +-- 02.06.2008 11:01:31 EEST +-- Fix Manufacturing Workflows window +DELETE FROM AD_Tab_Trl WHERE AD_Tab_ID=53018 +; + +-- 02.06.2008 11:01:31 EEST +-- Fix Manufacturing Workflows window +DELETE FROM AD_Tab WHERE AD_Tab_ID=53018 +; + +-- 02.06.2008 11:01:50 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Tab SET IsInsertRecord='N', TabLevel=1,Updated=TO_TIMESTAMP('2008-06-02 11:01:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53019 +; + +-- 02.06.2008 11:03:14 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,701,56255,0,53019,TO_TIMESTAMP('2008-06-02 11:03:12','YYYY-MM-DD HH24:MI:SS'),0,'The record is active in the system',1,'D','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.','Y','Y','Y','N','N','N','N','N','Active',TO_TIMESTAMP('2008-06-02 11:03:12','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:14 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56255 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:14 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,1213,56256,0,53019,TO_TIMESTAMP('2008-06-02 11:03:14','YYYY-MM-DD HH24:MI:SS'),0,'Client/Tenant for this installation.',22,'D','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','Y','Y','N','N','N','N','N','Client',TO_TIMESTAMP('2008-06-02 11:03:14','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:14 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56256 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:15 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,316,56257,0,53019,TO_TIMESTAMP('2008-06-02 11:03:14','YYYY-MM-DD HH24:MI:SS'),0,'Comment or Hint',2000,'D','The Help field contains a hint, comment or help about the use of this item.','Y','Y','Y','N','N','N','N','N','Comment/Help',TO_TIMESTAMP('2008-06-02 11:03:14','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:15 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56257 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:16 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,315,56258,0,53019,TO_TIMESTAMP('2008-06-02 11:03:15','YYYY-MM-DD HH24:MI:SS'),0,'Optional short description of the record',255,'D','A description is limited to 255 characters.','Y','Y','Y','N','N','N','N','N','Description',TO_TIMESTAMP('2008-06-02 11:03:15','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:16 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56258 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:16 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,313,56259,0,53019,TO_TIMESTAMP('2008-06-02 11:03:16','YYYY-MM-DD HH24:MI:SS'),0,'Language for this entity',6,'D','The Language identifies the language to use for display and formatting','Y','Y','Y','N','N','N','N','N','Language',TO_TIMESTAMP('2008-06-02 11:03:16','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:16 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56259 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:17 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,314,56260,0,53019,TO_TIMESTAMP('2008-06-02 11:03:16','YYYY-MM-DD HH24:MI:SS'),0,'Alphanumeric identifier of the entity',60,'D','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.','Y','Y','Y','N','N','N','N','N','Name',TO_TIMESTAMP('2008-06-02 11:03:16','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:17 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56260 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:18 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,1214,56261,0,53019,TO_TIMESTAMP('2008-06-02 11:03:17','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client',22,'D','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','Y','Y','N','N','N','N','N','Organization',TO_TIMESTAMP('2008-06-02 11:03:17','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:18 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56261 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:19 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,317,56262,0,53019,TO_TIMESTAMP('2008-06-02 11:03:18','YYYY-MM-DD HH24:MI:SS'),0,'This column is translated',1,'D','The Translated checkbox indicates if this column is translated.','Y','Y','Y','N','N','N','N','N','Translated',TO_TIMESTAMP('2008-06-02 11:03:18','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:19 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56262 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:03:19 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,312,56263,0,53019,TO_TIMESTAMP('2008-06-02 11:03:19','YYYY-MM-DD HH24:MI:SS'),0,'Workflow or combination of tasks',22,'D','The Workflow field identifies a unique Workflow in the system.','Y','Y','Y','N','N','N','N','N','Workflow',TO_TIMESTAMP('2008-06-02 11:03:19','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 02.06.2008 11:03:19 EEST +-- Fix Manufacturing Workflows window +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56263 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=56256 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=56261 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=56263 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=56259 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=56255 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=56262 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=56260 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=56258 +; + +-- 02.06.2008 11:05:20 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=56257 +; + +-- 02.06.2008 11:07:03 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET DisplayLength=14, IsReadOnly='Y',Updated=TO_TIMESTAMP('2008-06-02 11:07:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56256 +; + +-- 02.06.2008 11:07:12 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET DisplayLength=14, IsSameLine='Y',Updated=TO_TIMESTAMP('2008-06-02 11:07:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56261 +; + +-- 02.06.2008 11:07:25 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET DisplayLength=14, IsReadOnly='Y',Updated=TO_TIMESTAMP('2008-06-02 11:07:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56263 +; + +-- 02.06.2008 11:08:21 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET DisplayLength=14, IsDisplayed='Y', IsReadOnly='Y', IsSameLine='N', SeqNo=40,Updated=TO_TIMESTAMP('2008-06-02 11:08:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56259 +; + +-- 02.06.2008 11:08:21 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET DisplayLength=60, IsDisplayed='Y', IsReadOnly='N', IsSameLine='N', SeqNo=80,Updated=TO_TIMESTAMP('2008-06-02 11:08:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56258 +; + +-- 02.06.2008 11:08:21 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Field SET DisplayLength=60, IsDisplayed='Y', IsReadOnly='N', IsSameLine='N', SeqNo=90,Updated=TO_TIMESTAMP('2008-06-02 11:08:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56257 +; + +-- 02.06.2008 11:11:28 EEST +-- Fix Manufacturing Workflows window +UPDATE AD_Tab SET TabLevel=2,Updated=TO_TIMESTAMP('2008-06-02 11:11:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53026 +; + diff --git a/migration/351a-352a/postgresql/191_BF1981833.sql b/migration/351a-352a/postgresql/191_BF1981833.sql new file mode 100644 index 0000000000..9c6632a63f --- /dev/null +++ b/migration/351a-352a/postgresql/191_BF1981833.sql @@ -0,0 +1,5 @@ +-- 02.06.2008 11:29:41 EEST +-- +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2008-06-02 11:29:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53295 +; + diff --git a/migration/351a-352a/postgresql/192_BF1977318.sql b/migration/351a-352a/postgresql/192_BF1977318.sql new file mode 100644 index 0000000000..0a4226006f --- /dev/null +++ b/migration/351a-352a/postgresql/192_BF1977318.sql @@ -0,0 +1,16 @@ +-- Jun 2, 2008 9:43:00 PM EST +-- Default comment for updating dictionary +UPDATE AD_Column SET FieldLength=22, IsUpdateable='N',Updated=TO_TIMESTAMP('2008-06-02 21:43:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=14866 +; + +-- Jun 2, 2008 9:43:14 PM EST +-- Default comment for updating dictionary +ALTER TABLE R_IssueRecommendation DROP COLUMN R_IssueRecommendation_ID +; +ALTER TABLE R_IssueRecommendation ADD COLUMN R_IssueRecommendation_ID NUMERIC(10) NOT NULL +; + +ALTER TABLE R_IssueRecommendation ADD CONSTRAINT r_issuerecommendation_pkey PRIMARY KEY (r_issuerecommendation_id) +; +ALTER TABLE R_IssueKnown ADD CONSTRAINT RIssueRecommendation_RIssueKno FOREIGN KEY (R_IssueRecommendation_ID) REFERENCES R_IssueRecommendation +; diff --git a/migration/351a-352a/postgresql/193_FR1926882.sql b/migration/351a-352a/postgresql/193_FR1926882.sql new file mode 100644 index 0000000000..7b4e92829f --- /dev/null +++ b/migration/351a-352a/postgresql/193_FR1926882.sql @@ -0,0 +1,114 @@ +DROP VIEW c_invoiceline_v; +DROP VIEW rv_bpartneropen; +DROP VIEW c_invoice_v; + +CREATE OR REPLACE VIEW C_INVOICE_V +(C_INVOICE_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, + CREATEDBY, UPDATED, UPDATEDBY, ISSOTRX, DOCUMENTNO, + DOCSTATUS, DOCACTION, PROCESSING, PROCESSED, C_DOCTYPE_ID, + C_DOCTYPETARGET_ID, C_ORDER_ID, DESCRIPTION, ISAPPROVED, ISTRANSFERRED, + SALESREP_ID, DATEINVOICED, DATEPRINTED, DATEACCT, C_BPARTNER_ID, + C_BPARTNER_LOCATION_ID, AD_USER_ID, POREFERENCE, DATEORDERED, C_CURRENCY_ID, + C_CONVERSIONTYPE_ID, PAYMENTRULE, C_PAYMENTTERM_ID, C_CHARGE_ID, M_PRICELIST_ID, + C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, ISPRINTED, ISDISCOUNTPRINTED, + ISPAID, ISINDISPUTE, ISPAYSCHEDULEVALID, C_INVOICEPAYSCHEDULE_ID, INVOICECOLLECTIONTYPE,DUNNINGGRACE, + CHARGEAMT, TOTALLINES, GRANDTOTAL, MULTIPLIER, MULTIPLIERAP, + DOCBASETYPE, DUEDATE + ) +AS +SELECT i.C_Invoice_ID, i.AD_Client_ID, i.AD_Org_ID, i.IsActive, i.Created, i.CreatedBy, i.Updated, i.UpdatedBy, + i.IsSOTrx, i.DocumentNo, i.DocStatus, i.DocAction, i.Processing, i.Processed, i.C_DocType_ID, + i.C_DocTypeTarget_ID, i.C_Order_ID, i.Description, i.IsApproved, i.IsTransferred, + i.SalesRep_ID, i.DateInvoiced, i.DatePrinted, i.DateAcct, i.C_BPartner_ID, i.C_BPartner_Location_ID, + i.AD_User_ID, i.POReference, i.DateOrdered, i.C_Currency_ID, i.C_ConversionType_ID, i.PaymentRule, + i.C_PaymentTerm_ID, i.C_Charge_ID, i.M_PriceList_ID, i.C_Campaign_ID, i.C_Project_ID, + i.C_Activity_ID, i.IsPrinted, i.IsDiscountPrinted, i.IsPaid, i.IsInDispute, + i.IsPayScheduleValid, cast(null as numeric) AS C_InvoicePaySchedule_ID, i.InvoiceCollectionType,i.DunningGrace, + cast(CASE WHEN charAt(d.DocBaseType,3)='C' THEN i.ChargeAmt*-1 ELSE i.ChargeAmt END as numeric) AS ChargeAmt, + cast(CASE WHEN charAt(d.DocBaseType,3)='C' THEN i.TotalLines*-1 ELSE i.TotalLines END as numeric) AS TotalLines, + cast(CASE WHEN charAt(d.DocBaseType,3)='C' THEN i.GrandTotal*-1 ELSE i.GrandTotal END as numeric) AS GrandTotal, + cast(CASE WHEN charAt(d.DocBaseType,3)='C' THEN -1 ELSE 1 END as numeric) AS Multiplier, + cast(CASE WHEN charAt(d.DocBaseType,2)='P' THEN -1 ELSE 1 END AS numeric) as MultiplierAP, + d.DocBaseType + , paymentTermDueDate(i.C_PaymentTerm_ID, i.DateInvoiced) as DueDate +FROM C_Invoice i + INNER JOIN C_DocType d ON (i.C_DocType_ID=d.C_DocType_ID) +WHERE i.IsPayScheduleValid<>'Y' +UNION +SELECT i.C_Invoice_ID, i.AD_Client_ID, i.AD_Org_ID, i.IsActive, i.Created, i.CreatedBy, i.Updated, i.UpdatedBy, + i.IsSOTrx, i.DocumentNo, i.DocStatus, i.DocAction, i.Processing, i.Processed, i.C_DocType_ID, + i.C_DocTypeTarget_ID, i.C_Order_ID, i.Description, i.IsApproved, i.IsTransferred, + i.SalesRep_ID, i.DateInvoiced, i.DatePrinted, i.DateAcct, i.C_BPartner_ID, i.C_BPartner_Location_ID, + i.AD_User_ID, i.POReference, i.DateOrdered, i.C_Currency_ID, i.C_ConversionType_ID, i.PaymentRule, + i.C_PaymentTerm_ID, i.C_Charge_ID, i.M_PriceList_ID, i.C_Campaign_ID, i.C_Project_ID, + i.C_Activity_ID, i.IsPrinted, i.IsDiscountPrinted, i.IsPaid, i.IsInDispute, + i.IsPayScheduleValid, ips.C_InvoicePaySchedule_ID, i.InvoiceCollectionType, i.DunningGrace, + null AS ChargeAmt, + null AS TotalLines, + CASE WHEN charAt(d.DocBaseType,3)='C' THEN ips.DueAmt*-1 ELSE ips.DueAmt END AS GrandTotal, + CASE WHEN charAt(d.DocBaseType,3)='C' THEN -1 ELSE 1 END AS Multiplier, + CASE WHEN charAt(d.DocBaseType,2)='P' THEN -1 ELSE 1 END AS MultiplierAP, + d.DocBaseType + , ips.DueDate +FROM C_Invoice i + INNER JOIN C_DocType d ON (i.C_DocType_ID=d.C_DocType_ID) + INNER JOIN C_InvoicePaySchedule ips ON (i.C_Invoice_ID=ips.C_Invoice_ID) +WHERE i.IsPayScheduleValid='Y' + AND ips.IsValid='Y'; + +CREATE OR REPLACE VIEW C_INVOICELINE_V +(AD_CLIENT_ID, AD_ORG_ID, C_INVOICELINE_ID, C_INVOICE_ID, SALESREP_ID, + C_BPARTNER_ID, M_PRODUCT_ID, DOCUMENTNO, DATEINVOICED, DATEACCT, + ISSOTRX, DOCSTATUS, LINENETAMT, LINELISTAMT, LINELIMITAMT, + LINEDISCOUNTAMT, LINEOVERLIMITAMT, QTYINVOICED, QTYENTERED, LINE, + C_ORDERLINE_ID, C_UOM_ID, C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, + C_PROJECTPHASE_ID, C_PROJECTTASK_ID) +AS +SELECT il.AD_Client_ID, il.AD_Org_ID, + il.C_InvoiceLine_ID, i.C_Invoice_ID, i.SalesRep_ID, + i.C_BPartner_ID, il.M_Product_ID, + i.DocumentNo, i.DateInvoiced, i.DateAcct, + i.IsSOTrx, i.DocStatus, + ROUND(i.Multiplier*LineNetAmt, 2) AS LineNetAmt, + ROUND(i.Multiplier*PriceList*QtyInvoiced, 2) AS LineListAmt, + CASE WHEN COALESCE(il.PriceLimit, 0)=0 THEN ROUND(i.Multiplier*LineNetAmt,2) ELSE ROUND(i.Multiplier*il.PriceLimit*il.QtyInvoiced,2) END AS LineLimitAmt, + ROUND(i.Multiplier*il.PriceList*il.QtyInvoiced-il.LineNetAmt,2) AS LineDiscountAmt, + CASE WHEN COALESCE(il.PriceLimit,0)=0 THEN 0 ELSE ROUND(i.Multiplier*il.LineNetAmt-il.PriceLimit*il.QtyInvoiced,2) END AS LineOverLimitAmt, + il.QtyInvoiced, il.QtyEntered, + il.Line, il.C_OrderLine_ID, il.C_UOM_ID, + il.C_Campaign_ID, il.C_Project_ID, il.C_Activity_ID, il.C_ProjectPhase_ID, il.C_ProjectTask_ID +FROM C_Invoice_v i, C_InvoiceLine il +WHERE i.C_Invoice_ID=il.C_Invoice_ID; + +CREATE OR REPLACE VIEW RV_BPARTNEROPEN +(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY, + UPDATED, UPDATEDBY, C_BPARTNER_ID, C_CURRENCY_ID, AMT, + OPENAMT, DATEDOC, DAYSDUE, C_CAMPAIGN_ID, C_PROJECT_ID, + C_ACTIVITY_ID) +AS +SELECT i.AD_Client_ID,i.AD_Org_ID, i.IsActive, i.Created,i.CreatedBy,i.Updated,i.UpdatedBy, + i.C_BPartner_ID, i.C_Currency_ID, + i.GrandTotal*i.MultiplierAP AS Amt, + invoiceOpen (i.C_Invoice_ID, i.C_InvoicePaySchedule_ID)*i.MultiplierAP AS OpenAmt, + i.DateInvoiced AS DateDoc, + COALESCE(daysBetween(getdate(),ips.DueDate), paymentTermDueDays(C_PaymentTerm_ID,DateInvoiced,getdate())) AS DaysDue, + i.C_Campaign_ID, i.C_Project_ID, i.C_Activity_ID +FROM C_Invoice_v i + LEFT OUTER JOIN C_InvoicePaySchedule ips ON (i.C_InvoicePaySchedule_ID=ips.C_InvoicePaySchedule_ID) +WHERE i.IsPaid='N' + AND i.DocStatus IN ('CO','CL') +UNION +SELECT p.AD_Client_ID,p.AD_Org_ID, p.IsActive, p.Created,p.CreatedBy,p.Updated,p.UpdatedBy, + p.C_BPartner_ID, p.C_Currency_ID, + p.PayAmt*MultiplierAP*-1 AS Amt, + paymentAvailable(p.C_Payment_ID)*p.MultiplierAP*-1 AS OpenAmt, + p.DateTrx AS DateDoc, + null, + p.C_Campaign_ID, p.C_Project_ID, p.C_Activity_ID +FROM C_Payment_v p +WHERE p.IsAllocated='N' AND p.C_BPartner_ID IS NOT NULL + AND p.DocStatus IN ('CO','CL'); + + + + diff --git a/migration/351a-352a/postgresql/194_Fix_Manufacturing_Resource_Window.sql b/migration/351a-352a/postgresql/194_Fix_Manufacturing_Resource_Window.sql new file mode 100644 index 0000000000..1ef24d1f30 --- /dev/null +++ b/migration/351a-352a/postgresql/194_Fix_Manufacturing_Resource_Window.sql @@ -0,0 +1,140 @@ +-- 03.06.2008 12:09:57 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET DefaultValue='Y', IsReadOnly='Y',Updated=TO_TIMESTAMP('2008-06-03 12:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53299 +; + +-- 03.06.2008 12:12:50 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-06-03 12:12:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53300 +; + +-- 03.06.2008 12:12:54 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-06-03 12:12:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53301 +; + +-- 03.06.2008 12:13:00 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-06-03 12:13:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53302 +; + +-- 03.06.2008 12:13:03 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-06-03 12:13:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53303 +; + +-- 03.06.2008 12:13:06 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-06-03 12:13:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53304 +; + +-- 03.06.2008 12:14:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=53296 +; + +-- 03.06.2008 12:14:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=53292 +; + +-- 03.06.2008 12:14:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=53291 +; + +-- 03.06.2008 12:14:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=53294 +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Element SET Name='Manufacturing Resource', PrintName='Manufacturing Resource',Updated=TO_TIMESTAMP('2008-06-03 12:15:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53232 +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53232 +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Column SET ColumnName='IsManufacturingResource', Name='Manufacturing Resource', Description=NULL, Help=NULL WHERE AD_Element_ID=53232 +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET Name='Manufacturing Resource', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53232) AND IsCentrallyMaintained='Y' +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Process_Para SET ColumnName='IsManufacturingResource', Name='Manufacturing Resource', Description=NULL, Help=NULL, AD_Element_ID=53232 WHERE UPPER(ColumnName)='ISMANUFACTURINGRESOURCE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Process_Para SET ColumnName='IsManufacturingResource', Name='Manufacturing Resource', Description=NULL, Help=NULL WHERE AD_Element_ID=53232 AND IsCentrallyMaintained='Y' +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_PrintFormatItem SET PrintName='Manufacturing Resource', Name='Manufacturing Resource' 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=53232) +; + +-- 03.06.2008 12:15:42 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_PrintFormatItem SET PrintName='Manufacturing Resource', Name='Manufacturing Resource' 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=53232) +; + +-- 03.06.2008 12:17:25 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Element_Trl SET IsTranslated='Y',Name='Resursa de productie',PrintName='Resursa de productie',Updated=TO_TIMESTAMP('2008-06-03 12:17:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53232 AND AD_Language='ro_RO' +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Element SET Name='Manufacturing Resource Type', PrintName='Manufacturing Resource Type',Updated=TO_TIMESTAMP('2008-06-03 12:19:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53233 +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53233 +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Column SET ColumnName='ManufacturingResourceType', Name='Manufacturing Resource Type', Description=NULL, Help=NULL WHERE AD_Element_ID=53233 +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Field SET Name='Manufacturing Resource Type', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53233) AND IsCentrallyMaintained='Y' +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Process_Para SET ColumnName='ManufacturingResourceType', Name='Manufacturing Resource Type', Description=NULL, Help=NULL, AD_Element_ID=53233 WHERE UPPER(ColumnName)='MANUFACTURINGRESOURCETYPE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Process_Para SET ColumnName='ManufacturingResourceType', Name='Manufacturing Resource Type', Description=NULL, Help=NULL WHERE AD_Element_ID=53233 AND IsCentrallyMaintained='Y' +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_PrintFormatItem SET PrintName='Manufacturing Resource Type', Name='Manufacturing Resource Type' 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=53233) +; + +-- 03.06.2008 12:19:17 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_PrintFormatItem SET PrintName='Manufacturing Resource Type', Name='Manufacturing Resource Type' 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=53233) +; + +-- 03.06.2008 12:19:27 EEST +-- Fix Manufacturing Resource Window +UPDATE AD_Element_Trl SET IsTranslated='Y',Name='Tip resursa productie',PrintName='Tip resursa productie',Updated=TO_TIMESTAMP('2008-06-03 12:19:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53233 AND AD_Language='ro_RO' +; + diff --git a/migration/351a-352a/postgresql/195_libero_fixes.sql b/migration/351a-352a/postgresql/195_libero_fixes.sql new file mode 100644 index 0000000000..9008f9b026 --- /dev/null +++ b/migration/351a-352a/postgresql/195_libero_fixes.sql @@ -0,0 +1,46 @@ +-- 03.06.2008 13:08:34 EEST +-- Fix AD_WF_Node.C_BPartner_ID reference +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2008-06-03 13:08:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53309 +; + +-- 03.06.2008 16:25:28 EEST +-- Fix PP_Product_Planning.AD_Workflow_ID : set AD_Val_Rule_ID=MFG WF +UPDATE AD_Column SET AD_Val_Rule_ID=52003,Updated=TO_TIMESTAMP('2008-06-03 16:25:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53377 +; + +-- Create Product Planning unique contraint: +create unique index PP_Product_Planning_UQ on PP_Product_Planning (M_Product_ID, S_Resource_ID, M_Warehouse_ID, AD_Org_ID); + +-- 03.06.2008 18:16:22 EEST +-- PP_Order_Node.A_Asset_ID set to Search +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2008-06-03 18:16:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53743 +; + +-- 03.06.2008 18:17:53 EEST +-- PP_Order_Node.C_BPartner_ID set to Search +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2008-06-03 18:17:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53460 +; + +-- 03.06.2008 18:18:34 EEST +-- PP_MRP.C_BPartner_ID set to Search +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2008-06-03 18:18:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54025 +; + + +-- +-- M_Product_ID fields in Manufacturing tables should have AD_Reference_ID=Search +UPDATE AD_Column SET AD_Reference_ID=30, IsUpdateable='N',Updated=TO_TIMESTAMP('2008-06-03 18:20:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53389 +; +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2008-06-03 18:20:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53549 +; +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2008-06-03 18:20:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53610 +; +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2008-06-03 18:20:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53733 +; +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2008-06-03 18:20:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53763 +; +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2008-06-03 18:21:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53993 +; +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2008-06-03 18:21:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54043 +; + diff --git a/migration/351a-352a/postgresql/196_FB1983672_refactory.sql b/migration/351a-352a/postgresql/196_FB1983672_refactory.sql new file mode 100644 index 0000000000..7102db6350 --- /dev/null +++ b/migration/351a-352a/postgresql/196_FB1983672_refactory.sql @@ -0,0 +1,74 @@ +-- 04-jun-2008 23:12:26 CDT +-- Fix Libero + +-- added first to fix [ 1985198 ] 196_FB1983672_refactory script failing +INSERT INTO AD_COLUMN + (AD_COLUMN_ID, AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, + CREATED, + UPDATED, CREATEDBY, + UPDATEDBY, NAME, DESCRIPTION, VERSION, + ENTITYTYPE, COLUMNNAME, AD_TABLE_ID, AD_REFERENCE_ID, + FIELDLENGTH, ISKEY, ISPARENT, ISMANDATORY, ISUPDATEABLE, + READONLYLOGIC, ISIDENTIFIER, ISTRANSLATED, ISENCRYPTED, + ISSELECTIONCOLUMN, AD_ELEMENT_ID, ISSYNCDATABASE, + ISALWAYSUPDATEABLE + ) + VALUES (56076, 0, 0, 'Y', + TO_TIMESTAMP('2008-06-04 23:11:54','YYYY-MM-DD HH24:MI:SS'), + TO_TIMESTAMP('2008-06-04 23:11:54','YYYY-MM-DD HH24:MI:SS'), 100, + 100, 'Current Cost Price Low Level', 'The low level cost is using to accumulation the cost for low level in a bill of material or formula.', 0, + 'EE01', 'CurrentCostPriceLL', 771, 37, + 22, 'N', 'N', 'Y', 'Y', + '@CostingMethod@!x & @CostingMethod@!S', 'N', 'N', 'N', + 'N', 53296, 'N', + 'N' + ); + + +-- 04-jun-2008 23:12:26 CDT +-- Fix Libero +INSERT INTO AD_FIELD (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,NAME,Updated,UpdatedBy) VALUES (0,56076,56266,0,701,TO_TIMESTAMP('2008-06-04 23:11:54','YYYY-MM-DD HH24:MI:SS'),0,'The low level cost is using to accumulation the cost for low level in a bill of material or formula.',22,'EE01','The low level cost is using to accumulation the cost for low level in a bill of material or formula.','Y','Y','Y','N','N','N','N','N','Current Cost Price Low Level',TO_TIMESTAMP('2008-06-04 23:11:54','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 04-jun-2008 23:12:26 CDT +-- Fix Libero +INSERT INTO AD_FIELD_TRL (AD_LANGUAGE,AD_Field_ID, Description,Help,NAME, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_LANGUAGE,t.AD_Field_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_FIELD t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56266 AND EXISTS (SELECT * FROM AD_FIELD_TRL tt WHERE tt.AD_LANGUAGE!=l.AD_LANGUAGE OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 04-jun-2008 23:14:30 CDT +-- Fix Libero +UPDATE AD_FIELD SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=56266 +; + +-- 04-jun-2008 23:14:30 CDT +-- Fix Libero +UPDATE AD_FIELD SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=11352 +; + +-- 04-jun-2008 23:14:30 CDT +-- Fix Libero +UPDATE AD_FIELD SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=12318 +; + +-- 04-jun-2008 23:14:30 CDT +-- Fix Libero +UPDATE AD_FIELD SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=12175 +; + +-- 04-jun-2008 23:14:30 CDT +-- Fix Libero +UPDATE AD_FIELD SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=12176 +; + +-- 04-jun-2008 23:14:30 CDT +-- Fix Libero +UPDATE AD_FIELD SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=12319 +; + +-- 04-jun-2008 23:14:39 CDT +-- Fix Libero +UPDATE AD_FIELD SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-06-04 23:14:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=11352 +; + +-- Add CurrentCostPriceLL column to database +ALTER TABLE M_Cost ADD COLUMN CurrentCostPriceLL NUMERIC DEFAULT 0; diff --git a/migration/351a-352a/postgresql/197_Fix_InternalUseWindow_Attributes.sql b/migration/351a-352a/postgresql/197_Fix_InternalUseWindow_Attributes.sql new file mode 100644 index 0000000000..7e414aa383 --- /dev/null +++ b/migration/351a-352a/postgresql/197_Fix_InternalUseWindow_Attributes.sql @@ -0,0 +1,5 @@ +-- 05.06.2008 20:16:23 EEST +-- Internal Use Inventory / Attributes it's an advanced tab +UPDATE AD_Tab SET IsAdvancedTab='Y',Updated=TO_TIMESTAMP('2008-06-05 20:16:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53134 +; + diff --git a/migration/351a-352a/postgresql/198_Fix_HR_Payroll_Identifier.sql b/migration/351a-352a/postgresql/198_Fix_HR_Payroll_Identifier.sql new file mode 100644 index 0000000000..e1678b9931 --- /dev/null +++ b/migration/351a-352a/postgresql/198_Fix_HR_Payroll_Identifier.sql @@ -0,0 +1,3 @@ +-- Reset SeqNo for HR_Payroll.Value, there is already HR_Payroll.Name as identifier +update AD_Column set SeqNo=null +where AD_Column_ID=54887 and IsIdentifier='N' and SeqNo=1; diff --git a/migration/351a-352a/postgresql/199_Fix_EntityTypes.sql b/migration/351a-352a/postgresql/199_Fix_EntityTypes.sql new file mode 100644 index 0000000000..b1958d0f25 --- /dev/null +++ b/migration/351a-352a/postgresql/199_Fix_EntityTypes.sql @@ -0,0 +1,2 @@ +update AD_Table set EntityType='EE01' +where TableName in ('RV_PP_MRP', 'RV_PP_Order_BOMLine', 'RV_PP_WIP') and EntityType<>'EE01'; diff --git a/migration/351a-352a/postgresql/200_BF1989305_createGWJournalBatch.sql b/migration/351a-352a/postgresql/200_BF1989305_createGWJournalBatch.sql new file mode 100644 index 0000000000..abf55aff0c --- /dev/null +++ b/migration/351a-352a/postgresql/200_BF1989305_createGWJournalBatch.sql @@ -0,0 +1,17 @@ +-- Jun 9, 2008 8:18:14 PM COT +-- [ 1989305 ] Missing GL Journal Batch in GardenWorld +INSERT INTO AD_Sequence (UpdatedBy,IsAutoSequence,AD_Org_ID,AD_Sequence_ID,Updated,CurrentNext,IsTableID,Created,StartNewYear,IsAudited,IncrementNo,AD_Client_ID,StartNo,Name,CurrentNextSys,CreatedBy,IsActive) VALUES (100,'Y',0,53162,TO_TIMESTAMP('2008-06-09 20:18:12','YYYY-MM-DD HH24:MI:SS'),100,'N',TO_TIMESTAMP('2008-06-09 20:18:12','YYYY-MM-DD HH24:MI:SS'),'N','N',1,11,1000,'GL Journal Batch',1002,100,'Y') +; + +-- Jun 9, 2008 8:18:33 PM COT +INSERT INTO C_DocType (IsSOTrx,UpdatedBy,IsDocNoControlled,AD_Org_ID,DocNoSequence_ID,Updated,DocumentCopies,HasCharges,C_DocType_ID,Created,IsDefault,GL_Category_ID,PrintName,AD_Client_ID,HasProforma,Name,CreatedBy,IsShipConfirm,IsPickQAConfirm,DocBaseType,IsDefaultCounterDoc,IsActive,IsSplitWhenDifference,IsCreateCounter,IsInTransit,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,IsIndexed) VALUES ('N',100,'Y',0,53162,TO_TIMESTAMP('2008-06-09 20:18:32','YYYY-MM-DD HH24:MI:SS'),0,'N',50001,TO_TIMESTAMP('2008-06-09 20:18:32','YYYY-MM-DD HH24:MI:SS'),'N',108,'Journal Batch',11,'N','GL Journal Batch',100,'N','N','GLJ','N','Y','N','Y','N','N','N','Y') +; + +-- Jun 9, 2008 8:18:34 PM COT +INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, DocumentNote,PrintName,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.C_DocType_ID, t.DocumentNote,t.PrintName,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=50001 AND EXISTS (SELECT * FROM C_DocType_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.C_DocType_ID!=t.C_DocType_ID) +; + +-- Jun 9, 2008 8:18:34 PM COT +INSERT INTO AD_Document_Action_Access (AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,C_DocType_ID , AD_Ref_List_ID, AD_Role_ID) (SELECT 11,0,'Y', CURRENT_TIMESTAMP,100, CURRENT_TIMESTAMP,100, doctype.C_DocType_ID, "action".AD_Ref_List_ID, rol.AD_Role_ID FROM AD_Client client INNER JOIN C_DocType doctype ON (doctype.AD_Client_ID=client.AD_Client_ID) INNER JOIN AD_Ref_List "action" ON ("action".AD_Reference_ID=135) INNER JOIN AD_Role rol ON (rol.AD_Client_ID=client.AD_Client_ID) WHERE client.AD_Client_ID=11 AND doctype.C_DocType_ID=50001 AND rol.IsManual='N') +; + diff --git a/migration/351a-352a/postgresql/201_FR1992542.sql b/migration/351a-352a/postgresql/201_FR1992542.sql new file mode 100644 index 0000000000..3c6e9bfd12 --- /dev/null +++ b/migration/351a-352a/postgresql/201_FR1992542.sql @@ -0,0 +1,24 @@ +-- Jun 12, 2008 7:57:23 PM COT +-- FR 1992542 - Import Payment doesn't have DocAction parameter +UPDATE AD_Process_Para SET SeqNo=40,Updated=TO_TIMESTAMP('2008-06-12 19:57:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=712 +; + +-- Jun 12, 2008 7:58:40 PM COT +-- FR 1992542 - Import Payment doesn't have DocAction parameter +INSERT INTO AD_Process_Para (FieldLength,UpdatedBy,ColumnName,AD_Org_ID,AD_Process_Para_ID,SeqNo,Updated,Help,DefaultValue,Created,IsCentrallyMaintained,AD_Process_ID,AD_Client_ID,IsRange,AD_Reference_ID,EntityType,AD_Val_Rule_ID,Name,CreatedBy,IsMandatory,AD_Reference_Value_ID,IsActive,AD_Element_ID,Description) VALUES (1,100,'DocAction',0,53177,30,TO_TIMESTAMP('2008-06-12 19:58:39','YYYY-MM-DD HH24:MI:SS'),'You find the current status in the Document Status field. The options are listed in a popup','PR',TO_TIMESTAMP('2008-06-12 19:58:39','YYYY-MM-DD HH24:MI:SS'),'Y',343,0,'N',17,'D',219,'Document Action',100,'N',135,'Y',287,'The targeted status of the document') +; + +-- Jun 12, 2008 7:58:40 PM COT +-- FR 1992542 - Import Payment doesn't have DocAction parameter +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Help,t.Name,t.Description, '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=53177 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) +; + +-- Jun 12, 2008 8:32:52 PM COT +-- FR 1992542 - Import Payment doesn't have DocAction parameter +INSERT INTO AD_Val_Rule (UpdatedBy,Code,AD_Org_ID,Updated,Type,Created,AD_Client_ID,EntityType,AD_Val_Rule_ID,Name,CreatedBy,IsActive) VALUES (100,'AD_Ref_List.Value IN (''CO'')',0,TO_TIMESTAMP('2008-06-12 20:32:50','YYYY-MM-DD HH24:MI:SS'),'S',TO_TIMESTAMP('2008-06-12 20:32:50','YYYY-MM-DD HH24:MI:SS'),0,'D',52027,'List - DocAction - Complete',100,'Y') +; + +-- Jun 12, 2008 8:33:09 PM COT +-- FR 1992542 - Import Payment doesn't have DocAction parameter +UPDATE AD_Process_Para SET DefaultValue=NULL, AD_Val_Rule_ID=52027,Updated=TO_TIMESTAMP('2008-06-12 20:33:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53177 +; diff --git a/migration/351a-352a/postgresql/202_BF1994221_MfgWorkflows.sql b/migration/351a-352a/postgresql/202_BF1994221_MfgWorkflows.sql new file mode 100644 index 0000000000..06de085bf1 --- /dev/null +++ b/migration/351a-352a/postgresql/202_BF1994221_MfgWorkflows.sql @@ -0,0 +1,24 @@ +-- Jun 15, 2008 12:35:47 PM EST +-- Fix Manufacturing Workflows +UPDATE AD_Workflow SET IsValid='Y', AD_WF_Node_ID=50029,Updated=TO_TIMESTAMP('2008-06-15 12:35:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50008 +; + +-- Jun 15, 2008 12:39:50 PM EST +-- Fix Manufacturing Workflows +UPDATE AD_Workflow SET IsValid='Y', AD_WF_Node_ID=50033,Updated=TO_TIMESTAMP('2008-06-15 12:39:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50009 +; + +-- Jun 15, 2008 1:09:43 PM EST +-- Fix Manufacturing Workflows +UPDATE AD_WF_NodeNext SET SeqNo=100,Updated=TO_TIMESTAMP('2008-06-15 13:09:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_WF_NodeNext_ID=50010 +; + +-- Jun 15, 2008 1:13:45 PM EST +-- Fix Manufacturing Workflows +UPDATE AD_Workflow SET IsValid='Y', AD_WF_Node_ID=50016,Updated=TO_TIMESTAMP('2008-06-15 13:13:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50005 +; + +-- Jun 15, 2008 1:18:01 PM EST +-- Fix Manufacturing Workflows +UPDATE AD_Workflow SET IsValid='Y', AD_WF_Node_ID=50020,Updated=TO_TIMESTAMP('2008-06-15 13:18:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50006 +; diff --git a/migration/351a-352a/postgresql/203_BF1963128.sql b/migration/351a-352a/postgresql/203_BF1963128.sql new file mode 100644 index 0000000000..c824f01686 --- /dev/null +++ b/migration/351a-352a/postgresql/203_BF1963128.sql @@ -0,0 +1,15 @@ +-- 20.06.2008 14:06:53 EEST +-- BF [ 1963128 ] Running a process w/o trl should display an error +INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53038,0,TO_TIMESTAMP('2008-06-20 14:06:43','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Check Missing Translation Records','E',TO_TIMESTAMP('2008-06-20 14:06:43','YYYY-MM-DD HH24:MI:SS'),0,'CheckMissingTrl') +; + +-- 20.06.2008 14:06:53 EEST +-- BF [ 1963128 ] Running a process w/o trl should display an error +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53038 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID) +; + +-- 20.06.2008 14:08:39 EEST +-- BF [ 1963128 ] Running a process w/o trl should display an error +UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='Lipsesc liniile de traducere',Updated=TO_TIMESTAMP('2008-06-20 14:08:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Message_ID=53038 AND AD_Language='ro_RO' +; + diff --git a/migration/351a-352a/postgresql/204_FR1999156_CreatePlanningData.sql b/migration/351a-352a/postgresql/204_FR1999156_CreatePlanningData.sql new file mode 100644 index 0000000000..08ae4ddf47 --- /dev/null +++ b/migration/351a-352a/postgresql/204_FR1999156_CreatePlanningData.sql @@ -0,0 +1,40 @@ +-- Jun 20, 2008 3:24:52 PM CDT +-- Fixed Libero Issue +UPDATE AD_Column SET AD_Val_Rule_ID=52002,Updated=TO_TIMESTAMP('2008-06-20 15:24:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53400 +; + +-- Jun 20, 2008 3:27:23 PM CDT +-- Fixed Libero Issue +UPDATE AD_Column SET IsMandatory='N',Updated=TO_TIMESTAMP('2008-06-20 15:27:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53400 +; + +-- Jun 20, 2008 3:30:05 PM CDT +-- Fixed Libero Issue +UPDATE AD_Process_Para SET AD_Element_ID=1777, AD_Val_Rule_ID=52002,Updated=TO_TIMESTAMP('2008-06-20 15:30:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53035 +; + +-- Jun 20, 2008 3:32:17 PM CDT +-- Fixed Libero Issue +UPDATE AD_Process_Para SET AD_Val_Rule_ID=52003,Updated=TO_TIMESTAMP('2008-06-20 15:32:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53036 +; + +-- Jun 20, 2008 3:35:42 PM CDT +-- Fixed Libero Issue +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,53340,0,53010,53183,30,'DD_NetworkDistribution_ID',TO_TIMESTAMP('2008-06-20 15:35:33','YYYY-MM-DD HH24:MI:SS'),0,'Network Distribution','EE01',22,NULL,'Y','Y','N','N','Network Distribution',75,TO_TIMESTAMP('2008-06-20 15:35:33','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jun 20, 2008 3:35:42 PM CDT +-- Fixed Libero Issue +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=53183 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) +; + +-- Jun 20, 2008 3:37:05 PM CDT +-- Fixed Libero Issue +UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_TIMESTAMP('2008-06-20 15:37:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53660 +; + +-- Jun 20, 2008 3:38:45 PM CDT +-- Fixed Libero Issue +UPDATE AD_Process_Para SET AD_Reference_ID=19,Updated=TO_TIMESTAMP('2008-06-20 15:38:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53183 +; + diff --git a/migration/351a-352a/postgresql/205_FR1999230_AddSafetyStock.sql b/migration/351a-352a/postgresql/205_FR1999230_AddSafetyStock.sql new file mode 100644 index 0000000000..8451c95844 --- /dev/null +++ b/migration/351a-352a/postgresql/205_FR1999230_AddSafetyStock.sql @@ -0,0 +1,25 @@ + +-- Jun 20, 2008 6:33:56 PM CDT +-- Fixed Libero Issue +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,53354,0,53010,53184,29,'SafetyStock',TO_TIMESTAMP('2008-06-20 18:33:47','YYYY-MM-DD HH24:MI:SS'),0,'Safety Stock Qty','EE01',22,'Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.','Y','Y','N','N','Safety Stock Qty',130,TO_TIMESTAMP('2008-06-20 18:33:47','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jun 20, 2008 6:33:56 PM CDT +-- Fixed Libero Issue +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=53184 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) +; + +-- Jun 20, 2008 6:34:14 PM CDT +-- Fixed Libero Issue +UPDATE AD_Process_Para SET SeqNo=105,Updated=TO_TIMESTAMP('2008-06-20 18:34:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53184 +; + + +ALTER TABLE PP_Product_Planning DROP CONSTRAINT ddnetworkdistribution_ppproduc; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT adworkflow_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT mwarehouse_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT planner_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT ppproductbom_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT sresource_ppproductplanning; + +DROP INDEX pp_product_planning_uq; \ No newline at end of file diff --git a/migration/351a-352a/postgresql/206_BF1980521_RVPPOrderBOMLine.sql b/migration/351a-352a/postgresql/206_BF1980521_RVPPOrderBOMLine.sql new file mode 100644 index 0000000000..467c457e83 --- /dev/null +++ b/migration/351a-352a/postgresql/206_BF1980521_RVPPOrderBOMLine.sql @@ -0,0 +1,265 @@ +-- Jun 23, 2008 9:58:30 AM EST +-- RV_PP_Order_BOMLine dictionary columns +UPDATE AD_Table SET IsView='Y',Updated=TO_TIMESTAMP('2008-06-23 09:58:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53028 +; + +-- Jun 23, 2008 9:59:10 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56089,102,0,19,53028,'AD_Client_ID',TO_TIMESTAMP('2008-06-23 09:59:02','YYYY-MM-DD HH24:MI:SS'),100,'Client/Tenant for this installation.','EE01',10,'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','N','N','N','N','Y','N','N','N','N','Client',TO_TIMESTAMP('2008-06-23 09:59:02','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 9:59:10 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56089 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 9:59:11 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56090,113,0,19,53028,'AD_Org_ID',TO_TIMESTAMP('2008-06-23 09:59:10','YYYY-MM-DD HH24:MI:SS'),100,'Organizational entity within client','EE01',10,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','N','N','N','N','Y','N','N','N','N','Organization',TO_TIMESTAMP('2008-06-23 09:59:10','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 9:59:11 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56090 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 9:59:11 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56091,246,0,18,110,53028,'CreatedBy',TO_TIMESTAMP('2008-06-23 09:59:11','YYYY-MM-DD HH24:MI:SS'),100,'User who created this records','EE01',10,'The Created By field indicates the user who created this record.','Y','N','N','N','N','Y','N','N','N','N','Created By',TO_TIMESTAMP('2008-06-23 09:59:11','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 9:59:11 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56091 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:31 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56092,608,0,18,110,53028,'UpdatedBy',TO_TIMESTAMP('2008-06-23 11:04:30','YYYY-MM-DD HH24:MI:SS'),100,'User who updated this records','EE01',10,'The Updated By field indicates the user who updated this record.','Y','N','N','N','N','Y','N','N','N','N','Updated By',TO_TIMESTAMP('2008-06-23 11:04:30','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:31 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56092 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:31 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56093,607,0,16,53028,'Updated',TO_TIMESTAMP('2008-06-23 11:04:31','YYYY-MM-DD HH24:MI:SS'),100,'Date this record was updated','EE01',7,'The Updated field indicates the date that this record was updated.','Y','N','N','N','N','Y','N','N','N','N','Updated',TO_TIMESTAMP('2008-06-23 11:04:31','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:31 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56093 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:32 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56094,245,0,16,53028,'Created',TO_TIMESTAMP('2008-06-23 11:04:32','YYYY-MM-DD HH24:MI:SS'),100,'Date this record was created','EE01',7,'The Created field indicates the date that this record was created.','Y','N','N','N','N','Y','N','N','N','N','Created',TO_TIMESTAMP('2008-06-23 11:04:32','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:32 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56094 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:33 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56095,348,0,20,53028,'IsActive',TO_TIMESTAMP('2008-06-23 11:04:32','YYYY-MM-DD HH24:MI:SS'),100,'The record is active in the system','EE01',1,'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.','Y','N','N','N','N','Y','N','N','N','N','Active',TO_TIMESTAMP('2008-06-23 11:04:32','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:33 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56095 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:34 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56096,53298,0,19,53028,'PP_Order_BOM_ID',TO_TIMESTAMP('2008-06-23 11:04:33','YYYY-MM-DD HH24:MI:SS'),100,'EE01',10,'Y','N','N','N','N','Y','N','N','N','N','PP_Order_BOM_ID',TO_TIMESTAMP('2008-06-23 11:04:33','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:34 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56096 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:35 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56097,53275,0,19,53028,'PP_Order_BOMLine_ID',TO_TIMESTAMP('2008-06-23 11:04:34','YYYY-MM-DD HH24:MI:SS'),100,'EE01',10,'Y','N','N','N','N','Y','N','N','N','N','PP_Order_BOMLine_ID',TO_TIMESTAMP('2008-06-23 11:04:34','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:35 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56097 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:36 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56098,53276,0,19,53028,'PP_Order_ID',TO_TIMESTAMP('2008-06-23 11:04:35','YYYY-MM-DD HH24:MI:SS'),100,'EE01',10,'Y','N','N','N','N','Y','N','N','N','N','PP_Order_ID',TO_TIMESTAMP('2008-06-23 11:04:35','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:36 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56098 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:37 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56099,53251,0,20,53028,'IsCritical',TO_TIMESTAMP('2008-06-23 11:04:36','YYYY-MM-DD HH24:MI:SS'),100,'Indicate that a Manufacturing Order can not begin without have this component','EE01',1,'Indicate that a Manufacturing Order can not begin without have this component','Y','N','N','N','N','Y','N','N','N','N','Is Critical Component',TO_TIMESTAMP('2008-06-23 11:04:36','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:37 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56099 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:38 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56100,53249,0,17,53028,'ComponentType',TO_TIMESTAMP('2008-06-23 11:04:37','YYYY-MM-DD HH24:MI:SS'),100,'Component Type for a Bill of Material or Formula','EE01',2,'The Component Type can be: + +1.- By Product: Define a By Product as Component into BOM +2.- Component: Define a normal Component into BOM +3.- Option: Define an Option for Product Configure BOM +4.- Phantom: Define a Phantom as Component into BOM +5.- Packing: Define a Packing as Component into BOM +6.- Planning : Define Planning as Component into BOM +7.- Tools: Define Tools as Component into BOM +8.- Variant: Define Variant for Product Configure BOM +','Y','N','N','N','N','N','N','N','N','N','Component Type',TO_TIMESTAMP('2008-06-23 11:04:37','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:38 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56100 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:39 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56101,454,0,19,53028,'M_Product_ID',TO_TIMESTAMP('2008-06-23 11:04:38','YYYY-MM-DD HH24:MI:SS'),100,'Product, Service, Item','EE01',10,'Identifies an item which is either purchased or sold in this organization.','Y','N','N','N','N','Y','N','N','N','N','Product',TO_TIMESTAMP('2008-06-23 11:04:38','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:39 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56101 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:40 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56102,215,0,19,53028,'C_UOM_ID',TO_TIMESTAMP('2008-06-23 11:04:39','YYYY-MM-DD HH24:MI:SS'),100,'Unit of Measure','EE01',10,'The UOM defines a unique non monetary Unit of Measure','Y','N','N','N','N','Y','N','N','N','N','UOM',TO_TIMESTAMP('2008-06-23 11:04:39','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:40 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56102 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:41 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56103,53288,0,29,53028,'QtyRequiered',TO_TIMESTAMP('2008-06-23 11:04:40','YYYY-MM-DD HH24:MI:SS'),100,'EE01',22,'Y','N','N','N','N','N','N','N','N','N','QtyRequiered',TO_TIMESTAMP('2008-06-23 11:04:40','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:41 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56103 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:42 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56104,532,0,29,53028,'QtyReserved',TO_TIMESTAMP('2008-06-23 11:04:41','YYYY-MM-DD HH24:MI:SS'),100,'Reserved Quantity','EE01',22,'The Reserved Quantity indicates the quantity of a product that is currently reserved.','Y','N','N','N','N','N','N','N','N','N','Reserved Quantity',TO_TIMESTAMP('2008-06-23 11:04:41','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:42 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56104 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:43 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56105,2238,0,29,53028,'QtyAvailable',TO_TIMESTAMP('2008-06-23 11:04:42','YYYY-MM-DD HH24:MI:SS'),100,'Available Quantity (On Hand - Reserved)','EE01',22,'Quantity available to promise = On Hand minus Reserved Quantity','Y','N','N','N','N','N','N','N','N','N','Available Quantity',TO_TIMESTAMP('2008-06-23 11:04:42','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:43 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56105 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:44 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56106,530,0,29,53028,'QtyOnHand',TO_TIMESTAMP('2008-06-23 11:04:43','YYYY-MM-DD HH24:MI:SS'),100,'On Hand Quantity','EE01',22,'The On Hand Quantity indicates the quantity of a product that is on hand in a warehouse.','Y','N','N','N','N','N','N','N','N','N','On Hand Quantity',TO_TIMESTAMP('2008-06-23 11:04:43','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:44 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56106 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:45 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56107,459,0,19,53028,'M_Warehouse_ID',TO_TIMESTAMP('2008-06-23 11:04:44','YYYY-MM-DD HH24:MI:SS'),100,'Storage Warehouse and Service Point','EE01',10,'The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','N','N','N','N','Y','N','N','N','N','Warehouse',TO_TIMESTAMP('2008-06-23 11:04:44','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:45 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56107 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:45 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56108,53255,0,29,53028,'QtyBOM',TO_TIMESTAMP('2008-06-23 11:04:45','YYYY-MM-DD HH24:MI:SS'),100,'Indicate the Quantity use in this BOM','EE01',22,'Exist two way the add a compenent to a BOM or Formula: + +1.- Adding a Component based in quantity to use in this BOM +2.- Adding a Component based in % to use the Order Quantity of Manufacturing Order in this Formula. +','Y','N','N','N','N','N','N','N','N','N','Quantity',TO_TIMESTAMP('2008-06-23 11:04:45','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:45 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56108 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:46 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56109,53252,0,29,53028,'IsQtyPercentage',TO_TIMESTAMP('2008-06-23 11:04:45','YYYY-MM-DD HH24:MI:SS'),100,'Indicate that this component is based in % Quantity','EE01',1,'Indicate that this component is based in % Quantity','Y','N','N','N','N','N','N','N','N','N','Is Qty Percentage',TO_TIMESTAMP('2008-06-23 11:04:45','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:46 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56109 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:47 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56110,53256,0,29,53028,'QtyBatch',TO_TIMESTAMP('2008-06-23 11:04:46','YYYY-MM-DD HH24:MI:SS'),100,'Indicate the Quantity % use in this Formula','EE01',22,'Exist two way the add a compenent to a BOM or Formula: + +1.- Adding a Component based in quantity to use in this BOM +2.- Adding a Component based in % to use the Order Quantity of Manufacturing Order in this Formula. +','Y','N','N','N','N','N','N','N','N','N','Quantity %',TO_TIMESTAMP('2008-06-23 11:04:46','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:47 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56110 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:04:48 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56111,53243,0,29,53028,'QtyBatchSize',TO_TIMESTAMP('2008-06-23 11:04:47','YYYY-MM-DD HH24:MI:SS'),100,'EE01',22,'Y','N','N','N','N','N','N','N','N','N','QtyBatchSize',TO_TIMESTAMP('2008-06-23 11:04:47','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jun 23, 2008 11:04:48 AM EST +-- RV_PP_Order_BOMLine dictionary columns +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56111 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 23, 2008 11:15:46 AM EST +-- RV_PP_Order_BOMLine dictionary columns +UPDATE AD_Element SET PrintName='QtyRequired',Updated=TO_TIMESTAMP('2008-06-23 11:15:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53288 +; + +-- Jun 23, 2008 11:15:47 AM EST +-- RV_PP_Order_BOMLine dictionary columns +UPDATE AD_PrintFormatItem SET PrintName='QtyRequired', Name='QtyRequiered' 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=53288) +; diff --git a/migration/351a-352a/postgresql/207_BF2000549.sql b/migration/351a-352a/postgresql/207_BF2000549.sql new file mode 100644 index 0000000000..e7755f38b0 --- /dev/null +++ b/migration/351a-352a/postgresql/207_BF2000549.sql @@ -0,0 +1,20 @@ +-- 23.06.2008 10:33:45 EEST +-- +UPDATE AD_Column SET DefaultValue='N', IsMandatory='Y',Updated=TO_TIMESTAMP('2008-06-23 10:33:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54951 +; + +-- 23.06.2008 10:33:47 EEST +-- +insert into t_alter_column values('hr_payrollconcept','IsPrinted','CHAR(1)',null,'N') +; + +-- 23.06.2008 10:33:47 EEST +-- +UPDATE HR_PayrollConcept SET IsPrinted='N' WHERE IsPrinted IS NULL +; + +-- 23.06.2008 10:33:47 EEST +-- +insert into t_alter_column values('hr_payrollconcept','IsPrinted',null,'NOT NULL',null) +; + diff --git a/migration/351a-352a/postgresql/208_BF2000598.sql b/migration/351a-352a/postgresql/208_BF2000598.sql new file mode 100644 index 0000000000..91446d1f14 --- /dev/null +++ b/migration/351a-352a/postgresql/208_BF2000598.sql @@ -0,0 +1,5 @@ +-- 23.06.2008 12:02:32 EEST +-- +UPDATE AD_Field SET SortNo=1.000000000000,Updated=TO_TIMESTAMP('2008-06-23 12:02:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55104 +; + diff --git a/migration/351a-352a/postgresql/209_BF2001820.sql b/migration/351a-352a/postgresql/209_BF2001820.sql new file mode 100644 index 0000000000..e6b0cd8072 --- /dev/null +++ b/migration/351a-352a/postgresql/209_BF2001820.sql @@ -0,0 +1,10 @@ +-- Jun 25, 2008 9:00:46 AM EST +-- BF2001820 +insert into t_alter_column values('pp_order_workflow','EntityType','VARCHAR(40)',null,'U') +; + +-- Jun 25, 2008 9:00:47 AM EST +-- BF2001820 +UPDATE PP_Order_Workflow SET EntityType='U' WHERE EntityType IS NULL +; + diff --git a/migration/351a-352a/postgresql/210_FixDRP.sql b/migration/351a-352a/postgresql/210_FixDRP.sql new file mode 100644 index 0000000000..9178b3f4e7 --- /dev/null +++ b/migration/351a-352a/postgresql/210_FixDRP.sql @@ -0,0 +1,204 @@ +-- Jun 22, 2008 5:51:42 PM CDT +-- New Event Model Validator +UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2008-06-22 17:51:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53072 +; + +-- Jun 22, 2008 6:01:35 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=53513 +; + +-- Jun 22, 2008 6:01:35 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=53512 +; + +-- Jun 22, 2008 6:01:45 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2008-06-22 18:01:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53513 +; + +-- Jun 22, 2008 6:01:47 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-06-22 18:01:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53512 +; + +-- Jun 22, 2008 6:02:06 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET DisplayLength=30,Updated=TO_TIMESTAMP('2008-06-22 18:02:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54392 +; + +-- Jun 22, 2008 6:02:35 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2008-06-22 18:02:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55434 +; + +-- Jun 22, 2008 6:02:49 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2008-06-22 18:02:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53522 +; + +-- Jun 22, 2008 6:05:22 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET DisplayLogic='@Order_Policy@=''POQ''',Updated=TO_TIMESTAMP('2008-06-22 18:05:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53526 +; + +-- Jun 22, 2008 6:08:03 PM CDT +-- New Event Model Validator +UPDATE AD_Tab SET AD_Column_ID=53389,Updated=TO_TIMESTAMP('2008-06-22 18:08:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53030 +; + +-- Jun 22, 2008 6:09:53 PM CDT +-- New Event Model Validator +UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2008-06-22 18:09:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53030 +; + +-- Jun 22, 2008 6:09:57 PM CDT +-- New Event Model Validator +UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2008-06-22 18:09:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53033 +; + +-- Jun 22, 2008 6:10:01 PM CDT +-- New Event Model Validator +UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2008-06-22 18:10:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53031 +; + +-- Jun 22, 2008 6:10:04 PM CDT +-- New Event Model Validator +UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2008-06-22 18:10:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53034 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=53533 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=53525 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=53526 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=53527 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=53528 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=53529 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=53530 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=53531 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=53532 +; + +-- Jun 22, 2008 6:12:07 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=54420 +; + +-- Jun 22, 2008 6:12:20 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-06-22 18:12:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53533 +; + +-- Jun 22, 2008 6:13:09 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=53533 +; + +-- Jun 22, 2008 6:13:09 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=53523 +; + +-- Jun 22, 2008 6:13:09 PM CDT +-- New Event Model Validator +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=53524 +; + +-- Jun 22, 2008 6:14:30 PM CDT +-- New Event Model Validator +UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_TIMESTAMP('2008-06-22 18:14:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53376 +; + +-- Jun 22, 2008 6:14:51 PM CDT +-- New Event Model Validator +UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_TIMESTAMP('2008-06-22 18:14:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53390 +; + +-- Jun 22, 2008 6:19:12 PM CDT +-- New Event Model Validator +UPDATE AD_Column SET IsUpdateable='N',Updated=TO_TIMESTAMP('2008-06-22 18:19:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53376 +; + +-- Jun 22, 2008 6:45:01 PM CDT +-- New Event Model Validator +UPDATE AD_Process_Para SET IsMandatory='Y',Updated=TO_TIMESTAMP('2008-06-22 18:45:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53035 +; + +-- Jun 22, 2008 6:46:14 PM CDT +-- New Event Model Validator +UPDATE AD_Process_Para SET SeqNo=195,Updated=TO_TIMESTAMP('2008-06-22 18:46:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53052 +; + +-- Jun 22, 2008 6:46:40 PM CDT +-- New Event Model Validator +UPDATE AD_Process_Para SET DefaultValue='@Order_Policy@=''POQ''',Updated=TO_TIMESTAMP('2008-06-22 18:46:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53052 +; + +-- Jun 23, 2008 12:30:57 AM CDT +-- Completed the DRP +INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgTip,MsgType,Updated,UpdatedBy,Value) VALUES (0,53039,0,TO_TIMESTAMP('2008-06-23 00:30:56','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Do not exist default Locator for Warehouse','Do not exist default Locator for Warehouse','I',TO_TIMESTAMP('2008-06-23 00:30:56','YYYY-MM-DD HH24:MI:SS'),0,'DRP-001') +; + +-- Jun 23, 2008 12:30:57 AM CDT +-- Completed the DRP +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53039 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID) +; + +-- Jun 23, 2008 12:31:53 AM CDT +-- Completed the DRP +INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgTip,MsgType,Updated,UpdatedBy,Value) VALUES (0,53040,0,TO_TIMESTAMP('2008-06-23 00:31:52','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Do not exist Shipper for Create Distribution Order','Do not exist Shipper for Create Distribution Order','I',TO_TIMESTAMP('2008-06-23 00:31:52','YYYY-MM-DD HH24:MI:SS'),0,'DRP-030') +; + +-- Jun 23, 2008 12:31:53 AM CDT +-- Completed the DRP +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53040 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID) +; + +-- Jun 23, 2008 12:34:18 AM CDT +-- Completed the DRP +UPDATE AD_Column SET IsMandatory='Y',Updated=TO_TIMESTAMP('2008-06-23 00:34:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54298 +; + +-- Jun 23, 2008 12:34:21 AM CDT +-- Completed the DRP +insert into t_alter_column values('dd_networkdistributionline','M_Shipper_ID','NUMERIC(10)',null,'NULL') +; + +-- Jun 23, 2008 12:35:46 AM CDT +-- Completed the DRP +insert into t_alter_column values('dd_networkdistributionline','M_Shipper_ID',null,'NOT NULL',null) +; diff --git a/migration/351a-352a/postgresql/211_BF1995132.sql b/migration/351a-352a/postgresql/211_BF1995132.sql new file mode 100644 index 0000000000..dc47fa2b7b --- /dev/null +++ b/migration/351a-352a/postgresql/211_BF1995132.sql @@ -0,0 +1,50 @@ +-- Jun 26, 2008 9:57:54 AM EST +-- Default comment for updating dictionary +UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2008-06-26 09:57:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53030 +; + +-- Jun 26, 2008 9:58:19 AM EST +-- Default comment for updating dictionary +UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2008-06-26 09:58:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53033 +; + +-- Jun 26, 2008 9:58:28 AM EST +-- Default comment for updating dictionary +UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2008-06-26 09:58:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53031 +; + +-- Jun 26, 2008 9:58:36 AM EST +-- Default comment for updating dictionary +UPDATE AD_Tab SET TabLevel=1,Updated=TO_TIMESTAMP('2008-06-26 09:58:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53034 +; + +-- Jun 26, 2008 9:58:43 AM EST +-- Default comment for updating dictionary +UPDATE AD_Tab SET AD_Column_ID=3668,Updated=TO_TIMESTAMP('2008-06-26 09:58:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53034 +; + +-- Jun 26, 2008 10:00:40 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=53523 +; + +-- Jun 26, 2008 10:00:40 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=53522 +; + +-- Jun 26, 2008 10:00:40 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=53525 +; + +-- Jun 26, 2008 10:00:40 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=53524 +; + +-- Jun 26, 2008 10:03:16 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2008-06-26 10:03:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53526 +; + diff --git a/migration/351a-352a/postgresql/213_FR2007264_MRP.sql b/migration/351a-352a/postgresql/213_FR2007264_MRP.sql new file mode 100644 index 0000000000..9aaa6f334a --- /dev/null +++ b/migration/351a-352a/postgresql/213_FR2007264_MRP.sql @@ -0,0 +1,35 @@ +-- Jun 30, 2008 7:42:57 PM CDT +-- Improve MRP +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,113,0,53014,53206,19,202,'AD_Org_ID',TO_TIMESTAMP('2008-06-30 19:42:51','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client','EE01',22,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','Y','N','N','Organization',10,TO_TIMESTAMP('2008-06-30 19:42:51','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jun 30, 2008 7:42:57 PM CDT +-- Improve MRP +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=53206 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) +; + +-- Jun 30, 2008 7:44:28 PM CDT +-- Improve MRP +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,Description,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1777,0,53014,53207,19,52002,'S_Resource_ID',TO_TIMESTAMP('2008-06-30 19:44:25','YYYY-MM-DD HH24:MI:SS'),0,'Resource','EE01',22,'Y','Y','Y','N','Resource',20,TO_TIMESTAMP('2008-06-30 19:44:25','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jun 30, 2008 7:44:28 PM CDT +-- Improve MRP +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=53207 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) +; + +-- Jun 30, 2008 7:46:01 PM CDT +-- Improve MRP +UPDATE AD_Process_Para SET AD_Val_Rule_ID=189,Updated=TO_TIMESTAMP('2008-06-30 19:46:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53133 +; + +-- Jun 30, 2008 7:46:15 PM CDT +-- Improve MRP +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,459,0,53014,53208,19,189,'M_Warehouse_ID',TO_TIMESTAMP('2008-06-30 19:46:13','YYYY-MM-DD HH24:MI:SS'),0,'Storage Warehouse and Service Point','EE01',22,'The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','Y','N','N','Warehouse',30,TO_TIMESTAMP('2008-06-30 19:46:13','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jun 30, 2008 7:46:15 PM CDT +-- Improve MRP +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=53208 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) +; + diff --git a/migration/351a-352a/postgresql/214_BF2008762.sql b/migration/351a-352a/postgresql/214_BF2008762.sql new file mode 100644 index 0000000000..0620beec8c --- /dev/null +++ b/migration/351a-352a/postgresql/214_BF2008762.sql @@ -0,0 +1,28 @@ +-- Mar 13, 2008 11:51:15 AM CET +UPDATE AD_Val_Rule SET Code='( +EXISTS ( + /* UOM is a default UOM and no product selected */ + SELECT * + FROM C_UOM uu + WHERE C_UOM.C_UOM_ID=uu.C_UOM_ID AND IsDefault=''Y'' AND @M_Product_ID@=0 +) +OR EXISTS ( + /* UOM is the products UOM */ + SELECT * + FROM M_Product p + WHERE C_UOM.C_UOM_ID=p.C_UOM_ID AND @M_Product_ID@=p.M_Product_ID +) +OR EXISTS ( + /* For the products UOM there is a conversion that is explicitly bound to the product */ + SELECT * + FROM M_Product p INNER JOIN C_UOM_Conversion c ON (p.C_UOM_ID=c.C_UOM_ID AND p.M_PRODUCT_ID=c.M_Product_ID) + WHERE C_UOM.C_UOM_ID=c.C_UOM_TO_ID AND @M_Product_ID@=p.M_Product_ID +) +OR EXISTS ( + /* For the products UOM there is a conversion that is not bound to any product explicitly */ + SELECT * + FROM M_Product p INNER JOIN C_UOM_Conversion c ON (p.C_UOM_ID=c.C_UOM_ID AND c.M_Product_ID IS NULL) + WHERE C_UOM.C_UOM_ID=c.C_UOM_TO_ID AND @M_Product_ID@=p.M_Product_ID +))',Updated=TO_TIMESTAMP('2008-03-13 11:51:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=210 +; + diff --git a/migration/351a-352a/postgresql/215_BF1991523_CopyBOM.sql b/migration/351a-352a/postgresql/215_BF1991523_CopyBOM.sql new file mode 100644 index 0000000000..247070a603 --- /dev/null +++ b/migration/351a-352a/postgresql/215_BF1991523_CopyBOM.sql @@ -0,0 +1,15 @@ +-- Jul 4, 2008 6:11:43 PM EST +-- Default comment for updating dictionary +UPDATE AD_Process SET Help='This process copies BOM Lines from the Selected BOM to the Current BOM. The BOM being copied to must have any existing BOM Lines', +Updated=TO_TIMESTAMP('2008-07-04 18:11:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=53004 +; + +-- Jul 5, 2008 4:51:47 PM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET IsCentrallyMaintained='N', Name='Copy BOM Lines From', Description='Copy BOM Lines from an exising BOM', Help='Copy BOM Lines from an exising BOM. The BOM being copied to, must not have any existing BOM Lines.',Updated=TO_TIMESTAMP('2008-07-05 16:51:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53480 +; + +-- Jul 5, 2008 4:51:47 PM EST +-- Default comment for updating dictionary +UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=53480 +; diff --git a/migration/351a-352a/postgresql/216_BF2011489_BOM_Window.sql b/migration/351a-352a/postgresql/216_BF2011489_BOM_Window.sql new file mode 100644 index 0000000000..92bf8ca56e --- /dev/null +++ b/migration/351a-352a/postgresql/216_BF2011489_BOM_Window.sql @@ -0,0 +1,90 @@ +-- Jul 6, 2008 10:30:49 AM EST +-- Default comment for updating dictionary +UPDATE AD_Column SET Callout='org.eevolution.model.CalloutBOM.getdefaults',Updated=TO_TIMESTAMP('2008-07-06 10:30:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53333 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=53474 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=53475 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=53464 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=53476 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=53465 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=53466 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=53467 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=53468 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=53469 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=53470 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=53471 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=53472 +; + +-- Jul 6, 2008 10:44:22 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=53473 +; + +-- Jul 6, 2008 10:44:59 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-07-06 10:44:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53476 +; + +-- Jul 6, 2008 10:46:09 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-07-06 10:46:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53474 +; + +-- Jul 6, 2008 10:46:15 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-07-06 10:46:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53476 +; + +-- Jul 6, 2008 10:50:46 AM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET DisplayLength=22,Updated=TO_TIMESTAMP('2008-07-06 10:50:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53464 +; + diff --git a/migration/351a-352a/postgresql/217_BF2012439.sql b/migration/351a-352a/postgresql/217_BF2012439.sql new file mode 100644 index 0000000000..70971f5f4f --- /dev/null +++ b/migration/351a-352a/postgresql/217_BF2012439.sql @@ -0,0 +1,10 @@ +-- 07.07.2008 15:22:56 EEST +-- +UPDATE AD_Column SET ReadOnlyLogic='@M_Product_ID@!0',Updated=TO_TIMESTAMP('2008-07-07 15:22:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=6610 +; + +-- 07.07.2008 15:23:12 EEST +-- +UPDATE AD_Column SET ReadOnlyLogic='@M_Product_Category_ID@!0',Updated=TO_TIMESTAMP('2008-07-07 15:23:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=6611 +; + diff --git a/migration/351a-352a/postgresql/218_BF2012468.sql b/migration/351a-352a/postgresql/218_BF2012468.sql new file mode 100644 index 0000000000..3ccb3e3181 --- /dev/null +++ b/migration/351a-352a/postgresql/218_BF2012468.sql @@ -0,0 +1,55 @@ +-- 07.07.2008 15:40:27 EEST +-- +UPDATE AD_Tab SET DisplayLogic='@DiscountType@=B', ReadOnlyLogic=NULL,Updated=TO_TIMESTAMP('2008-07-07 15:40:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=406 +; + +-- 07.07.2008 15:42:10 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-07-07 15:42:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5273 +; + +-- 07.07.2008 15:42:12 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-07-07 15:42:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5274 +; + +-- 07.07.2008 15:42:15 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-07-07 15:42:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5276 +; + +-- 07.07.2008 15:42:18 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-07-07 15:42:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5275 +; + +-- 07.07.2008 15:42:21 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-07-07 15:42:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5277 +; + +-- 07.07.2008 15:42:24 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-07-07 15:42:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5280 +; + +-- 07.07.2008 15:42:27 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-07-07 15:42:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5281 +; + +-- 07.07.2008 15:42:31 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-07-07 15:42:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5278 +; + +-- 07.07.2008 15:42:34 EEST +-- +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-07-07 15:42:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=10479 +; + +-- 07.07.2008 15:42:41 EEST +-- +UPDATE AD_Field SET DisplayLogic='@IsBPartnerFlatDiscount@=N',Updated=TO_TIMESTAMP('2008-07-07 15:42:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5279 +; + diff --git a/migration/351a-352a/postgresql/219_FR2012882_PlanningHorizon.sql b/migration/351a-352a/postgresql/219_FR2012882_PlanningHorizon.sql new file mode 100644 index 0000000000..6c4078a225 --- /dev/null +++ b/migration/351a-352a/postgresql/219_FR2012882_PlanningHorizon.sql @@ -0,0 +1,160 @@ +-- Jul 7, 2008 12:21:56 PM CDT +-- Improve MRP +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53656,0,'PlanningHorizon',TO_TIMESTAMP('2008-07-07 12:21:51','YYYY-MM-DD HH24:MI:SS'),0,'The planning horizon is the amount of time an organisation will look into the future when preparing a strategic plan.','EE01','The planning horizon is the amount of time an organisation will look into the future when preparing a strategic plan.','Y','Planning Horizon','Planning Horizon',TO_TIMESTAMP('2008-07-07 12:21:51','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 7, 2008 12:21:56 PM CDT +-- Improve MRP +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53656 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 7, 2008 12:23:05 PM CDT +-- Improve MRP +UPDATE AD_Element SET Description='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.', Help='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.',Updated=TO_TIMESTAMP('2008-07-07 12:23:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53656 +; + +-- Jul 7, 2008 12:23:05 PM CDT +-- Improve MRP +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53656 +; + +-- Jul 7, 2008 12:23:05 PM CDT +-- Improve MRP +UPDATE AD_Column SET ColumnName='PlanningHorizon', Name='Planning Horizon', Description='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.', Help='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.' WHERE AD_Element_ID=53656 +; + +-- Jul 7, 2008 12:23:06 PM CDT +-- Improve MRP +UPDATE AD_Field SET Name='Planning Horizon', Description='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.', Help='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53656) AND IsCentrallyMaintained='Y' +; + +-- Jul 7, 2008 12:23:06 PM CDT +-- Improve MRP +UPDATE AD_Process_Para SET ColumnName='PlanningHorizon', Name='Planning Horizon', Description='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.', Help='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.', AD_Element_ID=53656 WHERE UPPER(ColumnName)='PLANNINGHORIZON' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Jul 7, 2008 12:23:06 PM CDT +-- Improve MRP +UPDATE AD_Process_Para SET ColumnName='PlanningHorizon', Name='Planning Horizon', Description='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.', Help='The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.' WHERE AD_Element_ID=53656 AND IsCentrallyMaintained='Y' +; + +-- Jul 7, 2008 12:23:06 PM CDT +-- Improve MRP +UPDATE AD_PrintFormatItem SET PrintName='Planning Horizon', Name='Planning Horizon' 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=53656) +; + +-- Jul 7, 2008 12:23:06 PM CDT +-- Improve MRP +UPDATE AD_PrintFormatItem SET PrintName='Planning Horizon', Name='Planning Horizon' 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=53656) +; + +-- Jul 7, 2008 12:23:26 PM CDT +-- Improve MRP +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56150,53656,0,11,487,'PlanningHorizon',TO_TIMESTAMP('2008-07-07 12:23:24','YYYY-MM-DD HH24:MI:SS'),0,'0','The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.','EE01',22,'The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.','Y','N','N','N','N','N','N','N','N','N','Y','Planning Horizon',0,TO_TIMESTAMP('2008-07-07 12:23:24','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 7, 2008 12:23:26 PM CDT +-- Improve MRP +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56150 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 7, 2008 12:23:31 PM CDT +-- Improve MRP +ALTER TABLE S_Resource ADD COLUMN PlanningHorizon NUMERIC(10) DEFAULT '0' +; + +-- Jul 7, 2008 12:24:42 PM CDT +-- Improve MRP +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56150,56280,0,53015,TO_TIMESTAMP('2008-07-07 12:24:21','YYYY-MM-DD HH24:MI:SS'),0,'The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.',22,'EE01','The planning horizon is the amount of time (Days) an organisation will look into the future when preparing a strategic plan.','Y','Y','Y','N','N','N','N','N','Planning Horizon',TO_TIMESTAMP('2008-07-07 12:24:21','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 7, 2008 12:24:42 PM CDT +-- Improve MRP +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56280 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 7, 2008 12:24:58 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=53293 +; + +-- Jul 7, 2008 12:24:58 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=53294 +; + +-- Jul 7, 2008 12:24:58 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=56280 +; + +-- Jul 7, 2008 12:24:58 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=53301 +; + +-- Jul 7, 2008 12:24:58 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=53302 +; + +-- Jul 7, 2008 12:24:58 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=53303 +; + +-- Jul 7, 2008 12:24:58 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=53304 +; + +-- Jul 7, 2008 12:26:04 PM CDT +-- Improve MRP +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-07-07 12:26:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53301 +; + +-- Jul 7, 2008 12:26:24 PM CDT +-- Improve MRP +UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2008-07-07 12:26:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=53301 +; + +-- Jul 7, 2008 12:31:27 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=53296 +; + +-- Jul 7, 2008 12:31:27 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=53293 +; + +-- Jul 7, 2008 12:31:27 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=53292 +; + +-- Jul 7, 2008 12:31:27 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=53291 +; + +-- Jul 7, 2008 12:31:27 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=53297 +; + +-- Jul 7, 2008 12:31:27 PM CDT +-- Improve MRP +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=53294 +; + +-- Jul 7, 2008 12:35:03 PM CDT +-- Improve MRP +UPDATE AD_Field SET DisplayLogic='@IsManufacturingResource@=''Y'' & @ManufacturingResourceType@=''PT''',Updated=TO_TIMESTAMP('2008-07-07 12:35:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56280 +; + +-- Jul 7, 2008 12:35:50 PM CDT +-- Improve MRP +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-07-07 12:35:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56280 +; + diff --git a/migration/351a-352a/postgresql/222_FR2003044_AutocompleteForTextfields.sql b/migration/351a-352a/postgresql/222_FR2003044_AutocompleteForTextfields.sql new file mode 100755 index 0000000000..73a6e53bb2 --- /dev/null +++ b/migration/351a-352a/postgresql/222_FR2003044_AutocompleteForTextfields.sql @@ -0,0 +1,241 @@ +-- Jun 26, 2008 12:37:51 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +INSERT INTO AD_Element (AD_Org_ID,UpdatedBy,Updated,PrintName,Name,IsActive,Help,EntityType,Description,CreatedBy,Created,ColumnName,AD_Element_ID,AD_Client_ID) VALUES (0,100,TO_TIMESTAMP('2008-06-26 12:37:50','YYYY-MM-DD HH24:MI:SS'),'Autocomplete','Autocomplete','Y','The autocompletion uses all existing values (from the same client and organization) of the field.','D','Automatic completion for textfields',100,TO_TIMESTAMP('2008-06-26 12:37:50','YYYY-MM-DD HH24:MI:SS'),'IsAutocomplete',53655,0) +; + +-- Jun 26, 2008 12:37:52 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, PrintName,PO_PrintName,PO_Name,PO_Help,PO_Description,Name,Help,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.PrintName,t.PO_PrintName,t.PO_Name,t.PO_Help,t.PO_Description,t.Name,t.Help,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53655 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jun 26, 2008 12:37:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Element SET EntityType='D',Updated=TO_TIMESTAMP('2008-06-26 12:37:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53655 +; + +-- Jun 26, 2008 12:37:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Column SET ColumnName='IsAutocomplete', Name='Autocomplete', Description='Automatic completion for textfields', Help='The autocompletion uses all existing values (from the same client and organization) of the field.' WHERE AD_Element_ID=53655 +; + +-- Jun 26, 2008 12:37:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET Name='Autocomplete', Description='Automatic completion for textfields', Help='The autocompletion uses all existing values (from the same client and organization) of the field.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53655) AND IsCentrallyMaintained='Y' +; + +-- Jun 26, 2008 12:37:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Process_Para SET ColumnName='IsAutocomplete', Name='Autocomplete', Description='Automatic completion for textfields', Help='The autocompletion uses all existing values (from the same client and organization) of the field.', AD_Element_ID=53655 WHERE UPPER(ColumnName)='ISAUTOCOMPLETE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Jun 26, 2008 12:38:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Process_Para SET ColumnName='IsAutocomplete', Name='Autocomplete', Description='Automatic completion for textfields', Help='The autocompletion uses all existing values (from the same client and organization) of the field.' WHERE AD_Element_ID=53655 AND IsCentrallyMaintained='Y' +; + +-- Jun 26, 2008 12:38:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_PrintFormatItem SET PrintName='Autocomplete', Name='Autocomplete' 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=53655) +; + +-- Jun 26, 2008 12:38:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_PrintFormatItem SET PrintName='Autocomplete', Name='Autocomplete' 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=53655) +; + +-- Jun 26, 2008 12:39:11 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +INSERT INTO AD_Column (AD_Org_ID,Version,UpdatedBy,Updated,SeqNo,Name,IsUpdateable,IsTranslated,IsSyncDatabase,IsSelectionColumn,IsParent,IsMandatory,IsKey,IsIdentifier,IsEncrypted,IsAlwaysUpdateable,IsActive,Help,FieldLength,EntityType,Description,DefaultValue,CreatedBy,Created,ColumnName,AD_Table_ID,AD_Reference_ID,AD_Element_ID,AD_Column_ID,AD_Client_ID) VALUES (0,0,100,TO_TIMESTAMP('2008-06-26 12:39:10','YYYY-MM-DD HH24:MI:SS'),0,'Autocomplete','Y','N','N','N','N','Y','N','N','N','N','Y','The autocompletion uses all existing values (from the same client and organization) of the field.',1,'D','Automatic completion for textfields','N',100,TO_TIMESTAMP('2008-06-26 12:39:10','YYYY-MM-DD HH24:MI:SS'),'IsAutocomplete',101,20,53655,56149,0) +; + +-- Jun 26, 2008 12:39:11 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56149 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jun 26, 2008 12:39:16 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2008-06-26 12:39:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56149 +; + +-- Jun 26, 2008 12:39:22 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +ALTER TABLE AD_Column ADD COLUMN IsAutocomplete CHAR(1) DEFAULT 'N' CHECK (IsAutocomplete IN ('Y','N')) NOT NULL +; + +-- Jun 26, 2008 12:40:30 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +INSERT INTO AD_Field (AD_Column_ID,AD_Org_ID,UpdatedBy,Updated,Name,IsSameLine,IsReadOnly,IsHeading,IsFieldOnly,IsEncrypted,IsDisplayed,IsCentrallyMaintained,IsActive,Help,EntityType,DisplayLength,Description,CreatedBy,Created,AD_Tab_ID,AD_Field_ID,AD_Client_ID) VALUES (56149,0,100,TO_TIMESTAMP('2008-06-26 12:40:30','YYYY-MM-DD HH24:MI:SS'),'Autocomplete','N','N','N','N','N','Y','Y','Y','The autocompletion uses all existing values (from the same client and organization) of the field.','D',1,'Automatic completion for textfields',100,TO_TIMESTAMP('2008-06-26 12:40:30','YYYY-MM-DD HH24:MI:SS'),101,56279,0) +; + +-- Jun 26, 2008 12:40:31 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Name,Help,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Name,t.Help,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56279 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=56279 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=2526 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=171 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=54403 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=2574 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=2573 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=160 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=161 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=162 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=166 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=2370 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=169 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=10128 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=4941 +; + +-- Jun 26, 2008 12:52:59 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=50188 +; + +-- Jun 26, 2008 12:53:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=168 +; + +-- Jun 26, 2008 12:53:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=159 +; + +-- Jun 26, 2008 12:53:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=825 +; + +-- Jun 26, 2008 12:53:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=4940 +; + +-- Jun 26, 2008 12:53:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=167 +; + +-- Jun 26, 2008 12:53:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=5121 +; + +-- Jun 26, 2008 12:53:00 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=5122 +; + +-- Jun 26, 2008 12:53:41 PM CEST +-- FR[ 2003044 ] Autocomplete for Textfields - kthiemann@adempiere.org +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@AD_Reference_ID@=10',Updated=TO_TIMESTAMP('2008-06-26 12:53:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56279 +; + +-- Jul 29, 2008 12:51:57 PM COT +UPDATE AD_Field SET SeqNo=380,Updated=TO_TIMESTAMP('2008-07-29 12:51:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5122 +; + +DROP VIEW ad_field_v; + +CREATE OR REPLACE VIEW ad_field_v AS + SELECT t.ad_window_id, f.ad_tab_id, f.ad_field_id, tbl.ad_table_id, f.ad_column_id, + f.name, f.description, f.help, f.isdisplayed, f.displaylogic, f.displaylength, f.seqno, + f.sortno, f.issameline, f.isheading, f.isfieldonly, f.isreadonly, f.isencrypted AS isencryptedfield, + f.obscuretype, c.columnname, c.columnsql, c.fieldlength, c.vformat, + COALESCE(f.defaultvalue, c.defaultvalue) AS defaultvalue, c.iskey, c.isparent, + COALESCE(f.ismandatory, c.ismandatory) AS ismandatory, c.isidentifier, c.istranslated, + COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id, c.callout, + COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id, + COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) AS ad_val_rule_id, c.ad_process_id, + c.isalwaysupdateable, c.readonlylogic, c.mandatorylogic, c.isupdateable, + c.isencrypted AS isencryptedcolumn, c.isselectioncolumn, tbl.tablename, c.valuemin, c.valuemax, + fg.name AS fieldgroup, vr.code AS validationcode, f.included_tab_id, fg.fieldgrouptype, fg.iscollapsedbydefault, + COALESCE(f.infofactoryclass, c.infofactoryclass) AS infofactoryclass, c.isautocomplete + FROM ad_field f + JOIN ad_tab t ON f.ad_tab_id = t.ad_tab_id + LEFT JOIN ad_fieldgroup fg ON f.ad_fieldgroup_id = fg.ad_fieldgroup_id + LEFT JOIN ad_column c ON f.ad_column_id = c.ad_column_id + JOIN ad_table tbl ON c.ad_table_id = tbl.ad_table_id + JOIN ad_reference r ON c.ad_reference_id = r.ad_reference_id + LEFT JOIN ad_val_rule vr ON vr.ad_val_rule_id = COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) + WHERE f.isactive = 'Y'::bpchar AND c.isactive = 'Y'::bpchar; + + +DROP VIEW ad_field_vt; + +CREATE OR REPLACE VIEW ad_field_vt AS + SELECT trl.ad_language, t.ad_window_id, f.ad_tab_id, f.ad_field_id, tbl.ad_table_id, f.ad_column_id, trl.name, trl.description, + trl.help, f.isdisplayed, f.displaylogic, f.displaylength, f.seqno, f.sortno, f.issameline, f.isheading, f.isfieldonly, f.isreadonly, + f.isencrypted AS isencryptedfield, f.obscuretype, c.columnname, c.columnsql, c.fieldlength, c.vformat, COALESCE(f.defaultvalue, c.defaultvalue) AS defaultvalue, + c.iskey, c.isparent, COALESCE(f.ismandatory, c.ismandatory) AS ismandatory, c.isidentifier, c.istranslated, + COALESCE(f.ad_reference_value_id, c.ad_reference_value_id) AS ad_reference_value_id, c.callout, COALESCE(f.ad_reference_id, c.ad_reference_id) AS ad_reference_id, + COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) AS ad_val_rule_id, c.ad_process_id, c.isalwaysupdateable, c.readonlylogic, c.mandatorylogic, c.isupdateable, + c.isencrypted AS isencryptedcolumn, c.isselectioncolumn, tbl.tablename, c.valuemin, c.valuemax, fgt.name AS fieldgroup, vr.code AS validationcode, + f.included_tab_id, fg.fieldgrouptype, fg.iscollapsedbydefault, COALESCE(f.infofactoryclass, c.infofactoryclass) AS infofactoryclass, c.isautocomplete + FROM ad_field f + JOIN ad_field_trl trl ON f.ad_field_id = trl.ad_field_id + JOIN ad_tab t ON f.ad_tab_id = t.ad_tab_id + LEFT JOIN ad_fieldgroup fg ON f.ad_fieldgroup_id = fg.ad_fieldgroup_id + LEFT JOIN ad_fieldgroup_trl fgt ON f.ad_fieldgroup_id = fgt.ad_fieldgroup_id AND trl.ad_language::text = fgt.ad_language::text + LEFT JOIN ad_column c ON f.ad_column_id = c.ad_column_id + JOIN ad_table tbl ON c.ad_table_id = tbl.ad_table_id + JOIN ad_reference r ON c.ad_reference_id = r.ad_reference_id + LEFT JOIN ad_val_rule vr ON vr.ad_val_rule_id = COALESCE(f.ad_val_rule_id, c.ad_val_rule_id) + WHERE f.isactive = 'Y'::bpchar AND c.isactive = 'Y'::bpchar; diff --git a/migration/351a-352a/postgresql/226_FinancialReportSourceCombination.sql b/migration/351a-352a/postgresql/226_FinancialReportSourceCombination.sql new file mode 100644 index 0000000000..59ae7732c2 --- /dev/null +++ b/migration/351a-352a/postgresql/226_FinancialReportSourceCombination.sql @@ -0,0 +1,1760 @@ +-- Jul 9, 2008 3:33:39 PM COT +-- Jul 9, 2008 3:33:39 PM COT +-- Financial Report Source with Type Combination + +-- recreate index to include the two new columns + +drop index FACT_ACCT_BALANCE_AKEY; + +CREATE UNIQUE INDEX FACT_ACCT_BALANCE_AKEY ON FACT_ACCT_BALANCE +(AD_CLIENT_ID, AD_ORG_ID, C_ACCTSCHEMA_ID, DATEACCT, ACCOUNT_ID, +POSTINGTYPE, M_PRODUCT_ID, C_BPARTNER_ID, C_PROJECT_ID, AD_ORGTRX_ID, +C_SALESREGION_ID, C_ACTIVITY_ID, C_CAMPAIGN_ID, C_LOCTO_ID, C_LOCFROM_ID, +USER1_ID, USER2_ID, USERELEMENT1_ID, USERELEMENT2_ID, GL_BUDGET_ID); + + +/* + +Alternatively - in case you replaced fact_acct_balance with a view - this is the view replacement: + +CREATE OR REPLACE VIEW fact_acct_balance +AS + SELECT ad_client_id, ad_org_id, c_acctschema_id, + TRUNC (dateacct) as dateacct, account_id, postingtype, + m_product_id, c_bpartner_id, c_project_id, ad_orgtrx_id, + c_salesregion_id, c_activity_id, c_campaign_id, c_locto_id, + c_locfrom_id, user1_id, user2_id, gl_budget_id, + COALESCE (SUM (amtacctdr), 0) as amtacctdr, + COALESCE (SUM (amtacctcr), 0) as amtacctcr, + COALESCE (SUM (qty), 0) as qty, MAX (createdby) as createdby, + MAX (created) as created, MAX (updatedby) as updatedby, + MAX (updated) as updated, MAX (isactive) as isactive, + MAX (c_subacct_id) as c_subacct_id, userelement1_id, + userelement2_id, MAX (c_projectphase_id) as c_projectphase_id, + MAX (c_projecttask_id) as c_projecttask_id + FROM fact_acct a + GROUP BY ad_client_id, ad_org_id, c_acctschema_id, + TRUNC (dateacct), account_id, postingtype, + m_product_id, c_bpartner_id, c_project_id, ad_orgtrx_id, + c_salesregion_id, c_activity_id, c_campaign_id, c_locto_id, + c_locfrom_id, user1_id, user2_id, + userelement1_id, userelement2_id, + gl_budget_id +/ + +*/ + +-- Jul 9, 2008 3:33:39 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Reference (UpdatedBy,ValidationType,AD_Org_ID,Updated,VFormat,Help,Created,AD_Client_ID,AD_Reference_ID,EntityType,Name,CreatedBy,IsActive,Description,IsOrderByValue) VALUES (100,'L',0,TO_TIMESTAMP('2008-07-09 15:33:11','YYYY-MM-DD HH24:MI:SS'),'AA','Hardcoded Element Types',TO_TIMESTAMP('2008-07-09 15:33:11','YYYY-MM-DD HH24:MI:SS'),0,53280,'D','PA_ReportSource ElementType',100,'Y','Element Types for Accounting Elements - equal to C_AcctSchema ElementType plus Combination','N') +; + +-- Jul 9, 2008 3:33:39 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53280 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID) +; + +SET CLIENT_ENCODING TO 'LATIN1'; + +-- Jul 9, 2008 3:34:47 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Reference_Trl SET Description='Tipos de elementos para elementos contables - igual a C_AcctSchema ElementType mas Combinación',Help='Tipos de elementos definidos en forma fija',Updated=TO_TIMESTAMP('2008-07-09 15:34:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53280 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:35:28 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:35:10','YYYY-MM-DD HH24:MI:SS'),'AC',TO_TIMESTAMP('2008-07-09 15:35:10','YYYY-MM-DD HH24:MI:SS'),0,53280,53418,'D','Account',100,'Y','Natural Account') +; + +-- Jul 9, 2008 3:35:28 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53418 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:36:12 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:35:58','YYYY-MM-DD HH24:MI:SS'),'AY',TO_TIMESTAMP('2008-07-09 15:35:58','YYYY-MM-DD HH24:MI:SS'),0,53280,53419,'D','Activity',100,'Y','Business Activity') +; + +-- Jul 9, 2008 3:36:12 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53419 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:36:42 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:36:38','YYYY-MM-DD HH24:MI:SS'),'BP',TO_TIMESTAMP('2008-07-09 15:36:38','YYYY-MM-DD HH24:MI:SS'),0,53280,53420,'D','BPartner',100,'Y','Business Partner') +; + +-- Jul 9, 2008 3:36:42 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53420 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:37:02 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:36:55','YYYY-MM-DD HH24:MI:SS'),'LF',TO_TIMESTAMP('2008-07-09 15:36:55','YYYY-MM-DD HH24:MI:SS'),0,53280,53421,'D','Location From',100,'Y','Location From') +; + +-- Jul 9, 2008 3:37:03 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53421 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:37:14 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:37:13','YYYY-MM-DD HH24:MI:SS'),'LT',TO_TIMESTAMP('2008-07-09 15:37:13','YYYY-MM-DD HH24:MI:SS'),0,53280,53422,'D','Location To',100,'Y','Location To') +; + +-- Jul 9, 2008 3:37:14 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53422 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:37:32 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:37:31','YYYY-MM-DD HH24:MI:SS'),'MC',TO_TIMESTAMP('2008-07-09 15:37:31','YYYY-MM-DD HH24:MI:SS'),0,53280,53423,'D','Campaign',100,'Y','Marketing Campaign') +; + +-- Jul 9, 2008 3:37:32 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53423 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:37:46 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:37:45','YYYY-MM-DD HH24:MI:SS'),'OO',TO_TIMESTAMP('2008-07-09 15:37:45','YYYY-MM-DD HH24:MI:SS'),0,53280,53424,'D','Organization',100,'Y','Owning Organization') +; + +-- Jul 9, 2008 3:37:46 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53424 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:38:00 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:37:59','YYYY-MM-DD HH24:MI:SS'),'OT',TO_TIMESTAMP('2008-07-09 15:37:59','YYYY-MM-DD HH24:MI:SS'),0,53280,53425,'D','Org Trx',100,'Y','Transaction Organization') +; + +-- Jul 9, 2008 3:38:00 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53425 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:38:16 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:38:11','YYYY-MM-DD HH24:MI:SS'),'PJ',TO_TIMESTAMP('2008-07-09 15:38:11','YYYY-MM-DD HH24:MI:SS'),0,53280,53426,'D','Project',100,'Y','Project') +; + +-- Jul 9, 2008 3:38:16 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53426 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:38:26 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:38:25','YYYY-MM-DD HH24:MI:SS'),'PR',TO_TIMESTAMP('2008-07-09 15:38:25','YYYY-MM-DD HH24:MI:SS'),0,53280,53427,'D','Product',100,'Y','Product') +; + +-- Jul 9, 2008 3:38:26 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53427 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:38:37 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:38:37','YYYY-MM-DD HH24:MI:SS'),'SA',TO_TIMESTAMP('2008-07-09 15:38:37','YYYY-MM-DD HH24:MI:SS'),0,53280,53428,'D','Sub Account',100,'Y','Sub Account for Element Value') +; + +-- Jul 9, 2008 3:38:37 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53428 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:38:50 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:38:49','YYYY-MM-DD HH24:MI:SS'),'SR',TO_TIMESTAMP('2008-07-09 15:38:49','YYYY-MM-DD HH24:MI:SS'),0,53280,53429,'D','Sales Region',100,'Y','Sales Region') +; + +-- Jul 9, 2008 3:38:50 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53429 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:39:01 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:39:01','YYYY-MM-DD HH24:MI:SS'),'U1',TO_TIMESTAMP('2008-07-09 15:39:01','YYYY-MM-DD HH24:MI:SS'),0,53280,53430,'D','User List 1',100,'Y','User 1') +; + +-- Jul 9, 2008 3:39:01 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53430 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:39:16 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:39:15','YYYY-MM-DD HH24:MI:SS'),'U2',TO_TIMESTAMP('2008-07-09 15:39:15','YYYY-MM-DD HH24:MI:SS'),0,53280,53431,'D','User List 2',100,'Y','User 2') +; + +-- Jul 9, 2008 3:39:16 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53431 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:39:28 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:39:27','YYYY-MM-DD HH24:MI:SS'),'X1',TO_TIMESTAMP('2008-07-09 15:39:27','YYYY-MM-DD HH24:MI:SS'),0,53280,53432,'D','User Element 1',100,'Y') +; + +-- Jul 9, 2008 3:39:28 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53432 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:39:40 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:39:39','YYYY-MM-DD HH24:MI:SS'),'X2',TO_TIMESTAMP('2008-07-09 15:39:39','YYYY-MM-DD HH24:MI:SS'),0,53280,53433,'D','User Element 2',100,'Y') +; + +-- Jul 9, 2008 3:39:40 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53433 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:40:02 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List (UpdatedBy,AD_Org_ID,Updated,Value,Created,AD_Client_ID,AD_Reference_ID,AD_Ref_List_ID,EntityType,Name,CreatedBy,IsActive,Description) VALUES (100,0,TO_TIMESTAMP('2008-07-09 15:39:57','YYYY-MM-DD HH24:MI:SS'),'CO',TO_TIMESTAMP('2008-07-09 15:39:57','YYYY-MM-DD HH24:MI:SS'),0,53280,53434,'D','Combination',100,'Y','Combination of accounting dimensions') +; + +-- Jul 9, 2008 3:40:02 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53434 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 9, 2008 3:40:17 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Cuenta',Description='Cuenta Natural',Updated=TO_TIMESTAMP('2008-07-09 15:40:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53418 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:40:32 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Actividad',Description=NULL,Updated=TO_TIMESTAMP('2008-07-09 15:40:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53419 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:40:49 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Socio del Negocio',Description='Socio del Negocio',Updated=TO_TIMESTAMP('2008-07-09 15:40:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53420 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:41:05 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Localización Desde',Description='Localización Desde',Updated=TO_TIMESTAMP('2008-07-09 15:41:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53421 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:41:18 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Localización A',Description='Localización A',Updated=TO_TIMESTAMP('2008-07-09 15:41:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53422 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:41:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Campaña',Description='Campaña de Mercadotecnia',Updated=TO_TIMESTAMP('2008-07-09 15:41:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53423 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:41:50 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Organización',Description='Organización Poseedora',Updated=TO_TIMESTAMP('2008-07-09 15:41:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53424 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:42:05 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Trans Org',Description='Transacción de la Organización',Updated=TO_TIMESTAMP('2008-07-09 15:42:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53425 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:42:19 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Proyecto',Description='Proyecto',Updated=TO_TIMESTAMP('2008-07-09 15:42:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53426 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:42:31 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Producto',Description='Producto',Updated=TO_TIMESTAMP('2008-07-09 15:42:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53427 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:42:47 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Sub Cuenta',Description='Sub Cuenta para Valor del Elemento',Updated=TO_TIMESTAMP('2008-07-09 15:42:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53428 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:43:02 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Región de Ventas',Description='Región de Ventas',Updated=TO_TIMESTAMP('2008-07-09 15:43:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53429 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:43:24 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Lista Usuario 1',Description='Usuario 1',Updated=TO_TIMESTAMP('2008-07-09 15:43:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53430 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:43:39 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Lista Usuario 2',Description='Usuario 2',Updated=TO_TIMESTAMP('2008-07-09 15:43:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53431 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:43:52 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Elemento de Usuario 1',Updated=TO_TIMESTAMP('2008-07-09 15:43:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53432 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:44:01 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Elemento de Usuario 2',Updated=TO_TIMESTAMP('2008-07-09 15:44:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53433 AND AD_Language LIKE 'es_%' +; + +-- Jul 9, 2008 3:44:20 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Name='Combinación',Description='Combinacion de dimensiones contables',Updated=TO_TIMESTAMP('2008-07-09 15:44:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53434 AND AD_Language LIKE 'es_%' +; + +SET CLIENT_ENCODING TO 'UTF8'; + +-- Jul 9, 2008 3:45:38 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Column SET AD_Reference_Value_ID=53280,Updated=TO_TIMESTAMP('2008-07-09 15:45:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=6085 +; + +-- Jul 9, 2008 3:46:39 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Column SET AD_Reference_Value_ID=53280,Updated=TO_TIMESTAMP('2008-07-09 15:46:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=6024 +; + +-- Jul 9, 2008 3:48:55 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=OO | @ElementType@=OT | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:48:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4815 +; + +-- Jul 9, 2008 3:48:57 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=AC | @ElementType@=U1 | @ElementType@=U2 | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:48:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4805 +; + +-- Jul 9, 2008 3:48:59 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=BP | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:48:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4816 +; + +-- Jul 9, 2008 3:49:01 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=PR | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:49:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4807 +; + +-- Jul 9, 2008 3:49:02 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=LF | @ElementType@=LT | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:49:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4808 +; + +-- Jul 9, 2008 3:49:04 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=PJ | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:49:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4806 +; + +-- Jul 9, 2008 3:49:05 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=SR | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:49:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4809 +; + +-- Jul 9, 2008 3:49:06 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=AY | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:49:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4810 +; + +-- Jul 9, 2008 3:49:09 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=MC | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:49:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4817 +; + +-- Jul 9, 2008 3:49:44 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=OO | @ElementType@=OT | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:49:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4764 +; + +-- Jul 9, 2008 3:49:45 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=AC | @ElementType@=U1 | @ElementType@=U2 | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:49:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4765 +; + +-- Jul 9, 2008 3:49:47 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=PR | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:49:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4766 +; + +-- Jul 9, 2008 3:49:49 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=MC | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:49:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4777 +; + +-- Jul 9, 2008 3:49:50 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=BP | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:49:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4776 +; + +-- Jul 9, 2008 3:49:51 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=PJ | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:49:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4775 +; + +-- Jul 9, 2008 3:49:53 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=LF | @ElementType@=LT | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:49:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4767 +; + +-- Jul 9, 2008 3:49:54 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=SR | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:49:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4768 +; + +-- Jul 9, 2008 3:50:03 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic='@ElementType@=AY | @ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-09 15:50:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4769 +; + +-- Jul 9, 2008 3:50:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-07-09 15:50:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4756 +; + +-- Jul 9, 2008 3:57:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Val_Rule SET Code='C_ElementValue.C_Element_ID IN +(SELECT C_Element_ID FROM C_AcctSchema_Element WHERE C_AcctSchema_ID=@$C_AcctSchema_ID@ AND (ElementType=''@ElementType@'' OR (''@ElementType@''=''CO'' AND ElementType=''AC'')))',Updated=TO_TIMESTAMP('2008-07-09 15:57:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=258 +; + +-- Jul 9, 2008 5:40:22 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,Help,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',10,100,'UserElement1_ID',0,'N',0,TO_TIMESTAMP('2008-07-09 17:40:17','YYYY-MM-DD HH24:MI:SS'),'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested)','N',TO_TIMESTAMP('2008-07-09 17:40:17','YYYY-MM-DD HH24:MI:SS'),0,56151,13,'D','User Element 1','N',100,'N','N','Y',2877,'User defined accounting Element','N','N') +; + +-- Jul 9, 2008 5:40:22 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56151 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 9, 2008 5:40:28 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD COLUMN UserElement1_ID NUMERIC(10) +; + +-- Jul 9, 2008 5:41:13 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,Help,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',10,100,'UserElement2_ID',0,'N',0,TO_TIMESTAMP('2008-07-09 17:41:12','YYYY-MM-DD HH24:MI:SS'),'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested) ','N',TO_TIMESTAMP('2008-07-09 17:41:12','YYYY-MM-DD HH24:MI:SS'),0,56152,13,'D','User Element 2','N',100,'N','N','Y',2878,'User defined accounting Element','N','N') +; + +-- Jul 9, 2008 5:41:13 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56152 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 9, 2008 5:41:16 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD COLUMN UserElement2_ID NUMERIC(10) +; + +-- Jul 9, 2008 5:42:04 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,Help,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',10,100,'UserElement1_ID',0,'N',0,TO_TIMESTAMP('2008-07-09 17:42:00','YYYY-MM-DD HH24:MI:SS'),'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested)','N',TO_TIMESTAMP('2008-07-09 17:42:00','YYYY-MM-DD HH24:MI:SS'),0,56153,13,'D','User Element 1','N',100,'N','N','Y',2877,'User defined accounting Element','N','N') +; + +-- Jul 9, 2008 5:42:04 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56153 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 9, 2008 5:42:07 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD COLUMN UserElement1_ID NUMERIC(10) +; + +-- Jul 9, 2008 5:42:48 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,Help,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',10,100,'UserElement2_ID',0,'N',0,TO_TIMESTAMP('2008-07-09 17:42:43','YYYY-MM-DD HH24:MI:SS'),'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested) ','N',TO_TIMESTAMP('2008-07-09 17:42:43','YYYY-MM-DD HH24:MI:SS'),0,56154,13,'D','User Element 2','N',100,'N','N','Y',2878,'User defined accounting Element','N','N') +; + +-- Jul 9, 2008 5:42:48 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56154 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 9, 2008 5:42:49 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD COLUMN UserElement2_ID NUMERIC(10) +; + +-- Jul 9, 2008 5:48:36 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,SeqNo,Updated,DisplayLength,Help,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,DisplayLogic,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,310,TO_TIMESTAMP('2008-07-09 17:48:33','YYYY-MM-DD HH24:MI:SS'),14,'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested)',TO_TIMESTAMP('2008-07-09 17:48:33','YYYY-MM-DD HH24:MI:SS'),'Y',0,56151,'N','D','N','User Element 1','N','@ElementType@=X1 | @ElementType@=CO & @$Element_X1@=Y',100,'Y','Y',56281,'User defined accounting Element','N') +; + +-- Jul 9, 2008 5:48:37 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56281 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 9, 2008 5:48:58 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,SeqNo,Updated,DisplayLength,Help,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,DisplayLogic,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,320,TO_TIMESTAMP('2008-07-09 17:48:58','YYYY-MM-DD HH24:MI:SS'),14,'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested) ',TO_TIMESTAMP('2008-07-09 17:48:58','YYYY-MM-DD HH24:MI:SS'),'Y',0,56152,'N','D','N','User Element 2','N','@ElementType@=X2 | @ElementType@=CO & @$Element_X2@=Y',100,'Y','Y',56282,'User defined accounting Element','N') +; + +-- Jul 9, 2008 5:48:59 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56282 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 9, 2008 5:50:43 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,SeqNo,Updated,DisplayLength,Help,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,DisplayLogic,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,170,TO_TIMESTAMP('2008-07-09 17:50:43','YYYY-MM-DD HH24:MI:SS'),14,'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested)',TO_TIMESTAMP('2008-07-09 17:50:43','YYYY-MM-DD HH24:MI:SS'),'Y',0,56153,'N','D','N','User Element 1','N','@ElementType@=X1 | @ElementType@=CO & @$Element_X1@=Y',100,'Y','Y',56283,'User defined accounting Element','N') +; + +-- Jul 9, 2008 5:50:44 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56283 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 9, 2008 5:51:07 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,SeqNo,Updated,DisplayLength,Help,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,DisplayLogic,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,180,TO_TIMESTAMP('2008-07-09 17:51:02','YYYY-MM-DD HH24:MI:SS'),14,'A user defined accounting element referres to a Adempiere table. This allows to use any table content as an accounting dimension (e.g. Project Task). Note that User Elements are optional and are populated from the context of the document (i.e. not requested) ',TO_TIMESTAMP('2008-07-09 17:51:02','YYYY-MM-DD HH24:MI:SS'),'Y',0,56154,'N','D','N','User Element 2','N','@ElementType@=X2 | @ElementType@=CO & @$Element_X2@=Y',100,'Y','Y',56284,'User defined accounting Element','N') +; + +-- Jul 9, 2008 5:51:07 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56284 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:40:12 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsOrg',0,TO_TIMESTAMP('2008-07-10 16:40:08','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2008-07-10 16:40:08','YYYY-MM-DD HH24:MI:SS'),'Include Nulls Org',0,'D','Include Nulls Org',100,'Y',53657,'Include nulls in the selection of the organization') +; + +-- Jul 10, 2008 4:40:12 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53657 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:41:23 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsElementValue',0,TO_TIMESTAMP('2008-07-10 16:41:22','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2008-07-10 16:41:22','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in Account',0,'D','Include Nulls in Account',100,'Y',53658,'Include nulls in the selection of the account') +; + +-- Jul 10, 2008 4:41:23 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53658 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Element SET PrintName='Include Nulls in Org', Name='Include Nulls in Org',Updated=TO_TIMESTAMP('2008-07-10 16:41:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53657 +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53657 +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Column SET ColumnName='IsIncludeNullsOrg', Name='Include Nulls in Org', Description='Include nulls in the selection of the organization', Help=NULL WHERE AD_Element_ID=53657 +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET Name='Include Nulls in Org', Description='Include nulls in the selection of the organization', Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53657) AND IsCentrallyMaintained='Y' +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Process_Para SET ColumnName='IsIncludeNullsOrg', Name='Include Nulls in Org', Description='Include nulls in the selection of the organization', Help=NULL, AD_Element_ID=53657 WHERE UPPER(ColumnName)='ISINCLUDENULLSORG' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Process_Para SET ColumnName='IsIncludeNullsOrg', Name='Include Nulls in Org', Description='Include nulls in the selection of the organization', Help=NULL WHERE AD_Element_ID=53657 AND IsCentrallyMaintained='Y' +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_PrintFormatItem SET PrintName='Include Nulls in Org', Name='Include Nulls in Org' 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=53657) +; + +-- Jul 10, 2008 4:41:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_PrintFormatItem SET PrintName='Include Nulls in Org', Name='Include Nulls in Org' 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=53657) +; + +-- Jul 10, 2008 4:41:55 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Help,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsBpartner',0,TO_TIMESTAMP('2008-07-10 16:41:54','YYYY-MM-DD HH24:MI:SS'),NULL,TO_TIMESTAMP('2008-07-10 16:41:54','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in BPartner',0,'D','Include Nulls in BPartner',100,'Y',53659,'Include nulls in the selection of the business partner') +; + +-- Jul 10, 2008 4:41:55 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53659 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:42:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Element SET ColumnName='IsIncludeNullsBPartner',Updated=TO_TIMESTAMP('2008-07-10 16:42:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53659 +; + +-- Jul 10, 2008 4:42:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Column SET ColumnName='IsIncludeNullsBPartner', Name='Include Nulls in BPartner', Description='Include nulls in the selection of the business partner', Help=NULL WHERE AD_Element_ID=53659 +; + +-- Jul 10, 2008 4:42:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET Name='Include Nulls in BPartner', Description='Include nulls in the selection of the business partner', Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53659) AND IsCentrallyMaintained='Y' +; + +-- Jul 10, 2008 4:42:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Process_Para SET ColumnName='IsIncludeNullsBPartner', Name='Include Nulls in BPartner', Description='Include nulls in the selection of the business partner', Help=NULL, AD_Element_ID=53659 WHERE UPPER(ColumnName)='ISINCLUDENULLSBPARTNER' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Jul 10, 2008 4:42:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Process_Para SET ColumnName='IsIncludeNullsBPartner', Name='Include Nulls in BPartner', Description='Include nulls in the selection of the business partner', Help=NULL WHERE AD_Element_ID=53659 AND IsCentrallyMaintained='Y' +; + +-- Jul 10, 2008 4:42:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_PrintFormatItem SET PrintName='Include Nulls in BPartner', Name='Include Nulls in BPartner' 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=53659) +; + +-- Jul 10, 2008 4:42:07 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_PrintFormatItem SET PrintName='Include Nulls in BPartner', Name='Include Nulls in BPartner' 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=53659) +; + +-- Jul 10, 2008 4:42:37 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsProduct',0,TO_TIMESTAMP('2008-07-10 16:42:37','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2008-07-10 16:42:37','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in Product',0,'D','Include Nulls in Product',100,'Y',53660,'Include nulls in the selection of the product') +; + +-- Jul 10, 2008 4:42:37 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53660 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:42:54 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsLocation',0,TO_TIMESTAMP('2008-07-10 16:42:53','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2008-07-10 16:42:53','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in Location',0,'D','Include Nulls in Location',100,'Y',53661,'Include nulls in the selection of the location') +; + +-- Jul 10, 2008 4:42:55 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53661 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:43:14 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsProject',0,TO_TIMESTAMP('2008-07-10 16:43:13','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2008-07-10 16:43:13','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in Project',0,'D','Include Nulls in Project',100,'Y',53662,'Include nulls in the selection of the project') +; + +-- Jul 10, 2008 4:43:15 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53662 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:43:34 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsSalesRegion',0,TO_TIMESTAMP('2008-07-10 16:43:33','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2008-07-10 16:43:33','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in Sales Region',0,'D','Include Nulls in Sales Region',100,'Y',53663,'Include nulls in the selection of the sales region') +; + +-- Jul 10, 2008 4:43:34 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53663 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:43:51 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsActivity',0,TO_TIMESTAMP('2008-07-10 16:43:50','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2008-07-10 16:43:50','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in Activity',0,'D','Include Nulls in Activity',100,'Y',53664,'Include nulls in the selection of the activity') +; + +-- Jul 10, 2008 4:43:51 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53664 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:44:05 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsCampaign',0,TO_TIMESTAMP('2008-07-10 16:44:04','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2008-07-10 16:44:04','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in Campaign',0,'D','Include Nulls in Campaign',100,'Y',53665,'Include nulls in the selection of the campaign') +; + +-- Jul 10, 2008 4:44:05 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53665 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:44:23 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsUserElement1',0,TO_TIMESTAMP('2008-07-10 16:44:22','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2008-07-10 16:44:22','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in User Element 1',0,'D','Include Nulls in User Element 1',100,'Y',53666,'Include nulls in the selection of the user element 1') +; + +-- Jul 10, 2008 4:44:23 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53666 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:44:31 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element (UpdatedBy,ColumnName,AD_Org_ID,Updated,Created,PrintName,AD_Client_ID,EntityType,Name,CreatedBy,IsActive,AD_Element_ID,Description) VALUES (100,'IsIncludeNullsUserElement2',0,TO_TIMESTAMP('2008-07-10 16:44:30','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2008-07-10 16:44:30','YYYY-MM-DD HH24:MI:SS'),'Include Nulls in User Element 2',0,'D','Include Nulls in User Element 2',100,'Y',53667,'Include nulls in the selection of the user element 2') +; + +-- Jul 10, 2008 4:44:31 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Help,PrintName,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Help,t.PrintName,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53667 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 10, 2008 4:45:53 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsOrg',0,'N',0,TO_TIMESTAMP('2008-07-10 16:45:51','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:45:51','YYYY-MM-DD HH24:MI:SS'),0,56155,20,'D','Include Nulls in Org','N',100,'Y','N','Y',53657,'Include nulls in the selection of the organization','N','N') +; + +-- Jul 10, 2008 4:45:53 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56155 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:45:57 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD COLUMN IsIncludeNullsOrg CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsOrg IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:46:26 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsElementValue',0,'N',0,TO_TIMESTAMP('2008-07-10 16:46:26','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:46:26','YYYY-MM-DD HH24:MI:SS'),0,56156,20,'D','Include Nulls in Account','N',100,'Y','N','Y',53658,'Include nulls in the selection of the account','N','N') +; + +-- Jul 10, 2008 4:46:27 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56156 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:46:31 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD COLUMN IsIncludeNullsElementValue CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsElementValue IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:46:47 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsBPartner',0,'N',0,TO_TIMESTAMP('2008-07-10 16:46:46','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:46:46','YYYY-MM-DD HH24:MI:SS'),0,56157,20,'D','Include Nulls in BPartner','N',100,'Y','N','Y',53659,'Include nulls in the selection of the business partner','N','N') +; + +-- Jul 10, 2008 4:46:47 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56157 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:46:50 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD COLUMN IsIncludeNullsBPartner CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsBPartner IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:47:02 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsProduct',0,'N',0,TO_TIMESTAMP('2008-07-10 16:47:02','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:47:02','YYYY-MM-DD HH24:MI:SS'),0,56158,20,'D','Include Nulls in Product','N',100,'Y','N','Y',53660,'Include nulls in the selection of the product','N','N') +; + +-- Jul 10, 2008 4:47:03 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56158 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:47:04 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD COLUMN IsIncludeNullsProduct CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsProduct IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:47:16 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsLocation',0,'N',0,TO_TIMESTAMP('2008-07-10 16:47:15','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:47:15','YYYY-MM-DD HH24:MI:SS'),0,56159,20,'D','Include Nulls in Location','N',100,'Y','N','Y',53661,'Include nulls in the selection of the location','N','N') +; + +-- Jul 10, 2008 4:47:16 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56159 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:47:18 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD COLUMN IsIncludeNullsLocation CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsLocation IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:47:30 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsProject',0,'N',0,TO_TIMESTAMP('2008-07-10 16:47:29','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:47:29','YYYY-MM-DD HH24:MI:SS'),0,56160,20,'D','Include Nulls in Project','N',100,'Y','N','Y',53662,'Include nulls in the selection of the project','N','N') +; + +-- Jul 10, 2008 4:47:30 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56160 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:47:32 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD COLUMN IsIncludeNullsProject CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsProject IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:47:43 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsSalesRegion',0,'N',0,TO_TIMESTAMP('2008-07-10 16:47:42','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:47:42','YYYY-MM-DD HH24:MI:SS'),0,56161,20,'D','Include Nulls in Sales Region','N',100,'Y','N','Y',53663,'Include nulls in the selection of the sales region','N','N') +; + +-- Jul 10, 2008 4:47:43 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56161 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:47:45 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD COLUMN IsIncludeNullsSalesRegion CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsSalesRegion IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:48:04 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsActivity',0,'N',0,TO_TIMESTAMP('2008-07-10 16:48:03','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:48:03','YYYY-MM-DD HH24:MI:SS'),0,56162,20,'D','Include Nulls in Activity','N',100,'Y','N','Y',53664,'Include nulls in the selection of the activity','N','N') +; + +-- Jul 10, 2008 4:48:04 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56162 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:48:06 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD COLUMN IsIncludeNullsActivity CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsActivity IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:48:17 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsCampaign',0,'N',0,TO_TIMESTAMP('2008-07-10 16:48:16','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:48:16','YYYY-MM-DD HH24:MI:SS'),0,56163,20,'D','Include Nulls in Campaign','N',100,'Y','N','Y',53665,'Include nulls in the selection of the campaign','N','N') +; + +-- Jul 10, 2008 4:48:17 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56163 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:48:19 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD COLUMN IsIncludeNullsCampaign CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsCampaign IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:49:00 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsUserElement1',0,'N',0,TO_TIMESTAMP('2008-07-10 16:48:59','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:48:59','YYYY-MM-DD HH24:MI:SS'),0,56164,20,'D','Include Nulls in User Element 1','N',100,'Y','N','Y',53666,'Include nulls in the selection of the user element 1','N','N') +; + +-- Jul 10, 2008 4:49:00 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56164 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:49:03 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD COLUMN IsIncludeNullsUserElement1 CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsUserElement1 IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:49:13 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',450,0,'N','Y',1,100,'IsIncludeNullsUserElement2',0,'N',0,TO_TIMESTAMP('2008-07-10 16:49:12','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:49:12','YYYY-MM-DD HH24:MI:SS'),0,56165,20,'D','Include Nulls in User Element 2','N',100,'Y','N','Y',53667,'Include nulls in the selection of the user element 2','N','N') +; + +-- Jul 10, 2008 4:49:13 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56165 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:49:15 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportSource ADD COLUMN IsIncludeNullsUserElement2 CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsUserElement2 IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:51:52 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsOrg',0,'N',0,TO_TIMESTAMP('2008-07-10 16:51:51','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:51:51','YYYY-MM-DD HH24:MI:SS'),0,56166,20,'D','Include Nulls in Org','N',100,'Y','N','Y',53657,'Include nulls in the selection of the organization','N','N') +; + +-- Jul 10, 2008 4:51:52 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56166 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:51:53 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD COLUMN IsIncludeNullsOrg CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsOrg IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:52:12 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsElementValue',0,'N',0,TO_TIMESTAMP('2008-07-10 16:52:12','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:52:12','YYYY-MM-DD HH24:MI:SS'),0,56167,20,'D','Include Nulls in Account','N',100,'Y','N','Y',53658,'Include nulls in the selection of the account','N','N') +; + +-- Jul 10, 2008 4:52:12 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56167 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:52:14 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD COLUMN IsIncludeNullsElementValue CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsElementValue IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:52:32 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsBPartner',0,'N',0,TO_TIMESTAMP('2008-07-10 16:52:31','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:52:31','YYYY-MM-DD HH24:MI:SS'),0,56168,20,'D','Include Nulls in BPartner','N',100,'Y','N','Y',53659,'Include nulls in the selection of the business partner','N','N') +; + +-- Jul 10, 2008 4:52:32 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56168 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:52:34 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD COLUMN IsIncludeNullsBPartner CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsBPartner IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:52:48 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsProduct',0,'N',0,TO_TIMESTAMP('2008-07-10 16:52:46','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:52:46','YYYY-MM-DD HH24:MI:SS'),0,56169,20,'D','Include Nulls in Product','N',100,'Y','N','Y',53660,'Include nulls in the selection of the product','N','N') +; + +-- Jul 10, 2008 4:52:48 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56169 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:52:50 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD COLUMN IsIncludeNullsProduct CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsProduct IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:53:00 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsLocation',0,'N',0,TO_TIMESTAMP('2008-07-10 16:52:59','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:52:59','YYYY-MM-DD HH24:MI:SS'),0,56170,20,'D','Include Nulls in Location','N',100,'Y','N','Y',53661,'Include nulls in the selection of the location','N','N') +; + +-- Jul 10, 2008 4:53:00 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56170 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:53:01 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD COLUMN IsIncludeNullsLocation CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsLocation IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:53:13 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsProject',0,'N',0,TO_TIMESTAMP('2008-07-10 16:53:12','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:53:12','YYYY-MM-DD HH24:MI:SS'),0,56171,20,'D','Include Nulls in Project','N',100,'Y','N','Y',53662,'Include nulls in the selection of the project','N','N') +; + +-- Jul 10, 2008 4:53:13 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56171 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:53:14 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD COLUMN IsIncludeNullsProject CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsProject IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:53:28 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsSalesRegion',0,'N',0,TO_TIMESTAMP('2008-07-10 16:53:26','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:53:26','YYYY-MM-DD HH24:MI:SS'),0,56172,20,'D','Include Nulls in Sales Region','N',100,'Y','N','Y',53663,'Include nulls in the selection of the sales region','N','N') +; + +-- Jul 10, 2008 4:53:28 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56172 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:53:29 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD COLUMN IsIncludeNullsSalesRegion CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsSalesRegion IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:53:42 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsActivity',0,'N',0,TO_TIMESTAMP('2008-07-10 16:53:40','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:53:40','YYYY-MM-DD HH24:MI:SS'),0,56173,20,'D','Include Nulls in Activity','N',100,'Y','N','Y',53664,'Include nulls in the selection of the activity','N','N') +; + +-- Jul 10, 2008 4:53:42 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56173 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:53:44 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD COLUMN IsIncludeNullsActivity CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsActivity IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:53:54 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsCampaign',0,'N',0,TO_TIMESTAMP('2008-07-10 16:53:54','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:53:54','YYYY-MM-DD HH24:MI:SS'),0,56174,20,'D','Include Nulls in Campaign','N',100,'Y','N','Y',53665,'Include nulls in the selection of the campaign','N','N') +; + +-- Jul 10, 2008 4:53:55 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56174 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:53:58 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD COLUMN IsIncludeNullsCampaign CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsCampaign IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:54:10 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsUserElement1',0,'N',0,TO_TIMESTAMP('2008-07-10 16:54:09','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:54:09','YYYY-MM-DD HH24:MI:SS'),0,56175,20,'D','Include Nulls in User Element 1','N',100,'Y','N','Y',53666,'Include nulls in the selection of the user element 1','N','N') +; + +-- Jul 10, 2008 4:54:10 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56175 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:54:12 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD COLUMN IsIncludeNullsUserElement1 CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsUserElement1 IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:54:24 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column (IsParent,AD_Table_ID,Version,IsIdentifier,IsUpdateable,FieldLength,UpdatedBy,ColumnName,AD_Org_ID,IsSyncDatabase,SeqNo,Updated,DefaultValue,IsTranslated,Created,AD_Client_ID,AD_Column_ID,AD_Reference_ID,EntityType,Name,IsSelectionColumn,CreatedBy,IsMandatory,IsKey,IsActive,AD_Element_ID,Description,IsEncrypted,IsAlwaysUpdateable) VALUES ('N',446,0,'N','Y',1,100,'IsIncludeNullsUserElement2',0,'N',0,TO_TIMESTAMP('2008-07-10 16:54:23','YYYY-MM-DD HH24:MI:SS'),'N','N',TO_TIMESTAMP('2008-07-10 16:54:23','YYYY-MM-DD HH24:MI:SS'),0,56176,20,'D','Include Nulls in User Element 2','N',100,'Y','N','Y',53667,'Include nulls in the selection of the user element 2','N','N') +; + +-- Jul 10, 2008 4:54:24 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56176 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 10, 2008 4:54:26 PM COT +-- Financial Report Source with Type Combination +ALTER TABLE PA_ReportColumn ADD COLUMN IsIncludeNullsUserElement2 CHAR(1) DEFAULT 'N' CHECK (IsIncludeNullsUserElement2 IN ('Y','N')) NOT NULL +; + +-- Jul 10, 2008 4:55:32 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_TIMESTAMP('2008-07-10 16:55:29','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:55:29','YYYY-MM-DD HH24:MI:SS'),'Y',0,56156,'N','D','N','Include Nulls in Account','N',100,'Y','Y',56285,'Include nulls in the selection of the account','N') +; + +-- Jul 10, 2008 4:55:33 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56285 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:34 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_TIMESTAMP('2008-07-10 16:55:33','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:55:33','YYYY-MM-DD HH24:MI:SS'),'Y',0,56162,'N','D','N','Include Nulls in Activity','N',100,'Y','Y',56286,'Include nulls in the selection of the activity','N') +; + +-- Jul 10, 2008 4:55:34 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56286 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:35 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_TIMESTAMP('2008-07-10 16:55:34','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:55:34','YYYY-MM-DD HH24:MI:SS'),'Y',0,56157,'N','D','N','Include Nulls in BPartner','N',100,'Y','Y',56287,'Include nulls in the selection of the business partner','N') +; + +-- Jul 10, 2008 4:55:36 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56287 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:36 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_TIMESTAMP('2008-07-10 16:55:36','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:55:36','YYYY-MM-DD HH24:MI:SS'),'Y',0,56163,'N','D','N','Include Nulls in Campaign','N',100,'Y','Y',56288,'Include nulls in the selection of the campaign','N') +; + +-- Jul 10, 2008 4:55:36 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56288 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:37 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_TIMESTAMP('2008-07-10 16:55:36','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:55:36','YYYY-MM-DD HH24:MI:SS'),'Y',0,56159,'N','D','N','Include Nulls in Location','N',100,'Y','Y',56289,'Include nulls in the selection of the location','N') +; + +-- Jul 10, 2008 4:55:38 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56289 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:39 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_TIMESTAMP('2008-07-10 16:55:38','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:55:38','YYYY-MM-DD HH24:MI:SS'),'Y',0,56155,'N','D','N','Include Nulls in Org','N',100,'Y','Y',56290,'Include nulls in the selection of the organization','N') +; + +-- Jul 10, 2008 4:55:39 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56290 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:40 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_TIMESTAMP('2008-07-10 16:55:39','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:55:39','YYYY-MM-DD HH24:MI:SS'),'Y',0,56158,'N','D','N','Include Nulls in Product','N',100,'Y','Y',56291,'Include nulls in the selection of the product','N') +; + +-- Jul 10, 2008 4:55:41 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56291 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:43 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_TIMESTAMP('2008-07-10 16:55:41','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:55:41','YYYY-MM-DD HH24:MI:SS'),'Y',0,56160,'N','D','N','Include Nulls in Project','N',100,'Y','Y',56292,'Include nulls in the selection of the project','N') +; + +-- Jul 10, 2008 4:55:43 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56292 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:44 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_TIMESTAMP('2008-07-10 16:55:43','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:55:43','YYYY-MM-DD HH24:MI:SS'),'Y',0,56161,'N','D','N','Include Nulls in Sales Region','N',100,'Y','Y',56293,'Include nulls in the selection of the sales region','N') +; + +-- Jul 10, 2008 4:55:45 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56293 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:45 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_TIMESTAMP('2008-07-10 16:55:45','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:55:45','YYYY-MM-DD HH24:MI:SS'),'Y',0,56164,'N','D','N','Include Nulls in User Element 1','N',100,'Y','Y',56294,'Include nulls in the selection of the user element 1','N') +; + +-- Jul 10, 2008 4:55:46 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56294 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:55:47 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,377,TO_TIMESTAMP('2008-07-10 16:55:46','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:55:46','YYYY-MM-DD HH24:MI:SS'),'Y',0,56165,'N','D','N','Include Nulls in User Element 2','N',100,'Y','Y',56295,'Include nulls in the selection of the user element 2','N') +; + +-- Jul 10, 2008 4:55:47 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56295 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=4811 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=4812 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=4813 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=4803 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=4802 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=4814 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=4804 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=4815 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=56290 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=56285 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=4816 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=56287 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=4807 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=56291 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=4808 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=56289 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=4806 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=56292 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=4809 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=56293 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=4810 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=56286 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=4817 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=56288 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=56283 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=56294 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=56284 +; + +-- Jul 10, 2008 4:57:15 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=56295 +; + +-- Jul 10, 2008 4:57:40 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-07-10 16:57:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56290 +; + +-- Jul 10, 2008 4:57:52 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 16:57:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56290 +; + +-- Jul 10, 2008 4:57:56 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 16:57:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56285 +; + +-- Jul 10, 2008 4:57:59 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 16:57:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56287 +; + +-- Jul 10, 2008 4:58:03 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 16:58:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56291 +; + +-- Jul 10, 2008 4:58:06 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 16:58:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56289 +; + +-- Jul 10, 2008 4:58:10 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 16:58:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56292 +; + +-- Jul 10, 2008 4:58:12 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 16:58:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56293 +; + +-- Jul 10, 2008 4:58:16 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 16:58:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56286 +; + +-- Jul 10, 2008 4:58:19 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 16:58:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56288 +; + +-- Jul 10, 2008 4:58:29 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO & @$Element_X1@=Y',Updated=TO_TIMESTAMP('2008-07-10 16:58:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56294 +; + +-- Jul 10, 2008 4:58:38 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO & @$Element_X2@=Y',Updated=TO_TIMESTAMP('2008-07-10 16:58:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56295 +; + +-- Jul 10, 2008 4:58:52 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLength=14,Updated=TO_TIMESTAMP('2008-07-10 16:58:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4816 +; + +-- Jul 10, 2008 4:58:54 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLength=14,Updated=TO_TIMESTAMP('2008-07-10 16:58:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4807 +; + +-- Jul 10, 2008 4:58:58 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLength=14,Updated=TO_TIMESTAMP('2008-07-10 16:58:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4808 +; + +-- Jul 10, 2008 4:59:19 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_TIMESTAMP('2008-07-10 16:59:18','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:59:18','YYYY-MM-DD HH24:MI:SS'),'Y',0,56167,'N','D','N','Include Nulls in Account','N',100,'Y','Y',56296,'Include nulls in the selection of the account','N') +; + +-- Jul 10, 2008 4:59:20 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56296 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:21 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_TIMESTAMP('2008-07-10 16:59:20','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:59:20','YYYY-MM-DD HH24:MI:SS'),'Y',0,56173,'N','D','N','Include Nulls in Activity','N',100,'Y','Y',56297,'Include nulls in the selection of the activity','N') +; + +-- Jul 10, 2008 4:59:21 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56297 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:22 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_TIMESTAMP('2008-07-10 16:59:21','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:59:21','YYYY-MM-DD HH24:MI:SS'),'Y',0,56168,'N','D','N','Include Nulls in BPartner','N',100,'Y','Y',56298,'Include nulls in the selection of the business partner','N') +; + +-- Jul 10, 2008 4:59:22 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56298 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:23 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_TIMESTAMP('2008-07-10 16:59:22','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:59:22','YYYY-MM-DD HH24:MI:SS'),'Y',0,56174,'N','D','N','Include Nulls in Campaign','N',100,'Y','Y',56299,'Include nulls in the selection of the campaign','N') +; + +-- Jul 10, 2008 4:59:23 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56299 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:24 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_TIMESTAMP('2008-07-10 16:59:23','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:59:23','YYYY-MM-DD HH24:MI:SS'),'Y',0,56170,'N','D','N','Include Nulls in Location','N',100,'Y','Y',56300,'Include nulls in the selection of the location','N') +; + +-- Jul 10, 2008 4:59:24 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56300 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:25 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_TIMESTAMP('2008-07-10 16:59:24','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:59:24','YYYY-MM-DD HH24:MI:SS'),'Y',0,56166,'N','D','N','Include Nulls in Org','N',100,'Y','Y',56301,'Include nulls in the selection of the organization','N') +; + +-- Jul 10, 2008 4:59:25 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56301 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:26 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_TIMESTAMP('2008-07-10 16:59:25','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:59:25','YYYY-MM-DD HH24:MI:SS'),'Y',0,56169,'N','D','N','Include Nulls in Product','N',100,'Y','Y',56302,'Include nulls in the selection of the product','N') +; + +-- Jul 10, 2008 4:59:26 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56302 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:27 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_TIMESTAMP('2008-07-10 16:59:26','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:59:26','YYYY-MM-DD HH24:MI:SS'),'Y',0,56171,'N','D','N','Include Nulls in Project','N',100,'Y','Y',56303,'Include nulls in the selection of the project','N') +; + +-- Jul 10, 2008 4:59:27 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56303 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:29 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_TIMESTAMP('2008-07-10 16:59:27','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:59:27','YYYY-MM-DD HH24:MI:SS'),'Y',0,56172,'N','D','N','Include Nulls in Sales Region','N',100,'Y','Y',56304,'Include nulls in the selection of the sales region','N') +; + +-- Jul 10, 2008 4:59:29 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56304 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:30 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_TIMESTAMP('2008-07-10 16:59:29','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:59:29','YYYY-MM-DD HH24:MI:SS'),'Y',0,56175,'N','D','N','Include Nulls in User Element 1','N',100,'Y','Y',56305,'Include nulls in the selection of the user element 1','N') +; + +-- Jul 10, 2008 4:59:30 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56305 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 4:59:31 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field (IsFieldOnly,UpdatedBy,AD_Org_ID,AD_Tab_ID,Updated,DisplayLength,Created,IsCentrallyMaintained,AD_Client_ID,AD_Column_ID,IsReadOnly,EntityType,IsHeading,Name,IsSameLine,CreatedBy,IsDisplayed,IsActive,AD_Field_ID,Description,IsEncrypted) VALUES ('N',100,0,374,TO_TIMESTAMP('2008-07-10 16:59:30','YYYY-MM-DD HH24:MI:SS'),1,TO_TIMESTAMP('2008-07-10 16:59:30','YYYY-MM-DD HH24:MI:SS'),'Y',0,56176,'N','D','N','Include Nulls in User Element 2','N',100,'Y','Y',56306,'Include nulls in the selection of the user element 2','N') +; + +-- Jul 10, 2008 4:59:31 PM COT +-- Financial Report Source with Type Combination +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Help,Name,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Help,t.Name,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56306 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=4747 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=4748 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=4771 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=4749 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=4750 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=4751 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=4772 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=4752 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=4773 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=4753 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=4754 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=4760 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=4758 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=4774 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=4770 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=4756 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=4757 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=4759 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=4761 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=4762 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=4763 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=4764 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=56301 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=56296 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=4766 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=56302 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=4777 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=56299 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=4776 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=56298 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=4775 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=56303 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=4767 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=56300 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=4768 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=56304 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=4769 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=380,IsDisplayed='Y' WHERE AD_Field_ID=56297 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=390,IsDisplayed='Y' WHERE AD_Field_ID=56281 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=400,IsDisplayed='Y' WHERE AD_Field_ID=56305 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=56282 +; + +-- Jul 10, 2008 5:00:34 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET SeqNo=420,IsDisplayed='Y' WHERE AD_Field_ID=56306 +; + +-- Jul 10, 2008 5:04:32 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 17:04:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56301 +; + +-- Jul 10, 2008 5:04:35 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 17:04:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56296 +; + +-- Jul 10, 2008 5:04:39 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 17:04:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56302 +; + +-- Jul 10, 2008 5:04:47 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 17:04:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56299 +; + +-- Jul 10, 2008 5:04:50 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 17:04:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56298 +; + +-- Jul 10, 2008 5:04:52 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 17:04:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56303 +; + +-- Jul 10, 2008 5:04:54 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 17:04:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56300 +; + +-- Jul 10, 2008 5:04:57 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 17:04:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56304 +; + +-- Jul 10, 2008 5:05:02 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO',Updated=TO_TIMESTAMP('2008-07-10 17:05:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56297 +; + +-- Jul 10, 2008 5:05:09 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO & @$Element_X1@=Y',Updated=TO_TIMESTAMP('2008-07-10 17:05:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56305 +; + +-- Jul 10, 2008 5:05:14 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET IsSameLine='Y', DisplayLogic='@ElementType@=CO & @$Element_X2@=Y',Updated=TO_TIMESTAMP('2008-07-10 17:05:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56306 +; + +-- Jul 10, 2008 5:05:20 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLength=14,Updated=TO_TIMESTAMP('2008-07-10 17:05:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4766 +; + +-- Jul 10, 2008 5:05:22 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLength=14,Updated=TO_TIMESTAMP('2008-07-10 17:05:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4776 +; + +-- Jul 10, 2008 5:05:25 PM COT +-- Financial Report Source with Type Combination +UPDATE AD_Field SET DisplayLength=14,Updated=TO_TIMESTAMP('2008-07-10 17:05:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4767 +; diff --git a/migration/351a-352a/postgresql/227_MessageVPayPrintPrintCheck.sql b/migration/351a-352a/postgresql/227_MessageVPayPrintPrintCheck.sql new file mode 100644 index 0000000000..0cc0121493 --- /dev/null +++ b/migration/351a-352a/postgresql/227_MessageVPayPrintPrintCheck.sql @@ -0,0 +1,4 @@ +-- Jul 11, 2008 3:04:33 AM COT +-- Changes to Payment Selection and Print +UPDATE AD_Column SET AD_Reference_Value_ID=343,Updated=TO_TIMESTAMP('2008-07-11 03:04:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=7719 +; diff --git a/migration/351a-352a/postgresql/228_BF2003790_BOM_Verify.sql b/migration/351a-352a/postgresql/228_BF2003790_BOM_Verify.sql new file mode 100755 index 0000000000..6a0d24c606 --- /dev/null +++ b/migration/351a-352a/postgresql/228_BF2003790_BOM_Verify.sql @@ -0,0 +1,25 @@ +-- Jul 7, 2008 1:24:00 PM EST +-- Default comment for updating dictionary +UPDATE AD_Process SET Classname='org.eevolution.process.PP_Product_BOM_Check', Value='PP_Product_BOM',Updated=TO_TIMESTAMP('2008-07-07 13:24:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=136 +; + +-- Jul 7, 2008 1:26:22 PM EST +-- Default comment for updating dictionary +UPDATE AD_Process SET Description='Verify BOM Structure and Update Low Level',Updated=TO_TIMESTAMP('2008-07-07 13:26:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=136 +; + +-- Jul 7, 2008 1:26:22 PM EST +-- Default comment for updating dictionary +UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=136 +; + +-- Jul 7, 2008 1:28:22 PM EST +-- Default comment for updating dictionary +UPDATE AD_Field SET Description='Verify BOM Structure and Update Low Level', DisplayLogic='@IsSummary@=''N'' & @IsBOM@=''Y''',Updated=TO_TIMESTAMP('2008-07-07 13:28:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3747 +; + +-- Jul 7, 2008 1:28:22 PM EST +-- Default comment for updating dictionary +UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=3747 +; + diff --git a/migration/351a-352a/postgresql/229_FinReportSpeedUp.sql b/migration/351a-352a/postgresql/229_FinReportSpeedUp.sql new file mode 100644 index 0000000000..b5ada0d5ee --- /dev/null +++ b/migration/351a-352a/postgresql/229_FinReportSpeedUp.sql @@ -0,0 +1,67 @@ +-- 1642765 - problem with Facc_act_balance slow financial report + +DROP TABLE FACT_ACCT_BALANCE +; + +CREATE OR REPLACE VIEW fact_acct_balance +AS + SELECT ad_client_id, ad_org_id, c_acctschema_id, + TRUNC (dateacct) as dateacct, account_id, postingtype, + m_product_id, c_bpartner_id, c_project_id, ad_orgtrx_id, + c_salesregion_id, c_activity_id, c_campaign_id, c_locto_id, + c_locfrom_id, user1_id, user2_id, gl_budget_id, + COALESCE (SUM (amtacctdr), 0) as amtacctdr, + COALESCE (SUM (amtacctcr), 0) as amtacctcr, + COALESCE (SUM (qty), 0) as qty, MAX (createdby) as createdby, + MAX (created) as created, MAX (updatedby) as updatedby, + MAX (updated) as updated, MAX (isactive) as isactive, + MAX (c_subacct_id) as c_subacct_id, userelement1_id, + userelement2_id, MAX (c_projectphase_id) as c_projectphase_id, + MAX (c_projecttask_id) as c_projecttask_id + FROM fact_acct a + GROUP BY ad_client_id, ad_org_id, c_acctschema_id, + TRUNC (dateacct), account_id, postingtype, + m_product_id, c_bpartner_id, c_project_id, ad_orgtrx_id, + c_salesregion_id, c_activity_id, c_campaign_id, c_locto_id, + c_locfrom_id, user1_id, user2_id, + userelement1_id, userelement2_id, + gl_budget_id +; + +CREATE INDEX FACT_ACCT_TRUNC_DATEACCT ON FACT_ACCT (CAST(dateacct AS DATE)) +; + +-- Jul 15, 2008 1:27:48 AM COT +-- 1642765 - problem with Facc_act_balance slow financial report +UPDATE AD_Table SET IsView='Y',Updated=TO_TIMESTAMP('2008-07-15 01:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=547 +; + +-- Jul 15, 2008 1:31:01 AM COT +-- 1642765 - problem with Facc_act_balance slow financial report +UPDATE AD_Process_Para SET IsActive = 'N',Updated=TO_TIMESTAMP('2008-07-15 01:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=283 +; + +-- Jul 15, 2008 1:32:35 AM COT +-- 1642765 - problem with Facc_act_balance slow financial report +UPDATE AD_Menu SET IsActive = 'N',Updated=TO_TIMESTAMP('2008-07-15 01:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=393 +; + +-- Jul 15, 2008 1:32:44 AM COT +-- 1642765 - problem with Facc_act_balance slow financial report +UPDATE AD_Process SET IsActive = 'N',Updated=TO_TIMESTAMP('2008-07-15 01:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=203 +; + +-- Jul 15, 2008 1:34:15 AM COT +-- 1642765 - problem with Facc_act_balance slow financial report +UPDATE AD_Process_Para SET IsActive = 'N',Updated=TO_TIMESTAMP('2008-07-15 01:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=453 +; + +-- Jul 15, 2008 1:34:26 AM COT +-- 1642765 - problem with Facc_act_balance slow financial report +UPDATE AD_Process_Para SET IsActive = 'N',Updated=TO_TIMESTAMP('2008-07-15 01:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53123 +; + +-- Jul 15, 2008 1:35:05 AM COT +-- 1642765 - problem with Facc_act_balance slow financial report +UPDATE AD_Process_Para SET IsActive = 'N',Updated=TO_TIMESTAMP('2008-07-15 01:27:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=454 +; \ No newline at end of file diff --git a/migration/351a-352a/postgresql/230_BF2021146_VMRPDetail_and_Report.sql b/migration/351a-352a/postgresql/230_BF2021146_VMRPDetail_and_Report.sql new file mode 100644 index 0000000000..a0e2ae4957 --- /dev/null +++ b/migration/351a-352a/postgresql/230_BF2021146_VMRPDetail_and_Report.sql @@ -0,0 +1,720 @@ +-- Jul 16, 2008 3:40:38 PM CDT +-- MRP Detail Report +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,113,0,53018,53211,19,130,'AD_Org_ID',TO_TIMESTAMP('2008-07-16 15:40:13','YYYY-MM-DD HH24:MI:SS'),100,'Organizational entity within client','EE01',10,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','Y','N','N','Organization',10,TO_TIMESTAMP('2008-07-16 15:40:13','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 16, 2008 3:40:38 PM CDT +-- MRP Detail Report +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=53211 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) +; + +-- Jul 16, 2008 3:42:51 PM CDT +-- MRP Detail Report +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1777,0,53018,53212,19,52002,'Resource',TO_TIMESTAMP('2008-07-16 15:42:44','YYYY-MM-DD HH24:MI:SS'),100,'Resource','EE01',10,'Resource','Y','Y','N','N','Resource',10,TO_TIMESTAMP('2008-07-16 15:42:44','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 16, 2008 3:42:51 PM CDT +-- MRP Detail Report +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=53212 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) +; + +-- Jul 16, 2008 3:47:18 PM CDT +-- MRP Detail Report +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_Reference_Value_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1514,0,53018,53213,17,154,'Priority',TO_TIMESTAMP('2008-07-16 15:47:16','YYYY-MM-DD HH24:MI:SS'),100,'Priority','EE01',10,'Priority','Y','Y','N','N','Priority',70,TO_TIMESTAMP('2008-07-16 15:47:16','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 16, 2008 3:47:18 PM CDT +-- MRP Detail Report +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=53213 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) +; + +-- Jul 16, 2008 3:49:11 PM CDT +-- MRP Detail Report +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,459,0,53018,53214,19,189,'M_Warehouse_ID',TO_TIMESTAMP('2008-07-16 15:49:05','YYYY-MM-DD HH24:MI:SS'),100,'Storage Warehouse and Service Point','EE01',22,'The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','Y','N','N','Warehouse',80,TO_TIMESTAMP('2008-07-16 15:49:05','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 16, 2008 3:49:11 PM CDT +-- MRP Detail Report +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=53214 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) +; + +-- Jul 16, 2008 3:54:22 PM CDT +-- MRP Detail Report +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,454,0,53018,53215,30,'Product',TO_TIMESTAMP('2008-07-16 15:54:14','YYYY-MM-DD HH24:MI:SS'),100,'Product, Service, Item','EE01',22,'Identifies an item which is either purchased or sold in this organization.','Y','Y','N','N','Product',90,TO_TIMESTAMP('2008-07-16 15:54:14','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 16, 2008 3:54:22 PM CDT +-- MRP Detail Report +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=53215 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) +; + +-- Jul 16, 2008 3:55:17 PM CDT +-- MRP Detail Report +UPDATE AD_Reference SET Name='_TypeMRP',Updated=TO_TIMESTAMP('2008-07-16 15:55:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53229 +; + +-- Jul 16, 2008 3:55:17 PM CDT +-- MRP Detail Report +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53229 +; + +-- Jul 16, 2008 3:55:44 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Forecast',Updated=TO_TIMESTAMP('2008-07-16 15:55:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53275 +; + +-- Jul 16, 2008 3:55:44 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53275 +; + +-- Jul 16, 2008 3:56:01 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Manufacturing Order',Updated=TO_TIMESTAMP('2008-07-16 15:56:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53276 +; + +-- Jul 16, 2008 3:56:01 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53276 +; + +-- Jul 16, 2008 3:56:16 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Purchase Order',Updated=TO_TIMESTAMP('2008-07-16 15:56:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53277 +; + +-- Jul 16, 2008 3:56:16 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53277 +; + +-- Jul 16, 2008 3:57:10 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Material Requisition',Updated=TO_TIMESTAMP('2008-07-16 15:57:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53278 +; + +-- Jul 16, 2008 3:57:10 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53278 +; + +-- Jul 16, 2008 3:57:25 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Orden de Venta',Updated=TO_TIMESTAMP('2008-07-16 15:57:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53279 +; + +-- Jul 16, 2008 3:57:25 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53279 +; + +-- Jul 16, 2008 4:00:16 PM CDT +-- MRP Detail Report +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53435,53229,TO_TIMESTAMP('2008-07-16 16:00:10','YYYY-MM-DD HH24:MI:SS'),100,'EE01','Y','Distribution Order',TO_TIMESTAMP('2008-07-16 16:00:10','YYYY-MM-DD HH24:MI:SS'),100,'DOO') +; + +-- Jul 16, 2008 4:00:16 PM CDT +-- MRP Detail Report +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_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_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53435 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jul 16, 2008 4:00:24 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Sales Order',Updated=TO_TIMESTAMP('2008-07-16 16:00:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53279 +; + +-- Jul 16, 2008 4:00:24 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53279 +; + +-- Jul 16, 2008 4:01:47 PM CDT +-- MRP Detail Report +UPDATE AD_Reference SET Name='_PP_MRP Type',Updated=TO_TIMESTAMP('2008-07-16 16:01:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53230 +; + +-- Jul 16, 2008 4:01:47 PM CDT +-- MRP Detail Report +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53230 +; + +-- Jul 16, 2008 4:01:55 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Demand',Updated=TO_TIMESTAMP('2008-07-16 16:01:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53280 +; + +-- Jul 16, 2008 4:01:55 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53280 +; + +-- Jul 16, 2008 4:02:07 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET Name='Supply',Updated=TO_TIMESTAMP('2008-07-16 16:02:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Ref_List_ID=53281 +; + +-- Jul 16, 2008 4:02:07 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53281 +; + +-- Jul 16, 2008 4:14:52 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-16 16:14:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53058 +; + +-- Jul 16, 2008 4:15:43 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET AD_Reference_ID=17, AD_Reference_Value_ID=319,Updated=TO_TIMESTAMP('2008-07-16 16:15:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53059 +; + +-- Jul 16, 2008 4:20:49 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET ColumnName='S_Resource_ID',Updated=TO_TIMESTAMP('2008-07-16 16:20:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53212 +; + +-- Jul 16, 2008 4:21:05 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=20,Updated=TO_TIMESTAMP('2008-07-16 16:21:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53212 +; + +-- Jul 16, 2008 4:21:17 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=30,Updated=TO_TIMESTAMP('2008-07-16 16:21:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53214 +; + +-- Jul 16, 2008 4:21:54 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=40,Updated=TO_TIMESTAMP('2008-07-16 16:21:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53060 +; + +-- Jul 16, 2008 4:22:04 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=50,Updated=TO_TIMESTAMP('2008-07-16 16:22:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53057 +; + +-- Jul 16, 2008 4:22:33 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=60,Updated=TO_TIMESTAMP('2008-07-16 16:22:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53215 +; + +-- Jul 16, 2008 4:22:49 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=70,Updated=TO_TIMESTAMP('2008-07-16 16:22:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53056 +; + +-- Jul 16, 2008 4:22:55 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=80,Updated=TO_TIMESTAMP('2008-07-16 16:22:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53058 +; + +-- Jul 16, 2008 4:23:11 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=90,Updated=TO_TIMESTAMP('2008-07-16 16:23:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53215 +; + +-- Jul 16, 2008 4:23:15 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=100,Updated=TO_TIMESTAMP('2008-07-16 16:23:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53055 +; + +-- Jul 16, 2008 4:23:23 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=110,Updated=TO_TIMESTAMP('2008-07-16 16:23:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53055 +; + +-- Jul 16, 2008 4:23:36 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=60,Updated=TO_TIMESTAMP('2008-07-16 16:23:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53059 +; +-- Jul 16, 2008 4:26:01 PM CDT +-- MRP Detail Report +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,290,0,53018,53217,10,'DocumentNo',TO_TIMESTAMP('2008-07-16 16:25:51','YYYY-MM-DD HH24:MI:SS'),100,'Document sequence number of the document','EE01',40,'The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>".','Y','Y','N','N','Document No',100,TO_TIMESTAMP('2008-07-16 16:25:51','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 16, 2008 4:26:01 PM CDT +-- MRP Detail Report +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=53217 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) +; + +-- Jul 16, 2008 4:28:28 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET ColumnName='M_Product_ID',Updated=TO_TIMESTAMP('2008-07-16 16:28:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53215 +; + +-- Jul 16, 2008 4:28:50 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-16 16:28:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53217 +; + +-- Jul 16, 2008 4:29:53 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=60,Updated=TO_TIMESTAMP('2008-07-16 16:29:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53056 +; + +-- Jul 16, 2008 4:30:01 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=70,Updated=TO_TIMESTAMP('2008-07-16 16:30:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53058 +; + +-- Jul 16, 2008 4:30:06 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=80,Updated=TO_TIMESTAMP('2008-07-16 16:30:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53059 +; + +-- Jul 16, 2008 4:30:12 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=90,Updated=TO_TIMESTAMP('2008-07-16 16:30:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53213 +; + +-- Jul 16, 2008 4:30:27 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=100,Updated=TO_TIMESTAMP('2008-07-16 16:30:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53215 +; + +-- Jul 16, 2008 4:30:31 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=110,Updated=TO_TIMESTAMP('2008-07-16 16:30:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53217 +; + +-- Jul 16, 2008 4:30:38 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET SeqNo=120,Updated=TO_TIMESTAMP('2008-07-16 16:30:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53055 +; + +-- Jul 16, 2008 4:30:59 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET Description='Is MPS',Updated=TO_TIMESTAMP('2008-07-16 16:30:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53059 +; + +-- Jul 16, 2008 4:30:59 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53059 +; + +-- Jul 16, 2008 4:01:55 PM CDT +-- MRP Detail Report +UPDATE AD_Ref_List SET EntityType='EE01',Updated=TO_DATE('2008-07-16 16:01:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53229 +; + + +-- Jul 16, 2008 4:47:31 PM CDT +-- MRP Detail Report +UPDATE AD_Reference SET Name='_MRP Order Type',Updated=TO_TIMESTAMP('2008-07-16 16:47:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53229 +; + +-- Jul 16, 2008 4:47:31 PM CDT +-- MRP Detail Report +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53229 +; + +-- Jul 16, 2008 4:47:37 PM CDT +-- MRP Detail Report +UPDATE AD_Column SET AD_Element_ID=52020, AD_Reference_ID=17, AD_Reference_Value_ID=53229, ColumnName='OrderType', Description=NULL, Help=NULL, Name='OrderType',Updated=TO_TIMESTAMP('2008-07-16 16:47:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=54055 +; + +-- Jul 16, 2008 4:47:37 PM CDT +-- MRP Detail Report +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=54055 +; + +-- Jul 16, 2008 4:47:37 PM CDT +-- MRP Detail Report +UPDATE AD_Field SET Name='OrderType', Description=NULL, Help=NULL WHERE AD_Column_ID=54055 AND IsCentrallyMaintained='Y' +; + +-- Jul 16, 2008 4:49:15 PM CDT +-- MRP Detail Report +UPDATE AD_Reference SET Description='MRP type can be a Demand or Supply', Name='_Type MRP',Updated=TO_TIMESTAMP('2008-07-16 16:49:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53230 +; + +-- Jul 16, 2008 4:49:15 PM CDT +-- MRP Detail Report +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53230 +; + +-- Jul 16, 2008 4:49:18 PM CDT +-- MRP Detail Report +UPDATE AD_Column SET AD_Element_ID=53282, AD_Reference_ID=17, AD_Reference_Value_ID=53230, ColumnName='TypeMRP', Description=NULL, Help=NULL, Name='TypeMRP',Updated=TO_TIMESTAMP('2008-07-16 16:49:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=54054 +; + +-- Jul 16, 2008 4:49:18 PM CDT +-- MRP Detail Report +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=54054 +; + +-- Jul 16, 2008 4:49:18 PM CDT +-- MRP Detail Report +UPDATE AD_Field SET Name='TypeMRP', Description=NULL, Help=NULL WHERE AD_Column_ID=54054 AND IsCentrallyMaintained='Y' +; + +-- Jul 16, 2008 4:50:46 PM CDT +-- MRP Detail Report +UPDATE AD_Column SET AD_Element_ID=52020, AD_Reference_ID=17, AD_Reference_Value_ID=53229, ColumnName='OrderType', Description=NULL, Help=NULL, Name='OrderType',Updated=TO_TIMESTAMP('2008-07-16 16:50:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53440 +; + +-- Jul 16, 2008 4:50:46 PM CDT +-- MRP Detail Report +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=53440 +; + +-- Jul 16, 2008 4:50:46 PM CDT +-- MRP Detail Report +UPDATE AD_Field SET Name='OrderType', Description=NULL, Help=NULL WHERE AD_Column_ID=53440 AND IsCentrallyMaintained='Y' +; + +-- Jul 16, 2008 4:59:27 PM CDT +-- MRP Detail Report +UPDATE AD_Column SET AD_Element_ID=53282, ColumnName='TypeMRP', Description=NULL, Help=NULL, Name='TypeMRP',Updated=TO_TIMESTAMP('2008-07-16 16:59:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53439 +; + +-- Jul 16, 2008 4:59:27 PM CDT +-- MRP Detail Report +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=53439 +; + +-- Jul 16, 2008 4:59:27 PM CDT +-- MRP Detail Report +UPDATE AD_Field SET Name='TypeMRP', Description=NULL, Help=NULL WHERE AD_Column_ID=53439 AND IsCentrallyMaintained='Y' +; + +-- Jul 16, 2008 5:00:23 PM CDT +-- MRP Detail Report +UPDATE AD_Reference SET Name='_MRP Type',Updated=TO_TIMESTAMP('2008-07-16 17:00:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53230 +; + +-- Jul 16, 2008 5:00:23 PM CDT +-- MRP Detail Report +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53230 +; + +-- Jul 16, 2008 5:02:13 PM CDT +-- MRP Detail Report +UPDATE AD_Column SET AD_Reference_ID=17, AD_Reference_Value_ID=53230,Updated=TO_TIMESTAMP('2008-07-16 17:02:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53439 +; + +ALTER TABLE PP_MRP RENAME COLUMN Type TO OrderType; + +INSERT INTO t_alter_column values('PP_MRP','OrderType','character varying(3)',null,'NULL'); + +INSERT INTO t_alter_column values('PP_MRP','TypeMRP','char(1)',null,'NULL'); + + +DROP VIEW rv_pp_mrp; + +CREATE OR REPLACE VIEW rv_pp_mrp AS +SELECT +mrp.ad_client_id, +mrp.ad_org_id, +mrp.created, +mrp.createdby, +mrp.isactive, +mrp.updated, +mrp.updatedby, +pp.ismps, +mrp.c_order_id, +mrp.c_orderline_id, +mrp.dateordered, +mrp.dateconfirm, +mrp.datepromised, +mrp.datestartschedule, +mrp.datefinishschedule, +mrp.datestart, +mrp.datesimulation, +mrp.docstatus, +mrp.m_forecast_id, +mrp.m_forecastline_id, +mrp.value, +mrp.m_product_id, +mrp.m_requisition_id, +mrp.m_requisitionline_id, +mrp.m_warehouse_id, +mrp.pp_order_id, +mrp.qty, +mrp.name, +mrp.s_resource_id, +mrp.priority, +mrp.ordertype, +mrp.typemrp, +documentNo(mrp.pp_mrp_id) AS documentNo +FROM pp_mrp mrp +LEFT JOIN pp_product_planning pp ON pp.m_product_id = mrp.m_product_id AND mrp.m_warehouse_id = pp.m_warehouse_id; + +DROP VIEW rv_pp_operation_activity; + +CREATE OR REPLACE VIEW rv_pp_operation_activity AS +SELECT n.ad_client_id, +n.ad_org_id, +n.created, +n.createdby, +n.isactive, +n.updated, +n.updatedby, +n.pp_order_id, +n.docstatus, +n.value, +n.s_resource_id, +n.durationrequiered, +n.durationreal, +n.durationrequiered - n.durationreal AS duration, +n.qtydelivered, +n.qtyreject, +n.qtyscrap, +n.datestartschedule, +n.datefinishschedule +FROM pp_order_node n; + +DROP VIEW rv_pp_order_bomline; + +CREATE OR REPLACE VIEW rv_pp_order_bomline AS +SELECT +obl.ad_client_id, +obl.ad_org_id, +obl.createdby, +obl.updatedby, +obl.updated, +obl.created, +obl.isactive, +obl.pp_order_bom_id, +obl.pp_order_bomline_id, +obl.pp_order_id, +obl.iscritical, +obl.componenttype, +obl.m_product_id, +obl.c_uom_id, +round(obl.qtyrequiered, 4) AS qtyrequiered, +round(bomqtyreserved(obl.m_product_id, obl.m_warehouse_id, 0), 4) AS qtyreserved, +round(bomqtyavailable(obl.m_product_id, obl.m_warehouse_id, 0), 4) AS qtyavailable, +round(bomqtyonhand(obl.m_product_id, obl.m_warehouse_id, 0), 4) AS qtyonhand, +obl.m_warehouse_id, +round(obl.qtybom, 4) AS qtybom, +obl.isqtypercentage, +round(obl.qtybatch, 4) AS qtybatch, +CASE WHEN o.qtybatchs = 0 THEN 1 ELSE round(obl.qtyrequiered / o.qtybatchs, 4) END AS qtybatchsize +FROM pp_order_bomline obl +JOIN pp_order o ON o.pp_order_id = obl.pp_order_id; + +DROP VIEW rv_pp_order_receipt_issue; + +DROP VIEW rv_pp_order_storage; + +CREATE OR REPLACE VIEW rv_pp_order_storage AS +SELECT +obl.ad_client_id, +obl.ad_org_id, +obl.createdby, +obl.updatedby, +obl.updated, +obl.created, +obl.isactive, +obl.pp_order_bom_id, +obl.pp_order_bomline_id, +obl.pp_order_id, +obl.iscritical, +obl.m_product_id, +( SELECT p.name FROM m_product p WHERE p.m_product_id = o.m_product_id) AS name, +obl.c_uom_id, +s.qtyonhand, +round(obl.qtyrequiered, 4) AS qtyrequiered, +CASE WHEN o.qtybatchs = 0 THEN 1 ELSE round(obl.qtyrequiered / o.qtybatchs, 4) END AS qtybatchsize, +round(bomqtyreserved(obl.m_product_id,obl.m_warehouse_id, 0), 4) AS qtyreserved, +round(bomqtyavailable(obl.m_product_id, obl.m_warehouse_id,0), 4) AS qtyavailable, +obl.m_warehouse_id, +obl.qtybom, +obl.isqtypercentage, +round(obl.qtybatch, 4) AS qtybatch, +obl.m_attributesetinstance_id, +l.m_locator_id, +l.x, +l.y, +l.z +FROM pp_order_bomline obl +JOIN pp_order o ON o.pp_order_id = obl.pp_order_id +LEFT JOIN m_storage s ON s.m_product_id = obl.m_product_id AND s.qtyonhand <> 0 AND obl.m_warehouse_id = (( SELECT ld.m_warehouse_id FROM m_locator ld WHERE s.m_locator_id = ld.m_locator_id)) +LEFT JOIN m_locator l ON l.m_locator_id = s.m_locator_id +; + +CREATE OR REPLACE VIEW rv_pp_order_receipt_issue AS +SELECT obl.pp_order_bomline_id, +obl.iscritical, +p.value, +obl.m_product_id, +mos.name AS productname, +mos.m_attributesetinstance_id, +asi.description AS instancename, +mos.c_uom_id, +u.name AS uomname, +obl.qtyrequiered, +obl.qtyreserved AS qtyreserved_order, +mos.qtyonhand, +mos.qtyreserved AS qtyreserved_storage, +mos.qtyavailable, +mos.m_locator_id, +mos.m_warehouse_id, +w.name AS warehousename, +mos.qtybom, +mos.isqtypercentage, +mos.qtybatch, +obl.componenttype, +mos.qtyrequiered - obl.qtydelivered AS qtyopen, +obl.pp_order_id +FROM rv_pp_order_storage mos +JOIN pp_order_bomline obl ON mos.pp_order_bomline_id = obl.pp_order_bomline_id +JOIN m_attributesetinstance asi ON mos.m_attributesetinstance_id = asi.m_attributesetinstance_id +JOIN c_uom u ON mos.c_uom_id = u.c_uom_id +JOIN m_product p ON mos.m_product_id = p.m_product_id +JOIN m_warehouse w ON mos.m_warehouse_id = w.m_warehouse_id; + +DROP VIEW rv_pp_order_transactions; + +CREATE OR REPLACE VIEW rv_pp_order_transactions AS +SELECT DISTINCT +o.ad_client_id, +o.ad_org_id, +o.isactive, +o.created, +o.createdby, +o.updatedby, +o.updated, +o.documentno, +ol.m_product_id, +mt.m_locator_id, +mt.movementdate, +o.pp_order_id, +o.qtydelivered, +o.qtyscrap, +ol.qtydelivered AS qtydeliveredline, +o.qtydelivered * ol.qtybatch / 100 AS qtyissueshouldbe, +ol.qtyscrap AS qtyscrapline, +o.qtyscrap * ol.qtybatch / 100 AS qtyissuescrapshouldbe, +mt.createdby AS createdbyissue, +mt.updatedby AS updatedbyissue, +( SELECT sum(t.movementqty) AS sum FROM m_transaction t WHERE t.pp_order_bomline_id = ol.pp_order_bomline_id) AS qtytodeliver, +(o.qtydelivered + o.qtyscrap) * ol.qtybatch / 100 + (( SELECT sum(t.movementqty) AS sum FROM m_transaction t WHERE t.pp_order_bomline_id = ol.pp_order_bomline_id)) AS differenceqty, +o.issotrx, +o.dateordered +FROM pp_order o +JOIN pp_order_bomline ol ON ol.pp_order_id = o.pp_order_id +LEFT JOIN m_transaction mt ON mt.pp_order_bomline_id = ol.pp_order_bomline_id +; + +DROP VIEW rv_pp_order; + +CREATE OR REPLACE VIEW rv_pp_order AS +SELECT +o.ad_client_id, +o.ad_org_id, +o.isactive, +o.created, +o.createdby, +o.updated, +o.updatedby, +o.pp_order_id, +o.documentno, +o.docstatus, +o.m_warehouse_id, +o.m_product_id, +o.qtyentered, +o.qtyreject, +o.qtyscrap, +o.qtybatchs, +o.qtybatchsize, +o.dateordered, +o.datepromised, +o.datestart, +o.datestartschedule, +o.datefinish, +o.datefinishschedule, +o.dateconfirm, +o.datedelivered, +o.lot, +o.pp_product_bom_id, +o.ad_workflow_id, +( SELECT p.weight FROM m_product p WHERE p.m_product_id = o.m_product_id) AS weight, +o.c_doctypetarget_id, +o.m_attributesetinstance_id, +o.planner_id, +o.priorityrule, +o.ad_orgtrx_id, +o.user1_id, +o.user2_id, +o.c_doctype_id, +o.line, +o.description, +o.s_resource_id, +o.floatbefored, +o.floatafter, +o.c_uom_id, +o.qtyordered, +o.qtydelivered, +o.yield, +o.c_project_id, +o.c_campaign_id, +o.c_activity_id, +o.isapproved, +o.isprinted, +o.isselected, +o.processed, +o.assay, +o.isqtypercentage, +o.ordertype, +o.issotrx, +o.scheduletype, +o.serno +FROM pp_order o; + +DROP VIEW rv_pp_product_bomline; + +CREATE OR REPLACE VIEW rv_pp_product_bomline AS +SELECT +t.seqno, +t.levelno, +t.levels, +t.ad_client_id, +t.ad_org_id, +t.createdby, +t.updatedby, +t.updated, +t.created, +t.ad_pinstance_id, +bl.isactive, +bl.pp_product_bom_id, +bl.pp_product_bomline_id, +bl.description, bl.iscritical, +bl.componenttype, +t.m_product_id, +bl.c_uom_id, +bl.issuemethod, +bl.line, +bl.m_attributesetinstance_id, +bl.scrap, +bl.validfrom, +bl.validto, +bl.qtybom, +bl.qtybatch, +bl.isqtypercentage +FROM pp_product_bomline bl +RIGHT JOIN t_bomline t ON t.pp_product_bomline_id = bl.pp_product_bomline_id +; + +UPDATE AD_Column SET EntityType='EE01' WHERE AD_Table_ID=53021; + +UPDATE AD_Table SET EntityType='EE01' WHERE AD_Table_ID=53021; + +-- Jul 16, 2008 5:18:24 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET AD_Element_ID=52020, AD_Reference_Value_ID=53229, ColumnName='OrderType', Description='Order Type', Help='Order Type', Name='Order Type',Updated=TO_TIMESTAMP('2008-07-16 17:18:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53058 +; + +-- Jul 16, 2008 5:18:24 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53058 +; + +-- Jul 16, 2008 5:18:35 PM CDT +-- MRP Detail Report +UPDATE AD_Process_Para SET AD_Reference_Value_ID=53230,Updated=TO_TIMESTAMP('2008-07-16 17:18:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53056 +; + + + diff --git a/migration/351a-352a/postgresql/231_SetPaymentProjectCharge.sql b/migration/351a-352a/postgresql/231_SetPaymentProjectCharge.sql new file mode 100644 index 0000000000..acb3e01275 --- /dev/null +++ b/migration/351a-352a/postgresql/231_SetPaymentProjectCharge.sql @@ -0,0 +1,8 @@ +-- Jul 18, 2008 11:52:19 AM COT +-- Cannot assign project to payment with charge +UPDATE AD_Column SET ReadOnlyLogic=NULL,Updated=TO_TIMESTAMP('2008-07-18 11:52:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=8554 +; + +UPDATE AD_Column SET Callout=NULL,Updated=TO_TIMESTAMP('2008-07-18 12:48:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=8554 +; + diff --git a/migration/351a-352a/postgresql/232_FR_PayrollProjectActivityControl.sql b/migration/351a-352a/postgresql/232_FR_PayrollProjectActivityControl.sql new file mode 100644 index 0000000000..07b234011b --- /dev/null +++ b/migration/351a-352a/postgresql/232_FR_PayrollProjectActivityControl.sql @@ -0,0 +1,360 @@ +-- 18-jul-2008 19:14:17 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56177,1005,0,19,53088,'C_Activity_ID',TO_TIMESTAMP('2008-07-18 19:14:05','YYYY-MM-DD HH24:MI:SS'),0,'Business Activity','EE02',10,'Activities indicate tasks that are performed and used to utilize Activity based Costing','Y','N','N','N','N','N','N','N','N','N','Y','Activity',0,TO_TIMESTAMP('2008-07-18 19:14:05','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:14:17 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56177 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:16:36 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56178,550,0,19,53102,'C_Campaign_ID',TO_TIMESTAMP('2008-07-18 19:16:34','YYYY-MM-DD HH24:MI:SS'),0,'Marketing Campaign','EE02',10,'The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign.','Y','N','N','N','N','N','N','N','N','N','Y','Campaign',0,TO_TIMESTAMP('2008-07-18 19:16:34','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:16:36 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56178 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:17:37 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56179,112,0,19,53102,'AD_OrgTrx_ID',TO_TIMESTAMP('2008-07-18 19:17:34','YYYY-MM-DD HH24:MI:SS'),0,'Performing or initiating organization','EE02',10,'The organization which performs or initiates this transaction (for another organization). The owning Organization may not be the transaction organization in a service bureau environment, with centralized services, and inter-organization transactions.','Y','N','N','N','N','N','N','N','N','N','Y','Trx Organization',0,TO_TIMESTAMP('2008-07-18 19:17:34','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:17:37 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56179 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:17:58 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD COLUMN C_Campaign_ID NUMERIC(10) +; + +-- 18-jul-2008 19:18:06 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD COLUMN AD_OrgTrx_ID NUMERIC(10) +; + +-- 18-jul-2008 19:19:32 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56180,2073,0,19,53102,262,'C_ProjectPhase_ID',TO_TIMESTAMP('2008-07-18 19:19:31','YYYY-MM-DD HH24:MI:SS'),0,'Phase of a Project','EE02',10,'Y','N','N','N','N','N','N','N','N','N','Y','Project Phase',0,TO_TIMESTAMP('2008-07-18 19:19:31','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:19:32 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56180 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:19:36 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD COLUMN C_ProjectPhase_ID NUMERIC(10) +; + +-- 18-jul-2008 19:20:40 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56181,2074,0,19,53102,263,'C_ProjectTask_ID',TO_TIMESTAMP('2008-07-18 19:20:39','YYYY-MM-DD HH24:MI:SS'),0,'Actual Project Task in a Phase','EE02',10,'A Project Task in a Project Phase represents the actual work.','Y','N','N','N','N','N','N','N','N','N','Y','Project Task',0,TO_TIMESTAMP('2008-07-18 19:20:39','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:20:40 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56181 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:20:43 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD COLUMN C_ProjectTask_ID NUMERIC(10) +; + +-- 18-jul-2008 19:21:55 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56182,208,0,19,53102,'C_Project_ID',TO_TIMESTAMP('2008-07-18 19:21:54','YYYY-MM-DD HH24:MI:SS'),0,'Financial Project','EE02',10,'A Project allows you to track and control internal or external activities.','Y','N','N','N','N','N','N','N','N','N','Y','Project',0,TO_TIMESTAMP('2008-07-18 19:21:54','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:21:55 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56182 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:21:57 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD COLUMN C_Project_ID NUMERIC(10) +; + +-- 18-jul-2008 19:23:32 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56183,613,0,18,134,53102,'User1_ID',TO_TIMESTAMP('2008-07-18 19:23:31','YYYY-MM-DD HH24:MI:SS'),0,'User defined list element #1','EE02',10,'The user defined element displays the optional elements that have been defined for this account combination.','Y','N','N','N','N','N','N','N','N','N','Y','User List 1',0,TO_TIMESTAMP('2008-07-18 19:23:31','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:23:32 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56183 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:23:35 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD COLUMN User1_ID NUMERIC(10) +; + +-- 18-jul-2008 19:24:01 CDT +-- Improve in Payroll +UPDATE AD_Column SET AD_Element_ID=614, AD_Reference_Value_ID=137, ColumnName='User2_ID', Description='User defined list element #2', Help='The user defined element displays the optional elements that have been defined for this account combination.', Name='User List 2',Updated=TO_TIMESTAMP('2008-07-18 19:24:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56183 +; + +-- 18-jul-2008 19:24:01 CDT +-- Improve in Payroll +UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=56183 +; + +-- 18-jul-2008 19:24:01 CDT +-- Improve in Payroll +UPDATE AD_Field SET Name='User List 2', Description='User defined list element #2', Help='The user defined element displays the optional elements that have been defined for this account combination.' WHERE AD_Column_ID=56183 AND IsCentrallyMaintained='Y' +; + +-- 18-jul-2008 19:24:06 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD COLUMN User2_ID NUMERIC(10) +; + +-- 18-jul-2008 19:25:08 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56184,613,0,18,134,53102,'User1_ID',TO_TIMESTAMP('2008-07-18 19:25:07','YYYY-MM-DD HH24:MI:SS'),0,'User defined list element #1','EE02',10,'The user defined element displays the optional elements that have been defined for this account combination.','Y','N','N','N','N','N','N','N','N','N','Y','User List 1',0,TO_TIMESTAMP('2008-07-18 19:25:07','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:25:08 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56184 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:25:11 CDT +-- Improve in Payroll +insert into t_alter_column values('hr_movement','User1_ID','NUMERIC(10)',null,'NULL') +; + +-- 18-jul-2008 19:27:08 CDT +-- Improve in Payroll +UPDATE AD_Element SET Name='Manufacturing Order Activity', PrintName='Manufacturing Order Activity',Updated=TO_TIMESTAMP('2008-07-18 19:27:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53285 +; + +-- 18-jul-2008 19:27:08 CDT +-- Improve in Payroll +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53285 +; + +-- 18-jul-2008 19:27:08 CDT +-- Improve in Payroll +UPDATE AD_Column SET ColumnName='PP_Order_Node_ID', Name='Manufacturing Order Activity', Description=NULL, Help=NULL WHERE AD_Element_ID=53285 +; + +-- 18-jul-2008 19:27:08 CDT +-- Improve in Payroll +UPDATE AD_Process_Para SET ColumnName='PP_Order_Node_ID', Name='Manufacturing Order Activity', Description=NULL, Help=NULL, AD_Element_ID=53285 WHERE UPPER(ColumnName)='PP_ORDER_NODE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- 18-jul-2008 19:27:08 CDT +-- Improve in Payroll +UPDATE AD_Process_Para SET ColumnName='PP_Order_Node_ID', Name='Manufacturing Order Activity', Description=NULL, Help=NULL WHERE AD_Element_ID=53285 AND IsCentrallyMaintained='Y' +; + +-- 18-jul-2008 19:27:08 CDT +-- Improve in Payroll +UPDATE AD_Field SET Name='Manufacturing Order Activity', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53285) AND IsCentrallyMaintained='Y' +; + +-- 18-jul-2008 19:27:09 CDT +-- Improve in Payroll +UPDATE AD_PrintFormatItem SET PrintName='Manufacturing Order Activity', Name='Manufacturing Order Activity' 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=53285) +; + +-- 18-jul-2008 19:27:36 CDT +-- Improve in Payroll +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56185,53285,0,19,53102,'PP_Order_Node_ID',TO_TIMESTAMP('2008-07-18 19:27:35','YYYY-MM-DD HH24:MI:SS'),0,'EE02',10,'Y','N','N','N','N','N','N','N','N','N','Y','Manufacturing Order Activity',0,TO_TIMESTAMP('2008-07-18 19:27:35','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- 18-jul-2008 19:27:36 CDT +-- Improve in Payroll +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56185 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- 18-jul-2008 19:27:39 CDT +-- Improve in Payroll +ALTER TABLE HR_Movement ADD COLUMN PP_Order_Node_ID NUMERIC(10) +; + +-- 18-jul-2008 19:30:21 CDT +-- Improve in Payroll +ALTER TABLE HR_Department ADD COLUMN C_Activity_ID NUMERIC(10) +; + +-- 18-jul-2008 19:31:05 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56177,56307,0,53109,TO_TIMESTAMP('2008-07-18 19:31:04','YYYY-MM-DD HH24:MI:SS'),0,'Business Activity',10,'EE02','Activities indicate tasks that are performed and used to utilize Activity based Costing','Y','Y','Y','N','N','N','N','N','Activity',TO_TIMESTAMP('2008-07-18 19:31:04','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:06 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56307 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:38 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56178,56308,0,53124,TO_TIMESTAMP('2008-07-18 19:31:36','YYYY-MM-DD HH24:MI:SS'),0,'Marketing Campaign',10,'EE02','The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign.','Y','Y','Y','N','N','N','N','N','Campaign',TO_TIMESTAMP('2008-07-18 19:31:36','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:38 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56308 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:39 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56185,56309,0,53124,TO_TIMESTAMP('2008-07-18 19:31:38','YYYY-MM-DD HH24:MI:SS'),0,10,'EE02','Y','Y','Y','N','N','N','N','N','Manufacturing Order Activity',TO_TIMESTAMP('2008-07-18 19:31:38','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:39 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56309 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:40 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56182,56310,0,53124,TO_TIMESTAMP('2008-07-18 19:31:39','YYYY-MM-DD HH24:MI:SS'),0,'Financial Project',10,'EE02','A Project allows you to track and control internal or external activities.','Y','Y','Y','N','N','N','N','N','Project',TO_TIMESTAMP('2008-07-18 19:31:39','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:40 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56310 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:41 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56180,56311,0,53124,TO_TIMESTAMP('2008-07-18 19:31:40','YYYY-MM-DD HH24:MI:SS'),0,'Phase of a Project',10,'EE02','Y','Y','Y','N','N','N','N','N','Project Phase',TO_TIMESTAMP('2008-07-18 19:31:40','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:41 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56311 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:42 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56181,56312,0,53124,TO_TIMESTAMP('2008-07-18 19:31:41','YYYY-MM-DD HH24:MI:SS'),0,'Actual Project Task in a Phase',10,'EE02','A Project Task in a Project Phase represents the actual work.','Y','Y','Y','N','N','N','N','N','Project Task',TO_TIMESTAMP('2008-07-18 19:31:41','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:42 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56312 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:43 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56179,56313,0,53124,TO_TIMESTAMP('2008-07-18 19:31:42','YYYY-MM-DD HH24:MI:SS'),0,'Performing or initiating organization',10,'EE02','The organization which performs or initiates this transaction (for another organization). The owning Organization may not be the transaction organization in a service bureau environment, with centralized services, and inter-organization transactions.','Y','Y','Y','N','N','N','N','N','Trx Organization',TO_TIMESTAMP('2008-07-18 19:31:42','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:43 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56313 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:44 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56184,56314,0,53124,TO_TIMESTAMP('2008-07-18 19:31:43','YYYY-MM-DD HH24:MI:SS'),0,'User defined list element #1',10,'EE02','The user defined element displays the optional elements that have been defined for this account combination.','Y','Y','Y','N','N','N','N','N','User List 1',TO_TIMESTAMP('2008-07-18 19:31:43','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:44 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56314 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:31:45 CDT +-- Improve in Payroll +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56183,56315,0,53124,TO_TIMESTAMP('2008-07-18 19:31:44','YYYY-MM-DD HH24:MI:SS'),0,'User defined list element #2',10,'EE02','The user defined element displays the optional elements that have been defined for this account combination.','Y','Y','Y','N','N','N','N','N','User List 2',TO_TIMESTAMP('2008-07-18 19:31:44','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- 18-jul-2008 19:31:45 CDT +-- Improve in Payroll +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56315 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=56313 +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=56308 +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=56314 +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=56315 +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=56311 +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=56312 +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=56310 +; + +-- 18-jul-2008 19:32:39 CDT +-- Improve in Payroll +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=56309 +; + +-- 18-jul-2008 19:33:53 CDT +-- Improve in Payroll +UPDATE AD_Tab SET Description='Introduce the Name to identify the operations from the manufacturing routing. If desired give a Description for activity.', Help='Introduce the Name to identify the operations from the manufacturing routing. If desired give a Description for activity.', Name='Activity',Updated=TO_TIMESTAMP('2008-07-18 19:33:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53025 +; + +-- 18-jul-2008 19:33:53 CDT +-- Improve in Payroll +UPDATE AD_Tab_Trl SET IsTranslated='N' WHERE AD_Tab_ID=53025 +; + +-- 18-jul-2008 19:35:01 CDT +-- Improve in Payroll +UPDATE AD_Tab SET Description='Introduce the Name to identify the operations from the manufacturing routing. If desired give a Description for activity.', Help='Introduce the Name to identify the operations from the manufacturing routing. If desired give a Description for activity.', Name='Order Activity',Updated=TO_TIMESTAMP('2008-07-18 19:35:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53036 +; + +-- 18-jul-2008 19:35:01 CDT +-- Improve in Payroll +UPDATE AD_Tab_Trl SET IsTranslated='N' WHERE AD_Tab_ID=53036 +; + +-- 18-jul-2008 19:36:05 CDT +-- Improve in Payroll +UPDATE AD_Menu SET Description='Activity Control', Name='Activity Control',Updated=TO_TIMESTAMP('2008-07-18 19:36:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=53063 +; + +-- 18-jul-2008 19:36:05 CDT +-- Improve in Payroll +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53063 +; + +-- 18-jul-2008 19:36:38 CDT +-- Improve in Payroll +UPDATE AD_Menu SET Description='Show the Activity Control Transaction Details', Name='Activity Control Transaction Details',Updated=TO_TIMESTAMP('2008-07-18 19:36:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=53065 +; + +-- 18-jul-2008 19:36:38 CDT +-- Improve in Payroll +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53065 +; + diff --git a/migration/351a-352a/postgresql/233_fix_wrong_column_in_displaylogic.sql b/migration/351a-352a/postgresql/233_fix_wrong_column_in_displaylogic.sql new file mode 100644 index 0000000000..54a3661c2c --- /dev/null +++ b/migration/351a-352a/postgresql/233_fix_wrong_column_in_displaylogic.sql @@ -0,0 +1,6 @@ +-- Column wrong in displaylogic + +update ad_field + set displaylogic = '@IsOwned@=Y & @IsDepreciated@=Y' + where displaylogic = '@IsOwned@=Y & @IsDepeciated@=Y' +; \ No newline at end of file diff --git a/migration/351a-352a/postgresql/234_create_nextidfunc.sql b/migration/351a-352a/postgresql/234_create_nextidfunc.sql new file mode 100644 index 0000000000..3872afeed4 --- /dev/null +++ b/migration/351a-352a/postgresql/234_create_nextidfunc.sql @@ -0,0 +1,7 @@ +-- missing function nextIDfunc +CREATE OR REPLACE FUNCTION nextIDfunc(AD_Sequence_ID INTEGER, System VARCHAR) +RETURNS INTEGER +AS 'org.compiere.sqlj.Adempiere.nextIDfunc(int,java.lang.String)' +LANGUAGE java VOLATILE; + +ALTER FUNCTION nextIDfunc(AD_Sequence_ID INTEGER, System VARCHAR) OWNER TO adempiere; diff --git a/migration/351a-352a/postgresql/235_BF2027432_DistributionPrintOrder.sql b/migration/351a-352a/postgresql/235_BF2027432_DistributionPrintOrder.sql new file mode 100644 index 0000000000..08cadb35e2 --- /dev/null +++ b/migration/351a-352a/postgresql/235_BF2027432_DistributionPrintOrder.sql @@ -0,0 +1,1760 @@ +-- Jul 24, 2008 3:37:40 PM CDT +-- Order Distribution +UPDATE AD_Tab SET AD_Column_ID=53930,Updated=TO_TIMESTAMP('2008-07-24 15:37:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53050 +; + +-- Jul 24, 2008 3:38:15 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54027 +; + +-- Jul 24, 2008 3:38:15 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54036 +; + +-- Jul 24, 2008 3:38:15 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54037 +; + +-- Jul 24, 2008 3:38:15 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54038 +; + +-- Jul 24, 2008 3:38:15 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54039 +; + +-- Jul 24, 2008 3:38:52 PM CDT +-- Order Distribution +UPDATE AD_Field SET IsCentrallyMaintained='N', Name='Ordered Quantity',Updated=TO_TIMESTAMP('2008-07-24 15:38:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54035 +; + +-- Jul 24, 2008 3:38:52 PM CDT +-- Order Distribution +UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=54035 +; + +-- Jul 24, 2008 3:38:59 PM CDT +-- Order Distribution +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-07-24 15:38:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54027 +; + +-- Jul 24, 2008 8:22:25 PM CDT +-- Order Distribution +UPDATE AD_Column SET DefaultValue='@DatePromised@',Updated=TO_TIMESTAMP('2008-07-24 20:22:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53940 +; + +-- Jul 24, 2008 8:23:04 PM CDT +-- Order Distribution +UPDATE AD_Column SET DefaultValue='@DateOrdered@',Updated=TO_TIMESTAMP('2008-07-24 20:23:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53939 +; + +-- Jul 24, 2008 8:36:04 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=31, AD_Reference_Value_ID=NULL,Updated=TO_TIMESTAMP('2008-07-24 20:36:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53950 +; + +-- Jul 24, 2008 8:37:40 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=31, AD_Reference_Value_ID=NULL, DefaultValue='@M_LocatorTo_ID@',Updated=TO_TIMESTAMP('2008-07-24 20:37:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53949 +; + +-- Jul 24, 2008 8:38:22 PM CDT +-- Order Distribution +UPDATE AD_Column SET DefaultValue='@M_Locator_ID@',Updated=TO_TIMESTAMP('2008-07-24 20:38:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53950 +; + +-- Jul 24, 2008 8:41:33 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=19,Updated=TO_TIMESTAMP('2008-07-24 20:41:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53950 +; + +-- Jul 24, 2008 8:41:56 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=191,Updated=TO_TIMESTAMP('2008-07-24 20:41:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53949 +; + +-- Jul 24, 2008 8:43:39 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Val_Rule_ID=NULL,Updated=TO_TIMESTAMP('2008-07-24 20:43:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53950 +; + +-- Jul 24, 2008 8:54:15 PM CDT +-- Order Distribution +UPDATE AD_Val_Rule SET Code='M_Warehouse.IsInTransit=''Y''',Updated=TO_TIMESTAMP('2008-07-24 20:54:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Val_Rule_ID=52024 +; + +-- Jul 24, 2008 9:37:10 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56190,102,0,19,53039,'AD_Client_ID',TO_TIMESTAMP('2008-07-24 21:37:08','YYYY-MM-DD HH24:MI:SS'),0,'Client/Tenant for this installation.','EE01',10,'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','N','N','N','N','N','N','N','N','N','Client',TO_TIMESTAMP('2008-07-24 21:37:08','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:10 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56190 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:11 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56191,113,0,19,53039,'AD_Org_ID',TO_TIMESTAMP('2008-07-24 21:37:10','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client','EE01',10,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','N','N','N','N','N','N','N','N','N','Organization',TO_TIMESTAMP('2008-07-24 21:37:10','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:11 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56191 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:12 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56192,348,0,20,53039,'IsActive',TO_TIMESTAMP('2008-07-24 21:37:11','YYYY-MM-DD HH24:MI:SS'),0,'The record is active in the system','EE01',1,'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.','Y','N','N','N','N','N','N','N','N','Y','Active',TO_TIMESTAMP('2008-07-24 21:37:11','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:12 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56192 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:13 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56193,245,0,16,53039,'Created',TO_TIMESTAMP('2008-07-24 21:37:12','YYYY-MM-DD HH24:MI:SS'),0,'Date this record was created','EE01',29,'The Created field indicates the date that this record was created.','Y','N','N','N','N','N','N','N','N','N','Created',TO_TIMESTAMP('2008-07-24 21:37:12','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:13 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56193 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:14 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56194,246,0,18,110,53039,'CreatedBy',TO_TIMESTAMP('2008-07-24 21:37:13','YYYY-MM-DD HH24:MI:SS'),0,'User who created this records','EE01',10,'The Created By field indicates the user who created this record.','Y','N','N','N','N','N','N','N','N','N','Created By',TO_TIMESTAMP('2008-07-24 21:37:13','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:14 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56194 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:14 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56195,607,0,16,53039,'Updated',TO_TIMESTAMP('2008-07-24 21:37:14','YYYY-MM-DD HH24:MI:SS'),0,'Date this record was updated','EE01',29,'The Updated field indicates the date that this record was updated.','Y','N','N','N','N','N','N','N','N','N','Updated',TO_TIMESTAMP('2008-07-24 21:37:14','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:14 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56195 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:15 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56196,608,0,18,110,53039,'UpdatedBy',TO_TIMESTAMP('2008-07-24 21:37:14','YYYY-MM-DD HH24:MI:SS'),0,'User who updated this records','EE01',10,'The Updated By field indicates the user who updated this record.','Y','N','N','N','N','N','N','N','N','N','Updated By',TO_TIMESTAMP('2008-07-24 21:37:14','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:15 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56196 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:16 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56197,109,0,14,53039,'AD_Language',TO_TIMESTAMP('2008-07-24 21:37:15','YYYY-MM-DD HH24:MI:SS'),0,'Language for this entity','EE01',2147483647,'The Language identifies the language to use for display and formatting','Y','N','N','N','N','N','N','N','N','Y','Language',TO_TIMESTAMP('2008-07-24 21:37:15','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:16 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56197 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:16 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56198,558,0,19,53039,'C_Order_ID',TO_TIMESTAMP('2008-07-24 21:37:16','YYYY-MM-DD HH24:MI:SS'),0,'Order','EE01',10,'The Order is a control document. The Order is complete when the quantity ordered is the same as the quantity shipped and invoiced. When you cloase an order, unshipped (backordered) quantities are cancelled.','Y','N','N','N','N','N','N','N','N','Y','Order',TO_TIMESTAMP('2008-07-24 21:37:16','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:16 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56198 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:17 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56199,1106,0,20,53039,'IsSOTrx',TO_TIMESTAMP('2008-07-24 21:37:16','YYYY-MM-DD HH24:MI:SS'),0,'This is a Sales Transaction','EE01',1,'The Sales Transaction checkbox indicates if this item is a Sales Transaction.','Y','N','N','N','N','N','N','N','N','Y','Sales Transaction',TO_TIMESTAMP('2008-07-24 21:37:16','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:17 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56199 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:19 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56200,290,0,10,53039,'DocumentNo',TO_TIMESTAMP('2008-07-24 21:37:17','YYYY-MM-DD HH24:MI:SS'),0,'Document sequence number of the document','EE01',30,'The document number is usually automatically generated by the system and determined by the document type of the document. If the document is not saved, the preliminary number is displayed in "<>". + +If the document type of your document has no automatic document sequence defined, the field is empty if you create a new document. This is for documents which usually have an external number (like vendor invoice). If you leave the field empty, the system will generate a document number for you. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','Y','N','N','N','N','N','N','N','N','Y','Document No',TO_TIMESTAMP('2008-07-24 21:37:17','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:19 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56200 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:19 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56201,289,0,17,53039,'DocStatus',TO_TIMESTAMP('2008-07-24 21:37:19','YYYY-MM-DD HH24:MI:SS'),0,'The current status of the document','EE01',2,'The Document Status indicates the status of a document at this time. If you want to change the document status, use the Document Action field','Y','N','N','N','N','N','N','N','N','Y','Document Status',TO_TIMESTAMP('2008-07-24 21:37:19','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:19 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56201 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:20 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56202,196,0,19,53039,'C_DocType_ID',TO_TIMESTAMP('2008-07-24 21:37:19','YYYY-MM-DD HH24:MI:SS'),0,'Document type or rules','EE01',10,'The Document Type determines document sequence and processing rules','Y','N','N','N','N','N','N','N','N','Y','Document Type',TO_TIMESTAMP('2008-07-24 21:37:19','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:20 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56202 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:21 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56203,187,0,19,53039,'C_BPartner_ID',TO_TIMESTAMP('2008-07-24 21:37:20','YYYY-MM-DD HH24:MI:SS'),0,'Identifies a Business Partner','EE01',10,'A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','Y','N','N','N','N','N','N','N','N','Y','Business Partner ',TO_TIMESTAMP('2008-07-24 21:37:20','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:21 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56203 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:21 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56204,1876,0,10,53039,'BPValue',TO_TIMESTAMP('2008-07-24 21:37:21','YYYY-MM-DD HH24:MI:SS'),0,'Business Partner Key Value','EE01',40,'Search Key of Business Partner','Y','N','N','N','N','N','N','N','N','Y','BP Search Key',TO_TIMESTAMP('2008-07-24 21:37:21','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:22 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56204 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:22 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56205,2266,0,10,53039,'BPTaxID',TO_TIMESTAMP('2008-07-24 21:37:22','YYYY-MM-DD HH24:MI:SS'),0,'Tax ID of the Business Partner','EE01',20,'Y','N','N','N','N','N','N','N','N','Y','Partner Tax ID',TO_TIMESTAMP('2008-07-24 21:37:22','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:22 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56205 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:23 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56206,468,0,10,53039,'NAICS',TO_TIMESTAMP('2008-07-24 21:37:22','YYYY-MM-DD HH24:MI:SS'),0,'Standard Industry Code or its successor NAIC - http://www.osha.gov/oshstats/sicser.html','EE01',6,'The NAICS/SIC identifies either of these codes that may be applicable to this Business Partner.','Y','N','N','N','N','N','N','N','N','Y','NAICS/SIC',TO_TIMESTAMP('2008-07-24 21:37:22','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:23 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56206 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:24 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56207,260,0,10,53039,'DUNS',TO_TIMESTAMP('2008-07-24 21:37:23','YYYY-MM-DD HH24:MI:SS'),0,'Dun & Bradstreet Number','EE01',11,'Used for EDI - For details see www.dnb.com/dunsno/list.htm','Y','N','N','N','N','N','N','N','N','Y','D-U-N-S',TO_TIMESTAMP('2008-07-24 21:37:23','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:24 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56207 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:25 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56208,1874,0,19,53039,'Org_Location_ID',TO_TIMESTAMP('2008-07-24 21:37:24','YYYY-MM-DD HH24:MI:SS'),0,'Organization Location/Address','EE01',10,'Y','N','N','N','N','N','N','N','N','Y','Org Address',TO_TIMESTAMP('2008-07-24 21:37:24','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:25 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56208 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:26 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56209,590,0,10,53039,'TaxID',TO_TIMESTAMP('2008-07-24 21:37:25','YYYY-MM-DD HH24:MI:SS'),0,'Tax Identification','EE01',20,'The Tax ID field identifies the legal Identification number of this Entity.','Y','N','N','N','N','N','N','N','N','Y','Tax ID',TO_TIMESTAMP('2008-07-24 21:37:25','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:26 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56209 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:26 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56210,459,0,19,53039,'M_Warehouse_ID',TO_TIMESTAMP('2008-07-24 21:37:26','YYYY-MM-DD HH24:MI:SS'),0,'Storage Warehouse and Service Point','EE01',10,'The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','N','N','N','N','N','N','N','N','Y','Warehouse',TO_TIMESTAMP('2008-07-24 21:37:26','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:26 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56210 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:27 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56211,1875,0,19,53039,'Warehouse_Location_ID',TO_TIMESTAMP('2008-07-24 21:37:26','YYYY-MM-DD HH24:MI:SS'),0,'Warehouse Location/Address','EE01',10,'Address of Warehouse','Y','N','N','N','N','N','N','N','N','Y','Warehouse Address',TO_TIMESTAMP('2008-07-24 21:37:26','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:27 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56211 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:28 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56212,1841,0,10,53039,'DocumentType',TO_TIMESTAMP('2008-07-24 21:37:27','YYYY-MM-DD HH24:MI:SS'),0,'Document Type','EE01',60,'Y','N','N','N','N','N','N','N','N','Y','Document Type',TO_TIMESTAMP('2008-07-24 21:37:27','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:28 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56212 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:29 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56213,1842,0,14,53039,'DocumentTypeNote',TO_TIMESTAMP('2008-07-24 21:37:28','YYYY-MM-DD HH24:MI:SS'),0,'Optional note of a document type','EE01',2000,'Y','N','N','N','N','N','N','N','N','Y','Document Type Note',TO_TIMESTAMP('2008-07-24 21:37:28','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:29 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56213 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:30 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56214,1063,0,18,190,53039,'SalesRep_ID',TO_TIMESTAMP('2008-07-24 21:37:29','YYYY-MM-DD HH24:MI:SS'),0,'Sales Representative or Company Agent','EE01',10,'The Sales Representative indicates the Sales Rep for this Region. Any Sales Rep must be a valid internal user.','Y','N','N','N','N','N','N','N','N','Y','Sales Representative',TO_TIMESTAMP('2008-07-24 21:37:29','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:30 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56214 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:31 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56215,1886,0,10,53039,'SalesRep_Name',TO_TIMESTAMP('2008-07-24 21:37:30','YYYY-MM-DD HH24:MI:SS'),0,'EE01',60,'Y','N','N','N','N','N','N','N','N','Y','Sales Representative',TO_TIMESTAMP('2008-07-24 21:37:30','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:31 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56215 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:31 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56216,268,0,16,53039,'DateOrdered',TO_TIMESTAMP('2008-07-24 21:37:31','YYYY-MM-DD HH24:MI:SS'),0,'Date of Order','EE01',29,'Indicates the Date an item was ordered.','Y','N','N','N','N','N','N','N','N','Y','Date Ordered',TO_TIMESTAMP('2008-07-24 21:37:31','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:31 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56216 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:32 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56217,269,0,16,53039,'DatePromised',TO_TIMESTAMP('2008-07-24 21:37:31','YYYY-MM-DD HH24:MI:SS'),0,'Date Order was promised','EE01',29,'The Date Promised indicates the date, if any, that an Order was promised for.','Y','N','N','N','N','N','N','N','N','Y','Date Promised',TO_TIMESTAMP('2008-07-24 21:37:31','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:32 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56217 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:34 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56218,1838,0,10,53039,'BPGreeting',TO_TIMESTAMP('2008-07-24 21:37:32','YYYY-MM-DD HH24:MI:SS'),0,'Greeting for Business Partner','EE01',60,'Y','N','N','N','N','N','N','N','N','Y','BP Greeting',TO_TIMESTAMP('2008-07-24 21:37:32','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:34 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56218 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:35 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56219,469,0,10,53039,'Name',TO_TIMESTAMP('2008-07-24 21:37:34','YYYY-MM-DD HH24:MI:SS'),0,'Alphanumeric identifier of the entity','EE01',60,'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.','Y','N','N','Y','N','N','N','N','N','Y','Name',1,TO_TIMESTAMP('2008-07-24 21:37:34','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:35 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56219 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:36 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56220,1111,0,10,53039,'Name2',TO_TIMESTAMP('2008-07-24 21:37:35','YYYY-MM-DD HH24:MI:SS'),0,'Additional Name','EE01',60,'Y','N','N','N','N','N','N','N','N','Y','Name 2',TO_TIMESTAMP('2008-07-24 21:37:35','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:36 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56220 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:36 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56221,1837,0,10,53039,'BPContactGreeting',TO_TIMESTAMP('2008-07-24 21:37:36','YYYY-MM-DD HH24:MI:SS'),0,'Greeting for Business Partner Contact','EE01',60,'Y','N','N','N','N','N','N','N','N','Y','BP Contact Greeting',TO_TIMESTAMP('2008-07-24 21:37:36','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:37 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56221 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:37 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56222,982,0,10,53039,'Title',TO_TIMESTAMP('2008-07-24 21:37:37','YYYY-MM-DD HH24:MI:SS'),0,'Name this entity is referred to as','EE01',40,'The Title indicates the name that an entity is referred to as.','Y','N','N','N','N','N','N','N','N','Y','Title',TO_TIMESTAMP('2008-07-24 21:37:37','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:37 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56222 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:38 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56223,505,0,10,53039,'Phone',TO_TIMESTAMP('2008-07-24 21:37:37','YYYY-MM-DD HH24:MI:SS'),0,'Identifies a telephone number','EE01',40,'The Phone field identifies a telephone number','Y','N','N','N','N','N','N','N','N','Y','Phone',TO_TIMESTAMP('2008-07-24 21:37:37','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:38 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56223 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:40 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56224,1839,0,14,53039,'ContactName',TO_TIMESTAMP('2008-07-24 21:37:38','YYYY-MM-DD HH24:MI:SS'),0,'Business Partner Contact Name','EE01',2147483647,'Y','N','N','N','N','N','N','N','N','Y','Contact Name',TO_TIMESTAMP('2008-07-24 21:37:38','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:40 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56224 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:40 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56225,202,0,21,53039,'C_Location_ID',TO_TIMESTAMP('2008-07-24 21:37:40','YYYY-MM-DD HH24:MI:SS'),0,'Location or Address','EE01',10,'The Location / Address field defines the location of an entity.','Y','N','N','N','N','N','N','N','N','Y','Address',TO_TIMESTAMP('2008-07-24 21:37:40','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:40 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56225 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:41 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56226,512,0,14,53039,'Postal',TO_TIMESTAMP('2008-07-24 21:37:40','YYYY-MM-DD HH24:MI:SS'),0,'Postal code','EE01',2147483647,'The Postal Code or ZIP identifies the postal code for this entity''s address.','Y','N','N','N','N','N','N','N','N','Y','ZIP',TO_TIMESTAMP('2008-07-24 21:37:40','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:41 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56226 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:42 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56227,540,0,10,53039,'ReferenceNo',TO_TIMESTAMP('2008-07-24 21:37:41','YYYY-MM-DD HH24:MI:SS'),0,'Your customer or vendor number at the Business Partner''s site','EE01',40,'The reference number can be printed on orders and invoices to allow your business partner to faster identify your records.','Y','N','N','N','N','N','N','N','N','Y','Reference No',TO_TIMESTAMP('2008-07-24 21:37:41','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:42 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56227 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:42 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56228,275,0,10,53039,'Description',TO_TIMESTAMP('2008-07-24 21:37:42','YYYY-MM-DD HH24:MI:SS'),0,'Optional short description of the record','EE01',255,'A description is limited to 255 characters.','Y','N','N','N','N','N','N','N','N','Y','Description',TO_TIMESTAMP('2008-07-24 21:37:42','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:43 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56228 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:43 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56229,952,0,10,53039,'POReference',TO_TIMESTAMP('2008-07-24 21:37:43','YYYY-MM-DD HH24:MI:SS'),0,'Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner','EE01',20,'The business partner order reference is the order reference for this specific transaction; Often Purchase Order numbers are given to print on Invoices for easier reference. A standard number can be defined in the Business Partner (Customer) window.','Y','N','N','N','N','N','N','N','N','Y','Order Reference',TO_TIMESTAMP('2008-07-24 21:37:43','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:43 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56229 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:44 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56230,968,0,19,53039,'C_Charge_ID',TO_TIMESTAMP('2008-07-24 21:37:43','YYYY-MM-DD HH24:MI:SS'),0,'Additional document charges','EE01',10,'The Charge indicates a type of Charge (Handling, Shipping, Restocking)','Y','N','N','N','N','N','N','N','N','Y','Charge',TO_TIMESTAMP('2008-07-24 21:37:43','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:44 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56230 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:45 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56231,849,0,12,53039,'ChargeAmt',TO_TIMESTAMP('2008-07-24 21:37:44','YYYY-MM-DD HH24:MI:SS'),0,'Charge Amount','EE01',131089,'The Charge Amount indicates the amount for an additional charge.','Y','N','N','N','N','N','N','N','N','Y','Charge amount',TO_TIMESTAMP('2008-07-24 21:37:44','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:45 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56231 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:46 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56232,627,0,22,53039,'Volume',TO_TIMESTAMP('2008-07-24 21:37:45','YYYY-MM-DD HH24:MI:SS'),0,'Volume of a product','EE01',131089,'The Volume indicates the volume of the product in the Volume UOM of the Client','Y','N','N','N','N','N','N','N','N','Y','Volume',TO_TIMESTAMP('2008-07-24 21:37:45','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:46 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56232 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:47 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56233,629,0,22,53039,'Weight',TO_TIMESTAMP('2008-07-24 21:37:46','YYYY-MM-DD HH24:MI:SS'),0,'Weight of a product','EE01',131089,'The Weight indicates the weight of the product in the Weight UOM of the Client','Y','N','N','N','N','N','N','N','N','Y','Weight',TO_TIMESTAMP('2008-07-24 21:37:46','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:47 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56233 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:49 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56234,550,0,19,53039,'C_Campaign_ID',TO_TIMESTAMP('2008-07-24 21:37:47','YYYY-MM-DD HH24:MI:SS'),0,'Marketing Campaign','EE01',10,'The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign.','Y','N','N','N','N','N','N','N','N','Y','Campaign',TO_TIMESTAMP('2008-07-24 21:37:47','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:49 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56234 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:49 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56235,208,0,19,53039,'C_Project_ID',TO_TIMESTAMP('2008-07-24 21:37:49','YYYY-MM-DD HH24:MI:SS'),0,'Financial Project','EE01',10,'A Project allows you to track and control internal or external activities.','Y','N','N','N','N','N','N','N','N','Y','Project',TO_TIMESTAMP('2008-07-24 21:37:49','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:50 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56235 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:50 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56236,1005,0,19,53039,'C_Activity_ID',TO_TIMESTAMP('2008-07-24 21:37:50','YYYY-MM-DD HH24:MI:SS'),0,'Business Activity','EE01',10,'Activities indicate tasks that are performed and used to utilize Activity based Costing','Y','N','N','N','N','N','N','N','N','Y','Activity',TO_TIMESTAMP('2008-07-24 21:37:50','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:50 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56236 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:51 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56237,455,0,19,53039,'M_Shipper_ID',TO_TIMESTAMP('2008-07-24 21:37:50','YYYY-MM-DD HH24:MI:SS'),0,'Method or manner of product delivery','EE01',10,'The Shipper indicates the method of delivering product','Y','N','N','N','N','N','N','N','N','Y','Shipper',TO_TIMESTAMP('2008-07-24 21:37:50','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:51 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56237 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:53 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56238,555,0,20,53039,'DeliveryRule',TO_TIMESTAMP('2008-07-24 21:37:51','YYYY-MM-DD HH24:MI:SS'),0,'Defines the timing of Delivery','EE01',1,'The Delivery Rule indicates when an order should be delivered. For example should the order be delivered when the entire order is complete, when a line is complete or as the products become available.','Y','N','N','N','N','N','N','N','N','Y','Delivery Rule',TO_TIMESTAMP('2008-07-24 21:37:51','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:53 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56238 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:54 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56239,274,0,20,53039,'DeliveryViaRule',TO_TIMESTAMP('2008-07-24 21:37:53','YYYY-MM-DD HH24:MI:SS'),0,'How the order will be delivered','EE01',1,'The Delivery Via indicates how the products should be delivered. For example, will the order be picked up or shipped.','Y','N','N','N','N','N','N','N','N','Y','Delivery Via',TO_TIMESTAMP('2008-07-24 21:37:53','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:54 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56239 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:37:55 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56240,522,0,20,53039,'PriorityRule',TO_TIMESTAMP('2008-07-24 21:37:54','YYYY-MM-DD HH24:MI:SS'),0,'Priority of a document','EE01',1,'The Priority indicates the importance (high, medium, low) of this document','Y','N','N','N','N','N','N','N','N','Y','Priority',TO_TIMESTAMP('2008-07-24 21:37:54','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:37:55 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56240 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:38:08 PM CDT +-- Order Distribution +UPDATE AD_Table SET IsView='Y',Updated=TO_TIMESTAMP('2008-07-24 21:38:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Table_ID=53039 +; + +-- Jul 24, 2008 9:38:54 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56208, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:38:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50424 +; + +-- Jul 24, 2008 9:39:05 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56218, IsGroupBy='N', IsPageBreak='N', SortNo=0, XSpace=0, YSpace=0,Updated=TO_TIMESTAMP('2008-07-24 21:39:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50425 +; + +-- Jul 24, 2008 9:39:13 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56219, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:39:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50426 +; + +-- Jul 24, 2008 9:39:18 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56220, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:39:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50427 +; + +-- Jul 24, 2008 9:39:31 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56221, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:39:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50428 +; + +-- Jul 24, 2008 9:39:38 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56222, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:39:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50429 +; + +-- Jul 24, 2008 9:39:44 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56224, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:39:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50430 +; + +-- Jul 24, 2008 9:40:06 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56225, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:40:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50431 +; + +-- Jul 24, 2008 9:40:12 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56217, IsGroupBy='N', IsPageBreak='N', SortNo=0, XSpace=0, YSpace=0,Updated=TO_TIMESTAMP('2008-07-24 21:40:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50432 +; + +-- Jul 24, 2008 9:40:21 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56204, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:40:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50433 +; + +-- Jul 24, 2008 9:40:27 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56227, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:40:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50434 +; + +-- Jul 24, 2008 9:40:40 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56229, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:40:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50435 +; + +-- Jul 24, 2008 9:40:46 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56214, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:40:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50436 +; + +-- Jul 24, 2008 9:40:58 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56212, IsGroupBy='N', IsPageBreak='N', SortNo=0, XSpace=0, YSpace=0,Updated=TO_TIMESTAMP('2008-07-24 21:40:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50437 +; + +-- Jul 24, 2008 9:41:05 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56200, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:41:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50438 +; + +-- Jul 24, 2008 9:41:10 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56216, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:41:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50439 +; + +-- Jul 24, 2008 9:41:21 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56213, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:41:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50440 +; + +-- Jul 24, 2008 9:41:29 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56228, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-24 21:41:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50441 +; + +-- Jul 24, 2008 9:43:40 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56241,53311,0,19,53039,'DD_Order_ID',TO_TIMESTAMP('2008-07-24 21:43:37','YYYY-MM-DD HH24:MI:SS'),0,'EE01',10,'Y','N','N','N','N','N','N','N','N','N','Distribution Order',TO_TIMESTAMP('2008-07-24 21:43:37','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 24, 2008 9:43:40 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56241 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 24, 2008 9:44:15 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=56241, IsGroupBy='N', IsPageBreak='N', SortNo=0, XSpace=0, YSpace=0,Updated=TO_TIMESTAMP('2008-07-24 21:44:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50442 +; + +-- Jul 24, 2008 9:45:00 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=10,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50361 +; + +-- Jul 24, 2008 9:45:00 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=20,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50364 +; + +-- Jul 24, 2008 9:45:00 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=30,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50382 +; + +-- Jul 24, 2008 9:45:00 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=40,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50385 +; + +-- Jul 24, 2008 9:45:00 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=50,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50363 +; + +-- Jul 24, 2008 9:45:00 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=60,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50378 +; + +-- Jul 24, 2008 9:45:35 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=10,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50378 +; + +-- Jul 24, 2008 9:45:35 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=20,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50361 +; + +-- Jul 24, 2008 9:45:35 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=30,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50364 +; + +-- Jul 24, 2008 9:45:35 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=40,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50382 +; + +-- Jul 24, 2008 9:45:35 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=50,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50385 +; + +-- Jul 24, 2008 9:45:35 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SortNo=60,IsOrderBy='Y' WHERE AD_PrintFormatItem_ID=50363 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50369 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50370 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50371 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50372 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50378 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50373 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50374 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50375 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50376 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50377 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50379 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50380 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50381 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50383 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50384 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50385 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50386 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50387 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50388 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50389 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50390 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50391 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50392 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50393 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=10,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50361 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=20,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50362 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=30,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50363 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=40,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50364 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=50,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50382 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=60,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50365 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=70,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50366 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=80,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50367 +; + +-- Jul 24, 2008 9:47:25 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=90,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50368 +; + +-- Jul 24, 2008 9:55:43 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=10, FieldLength=20,Updated=TO_TIMESTAMP('2008-07-24 21:55:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56197 +; + +-- Jul 24, 2008 9:56:07 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Val_Rule_ID=129,Updated=TO_TIMESTAMP('2008-07-24 21:56:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56190 +; + +-- Jul 24, 2008 9:56:40 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Val_Rule_ID=104,Updated=TO_TIMESTAMP('2008-07-24 21:56:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56191 +; + +-- Jul 24, 2008 9:58:27 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=10,Updated=TO_TIMESTAMP('2008-07-24 21:58:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56224 +; + +-- Jul 24, 2008 10:02:17 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_Value_ID=131, DefaultValue='DR',Updated=TO_TIMESTAMP('2008-07-24 22:02:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56201 +; + +-- Jul 24, 2008 10:03:20 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=10,Updated=TO_TIMESTAMP('2008-07-24 22:03:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56213 +; + +-- Jul 24, 2008 10:04:28 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=21,Updated=TO_TIMESTAMP('2008-07-24 22:04:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56208 +; + +-- Jul 24, 2008 10:05:36 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=10, FieldLength=20,Updated=TO_TIMESTAMP('2008-07-24 22:05:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56226 +; + +-- Jul 24, 2008 10:06:13 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=17, AD_Reference_Value_ID=154,Updated=TO_TIMESTAMP('2008-07-24 22:06:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56240 +; + +-- Jul 24, 2008 10:07:33 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=21,Updated=TO_TIMESTAMP('2008-07-24 22:07:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56211 +; + +-- Jul 24, 2008 10:07:45 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:07:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56233 +; + +-- Jul 24, 2008 10:08:03 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:08:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56232 +; + +-- Jul 24, 2008 10:08:13 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:08:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56196 +; + +-- Jul 24, 2008 10:08:43 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=7,Updated=TO_TIMESTAMP('2008-07-24 22:08:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56195 +; + +-- Jul 24, 2008 10:09:31 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:09:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56214 +; + +-- Jul 24, 2008 10:10:23 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:10:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56208 +; + +-- Jul 24, 2008 10:10:54 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:10:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56210 +; + +-- Jul 24, 2008 10:11:07 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:11:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56237 +; + +-- Jul 24, 2008 10:12:40 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=17, AD_Reference_Value_ID=151,Updated=TO_TIMESTAMP('2008-07-24 22:12:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56239 +; + +-- Jul 24, 2008 10:15:24 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=17, AD_Reference_Value_ID=151,Updated=TO_TIMESTAMP('2008-07-24 22:15:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56238 +; + +-- Jul 24, 2008 10:15:34 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_Value_ID=152,Updated=TO_TIMESTAMP('2008-07-24 22:15:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56239 +; + +-- Jul 24, 2008 10:17:06 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=60,Updated=TO_TIMESTAMP('2008-07-24 22:17:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56224 +; + +-- Jul 24, 2008 10:17:16 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:17:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56231 +; + +-- Jul 24, 2008 10:17:28 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:17:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56235 +; + +-- Jul 24, 2008 10:17:37 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:17:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56198 +; + +-- Jul 24, 2008 10:17:47 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:17:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56225 +; + +-- Jul 24, 2008 10:17:59 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:17:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56202 +; + +-- Jul 24, 2008 10:18:10 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:18:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56230 +; + +-- Jul 24, 2008 10:18:19 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:18:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56234 +; + +-- Jul 24, 2008 10:18:33 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:18:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56203 +; + +-- Jul 24, 2008 10:18:41 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:18:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56236 +; + +-- Jul 24, 2008 10:19:35 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:19:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56191 +; + +-- Jul 24, 2008 10:20:10 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=22,Updated=TO_TIMESTAMP('2008-07-24 22:20:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56190 +; + +-- Jul 25, 2008 12:41:32 AM CDT +-- Order Distribution +UPDATE AD_Process SET AD_PrintFormat_ID=NULL,Updated=TO_TIMESTAMP('2008-07-25 00:41:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53028 +; + +-- Jul 25, 2008 12:42:06 AM CDT +-- Order Distribution +UPDATE AD_Process SET AD_PrintFormat_ID=NULL,Updated=TO_TIMESTAMP('2008-07-25 00:42:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53044 +; + +-- Jul 25, 2008 1:09:20 AM CDT +-- Order Distribution +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53670,0,'Manuf_Order_MailText_ID',TO_TIMESTAMP('2008-07-25 01:09:09','YYYY-MM-DD HH24:MI:SS'),0,'Email text used for sending Manufacturing Order','EE01','Standard email template used to send Manufacturing Order as attachments.','Y','Manufacturing Order Mail Text','Manufacturing Order Text',TO_TIMESTAMP('2008-07-25 01:09:09','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:09:21 AM CDT +-- Order Distribution +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53670 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 25, 2008 1:11:42 AM CDT +-- Order Distribution +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53671,0,'Manuf_Order_PrintFormat_ID',TO_TIMESTAMP('2008-07-25 01:11:38','YYYY-MM-DD HH24:MI:SS'),0,'Print Format for printing Manufacturing Order','EE01','You need to define a Print Format to print the document.','Y','Manufacturing Order Print Format','Manufacturing Order Print Format',TO_TIMESTAMP('2008-07-25 01:11:38','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:11:42 AM CDT +-- Order Distribution +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53671 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 25, 2008 1:12:15 AM CDT +-- Order Distribution +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53672,0,'Distrib_Order_PrintFormat_ID',TO_TIMESTAMP('2008-07-25 01:12:13','YYYY-MM-DD HH24:MI:SS'),0,'Print Format for printing Distribution Order','EE01','You need to define a Print Format to print the document.','Y','Distribution Order Print Format','Distribution Order Print Format',TO_TIMESTAMP('2008-07-25 01:12:13','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:12:15 AM CDT +-- Order Distribution +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53672 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 25, 2008 1:12:52 AM CDT +-- Order Distribution +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53673,0,'Distrib_Order_MailText_ID',TO_TIMESTAMP('2008-07-25 01:12:52','YYYY-MM-DD HH24:MI:SS'),0,'Email text used for sending Distribution Order','EE01','Standard email template used to send Manufacturing Order as attachments.','Y','Distribution Order Mail Text','Distribution Order Text',TO_TIMESTAMP('2008-07-25 01:12:52','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:12:52 AM CDT +-- Order Distribution +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53673 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 25, 2008 1:18:14 AM CDT +-- Order Distribution +INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53281,TO_TIMESTAMP('2008-07-25 01:18:14','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N','AD_PrintFormat Order Manufacturing',TO_TIMESTAMP('2008-07-25 01:18:14','YYYY-MM-DD HH24:MI:SS'),0,'T') +; + +-- Jul 25, 2008 1:18:14 AM CDT +-- Order Distribution +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_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_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53281 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID) +; + +-- Jul 25, 2008 1:26:47 AM CDT +-- Order Distribution +INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,WhereClause) VALUES (0,7019,7026,0,53281,493,TO_TIMESTAMP('2008-07-25 01:26:45','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N',TO_TIMESTAMP('2008-07-25 01:26:45','YYYY-MM-DD HH24:MI:SS'),0,'AD_PrintFormat.AD_Table_ID=53027') +; + +-- Jul 25, 2008 1:29:25 AM CDT +-- Order Distribution +UPDATE AD_Reference SET Name='AD_PrintFormat Manufacturing Order',Updated=TO_TIMESTAMP('2008-07-25 01:29:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=53281 +; + +-- Jul 25, 2008 1:29:25 AM CDT +-- Order Distribution +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53281 +; + +-- Jul 25, 2008 1:29:45 AM CDT +-- Order Distribution +INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53282,TO_TIMESTAMP('2008-07-25 01:29:44','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N','AD_PrintFormat Distribution Order',TO_TIMESTAMP('2008-07-25 01:29:44','YYYY-MM-DD HH24:MI:SS'),0,'T') +; + +-- Jul 25, 2008 1:29:45 AM CDT +-- Order Distribution +INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_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_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53282 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID) +; + +-- Jul 25, 2008 1:32:17 AM CDT +-- Order Distribution +INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,WhereClause) VALUES (0,7019,7026,0,53282,493,TO_TIMESTAMP('2008-07-25 01:32:17','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N',TO_TIMESTAMP('2008-07-25 01:32:17','YYYY-MM-DD HH24:MI:SS'),0,'AD_PrintFormat.AD_Table_ID=53037') +; + +-- Jul 25, 2008 1:33:47 AM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56242,53670,0,18,274,454,'Manuf_Order_MailText_ID',TO_TIMESTAMP('2008-07-25 01:33:46','YYYY-MM-DD HH24:MI:SS'),0,'Email text used for sending Manufacturing Order','EE01',22,'Standard email template used to send Manufacturing Order as attachments.','Y','N','N','N','N','N','N','N','N','N','Y','Manufacturing Order Mail Text',0,TO_TIMESTAMP('2008-07-25 01:33:46','YYYY-MM-DD HH24:MI:SS'),0,1) +; + +-- Jul 25, 2008 1:33:47 AM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56242 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 25, 2008 1:33:53 AM CDT +-- Order Distribution +ALTER TABLE AD_PrintForm ADD COLUMN Manuf_Order_MailText_ID NUMERIC(10) +; + +-- Jul 25, 2008 1:34:57 AM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56243,53671,0,18,53281,454,'Manuf_Order_PrintFormat_ID',TO_TIMESTAMP('2008-07-25 01:34:56','YYYY-MM-DD HH24:MI:SS'),0,'Print Format for printing Manufacturing Order','EE01',22,'You need to define a Print Format to print the document.','Y','N','N','N','N','N','N','N','N','N','Y','Manufacturing Order Print Format',0,TO_TIMESTAMP('2008-07-25 01:34:56','YYYY-MM-DD HH24:MI:SS'),0,1) +; + +-- Jul 25, 2008 1:34:57 AM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56243 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 25, 2008 1:35:02 AM CDT +-- Order Distribution +ALTER TABLE AD_PrintForm ADD COLUMN Manuf_Order_PrintFormat_ID NUMERIC(10) +; + +-- Jul 25, 2008 1:35:47 AM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56244,53673,0,18,274,454,'Distrib_Order_MailText_ID',TO_TIMESTAMP('2008-07-25 01:35:47','YYYY-MM-DD HH24:MI:SS'),0,'Email text used for sending Distribution Order','EE01',22,'Standard email template used to send Manufacturing Order as attachments.','Y','N','N','N','N','N','N','N','N','N','Y','Distribution Order Mail Text',0,TO_TIMESTAMP('2008-07-25 01:35:47','YYYY-MM-DD HH24:MI:SS'),0,1) +; + +-- Jul 25, 2008 1:35:47 AM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56244 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 25, 2008 1:35:51 AM CDT +-- Order Distribution +ALTER TABLE AD_PrintForm ADD COLUMN Distrib_Order_MailText_ID NUMERIC(10) +; + +-- Jul 25, 2008 1:36:23 AM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56245,53672,0,18,53282,454,'Distrib_Order_PrintFormat_ID',TO_TIMESTAMP('2008-07-25 01:36:22','YYYY-MM-DD HH24:MI:SS'),0,'Print Format for printing Distribution Order','EE01',22,'You need to define a Print Format to print the document.','Y','N','N','N','N','N','N','N','N','N','Y','Distribution Order Print Format',0,TO_TIMESTAMP('2008-07-25 01:36:22','YYYY-MM-DD HH24:MI:SS'),0,1) +; + +-- Jul 25, 2008 1:36:23 AM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56245 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 25, 2008 1:36:25 AM CDT +-- Order Distribution +ALTER TABLE AD_PrintForm ADD COLUMN Distrib_Order_PrintFormat_ID NUMERIC(10) +; + +-- Jul 25, 2008 1:36:42 AM CDT +-- Order Distribution +insert into t_alter_column values('ad_printform','Distrib_Order_MailText_ID','NUMERIC(10)',null,'NULL') +; + +-- Jul 25, 2008 1:38:11 AM CDT +-- Order Distribution +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56244,56319,0,385,TO_TIMESTAMP('2008-07-25 01:38:10','YYYY-MM-DD HH24:MI:SS'),0,'Email text used for sending Distribution Order',22,'EE01','Standard email template used to send Manufacturing Order as attachments.','Y','Y','Y','N','N','N','N','N','Distribution Order Mail Text',TO_TIMESTAMP('2008-07-25 01:38:10','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:38:11 AM CDT +-- Order Distribution +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56319 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 25, 2008 1:38:12 AM CDT +-- Order Distribution +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56245,56320,0,385,TO_TIMESTAMP('2008-07-25 01:38:12','YYYY-MM-DD HH24:MI:SS'),0,'Print Format for printing Distribution Order',22,'EE01','You need to define a Print Format to print the document.','Y','Y','Y','N','N','N','N','N','Distribution Order Print Format',TO_TIMESTAMP('2008-07-25 01:38:12','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:38:12 AM CDT +-- Order Distribution +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56320 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 25, 2008 1:38:13 AM CDT +-- Order Distribution +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56242,56321,0,385,TO_TIMESTAMP('2008-07-25 01:38:12','YYYY-MM-DD HH24:MI:SS'),0,'Email text used for sending Manufacturing Order',22,'EE01','Standard email template used to send Manufacturing Order as attachments.','Y','Y','Y','N','N','N','N','N','Manufacturing Order Mail Text',TO_TIMESTAMP('2008-07-25 01:38:12','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:38:13 AM CDT +-- Order Distribution +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56321 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 25, 2008 1:38:13 AM CDT +-- Order Distribution +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56243,56322,0,385,TO_TIMESTAMP('2008-07-25 01:38:13','YYYY-MM-DD HH24:MI:SS'),0,'Print Format for printing Manufacturing Order',22,'EE01','You need to define a Print Format to print the document.','Y','Y','Y','N','N','N','N','N','Manufacturing Order Print Format',TO_TIMESTAMP('2008-07-25 01:38:13','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 25, 2008 1:38:13 AM CDT +-- Order Distribution +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56322 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=4918 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=4919 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=4920 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=4922 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=4923 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=4921 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=5740 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=6222 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=5739 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=6224 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=5741 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=6223 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=5742 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=6225 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=6510 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=6509 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=56320 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=56319 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=56322 +; + +-- Jul 25, 2008 1:38:33 AM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=56321 +; + +-- Jul 25, 2008 1:38:43 AM CDT +-- Order Distribution +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-07-25 01:38:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56319 +; + +-- Jul 25, 2008 1:38:47 AM CDT +-- Order Distribution +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-07-25 01:38:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=56321 +; + +-- Jul 25, 2008 1:59:58 AM CDT +-- Order Distribution +UPDATE AD_Ref_Table SET WhereClause='AD_PrintFormat.AD_Table_ID=53039',Updated=TO_TIMESTAMP('2008-07-25 01:59:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=53282 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=100,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50360 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=110,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50369 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=120,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50370 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=130,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50371 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=140,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50358 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=150,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50372 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=160,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50359 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=170,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50378 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=180,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50373 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=190,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50374 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=200,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50375 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=210,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50376 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=220,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50377 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=230,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50379 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=240,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50380 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=250,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50381 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=260,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50357 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=270,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50383 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=280,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50384 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=290,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50385 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=300,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50386 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=310,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50387 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=320,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50388 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=330,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50389 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=340,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50390 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=350,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50391 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=360,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50392 +; + +-- Jul 25, 2008 2:16:49 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET SeqNo=370,IsPrinted='Y' WHERE AD_PrintFormatItem_ID=50393 +; + +-- Jul 25, 2008 2:17:02 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53926, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:17:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50361 +; + +-- Jul 25, 2008 2:17:09 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53940, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:17:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50362 +; + +-- Jul 25, 2008 2:17:15 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53929, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:17:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50363 +; + +-- Jul 25, 2008 2:17:27 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53928, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:17:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50364 +; + +-- Jul 25, 2008 2:17:35 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53951, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:17:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50382 +; + +-- Jul 25, 2008 2:17:47 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53950, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:17:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50365 +; + +-- Jul 25, 2008 2:17:57 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53949, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:17:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50366 +; + +-- Jul 25, 2008 2:18:05 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53948, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:18:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50367 +; + +-- Jul 25, 2008 2:18:10 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53947, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:18:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50368 +; + +-- Jul 25, 2008 2:18:16 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53943, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:18:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50360 +; + +-- Jul 25, 2008 2:18:22 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53965, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:18:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50369 +; + +-- Jul 25, 2008 2:18:28 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53966, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:18:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50370 +; + +-- Jul 25, 2008 2:18:33 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53931, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:18:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50371 +; + +-- Jul 25, 2008 2:18:37 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53961, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:18:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50358 +; + +-- Jul 25, 2008 2:18:51 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53927, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:18:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50372 +; + +-- Jul 25, 2008 2:18:56 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53937, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:18:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50359 +; + +-- Jul 25, 2008 2:19:01 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53930, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:19:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50378 +; + +-- Jul 25, 2008 2:19:06 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53938, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:19:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50373 +; + +-- Jul 25, 2008 2:19:11 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53939, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:19:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50374 +; + +-- Jul 25, 2008 2:19:21 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53953, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:19:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50375 +; + +-- Jul 25, 2008 2:19:26 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53941, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:19:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50376 +; + +-- Jul 25, 2008 2:19:37 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53944, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:19:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50377 +; + +-- Jul 25, 2008 2:19:41 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53942, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:19:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50379 +; + +-- Jul 25, 2008 2:19:47 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53945, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:19:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50380 +; + +-- Jul 25, 2008 2:20:17 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53946, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:20:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50381 +; + +-- Jul 25, 2008 2:20:23 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53964, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:20:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50357 +; + +-- Jul 25, 2008 2:20:35 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53952, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:20:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50383 +; + +-- Jul 25, 2008 2:20:40 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53932, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:20:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50384 +; + +-- Jul 25, 2008 2:20:48 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53927, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:20:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50385 +; + +-- Jul 25, 2008 2:21:03 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53928, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:21:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50386 +; + +-- Jul 25, 2008 2:21:14 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53955, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:21:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50387 +; + +-- Jul 25, 2008 2:21:19 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53956, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:21:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50388 +; + +-- Jul 25, 2008 2:21:26 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53957, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:21:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50389 +; + +-- Jul 25, 2008 2:21:32 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53963, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:21:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50390 +; + +-- Jul 25, 2008 2:21:43 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53933, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:21:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50391 +; + +-- Jul 25, 2008 2:21:50 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53960, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:21:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50392 +; + +-- Jul 25, 2008 2:21:56 AM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET AD_Column_ID=53962, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_TIMESTAMP('2008-07-25 02:21:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormatItem_ID=50393 +; + +-- Jul 25, 2008 2:23:13 AM CDT +-- Order Distribution +DELETE FROM AD_PrintFormatItem_Trl WHERE AD_PrintFormatItem_ID=50372 +; + + +-- Jul 25, 2008 2:23:14 AM CDT +-- Order Distribution +DELETE FROM AD_PrintFormatItem WHERE AD_PrintFormatItem_ID=50372 +; + +-- Jul 25, 2008 2:23:28 AM CDT +-- Order Distribution +DELETE FROM AD_PrintFormatItem_Trl WHERE AD_PrintFormatItem_ID=50386 +; + +-- Jul 25, 2008 2:23:28 AM CDT +-- Order Distribution +DELETE FROM AD_PrintFormatItem WHERE AD_PrintFormatItem_ID=50386 +; diff --git a/migration/351a-352a/postgresql/236_gwperiodfix.sql b/migration/351a-352a/postgresql/236_gwperiodfix.sql new file mode 100644 index 0000000000..00fedb3340 --- /dev/null +++ b/migration/351a-352a/postgresql/236_gwperiodfix.sql @@ -0,0 +1,5 @@ +-- 25-jul-2008 10:06:30 COT +-- Default comment for updating dictionary +UPDATE C_AcctSchema SET Period_OpenHistory=10000,Updated=TO_TIMESTAMP('2008-07-25 10:06:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_AcctSchema_ID=101 +; + diff --git a/migration/351a-352a/postgresql/237_inactivateUnusedRoles.sql b/migration/351a-352a/postgresql/237_inactivateUnusedRoles.sql new file mode 100644 index 0000000000..fffea92966 --- /dev/null +++ b/migration/351a-352a/postgresql/237_inactivateUnusedRoles.sql @@ -0,0 +1,60 @@ +-- 25-jul-2008 10:39:47 COT +-- Default comment for updating dictionary +UPDATE AD_Role SET IsActive='N', UserLevel='S ',Updated=TO_TIMESTAMP('2008-07-25 10:39:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50002 +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +UPDATE AD_Role SET IsActive='N', UserLevel='S ',Updated=TO_TIMESTAMP('2008-07-25 10:39:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Role_ID=50001 +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +DELETE FROM AD_Window_Access WHERE AD_Role_ID=50001 +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +INSERT INTO AD_Window_Access (AD_Window_ID, AD_Role_ID, AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadWrite) SELECT DISTINCT w.AD_Window_ID, 50001,0,0,'Y', CURRENT_TIMESTAMP,100, CURRENT_TIMESTAMP,100,'Y' FROM AD_Window w INNER JOIN AD_Tab t ON (w.AD_Window_ID=t.AD_Window_ID) INNER JOIN AD_Table tt ON (t.AD_Table_ID=tt.AD_Table_ID) WHERE t.SeqNo=(SELECT MIN(SeqNo) FROM AD_Tab xt WHERE xt.AD_Window_ID=w.AD_Window_ID)AND tt.AccessLevel IN ('4','7','6') +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +DELETE FROM AD_Process_Access WHERE AD_Role_ID=50001 +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +INSERT INTO AD_Process_Access (AD_Process_ID, AD_Role_ID, AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadWrite) SELECT DISTINCT p.AD_Process_ID, 50001,0,0,'Y', CURRENT_TIMESTAMP,100, CURRENT_TIMESTAMP,100,'Y' FROM AD_Process p WHERE AccessLevel IN ('4','7','6') +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +DELETE FROM AD_Form_Access WHERE AD_Role_ID=50001 +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +INSERT INTO AD_Form_Access (AD_Form_ID, AD_Role_ID, AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadWrite) SELECT f.AD_Form_ID, 50001,0,0,'Y', CURRENT_TIMESTAMP,100, CURRENT_TIMESTAMP,100,'Y' FROM AD_Form f WHERE AccessLevel IN ('4','7','6') +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +DELETE FROM AD_WorkFlow_Access WHERE AD_Role_ID=50001 +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +INSERT INTO AD_WorkFlow_Access (AD_WorkFlow_ID, AD_Role_ID, AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,IsReadWrite) SELECT w.AD_WorkFlow_ID, 50001,0,0,'Y', CURRENT_TIMESTAMP,100, CURRENT_TIMESTAMP,100,'Y' FROM AD_WorkFlow w WHERE AccessLevel IN ('4','7','6') +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +DELETE FROM AD_Document_Action_Access WHERE AD_Role_ID=50001 +; + +-- 25-jul-2008 10:39:50 COT +-- Default comment for updating dictionary +INSERT INTO AD_Document_Action_Access (AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,C_DocType_ID , AD_Ref_List_ID, AD_Role_ID) (SELECT 0,0,'Y', CURRENT_TIMESTAMP,100, CURRENT_TIMESTAMP,100, doctype.C_DocType_ID, "action".AD_Ref_List_ID, rol.AD_Role_ID FROM AD_Client client INNER JOIN C_DocType doctype ON (doctype.AD_Client_ID=client.AD_Client_ID) INNER JOIN AD_Ref_List "action" ON ("action".AD_Reference_ID=135) INNER JOIN AD_Role rol ON (rol.AD_Client_ID=client.AD_Client_ID AND rol.AD_Role_ID=50001) ) +; + diff --git a/migration/351a-352a/postgresql/238_Fix_Window_Tax_Rate_Parent.sql b/migration/351a-352a/postgresql/238_Fix_Window_Tax_Rate_Parent.sql new file mode 100644 index 0000000000..4d1a017b72 --- /dev/null +++ b/migration/351a-352a/postgresql/238_Fix_Window_Tax_Rate_Parent.sql @@ -0,0 +1,5 @@ +-- 25.07.2008 21:48:11 EEST +-- +UPDATE AD_Field SET DefaultValue='Y', IsReadOnly='Y',Updated=TO_TIMESTAMP('2008-07-25 21:48:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54515 +; + diff --git a/migration/351a-352a/postgresql/239_FR1783032.sql b/migration/351a-352a/postgresql/239_FR1783032.sql new file mode 100644 index 0000000000..27a2974a66 --- /dev/null +++ b/migration/351a-352a/postgresql/239_FR1783032.sql @@ -0,0 +1,5 @@ +-- Jul 26, 2008 5:50:38 PM COT +-- [ 1783032 ] Add DocAction parameter to Generate Invoices (manual) form +UPDATE AD_Val_Rule SET Code='DocStatus NOT IN (''DR'',''IP'') AND EXISTS (SELECT * FROM C_OrderLine WHERE C_Order.C_Order_ID=C_OrderLine.C_Order_ID AND QtyOrdered <> QtyInvoiced) AND IsSOTrx=''Y'' AND NOT EXISTS (SELECT * FROM C_Invoice i WHERE i.C_Order_ID=C_Order.C_Order_ID AND i.DocStatus IN (''IP'', ''CO'', ''CL''))',Updated=TO_TIMESTAMP('2008-07-26 17:50:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=134 +; + diff --git a/migration/351a-352a/postgresql/240_FR1810133.sql b/migration/351a-352a/postgresql/240_FR1810133.sql new file mode 100644 index 0000000000..1119cb3c71 --- /dev/null +++ b/migration/351a-352a/postgresql/240_FR1810133.sql @@ -0,0 +1,29 @@ +-- Jul 23, 2008 4:50:40 PM COT +-- [ 1810133 ] Add logging policy on column level +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53669,0,'IsAllowLogging',TO_TIMESTAMP('2008-07-23 16:50:36','YYYY-MM-DD HH24:MI:SS'),100,'Determine if a column must be recorded into the change log','D','Y','IsAllowLogging','IsAllowLogging',TO_TIMESTAMP('2008-07-23 16:50:36','YYYY-MM-DD HH24:MI:SS'),100) +; + +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53669 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +UPDATE AD_Element_Trl SET IsTranslated='Y',Name='RegistrarEnLog',PrintName='Registrar en Log de Cambios',Description='Determina si una columna debe ser registrada en el log de cambios',Updated=TO_TIMESTAMP('2008-07-23 16:53:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=53669 AND AD_Language='es_MX' +; + +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56187,53669,0,20,101,'IsAllowLogging',TO_TIMESTAMP('2008-07-23 16:55:42','YYYY-MM-DD HH24:MI:SS'),100,'Y','Determine if a column must be recorded into the change log','D',1,'Y','N','N','N','N','N','N','N','N','N','Y','IsAllowLogging',0,TO_TIMESTAMP('2008-07-23 16:55:42','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56187 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +ALTER TABLE AD_Column ADD COLUMN IsAllowLogging CHAR(1) DEFAULT 'Y' CHECK (IsAllowLogging IN ('Y','N')) +; + +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SortNo,Updated,UpdatedBy) VALUES (0,56187,56317,0,101,TO_TIMESTAMP('2008-07-23 16:57:53','YYYY-MM-DD HH24:MI:SS'),100,'Determine if a column must be recorded into the change log',0,'D','Y','Y','Y','N','N','N','N','N','IsAllowLogging',370,0,TO_TIMESTAMP('2008-07-23 16:57:53','YYYY-MM-DD HH24:MI:SS'),100) +; + +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56317 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + + +UPDATE AD_Column SET IsAllowLogging = 'N' WHERE AD_Column_ID IN (6652, 6653) +; diff --git a/migration/351a-352a/postgresql/241_BF2019115.sql b/migration/351a-352a/postgresql/241_BF2019115.sql new file mode 100644 index 0000000000..6fe911923a --- /dev/null +++ b/migration/351a-352a/postgresql/241_BF2019115.sql @@ -0,0 +1,15 @@ +-- Jul 22, 2008 3:46:17 PM COT +-- [ 2019115 ] Don't allow UoM change if product already used +INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53043,0,TO_TIMESTAMP('2008-07-22 15:46:13','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','UOM can''t be changed if the product has movements or costs','E',TO_TIMESTAMP('2008-07-22 15:46:13','YYYY-MM-DD HH24:MI:SS'),100,'SaveUomError') +; + +-- Jul 22, 2008 3:46:17 PM COT +-- [ 2019115 ] Don't allow UoM change if product already used +INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53043 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID) +; + +-- Jul 22, 2008 3:47:05 PM COT +-- [ 2019115 ] Don't allow UoM change if product already used +UPDATE AD_Message_Trl SET IsTranslated='Y',MsgText='UOM no puede ser modificado si el producto tiene movimientos o costos',Updated=TO_TIMESTAMP('2008-07-22 15:47:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=53043 AND AD_Language like 'es_%' +; + diff --git a/migration/351a-352a/postgresql/242_Field_Movement_POReference.sql b/migration/351a-352a/postgresql/242_Field_Movement_POReference.sql new file mode 100644 index 0000000000..b6f2b8a45e --- /dev/null +++ b/migration/351a-352a/postgresql/242_Field_Movement_POReference.sql @@ -0,0 +1,522 @@ +-- Jul 26, 2008 7:59:19 PM CDT +-- POReference +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56246,952,0,10,323,'POReference',TO_TIMESTAMP('2008-07-26 19:59:18','YYYY-MM-DD HH24:MI:SS'),100,'Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner','EE01',20,'The business partner order reference is the order reference for this specific transaction; Often Purchase Order numbers are given to print on Invoices for easier reference. A standard number can be defined in the Business Partner (Customer) window.','Y','N','N','N','N','N','N','N','N','N','Y','Order Reference',0,TO_TIMESTAMP('2008-07-26 19:59:18','YYYY-MM-DD HH24:MI:SS'),100,0) +; + +-- Jul 26, 2008 7:59:19 PM CDT +-- POReference +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56246 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 26, 2008 7:59:22 PM CDT +-- POReference +ALTER TABLE M_Movement ADD COLUMN POReference VARCHAR(20) +; + +-- Jul 26, 2008 8:00:02 PM CDT +-- POReference +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56246,56323,0,259,TO_TIMESTAMP('2008-07-26 20:00:01','YYYY-MM-DD HH24:MI:SS'),100,'Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner',20,'EE01','The business partner order reference is the order reference for this specific transaction; Often Purchase Order numbers are given to print on Invoices for easier reference. A standard number can be defined in the Business Partner (Customer) window.','Y','Y','Y','N','N','N','N','N','Order Reference',TO_TIMESTAMP('2008-07-26 20:00:01','YYYY-MM-DD HH24:MI:SS'),100) +; + +-- Jul 26, 2008 8:00:02 PM CDT +-- POReference +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56323 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=56323 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=2726 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54046 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=2722 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=2725 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=10418 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54047 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54048 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54049 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=54050 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=54051 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=54052 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=54053 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=54054 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=7791 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=7788 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=7792 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=7793 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=7790 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=7789 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=10530 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=10529 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=54055 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=9223 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=9222 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=9224 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=9221 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=2727 +; + +-- Jul 26, 2008 8:00:30 PM CDT +-- POReference +UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=5144 +; + +-- Jul 26, 2008 8:00:48 PM CDT +-- POReference +UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-07-26 20:00:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56323 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=52001 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=460 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=301 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=129 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=543 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=195 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=1000019 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=407 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=406 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=335 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=436 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=507 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=472 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=448 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=1000006 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=15, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=449 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53050 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53049 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=445 +; + +-- Jul 26, 2008 8:29:02 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53051 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=52001 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=460 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=301 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=129 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=543 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=195 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=1000019 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=407 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=406 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=335 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=436 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=507 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=448 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=1000006 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=457, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=449 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53050 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53049 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=445 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=472 +; + +-- Jul 26, 2008 8:29:11 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53051 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=167 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=357 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=229 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=412 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=256 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=197 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=179 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=503 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=196 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=228 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=479 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=482 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=481 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=411 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=537 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=15, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=311 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=16, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=292 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=17, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=515 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=183, SeqNo=18, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=545 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53067 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=381 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53088 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=128 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53068 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=1000041 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53069 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53070 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=181 +; + +-- Jul 26, 2008 8:29:55 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=484 +; + + + diff --git a/migration/351a-352a/postgresql/243_FixCalloutDO.sql b/migration/351a-352a/postgresql/243_FixCalloutDO.sql new file mode 100644 index 0000000000..8d4efb7a21 --- /dev/null +++ b/migration/351a-352a/postgresql/243_FixCalloutDO.sql @@ -0,0 +1,330 @@ +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54010 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54029 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54035 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54027 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54011 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54036 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54037 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54038 +; + +-- Jul 27, 2008 2:46:48 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=54039 +; + +-- Jul 27, 2008 2:47:14 PM CDT +-- Order Distribution +UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2008-07-27 14:47:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54035 +; + +-- Jul 27, 2008 2:54:43 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54029 +; + +-- Jul 27, 2008 2:54:43 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54010 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=54024 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=54033 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=54034 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=54029 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54010 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54035 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54027 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54011 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54036 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54037 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54038 +; + +-- Jul 27, 2008 2:55:32 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54039 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53050 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53049 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=472 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53051 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53067 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=381 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53088 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=128 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53068 +; + +-- Jul 27, 2008 2:57:44 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=445 +; + +-- Jul 27, 2008 2:57:45 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=1000041 +; + +-- Jul 27, 2008 2:57:45 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53069 +; + +-- Jul 27, 2008 2:57:45 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53070 +; + +-- Jul 27, 2008 2:57:45 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=181 +; + +-- Jul 27, 2008 2:57:45 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=484 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53050 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53049 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53051 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53067 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=381 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53088 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=128 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53068 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=445 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=472 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=1000041 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53069 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53070 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=181 +; + +-- Jul 27, 2008 2:57:49 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=484 +; + +-- Jul 27, 2008 3:01:46 PM CDT +-- Order Distribution +UPDATE AD_Menu SET Name='Distribution Run Process',Updated=TO_TIMESTAMP('2008-07-27 15:01:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=1000041 +; + +-- Jul 27, 2008 3:01:46 PM CDT +-- Order Distribution +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=1000041 +; + +-- Jul 27, 2008 3:04:48 PM CDT +-- Order Distribution +UPDATE AD_Process SET Description='Create Distribution Run orders based on Distribution List line items', Name='Distribution Run Orders', Value='M_DistributionRun Orders',Updated=TO_TIMESTAMP('2008-07-27 15:04:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=1000037 +; + +-- Jul 27, 2008 3:04:48 PM CDT +-- Order Distribution +UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=1000037 +; + +-- Jul 27, 2008 3:04:48 PM CDT +-- Order Distribution +UPDATE AD_Menu SET Description='Create Distribution Run orders based on Distribution List line items', IsActive='Y', Name='Distribution Run Orders',Updated=TO_TIMESTAMP('2008-07-27 15:04:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=1000041 +; + +-- Jul 27, 2008 3:04:48 PM CDT +-- Order Distribution +UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=1000041 +; + +-- Jul 27, 2008 3:32:28 PM CDT +-- Order Distribution +UPDATE AD_Column SET Callout='org.compiere.model.CalloutDistributionOrder.qty',Updated=TO_TIMESTAMP('2008-07-27 15:32:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53933 +; + +-- Jul 27, 2008 3:32:43 PM CDT +-- Order Distribution +UPDATE AD_Column SET Callout='org.eevolution.model.CalloutDistributionOrder.qty',Updated=TO_TIMESTAMP('2008-07-27 15:32:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53933 +; + +-- Jul 27, 2008 3:33:12 PM CDT +-- Order Distribution +UPDATE AD_Column SET Callout=NULL,Updated=TO_TIMESTAMP('2008-07-27 15:33:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53948 +; + +-- Jul 27, 2008 3:33:18 PM CDT +-- Order Distribution +UPDATE AD_Column SET Callout=NULL,Updated=TO_TIMESTAMP('2008-07-27 15:33:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53929 +; + +-- Jul 27, 2008 3:33:23 PM CDT +-- Order Distribution +UPDATE AD_Column SET Callout='org.eevolution.model.CalloutDistributionOrder.qty',Updated=TO_TIMESTAMP('2008-07-27 15:33:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53954 +; + +-- Jul 27, 2008 3:33:29 PM CDT +-- Order Distribution +UPDATE AD_Column SET Callout='org.eevolution.model.CalloutDistributionOrder.qty',Updated=TO_TIMESTAMP('2008-07-27 15:33:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53928 +; + diff --git a/migration/351a-352a/postgresql/244_FR2030865DistributionRunDO.sql b/migration/351a-352a/postgresql/244_FR2030865DistributionRunDO.sql new file mode 100644 index 0000000000..99307e051d --- /dev/null +++ b/migration/351a-352a/postgresql/244_FR2030865DistributionRunDO.sql @@ -0,0 +1,132 @@ +-- Jul 29, 2008 11:00:46 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53675,0,'CreateDO',TO_TIMESTAMP('2008-07-29 11:00:37','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Create Distribution Order','Create Distribution Order',TO_TIMESTAMP('2008-07-29 11:00:37','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 29, 2008 11:00:46 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53675 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + + +-- Jul 28, 2008 8:27:38 PM CDT +-- Distribution Run Orders +INSERT INTO AD_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AccessLevel,Classname,Created,CreatedBy,Description,EntityType,Help,IsActive,IsBetaFunctionality,IsDirectPrint,IsReport,Name,ShowHelp,Statistic_Count,Statistic_Seconds,Updated,UpdatedBy,Value,WorkflowValue) VALUES (0,0,53150,'1','org.eevolution.process.DistributionRunOrders',TO_TIMESTAMP('2008-07-28 20:27:26','YYYY-MM-DD HH24:MI:SS'),0,'Create Distribution Run Orders based on Distribution List and redistribute the quantity into Distribution Plan line items','EE01','Please note that due to rounding, the total quantity of the order(s) is likely to be higher then the quantity entered.','Y','N','N','N','Distribution Run Orders','Y',0,0,TO_TIMESTAMP('2008-07-28 20:27:26','YYYY-MM-DD HH24:MI:SS'),0,'M_DistributionRun Orders',NULL) +; + +-- Jul 28, 2008 8:27:38 PM CDT +-- Distribution Run Orders +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=53150 AND EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_ID!=t.AD_Process_ID) +; + +-- Jul 28, 2008 8:27:39 PM CDT +-- Distribution Run Orders +UPDATE AD_Reference SET Description='Date mm/dd/yyyy', EntityType='D', Help=NULL, IsActive='Y', Name='Date', ValidationType='D',Updated=TO_TIMESTAMP('2008-07-28 20:27:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=15 +; + +-- Jul 28, 2008 8:27:39 PM CDT +-- Distribution Run Orders +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=15 +; + +-- Jul 28, 2008 8:27:41 PM CDT +-- Distribution Run Orders +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,269,0,53150,53218,15,'DatePromised',TO_TIMESTAMP('2008-07-28 20:27:40','YYYY-MM-DD HH24:MI:SS'),0,'Date Promised','EE01',8,'Date Promised','Y','Y','N','N','Date Promised',25,TO_TIMESTAMP('2008-07-28 20:27:40','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 8:27:41 PM CDT +-- Distribution Run Orders +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=53218 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) +; + +-- Jul 28, 2008 8:27:41 PM CDT +-- Distribution Run Orders +UPDATE AD_Reference SET Description='CheckBox', EntityType='D', Help=NULL, IsActive='Y', Name='Yes-No', ValidationType='D',Updated=TO_TIMESTAMP('2008-07-28 20:27:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=20 +; + +-- Jul 28, 2008 8:27:41 PM CDT +-- Distribution Run Orders +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=20 +; + +-- Jul 28, 2008 8:27:42 PM CDT +-- Distribution Run Orders +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,53675,0,53150,53219,20,'CreateDO',TO_TIMESTAMP('2008-07-28 20:27:41','YYYY-MM-DD HH24:MI:SS'),0,'Create Distribution Order','EE01',1,'Create Distribution Order','Y','Y','N','N','Create Distribution Order',50,TO_TIMESTAMP('2008-07-28 20:27:41','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 8:27:42 PM CDT +-- Distribution Run Orders +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=53219 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) +; + +-- Jul 28, 2008 8:27:43 PM CDT +-- Distribution Run Orders +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,2153,0,53150,53220,20,'IsTest',TO_TIMESTAMP('2008-07-28 20:27:42','YYYY-MM-DD HH24:MI:SS'),0,'Test','EE01',1,'Execute in Test Mode','Y','Y','N','N','Test',40,TO_TIMESTAMP('2008-07-28 20:27:42','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 8:27:43 PM CDT +-- Distribution Run Orders +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=53220 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) +; + +-- Jul 28, 2008 8:27:43 PM CDT +-- Distribution Run Orders +UPDATE AD_Reference SET Description='Direct Table Access', EntityType='D', Help=NULL, IsActive='Y', Name='Table Direct', ValidationType='D',Updated=TO_TIMESTAMP('2008-07-28 20:27:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=19 +; + +-- Jul 28, 2008 8:27:43 PM CDT +-- Distribution Run Orders +UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=19 +; + +-- Jul 28, 2008 8:27:44 PM CDT +-- Distribution Run Orders +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,2408,0,53150,53221,19,'M_DistributionList_ID',TO_TIMESTAMP('2008-07-28 20:27:43','YYYY-MM-DD HH24:MI:SS'),0,'Distribution List','EE01',10,'Distribution Lists allow to distribute products to a selected list of partners','Y','N','Y','N','Distribution List',30,TO_TIMESTAMP('2008-07-28 20:27:43','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 8:27:44 PM CDT +-- Distribution Run Orders +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=53221 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) +; + +-- Jul 28, 2008 8:27:45 PM CDT +-- Distribution Run Orders +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,459,0,53150,53222,19,'M_Warehouse_ID',TO_TIMESTAMP('2008-07-28 20:27:44','YYYY-MM-DD HH24:MI:SS'),0,'Storage Warehouse and Service Point','EE01',10,'The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','Y','Y','N','Warehouse',20,TO_TIMESTAMP('2008-07-28 20:27:44','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 8:27:45 PM CDT +-- Distribution Run Orders +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=53222 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) +; + +-- Jul 28, 2008 8:27:46 PM CDT +-- Distribution Run Orders +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,113,0,53150,53223,19,'AD_Org_ID',TO_TIMESTAMP('2008-07-28 20:27:45','YYYY-MM-DD HH24:MI:SS'),0,'Organization','EE01',10,'Organizational entity within client','Y','Y','Y','N','Organization',10,TO_TIMESTAMP('2008-07-28 20:27:45','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 8:27:46 PM CDT +-- Distribution Run Orders +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=53223 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) +; + +-- Jul 28, 2008 8:27:48 PM CDT +-- Distribution Run Orders +INSERT INTO AD_Menu (AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,"action",Created,CreatedBy,Description,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (0,53184,0,53150,'P',TO_TIMESTAMP('2008-07-28 20:27:47','YYYY-MM-DD HH24:MI:SS'),0,'Create Distribution Run Orders based on Distribution List and redistribute the quantity into Distribution Plan line items','EE01','Y','N','N','N','Distribution Run Orders',TO_TIMESTAMP('2008-07-28 20:27:47','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 8:27:48 PM CDT +-- Distribution Run Orders +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=53184 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID) +; + +-- Jul 28, 2008 8:27:48 PM CDT +-- Distribution Run Orders +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, 53066,7, 10, 53184) +; + +-- Jul 28, 2008 8:59:40 PM CDT +-- Distribution Run Orders +UPDATE AD_Val_Rule SET Code='C_DocType.DocBaseType IN (''SOO'', ''POO'',''DOO'')',Updated=TO_TIMESTAMP('2008-07-28 20:59:40','YYYY +-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Val_Rule_ID=172 +; + diff --git a/migration/351a-352a/postgresql/245_BF2031000_Detail_Order_Distribution.sql b/migration/351a-352a/postgresql/245_BF2031000_Detail_Order_Distribution.sql new file mode 100644 index 0000000000..581facd86a --- /dev/null +++ b/migration/351a-352a/postgresql/245_BF2031000_Detail_Order_Distribution.sql @@ -0,0 +1,991 @@ +-- Jul 28, 2008 10:50:09 PM CDT +-- Order Distribution +INSERT INTO AD_Table (AD_Client_ID,AD_Org_ID,AD_Table_ID,AccessLevel,Created,CreatedBy,Description,EntityType,IsActive,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEnabled,IsView,LoadSeq,Name,ReplicationType,TableName,Updated,UpdatedBy) VALUES (0,0,53144,'3',TO_TIMESTAMP('2008-07-28 22:49:59','YYYY-MM-DD HH24:MI:SS'),0,'Distribution Order & Line View','EE01','Y','N','N','N','N','Y',150,'Distribution Order Detail','L','RV_DD_OrderDetail',TO_TIMESTAMP('2008-07-28 22:49:59','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 10:50:09 PM CDT +-- Order Distribution +INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=53144 AND EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Table_ID!=t.AD_Table_ID) +; + +-- Jul 28, 2008 10:50:10 PM CDT +-- Order Distribution +INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53165,TO_TIMESTAMP('2008-07-28 22:50:10','YYYY-MM-DD HH24:MI:SS'),0,1000000,50000,'Table RV_DD_OrderDetail',1,'Y','N','Y','Y','RV_DD_OrderDetail','N',1000000,TO_TIMESTAMP('2008-07-28 22:50:10','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 10:50:39 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56249,102,0,19,53144,'AD_Client_ID',TO_TIMESTAMP('2008-07-28 22:50:36','YYYY-MM-DD HH24:MI:SS'),0,'Client/Tenant for this installation.','EE01',10,'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','N','N','N','N','N','N','N','N','N','Client',TO_TIMESTAMP('2008-07-28 22:50:36','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:39 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56249 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:39 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56250,113,0,19,53144,'AD_Org_ID',TO_TIMESTAMP('2008-07-28 22:50:39','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client','EE01',10,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','N','N','N','N','N','N','N','N','N','Organization',TO_TIMESTAMP('2008-07-28 22:50:39','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:39 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56250 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:41 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56251,348,0,20,53144,'IsActive',TO_TIMESTAMP('2008-07-28 22:50:39','YYYY-MM-DD HH24:MI:SS'),0,'The record is active in the system','EE01',1,'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.','Y','N','N','N','N','N','N','N','N','N','Active',TO_TIMESTAMP('2008-07-28 22:50:39','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:41 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56251 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:42 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56252,245,0,16,53144,'Created',TO_TIMESTAMP('2008-07-28 22:50:41','YYYY-MM-DD HH24:MI:SS'),0,'Date this record was created','EE01',29,'The Created field indicates the date that this record was created.','Y','N','N','N','N','N','N','N','N','N','Created',TO_TIMESTAMP('2008-07-28 22:50:41','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:42 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56252 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:44 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56253,246,0,18,110,53144,'CreatedBy',TO_TIMESTAMP('2008-07-28 22:50:42','YYYY-MM-DD HH24:MI:SS'),0,'User who created this records','EE01',10,'The Created By field indicates the user who created this record.','Y','N','N','N','N','N','N','N','N','N','Created By',TO_TIMESTAMP('2008-07-28 22:50:42','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:44 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56253 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:45 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56254,607,0,16,53144,'Updated',TO_TIMESTAMP('2008-07-28 22:50:44','YYYY-MM-DD HH24:MI:SS'),0,'Date this record was updated','EE01',29,'The Updated field indicates the date that this record was updated.','Y','N','N','N','N','N','N','N','N','N','Updated',TO_TIMESTAMP('2008-07-28 22:50:44','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:45 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56254 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:46 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56255,608,0,18,110,53144,'UpdatedBy',TO_TIMESTAMP('2008-07-28 22:50:45','YYYY-MM-DD HH24:MI:SS'),0,'User who updated this records','EE01',10,'The Updated By field indicates the user who updated this record.','Y','N','N','N','N','N','N','N','N','N','Updated By',TO_TIMESTAMP('2008-07-28 22:50:45','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:46 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56255 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:47 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56256,558,0,19,53144,'C_Order_ID',TO_TIMESTAMP('2008-07-28 22:50:46','YYYY-MM-DD HH24:MI:SS'),0,'Order','EE01',10,'The Order is a control document. The Order is complete when the quantity ordered is the same as the quantity shipped and invoiced. When you cloase an order, unshipped (backordered) quantities are cancelled.','Y','N','N','N','N','N','N','N','N','N','Order',TO_TIMESTAMP('2008-07-28 22:50:46','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:47 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56256 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:48 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56257,289,0,17,53144,'DocStatus',TO_TIMESTAMP('2008-07-28 22:50:47','YYYY-MM-DD HH24:MI:SS'),0,'The current status of the document','EE01',2,'The Document Status indicates the status of a document at this time. If you want to change the document status, use the Document Action field','Y','N','N','N','N','N','N','N','N','N','Document Status',TO_TIMESTAMP('2008-07-28 22:50:47','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:48 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56257 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:49 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56258,287,0,17,53144,'DocAction',TO_TIMESTAMP('2008-07-28 22:50:48','YYYY-MM-DD HH24:MI:SS'),0,'The targeted status of the document','EE01',2,'You find the current status in the Document Status field. The options are listed in a popup','Y','N','N','N','N','N','N','N','N','N','Document Action',TO_TIMESTAMP('2008-07-28 22:50:48','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:49 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56258 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:50 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56259,196,0,19,53144,'C_DocType_ID',TO_TIMESTAMP('2008-07-28 22:50:49','YYYY-MM-DD HH24:MI:SS'),0,'Document type or rules','EE01',10,'The Document Type determines document sequence and processing rules','Y','N','N','N','N','N','N','N','N','N','Document Type',TO_TIMESTAMP('2008-07-28 22:50:49','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:50 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56259 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:51 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56260,351,0,20,53144,'IsApproved',TO_TIMESTAMP('2008-07-28 22:50:50','YYYY-MM-DD HH24:MI:SS'),0,'Indicates if this document requires approval','EE01',1,'The Approved checkbox indicates if this document requires approval before it can be processed.','Y','N','N','N','N','N','N','N','N','N','Approved',TO_TIMESTAMP('2008-07-28 22:50:50','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:51 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56260 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:53 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56261,1063,0,18,190,53144,'SalesRep_ID',TO_TIMESTAMP('2008-07-28 22:50:51','YYYY-MM-DD HH24:MI:SS'),0,'Sales Representative or Company Agent','EE01',10,'The Sales Representative indicates the Sales Rep for this Region. Any Sales Rep must be a valid internal user.','Y','N','N','N','N','N','N','N','N','N','Sales Representative',TO_TIMESTAMP('2008-07-28 22:50:51','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:53 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56261 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:54 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56262,2466,0,20,53144,'IsDropShip',TO_TIMESTAMP('2008-07-28 22:50:53','YYYY-MM-DD HH24:MI:SS'),0,'Drop Shipments are sent from the Vendor directly to the Customer','EE01',1,'Drop Shipments do not cause any Inventory reservations or movements as the Shipment is from the Vendor''s inventory. The Shipment of the Vendor to the Customer must be confirmed.','Y','N','N','N','N','N','N','N','N','N','Drop Shipment',TO_TIMESTAMP('2008-07-28 22:50:53','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:54 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56262 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:55 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56263,138,0,19,53144,'AD_User_ID',TO_TIMESTAMP('2008-07-28 22:50:54','YYYY-MM-DD HH24:MI:SS'),0,'User within the system - Internal or Business Partner Contact','EE01',10,'The User identifies a unique user in the system. This could be an internal user or a business partner contact','Y','N','N','N','N','N','N','N','N','N','User/Contact',TO_TIMESTAMP('2008-07-28 22:50:54','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:55 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56263 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:56 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56264,952,0,10,53144,'POReference',TO_TIMESTAMP('2008-07-28 22:50:55','YYYY-MM-DD HH24:MI:SS'),0,'Transaction Reference Number (Sales Order, Purchase Order) of your Business Partner','EE01',20,'The business partner order reference is the order reference for this specific transaction; Often Purchase Order numbers are given to print on Invoices for easier reference. A standard number can be defined in the Business Partner (Customer) window.','Y','N','N','N','N','N','N','N','N','N','Order Reference',TO_TIMESTAMP('2008-07-28 22:50:55','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:56 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56264 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:57 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56265,1106,0,20,53144,'IsSOTrx',TO_TIMESTAMP('2008-07-28 22:50:56','YYYY-MM-DD HH24:MI:SS'),0,'This is a Sales Transaction','EE01',1,'The Sales Transaction checkbox indicates if this item is a Sales Transaction.','Y','N','N','N','N','N','N','N','N','N','Sales Transaction',TO_TIMESTAMP('2008-07-28 22:50:56','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:57 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56265 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:50:58 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56266,550,0,19,53144,'C_Campaign_ID',TO_TIMESTAMP('2008-07-28 22:50:57','YYYY-MM-DD HH24:MI:SS'),0,'Marketing Campaign','EE01',10,'The Campaign defines a unique marketing program. Projects can be associated with a pre defined Marketing Campaign. You can then report based on a specific Campaign.','Y','N','N','N','N','N','N','N','N','N','Campaign',TO_TIMESTAMP('2008-07-28 22:50:57','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:50:58 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56266 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:00 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56267,208,0,19,53144,'C_Project_ID',TO_TIMESTAMP('2008-07-28 22:50:58','YYYY-MM-DD HH24:MI:SS'),0,'Financial Project','EE01',10,'A Project allows you to track and control internal or external activities.','Y','N','N','N','N','N','N','N','N','N','Project',TO_TIMESTAMP('2008-07-28 22:50:58','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:00 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56267 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:01 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56268,1005,0,19,53144,'C_Activity_ID',TO_TIMESTAMP('2008-07-28 22:51:00','YYYY-MM-DD HH24:MI:SS'),0,'Business Activity','EE01',10,'Activities indicate tasks that are performed and used to utilize Activity based Costing','Y','N','N','N','N','N','N','N','N','N','Activity',TO_TIMESTAMP('2008-07-28 22:51:00','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:01 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56268 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:02 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56269,53313,0,19,53144,'DD_OrderLine_ID',TO_TIMESTAMP('2008-07-28 22:51:01','YYYY-MM-DD HH24:MI:SS'),0,'EE01',10,'Y','N','N','N','N','N','N','N','N','N','Distribution Order Line',TO_TIMESTAMP('2008-07-28 22:51:01','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:02 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56269 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:03 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56270,268,0,16,53144,'DateOrdered',TO_TIMESTAMP('2008-07-28 22:51:02','YYYY-MM-DD HH24:MI:SS'),0,'Date of Order','EE01',29,'Indicates the Date an item was ordered.','Y','N','N','N','N','N','N','N','N','N','Date Ordered',TO_TIMESTAMP('2008-07-28 22:51:02','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:03 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56270 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:04 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56271,269,0,16,53144,'DatePromised',TO_TIMESTAMP('2008-07-28 22:51:03','YYYY-MM-DD HH24:MI:SS'),0,'Date Order was promised','EE01',29,'The Date Promised indicates the date, if any, that an Order was promised for.','Y','N','N','N','N','N','N','N','N','N','Date Promised',TO_TIMESTAMP('2008-07-28 22:51:03','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:04 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56271 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:05 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56272,454,0,19,53144,'M_Product_ID',TO_TIMESTAMP('2008-07-28 22:51:04','YYYY-MM-DD HH24:MI:SS'),0,'Product, Service, Item','EE01',10,'Identifies an item which is either purchased or sold in this organization.','Y','N','N','N','N','N','N','N','N','N','Product',TO_TIMESTAMP('2008-07-28 22:51:04','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:05 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56272 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:06 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56273,448,0,19,53144,'M_Locator_ID',TO_TIMESTAMP('2008-07-28 22:51:05','YYYY-MM-DD HH24:MI:SS'),0,'Warehouse Locator','EE01',10,'The Locator indicates where in a Warehouse a product is located.','Y','N','N','N','N','N','N','N','N','N','Locator',TO_TIMESTAMP('2008-07-28 22:51:05','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:06 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56273 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:07 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56274,1029,0,19,53144,'M_LocatorTo_ID',TO_TIMESTAMP('2008-07-28 22:51:06','YYYY-MM-DD HH24:MI:SS'),0,'Location inventory is moved to','EE01',10,'The Locator To indicates the location where the inventory is being moved to.','Y','N','N','N','N','N','N','N','N','N','Locator To',TO_TIMESTAMP('2008-07-28 22:51:06','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:07 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56274 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:08 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56275,2019,0,35,53144,'M_AttributeSetInstance_ID',TO_TIMESTAMP('2008-07-28 22:51:07','YYYY-MM-DD HH24:MI:SS'),0,'Product Attribute Set Instance','EE01',10,'The values of the actual Product Attribute Instances. The product level attributes are defined on Product level.','Y','N','N','N','N','N','N','N','N','N','Attribute Set Instance',TO_TIMESTAMP('2008-07-28 22:51:07','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:08 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56275 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:09 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56276,2679,0,14,53144,'ProductAttribute',TO_TIMESTAMP('2008-07-28 22:51:08','YYYY-MM-DD HH24:MI:SS'),0,'Product Attribute Instance Description','EE01',2147483647,'Y','N','N','N','N','N','N','N','N','N','Product Attribute',TO_TIMESTAMP('2008-07-28 22:51:08','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:09 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56276 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:10 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56277,2799,0,19,53144,'M_AttributeSetInstanceTo_ID',TO_TIMESTAMP('2008-07-28 22:51:09','YYYY-MM-DD HH24:MI:SS'),0,'Target Product Attribute Set Instance','EE01',10,'Y','N','N','N','N','N','N','N','N','N','Attribute Set Instance To',TO_TIMESTAMP('2008-07-28 22:51:09','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:10 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56277 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:11 PM CDT +-- Order Distribution +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53674,0,'productattributeto',TO_TIMESTAMP('2008-07-28 22:51:10','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','productattributeto','productattributeto',TO_TIMESTAMP('2008-07-28 22:51:10','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 10:51:11 PM CDT +-- Order Distribution +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53674 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 28, 2008 10:51:12 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56278,53674,0,14,53144,'productattributeto',TO_TIMESTAMP('2008-07-28 22:51:10','YYYY-MM-DD HH24:MI:SS'),0,'EE01',2147483647,'Y','N','N','N','N','N','N','N','N','N','productattributeto',TO_TIMESTAMP('2008-07-28 22:51:10','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:12 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56278 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:13 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56279,2017,0,19,53144,'M_AttributeSet_ID',TO_TIMESTAMP('2008-07-28 22:51:12','YYYY-MM-DD HH24:MI:SS'),0,'Product Attribute Set','EE01',10,'Define Product Attribute Sets to add additional attributes and values to the product. You need to define a Attribute Set if you want to enable Serial and Lot Number tracking.','Y','N','N','N','N','N','N','N','N','N','Attribute Set',TO_TIMESTAMP('2008-07-28 22:51:12','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:13 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56279 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:14 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56280,2021,0,19,53144,'M_Lot_ID',TO_TIMESTAMP('2008-07-28 22:51:13','YYYY-MM-DD HH24:MI:SS'),0,'Product Lot Definition','EE01',10,'The individual Lot of a Product','Y','N','N','N','N','N','N','N','N','N','Lot',TO_TIMESTAMP('2008-07-28 22:51:13','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:14 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56280 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:15 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56281,1936,0,16,53144,'GuaranteeDate',TO_TIMESTAMP('2008-07-28 22:51:14','YYYY-MM-DD HH24:MI:SS'),0,'Date when guarantee expires','EE01',29,'Date when the normal guarantee or availability expires','Y','N','N','N','N','N','N','N','N','N','Guarantee Date',TO_TIMESTAMP('2008-07-28 22:51:14','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:15 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56281 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:17 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56282,446,0,10,53144,'Lot',TO_TIMESTAMP('2008-07-28 22:51:15','YYYY-MM-DD HH24:MI:SS'),0,'Lot number (alphanumeric)','EE01',40,'The Lot Number indicates the specific lot that a product was part of.','Y','N','N','N','N','N','N','N','N','N','Lot No',TO_TIMESTAMP('2008-07-28 22:51:15','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:17 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56282 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:17 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56283,568,0,10,53144,'SerNo',TO_TIMESTAMP('2008-07-28 22:51:17','YYYY-MM-DD HH24:MI:SS'),0,'Product Serial Number ','EE01',40,'The Serial Number identifies a tracked, warranted product. It can only be used when the quantity is 1.','Y','N','N','N','N','N','N','N','N','N','Serial No',TO_TIMESTAMP('2008-07-28 22:51:17','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:17 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56283 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:18 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56284,215,0,19,53144,'C_UOM_ID',TO_TIMESTAMP('2008-07-28 22:51:17','YYYY-MM-DD HH24:MI:SS'),0,'Unit of Measure','EE01',10,'The UOM defines a unique non monetary Unit of Measure','Y','N','N','N','N','N','N','N','N','N','UOM',TO_TIMESTAMP('2008-07-28 22:51:17','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:18 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56284 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:20 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56285,2589,0,29,53144,'QtyEntered',TO_TIMESTAMP('2008-07-28 22:51:18','YYYY-MM-DD HH24:MI:SS'),0,'The Quantity Entered is based on the selected UoM','EE01',131089,'The Quantity Entered is converted to base product UoM quantity','Y','N','N','N','N','N','N','N','N','N','Quantity',TO_TIMESTAMP('2008-07-28 22:51:18','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:20 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56285 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:20 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56286,531,0,29,53144,'QtyOrdered',TO_TIMESTAMP('2008-07-28 22:51:20','YYYY-MM-DD HH24:MI:SS'),0,'Ordered Quantity','EE01',131089,'The Ordered Quantity indicates the quantity of a product that was ordered.','Y','N','N','N','N','N','N','N','N','N','Ordered Quantity',TO_TIMESTAMP('2008-07-28 22:51:20','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:20 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56286 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:21 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56287,532,0,29,53144,'QtyReserved',TO_TIMESTAMP('2008-07-28 22:51:20','YYYY-MM-DD HH24:MI:SS'),0,'Reserved Quantity','EE01',131089,'The Reserved Quantity indicates the quantity of a product that is currently reserved.','Y','N','N','N','N','N','N','N','N','N','Reserved Quantity',TO_TIMESTAMP('2008-07-28 22:51:20','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:21 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56287 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:22 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56288,528,0,29,53144,'QtyDelivered',TO_TIMESTAMP('2008-07-28 22:51:21','YYYY-MM-DD HH24:MI:SS'),0,'Delivered Quantity','EE01',131089,'The Delivered Quantity indicates the quantity of a product that has been delivered.','Y','N','N','N','N','N','N','N','N','N','Delivered Quantity',TO_TIMESTAMP('2008-07-28 22:51:21','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:22 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56288 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:23 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56289,2386,0,29,53144,'ConfirmedQty',TO_TIMESTAMP('2008-07-28 22:51:22','YYYY-MM-DD HH24:MI:SS'),0,'Confirmation of a received quantity','EE01',131089,'Confirmation of a received quantity','Y','N','N','N','N','N','N','N','N','N','Confirmed Quantity',TO_TIMESTAMP('2008-07-28 22:51:22','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:23 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56289 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:24 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56290,53312,0,29,53144,'QtyInTransit',TO_TIMESTAMP('2008-07-28 22:51:23','YYYY-MM-DD HH24:MI:SS'),0,'EE01',131089,'Y','N','N','N','N','N','N','N','N','N','QtyInTransit',TO_TIMESTAMP('2008-07-28 22:51:23','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:24 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56290 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:25 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56291,2436,0,29,53144,'TargetQty',TO_TIMESTAMP('2008-07-28 22:51:24','YYYY-MM-DD HH24:MI:SS'),0,'Target Movement Quantity','EE01',131089,'The Quantity which should have been received','Y','N','N','N','N','N','N','N','N','N','Target Quantity',TO_TIMESTAMP('2008-07-28 22:51:24','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:25 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56291 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:27 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56292,1250,0,29,53144,'QtyToDeliver',TO_TIMESTAMP('2008-07-28 22:51:25','YYYY-MM-DD HH24:MI:SS'),0,'EE01',131089,'Y','N','N','N','N','N','N','N','N','N','Qty to deliver',TO_TIMESTAMP('2008-07-28 22:51:25','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:51:27 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56292 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:51:49 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Val_Rule_ID=129,Updated=TO_TIMESTAMP('2008-07-28 22:51:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56249 +; + +-- Jul 28, 2008 10:52:05 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Val_Rule_ID=130,Updated=TO_TIMESTAMP('2008-07-28 22:52:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56250 +; + +-- Jul 28, 2008 10:53:50 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_Value_ID=135,Updated=TO_TIMESTAMP('2008-07-28 22:53:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56258 +; + +-- Jul 28, 2008 10:54:01 PM CDT +-- Order Distribution +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,56293,53311,0,19,53144,'DD_Order_ID',TO_TIMESTAMP('2008-07-28 22:53:59','YYYY-MM-DD HH24:MI:SS'),0,'EE01',10,'Y','N','N','N','N','N','N','N','N','N','Distribution Order',TO_TIMESTAMP('2008-07-28 22:53:59','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 28, 2008 10:54:01 PM CDT +-- Order Distribution +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56293 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 28, 2008 10:54:35 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_Value_ID=131,Updated=TO_TIMESTAMP('2008-07-28 22:54:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56257 +; + +-- Jul 28, 2008 10:56:13 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=35,Updated=TO_TIMESTAMP('2008-07-28 22:56:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56277 +; + +-- Jul 28, 2008 10:56:32 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=31,Updated=TO_TIMESTAMP('2008-07-28 22:56:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56274 +; + +-- Jul 28, 2008 10:56:38 PM CDT +-- Order Distribution +UPDATE AD_Column SET AD_Reference_ID=31,Updated=TO_TIMESTAMP('2008-07-28 22:56:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56273 +; + +-- Jul 28, 2008 10:59:02 PM CDT +-- Order Distribution +UPDATE AD_Element SET ColumnName='ProductAttributeTo', Name='Product Attribute To', PrintName='Product Attribute To',Updated=TO_TIMESTAMP('2008-07-28 22:59:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53674 +; + +-- Jul 28, 2008 10:59:02 PM CDT +-- Order Distribution +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53674 +; + +-- Jul 28, 2008 10:59:02 PM CDT +-- Order Distribution +UPDATE AD_Column SET ColumnName='ProductAttributeTo', Name='Product Attribute To', Description=NULL, Help=NULL WHERE AD_Element_ID=53674 +; + +-- Jul 28, 2008 10:59:02 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET ColumnName='ProductAttributeTo', Name='Product Attribute To', Description=NULL, Help=NULL, AD_Element_ID=53674 WHERE UPPER(ColumnName)='PRODUCTATTRIBUTETO' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Jul 28, 2008 10:59:02 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET ColumnName='ProductAttributeTo', Name='Product Attribute To', Description=NULL, Help=NULL WHERE AD_Element_ID=53674 AND IsCentrallyMaintained='Y' +; + +-- Jul 28, 2008 10:59:02 PM CDT +-- Order Distribution +UPDATE AD_Field SET Name='Product Attribute To', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53674) AND IsCentrallyMaintained='Y' +; + +-- Jul 28, 2008 10:59:03 PM CDT +-- Order Distribution +UPDATE AD_PrintFormatItem SET PrintName='Product Attribute To', Name='Product Attribute To' 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=53674) +; + +-- Jul 28, 2008 10:59:25 PM CDT +-- Order Distribution +UPDATE AD_Element SET Description='Product Attribute Instance Description',Updated=TO_TIMESTAMP('2008-07-28 22:59:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53674 +; + +-- Jul 28, 2008 10:59:25 PM CDT +-- Order Distribution +UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53674 +; + +-- Jul 28, 2008 10:59:25 PM CDT +-- Order Distribution +UPDATE AD_Column SET ColumnName='ProductAttributeTo', Name='Product Attribute To', Description='Product Attribute Instance Description', Help=NULL WHERE AD_Element_ID=53674 +; + +-- Jul 28, 2008 10:59:25 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET ColumnName='ProductAttributeTo', Name='Product Attribute To', Description='Product Attribute Instance Description', Help=NULL, AD_Element_ID=53674 WHERE UPPER(ColumnName)='PRODUCTATTRIBUTETO' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL +; + +-- Jul 28, 2008 10:59:25 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET ColumnName='ProductAttributeTo', Name='Product Attribute To', Description='Product Attribute Instance Description', Help=NULL WHERE AD_Element_ID=53674 AND IsCentrallyMaintained='Y' +; + +-- Jul 28, 2008 10:59:25 PM CDT +-- Order Distribution +UPDATE AD_Field SET Name='Product Attribute To', Description='Product Attribute Instance Description', Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53674) AND IsCentrallyMaintained='Y' +; + +-- Jul 28, 2008 11:00:07 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:00:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56278 +; + +-- Jul 28, 2008 11:00:20 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:00:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56291 +; + +-- Jul 28, 2008 11:00:27 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:00:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56292 +; + +-- Jul 28, 2008 11:00:34 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:00:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56287 +; + +-- Jul 28, 2008 11:00:40 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:00:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56286 +; + +-- Jul 28, 2008 11:00:43 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:00:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56290 +; + +-- Jul 28, 2008 11:00:49 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:00:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56285 +; + +-- Jul 28, 2008 11:00:54 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:00:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56288 +; + +-- Jul 28, 2008 11:01:00 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:01:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56276 +; + +-- Jul 28, 2008 11:01:06 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:01:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56264 +; + +-- Jul 28, 2008 11:01:23 PM CDT +-- Order Distribution +UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:01:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56289 +; + +-- Jul 28, 2008 11:02:49 PM CDT +-- Order Distribution +INSERT INTO AD_ReportView (AD_Client_ID,AD_Org_ID,AD_ReportView_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy) VALUES (0,0,53023,53144,TO_TIMESTAMP('2008-07-28 23:02:48','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','RV_DD_OrderDetail',TO_TIMESTAMP('2008-07-28 23:02:48','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:04:34 PM CDT +-- Order Distribution +INSERT INTO AD_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_ReportView_ID,AccessLevel,Created,CreatedBy,Description,EntityType,Help,IsActive,IsBetaFunctionality,IsDirectPrint,IsReport,IsServerProcess,Name,ShowHelp,Statistic_Count,Statistic_Seconds,Updated,UpdatedBy,Value) VALUES (0,0,53151,53023,'3',TO_TIMESTAMP('2008-07-28 23:04:33','YYYY-MM-DD HH24:MI:SS'),0,'Distribution Order Detail Report','EE01','The report includes order detail information Distribution Orders.','Y','N','N','Y','N','Distribution Order Detail','Y',0,0,TO_TIMESTAMP('2008-07-28 23:04:33','YYYY-MM-DD HH24:MI:SS'),0,'RV_DD_OrderDetail') +; + +-- Jul 28, 2008 11:04:34 PM CDT +-- Order Distribution +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=53151 AND EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_ID!=t.AD_Process_ID) +; + +-- Jul 28, 2008 11:04:34 PM CDT +-- Order Distribution +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,53151,0,TO_TIMESTAMP('2008-07-28 23:04:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2008-07-28 23:04:34','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:04:34 PM CDT +-- Order Distribution +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,53151,103,TO_TIMESTAMP('2008-07-28 23:04:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2008-07-28 23:04:34','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:04:34 PM CDT +-- Order Distribution +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,53151,50001,TO_TIMESTAMP('2008-07-28 23:04:34','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2008-07-28 23:04:34','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:04:35 PM CDT +-- Order Distribution +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,53151,102,TO_TIMESTAMP('2008-07-28 23:04:35','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2008-07-28 23:04:35','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:04:35 PM CDT +-- Order Distribution +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,53151,50002,TO_TIMESTAMP('2008-07-28 23:04:35','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2008-07-28 23:04:35','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:06:31 PM CDT +-- Order Distribution +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,196,0,53151,53224,19,52004,'C_DocType_ID',TO_TIMESTAMP('2008-07-28 23:06:30','YYYY-MM-DD HH24:MI:SS'),0,'Document type or rules','EE01',0,'The Document Type determines document sequence and processing rules','Y','Y','N','N','Document Type',10,TO_TIMESTAMP('2008-07-28 23:06:30','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:06:31 PM CDT +-- Order Distribution +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=53224 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) +; + +-- Jul 28, 2008 11:07:32 PM CDT +-- Order Distribution +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,187,0,53151,53225,30,'C_BPartner_ID',TO_TIMESTAMP('2008-07-28 23:07:21','YYYY-MM-DD HH24:MI:SS'),0,'Identifies a Business Partner','EE01',0,'A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','Y','Y','N','N','Business Partner ',20,TO_TIMESTAMP('2008-07-28 23:07:21','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:07:32 PM CDT +-- Order Distribution +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=53225 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) +; + +-- Jul 28, 2008 11:08:31 PM CDT +-- Order Distribution +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,454,0,53151,53226,30,'M_Product_ID',TO_TIMESTAMP('2008-07-28 23:08:19','YYYY-MM-DD HH24:MI:SS'),0,'Product, Service, Item','EE01',0,'Identifies an item which is either purchased or sold in this organization.','Y','Y','N','N','Product',30,TO_TIMESTAMP('2008-07-28 23:08:19','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:08:31 PM CDT +-- Order Distribution +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=53226 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) +; + +-- Jul 28, 2008 11:09:31 PM CDT +-- Order Distribution +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,268,0,53151,53227,15,'DateOrdered',TO_TIMESTAMP('2008-07-28 23:09:30','YYYY-MM-DD HH24:MI:SS'),0,'Date of Order','EE01',0,'Indicates the Date an item was ordered.','Y','Y','N','N','Date Ordered',40,TO_TIMESTAMP('2008-07-28 23:09:30','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:09:31 PM CDT +-- Order Distribution +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=53227 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) +; + +-- Jul 28, 2008 11:10:29 PM CDT +-- Order Distribution +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,269,0,53151,53228,15,'DatePromised',TO_TIMESTAMP('2008-07-28 23:10:25','YYYY-MM-DD HH24:MI:SS'),0,'Date Order was promised','EE01',0,'The Date Promised indicates the date, if any, that an Order was promised for.','Y','Y','N','Y','Date Promised',40,TO_TIMESTAMP('2008-07-28 23:10:25','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:10:29 PM CDT +-- Order Distribution +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=53228 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) +; + +-- Jul 28, 2008 11:10:34 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET IsRange='Y',Updated=TO_TIMESTAMP('2008-07-28 23:10:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53227 +; + +-- Jul 28, 2008 11:11:59 PM CDT +-- Order Distribution +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_Reference_Value_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,289,0,53151,53229,17,131,'DocStatus',TO_TIMESTAMP('2008-07-28 23:11:54','YYYY-MM-DD HH24:MI:SS'),0,'The current status of the document','EE01',0,'The Document Status indicates the status of a document at this time. If you want to change the document status, use the Document Action field','Y','Y','N','N','Document Status',50,TO_TIMESTAMP('2008-07-28 23:11:54','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:11:59 PM CDT +-- Order Distribution +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=53229 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) +; + +-- Jul 28, 2008 11:13:57 PM CDT +-- Order Distribution +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,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,448,0,53151,53230,19,'M_Locator_ID',TO_TIMESTAMP('2008-07-28 23:13:56','YYYY-MM-DD HH24:MI:SS'),0,'Warehouse Locator','EE01',10,'The Locator indicates where in a Warehouse a product is located.','Y','Y','N','N','Locator',60,TO_TIMESTAMP('2008-07-28 23:13:56','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:13:57 PM CDT +-- Order Distribution +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=53230 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) +; + +-- Jul 28, 2008 11:15:02 PM CDT +-- Order Distribution +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_Reference_Value_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1029,0,53151,53231,18,191,'M_LocatorTo_ID',TO_TIMESTAMP('2008-07-28 23:15:00','YYYY-MM-DD HH24:MI:SS'),0,'Location inventory is moved to','EE01',10,'The Locator To indicates the location where the inventory is being moved to.','Y','Y','N','N','Locator To',60,TO_TIMESTAMP('2008-07-28 23:15:00','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:15:02 PM CDT +-- Order Distribution +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=53231 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) +; + +-- Jul 28, 2008 11:15:18 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:15:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53224 +; + +-- Jul 28, 2008 11:15:23 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:15:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53225 +; + +-- Jul 28, 2008 11:15:28 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:15:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53226 +; + +-- Jul 28, 2008 11:15:37 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:15:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53227 +; + +-- Jul 28, 2008 11:15:51 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET SeqNo=50,Updated=TO_TIMESTAMP('2008-07-28 23:15:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53228 +; + +-- Jul 28, 2008 11:16:01 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:16:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53228 +; + +-- Jul 28, 2008 11:16:14 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET FieldLength=10,Updated=TO_TIMESTAMP('2008-07-28 23:16:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53229 +; + +-- Jul 28, 2008 11:16:32 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET SeqNo=70,Updated=TO_TIMESTAMP('2008-07-28 23:16:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53231 +; + +-- Jul 28, 2008 11:16:50 PM CDT +-- Order Distribution +UPDATE AD_Process_Para SET SeqNo=80,Updated=TO_TIMESTAMP('2008-07-28 23:16:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53229 +; + +-- Jul 28, 2008 11:18:10 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=54027 +; + +-- Jul 28, 2008 11:18:10 PM CDT +-- Order Distribution +UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54031 +; + +-- Jul 28, 2008 11:19:21 PM CDT +-- Order Distribution +INSERT INTO AD_Menu (AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,"action",Created,CreatedBy,Description,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (0,53185,0,53151,'R',TO_TIMESTAMP('2008-07-28 23:19:20','YYYY-MM-DD HH24:MI:SS'),0,'Distribution Order Detail Report','EE01','Y','N','N','N','Distribution Order Detail',TO_TIMESTAMP('2008-07-28 23:19:20','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 28, 2008 11:19:21 PM CDT +-- Order Distribution +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=53185 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID) +; + +-- Jul 28, 2008 11:19:21 PM CDT +-- Order Distribution +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, 53185, 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=53185) +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=218 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=153 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=263 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=166 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=203 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=236 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=183 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=160 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=278 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=345 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53014 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53108 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53105 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=1000007 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=14, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=1000009 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53067 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=381 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53088 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=128 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53068 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53185 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=445 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=472 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=1000041 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53069 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53070 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=181 +; + +-- Jul 28, 2008 11:19:43 PM CDT +-- Order Distribution +UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=484 +; + +--DROP VIEW RV_DD_ORDERDETAIL; +CREATE OR REPLACE VIEW RV_DD_ORDERDETAIL AS +SELECT l.AD_Client_ID, l.AD_Org_ID, + l.IsActive, l.Created, l.CreatedBy, l.Updated, l.UpdatedBy, + o.C_Order_ID, o.DocStatus, o.DocAction, o.C_DocType_ID, o.IsApproved, --o.IsCreditApproved, + o.SalesRep_ID, + o.IsDropShip, + o.AD_User_ID, + o.POReference, + o.IsSOTrx, + l.C_Campaign_ID, l.C_Project_ID, l.C_Activity_ID, + --l.C_ProjectPhase_ID, l.C_ProjectTask_ID, + l.DD_OrderLine_ID, l.DateOrdered, l.DatePromised, l.M_Product_ID, l.M_Locator_ID,l.M_LocatorTo_ID, + l.M_AttributeSetInstance_ID, productAttribute(l.M_AttributeSetInstance_ID) AS ProductAttribute, + l.M_AttributeSetInstanceTo_ID, productAttribute(l.M_AttributeSetInstanceTo_ID) AS ProductAttributeTo, + pasi.M_AttributeSet_ID, pasi.M_Lot_ID, pasi.GuaranteeDate, pasi.Lot, pasi.SerNo, + l.C_UOM_ID, l.QtyEntered, l.QtyOrdered, l.QtyReserved, l.QtyDelivered, l.Confirmedqty, l.Qtyintransit, l.TargetQty, + l.QtyOrdered-l.QtyDelivered AS QtyToDeliver +FROM DD_Order o + INNER JOIN DD_OrderLine l ON (o.DD_Order_ID=l.DD_Order_ID) + LEFT OUTER JOIN M_AttributeSetInstance pasi ON (l.M_AttributeSetInstance_ID=pasi.M_AttributeSetInstance_ID) + LEFT OUTER JOIN M_AttributeSetInstance pasito ON (l.M_AttributeSetInstanceTo_ID=pasito.M_AttributeSetInstance_ID); + diff --git a/migration/351a-352a/postgresql/245_BF_2022372.sql b/migration/351a-352a/postgresql/245_BF_2022372.sql new file mode 100644 index 0000000000..16f1fb06b4 --- /dev/null +++ b/migration/351a-352a/postgresql/245_BF_2022372.sql @@ -0,0 +1,29 @@ +-- Jul 29, 2008 2:35:59 AM CDT +-- Fix Payroll bug +UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=55163 +; + +-- Jul 29, 2008 2:36:07 AM CDT +-- Fix Payroll bug +DELETE FROM AD_Field_Trl WHERE AD_Field_ID=55163 +; + + +-- Jul 29, 2008 2:36:07 AM CDT +-- Fix Payroll bug +DELETE FROM AD_Field WHERE AD_Field_ID=55163 +; + +-- Jul 29, 2008 2:36:16 AM CDT +-- Fix Payroll bug +DELETE FROM AD_Column_Trl WHERE AD_Column_ID=55045 +; + + +-- Jul 29, 2008 2:36:16 AM CDT +-- Fix Payroll bug +DELETE FROM AD_Column WHERE AD_Column_ID=55045 +; + +ALTER TABLE HR_Movement DROP COLUMN Posted; + diff --git a/migration/351a-352a/postgresql/246_AD_User_IsInPayroll.sql b/migration/351a-352a/postgresql/246_AD_User_IsInPayroll.sql new file mode 100644 index 0000000000..fbfd85ef87 --- /dev/null +++ b/migration/351a-352a/postgresql/246_AD_User_IsInPayroll.sql @@ -0,0 +1,87 @@ + +-- Jul 29, 2008 11:53:38 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53676,0,'IsInPayroll',TO_TIMESTAMP('2008-07-29 11:53:37','YYYY-MM-DD HH24:MI:SS'),0,'Defined if any User Contact will be used for Calculate Payroll','EE02','Y','Is In Payroll','Is In Payroll',TO_TIMESTAMP('2008-07-29 11:53:37','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 29, 2008 11:53:38 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53676 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID) +; + +-- Jul 29, 2008 11:54:29 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,14619,56325,0,53108,TO_TIMESTAMP('2008-07-29 11:54:27','YYYY-MM-DD HH24:MI:SS'),0,'How a Java Client connects to the server(s)',1,'D','Depending on the connection profile, different protocols are used and tasks are performed on the server rather then the client. Usually the user can select different profiles, unless it is enforced by the User or Role definition. The User level profile overwrites the Role based profile.','Y','Y','Y','N','N','N','N','N','Connection Profile',TO_TIMESTAMP('2008-07-29 11:54:27','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 29, 2008 11:54:29 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56325 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 29, 2008 11:54:30 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,15975,56326,0,53108,TO_TIMESTAMP('2008-07-29 11:54:29','YYYY-MM-DD HH24:MI:SS'),0,'Search key for the record in the format required - must be unique',40,'D','A search key allows you a fast method of finding a particular record. +If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_", where TableName is the actual name of the table (e.g. C_Order).','Y','Y','Y','N','N','N','N','N','Search Key',TO_TIMESTAMP('2008-07-29 11:54:29','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 29, 2008 11:54:30 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56326 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 29, 2008 11:54:31 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,52066,56327,0,53108,TO_TIMESTAMP('2008-07-29 11:54:30','YYYY-MM-DD HH24:MI:SS'),0,20,'D','Y','Y','Y','N','N','N','N','N','UserPIN',TO_TIMESTAMP('2008-07-29 11:54:30','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 29, 2008 11:54:31 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56327 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 29, 2008 11:55:25 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56294,53676,0,20,114,'IsInPayroll',TO_TIMESTAMP('2008-07-29 11:55:24','YYYY-MM-DD HH24:MI:SS'),0,'Defined if any User Contact will be used for Calculate Payroll','EE02',1,'Y','Y','N','N','N','N','N','N','N','N','N','Y','Is In Payroll',0,TO_TIMESTAMP('2008-07-29 11:55:24','YYYY-MM-DD HH24:MI:SS'),0,0) +; + +-- Jul 29, 2008 11:55:26 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56294 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID) +; + +-- Jul 29, 2008 11:55:30 AM CDT +-- Fix Payroll bug +ALTER TABLE AD_User ADD COLUMN IsInPayroll CHAR(1) CHECK (IsInPayroll IN ('Y','N')) +; + +-- Jul 29, 2008 11:55:40 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,56294,56328,0,53108,TO_TIMESTAMP('2008-07-29 11:55:40','YYYY-MM-DD HH24:MI:SS'),0,'Defined if any User Contact will be used for Calculate Payroll',1,'EE02','Y','Y','Y','N','N','N','N','N','Is In Payroll',TO_TIMESTAMP('2008-07-29 11:55:40','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jul 29, 2008 11:55:40 AM CDT +-- Fix Payroll bug +INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_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_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=56328 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID) +; + +-- Jul 29, 2008 11:56:01 AM CDT +-- Fix Payroll bug +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=56325 +; + +-- Jul 29, 2008 11:56:01 AM CDT +-- Fix Payroll bug +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=56326 +; + +-- Jul 29, 2008 11:56:01 AM CDT +-- Fix Payroll bug +UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=56327 +; + +-- Jul 29, 2008 11:56:01 AM CDT +-- Fix Payroll bug +UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=56328 +; + diff --git a/migration/351a-352a/postgresql/247_BF1979978.sql b/migration/351a-352a/postgresql/247_BF1979978.sql new file mode 100644 index 0000000000..b67e531c07 --- /dev/null +++ b/migration/351a-352a/postgresql/247_BF1979978.sql @@ -0,0 +1,11 @@ +-- Jul 29, 2008 3:14:21 PM COT +-- [ 1979978 ] A_VALID_ASSET_COMBINATIONS in dict not in db +UPDATE AD_Column SET IsActive='N',Updated=TO_TIMESTAMP('2008-07-29 15:14:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55992 +; + +UPDATE AD_Column SET IsActive='N',Updated=TO_TIMESTAMP('2008-07-29 15:14:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55991 +; + +UPDATE AD_Table SET IsActive='N',Updated=TO_TIMESTAMP('2008-07-29 15:14:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53140 +; + diff --git a/migration/351a-352a/postgresql/248_FixReferenceType.sql b/migration/351a-352a/postgresql/248_FixReferenceType.sql new file mode 100644 index 0000000000..09d0584a77 --- /dev/null +++ b/migration/351a-352a/postgresql/248_FixReferenceType.sql @@ -0,0 +1,11 @@ +-- Jul 29, 2008 4:04:35 PM CDT +-- Default comment for updating dictionary +UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=130,Updated=TO_TIMESTAMP('2008-07-29 16:04:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56179 +; + +-- Jul 29, 2008 4:05:00 PM CDT +-- Default comment for updating dictionary +UPDATE AD_Column SET AD_Val_Rule_ID=104,Updated=TO_TIMESTAMP('2008-07-29 16:05:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=55055 +; + + diff --git a/migration/351a-352a/postgresql/249_version352a.sql b/migration/351a-352a/postgresql/249_version352a.sql new file mode 100755 index 0000000000..b0edcded47 --- /dev/null +++ b/migration/351a-352a/postgresql/249_version352a.sql @@ -0,0 +1,6 @@ +UPDATE AD_SYSTEM + SET releaseno = '352a', + VERSION = '2008-07-29' + WHERE ad_system_id = 0 AND ad_client_id = 0; + +COMMIT ; diff --git a/migration/351a-352a/postgresql/build.xml b/migration/351a-352a/postgresql/build.xml new file mode 100644 index 0000000000..b9d0c62309 --- /dev/null +++ b/migration/351a-352a/postgresql/build.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + File ${file.name} status ${psql.result} + + +