REVERTING REVISION of [ FR 2432892 ] Re-org of migration directory

This commit is contained in:
Redhuan D. Oon 2008-12-17 13:01:10 +00:00
parent ac339a5499
commit cd267a3155
67 changed files with 33493 additions and 0 deletions

View File

@ -0,0 +1,5 @@
UPDATE ad_message_trl
SET msgtext = '{0} Línea(s) - Total: {1,number,#,##0.00} {2}'
WHERE ad_language = 'es_MX' AND ad_message_id = 623;
COMMIT ;

View File

@ -0,0 +1,5 @@
UPDATE ad_field_trl
SET NAME = 'Tipo de Tiempo'
WHERE ad_language = 'es_MX' AND ad_field_id = 6579;
COMMIT ;

View File

@ -0,0 +1,5 @@
UPDATE ad_message_trl
SET msgtext = 'Solicitud {0} fue transferida por {1} de {2} a {3}'
WHERE ad_language = 'es_MX' AND ad_message_id = 483;
COMMIT ;

View File

@ -0,0 +1,49 @@
UPDATE ad_table
SET created = ADD_MONTHS (created, 22800)
WHERE created < DATE '1000-01-01';
UPDATE ad_column
SET created = ADD_MONTHS (created, 22800)
WHERE created < DATE '1000-01-01';
UPDATE ad_field
SET created = ADD_MONTHS (created, 22800)
WHERE created < DATE '1000-01-01';
UPDATE ad_menu
SET created = ADD_MONTHS (created, 22800)
WHERE created < DATE '1000-01-01';
UPDATE ad_message
SET created = ADD_MONTHS (created, 22800)
WHERE created < DATE '1000-01-01';
UPDATE ad_reference
SET created = ADD_MONTHS (created, 22800)
WHERE created < DATE '1000-01-01';
UPDATE ad_ref_list
SET created = ADD_MONTHS (created, 22800)
WHERE created < DATE '1000-01-01';
UPDATE ad_ref_table
SET created = ADD_MONTHS (created, 22800)
WHERE created < DATE '1000-01-01';
UPDATE ad_tab
SET created = ADD_MONTHS (created, 22800)
WHERE created < DATE '1000-01-01';
UPDATE ad_treenodemm
SET created = ADD_MONTHS (created, 22800)
WHERE created < DATE '1000-01-01';
UPDATE ad_val_rule
SET created = ADD_MONTHS (created, 22800)
WHERE created < DATE '1000-01-01';
UPDATE ad_window
SET created = ADD_MONTHS (created, 22800)
WHERE created < DATE '1000-01-01';
COMMIT ;

View File

@ -0,0 +1,5 @@
UPDATE ad_message_trl
SET msgtext = 'Escalada Solicitud {0} a {1}'
WHERE ad_language = 'es_MX' AND ad_message_id = 485;
COMMIT ;

View File

@ -0,0 +1,58 @@
--Delete field pk_name in window Pack Out Tab Pakage Details _> Reason: do not is nessesary becouse this field are in header
DELETE FROM ad_field_trl
WHERE ad_field_id = 50094;
DELETE FROM ad_field
WHERE ad_field_id = 50094;
--SET ID Export Package AS Reference vs Pk_Name
UPDATE ad_field
SET seqno = 30,
isdisplayed = 'Y'
WHERE ad_field_id = 50091;
--Delete Pk_Name in the Table and History of Changes
DELETE FROM ad_changelog
WHERE ad_column_id = 50126 AND ad_table_id = 50006;
DELETE FROM ad_column_trl
WHERE ad_column_id = 50126;
DELETE FROM ad_column
WHERE ad_column_id = 50126 AND ad_table_id = 50006;
--Set PK_Name AS REference to Table Header
UPDATE ad_column
SET isidentifier = 'Y',
seqno = 1
WHERE ad_column_id = 50086;
ALTER TABLE ad_package_exp_detail DROP COLUMN pk_name;
ALTER TABLE ad_package_exp RENAME COLUMN pk_name TO name;
UPDATE ad_column
SET ad_element_id = 469,
columnname = 'Name',
name = 'Name'
WHERE ad_column_id = 50086;
ALTER TABLE ad_package_exp_common RENAME COLUMN pk_name TO NAME;
UPDATE ad_column
SET ad_element_id = 469,
columnname = 'Name',
name = 'Name'
WHERE ad_column_id = 50146;
DELETE FROM ad_element_trl
WHERE ad_element_id = 50021;
DELETE FROM ad_element
WHERE ad_element_id = 50021;
COMMIT ;

View File

@ -0,0 +1,6 @@
UPDATE ad_system
SET releaseno = '314',
version = '2007-01-23'
WHERE ad_system_id = 0 AND ad_client_id = 0;
COMMIT ;

View File

@ -0,0 +1,8 @@
-- Fix problem, a table must not have two identifiers with same seqno
UPDATE ad_column
SET isidentifier = 'Y',
seqno = 2
WHERE ad_column_id = 50086;
COMMIT;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
INSERT INTO ad_treebar
(ad_tree_id, ad_user_id, node_id, ad_client_id, ad_org_id,
isactive, created,
createdby, updated,
updatedby
)
VALUES (10, 100, 144, 0, 0,
'Y', TO_DATE ('01/23/2007 23:59:53', 'MM/DD/YYYY HH24:MI:SS'),
100, TO_DATE ('01/23/2007 23:59:53', 'MM/DD/YYYY HH24:MI:SS'),
100
);
COMMIT ;

View File

@ -0,0 +1,6 @@
UPDATE c_acctschema
SET updated = TO_DATE ('01/24/2007 00:23:21', 'MM/DD/YYYY HH24:MI:SS'),
autoperiodcontrol = 'Y'
WHERE c_acctschema_id = 101;
COMMIT ;

View File

@ -0,0 +1,98 @@
ALTER TABLE ad_process ADD jasperreport NVARCHAR2(255);
DELETE FROM ad_field
WHERE ad_column_id =
(SELECT ad_column_id
FROM ad_column
WHERE ad_element_id = (SELECT ad_element_id
FROM ad_element
WHERE columnname = 'JasperReport'));
DELETE FROM ad_changelog
WHERE ad_column_id =
(SELECT ad_column_id
FROM ad_column
WHERE ad_element_id = (SELECT ad_element_id
FROM ad_element
WHERE columnname = 'JasperReport'));
DELETE FROM ad_column
WHERE ad_element_id = (SELECT ad_element_id
FROM ad_element
WHERE columnname = 'JasperReport');
DELETE FROM ad_element
WHERE columnname = 'JasperReport';
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME, printname
)
VALUES (50039, 0, 0, 'Y',
TO_DATE ('01/24/2007 00:55:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('01/24/2007 00:57:04', 'MM/DD/YYYY HH24:MI:SS'), 100,
'JasperReport', 'D', 'Jasper Report', 'Jasper Report'
);
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_element_id) + 1
FROM ad_element
WHERE ad_element_id < 1000000)
WHERE NAME = 'AD_Element';
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, isidentifier, istranslated,
isencrypted, isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50182, 0, 0, 'Y',
TO_DATE ('01/24/2007 00:55:01', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('01/24/2007 00:58:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Jasper Report',
'In this column you store the JasperReport filename', 0, 'D',
'JasperReport', 284, 14, 255, 'N',
'N', 'N', 'Y', 'N', 'N',
'N', 'N', 50039, 'N',
'N'
);
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_column_id) + 1
FROM ad_column
WHERE ad_column_id < 1000000)
WHERE NAME = 'AD_Column';
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description, iscentrallymaintained, ad_tab_id,
ad_column_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50156, 0, 0, 'Y',
TO_DATE ('01/24/2007 01:00:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('01/24/2007 01:01:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Jasper Report',
'In this column you store the JasperReport filename', 'Y', 245,
50182, 'Y', 60, 'N', 210,
'N', 'N', 'N', 'N', 'D'
);
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_field_id) + 1
FROM ad_field
WHERE ad_field_id < 1000000)
WHERE NAME = 'AD_Field';
COMMIT ;

View File

@ -0,0 +1,12 @@
ALTER TABLE ad_process_para
MODIFY(defaultvalue NVARCHAR2(2000));
ALTER TABLE ad_process_para
MODIFY(defaultvalue2 NVARCHAR2(2000));
UPDATE ad_column
SET updated = TO_DATE ('01/24/2007 00:40:17', 'MM/DD/YYYY HH24:MI:SS'),
fieldlength = 2000
WHERE ad_column_id IN (3739, 5593);
COMMIT;

View File

@ -0,0 +1,41 @@
INSERT INTO ad_element_trl
(ad_element_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, printname, istranslated
)
VALUES (50039, 'es_MX', 0, 0, 'Y',
TO_DATE ('01/24/2007 00:55:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('01/24/2007 00:56:58', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Reporte Jasper', 'Reporte Jasper', 'Y'
);
INSERT INTO ad_column_trl
(ad_column_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, istranslated
)
VALUES (50182, 'es_MX', 0, 0, 'Y',
TO_DATE ('01/24/2007 00:55:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('01/24/2007 00:57:23', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Reporte Jasper', 'Y'
);
INSERT INTO ad_field_trl
(ad_field_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description,
istranslated
)
VALUES (50156, 'es_MX', 0, 0, 'Y',
TO_DATE ('01/24/2007 01:00:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('01/24/2007 01:01:49', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Reporte Jasper',
'En esta columna se almacena el nombre de archivo del reporte Jasper',
'Y'
);
COMMIT ;

View File

@ -0,0 +1,382 @@
CREATE OR REPLACE PROCEDURE M_PriceList_Create
(
PInstance_ID IN NUMBER
)
AS
/*************************************************************************
* The contents of this file are subject to the Compiere License. You may
* obtain a copy of the License at http://www.compiere.org/license.html
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
* express or implied. See the License for details. Code: Compiere ERP+CRM
* Copyright (C) 1999-2003 Jorg Janke, ComPiere, Inc. All Rights Reserved.
*************************************************************************
* $Id: M_PriceList_Create.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
***
* Title: Create Pricelist
* Description:
* Create PriceList by copying purchase prices (M_Product_PO)
* and applying product category discounts (M_CategoryDiscount)
* Carlos Ruiz - globalqss - Make T_Selection tables permanent
************************************************************************/
-- Logistice
ResultStr VARCHAR2(2000);
Message VARCHAR2(2000) := '';
NoRate EXCEPTION;
-- Parameter
CURSOR Cur_Parameter (PInstance NUMBER) IS
SELECT i.Record_ID, p.ParameterName, p.P_String, p.P_Number, p.P_Date
FROM AD_PInstance i, AD_PInstance_Para p
WHERE i.AD_PInstance_ID=PInstance
AND i.AD_PInstance_ID=p.AD_PInstance_ID(+)
ORDER BY p.SeqNo;
-- Parameter Variables
p_PriceList_Version_ID NUMBER;
p_DeleteOld CHAR(1) := 'N';
--
v_Currency_ID NUMBER;
v_Client_ID NUMBER;
v_Org_ID NUMBER;
v_UpdatedBy NUMBER;
v_StdPrecision NUMBER;
v_DiscountSchema_ID NUMBER;
v_PriceList_Version_Base_ID NUMBER;
--
v_NextNo NUMBER := 0;
-- Get PL Parameter
CURSOR Cur_DiscountLine (DiscountSchema_ID NUMBER) IS
SELECT *
FROM M_DiscountSchemaLine
WHERE M_DiscountSchema_ID=DiscountSchema_ID
AND IsActive='Y'
ORDER BY SeqNo;
BEGIN
-- Update AD_PInstance
DBMS_OUTPUT.PUT_LINE('Updating PInstance - Processing');
ResultStr := 'PInstanceNotFound';
UPDATE AD_PInstance
SET Created = SysDate,
IsProcessing = 'Y'
WHERE AD_PInstance_ID=PInstance_ID;
COMMIT;
-- Get Parameters
ResultStr := 'ReadingParameters';
FOR p IN Cur_Parameter (PInstance_ID) LOOP
p_PriceList_Version_ID := p.Record_ID;
IF (p.ParameterName = 'DeleteOld') THEN
p_DeleteOld := p.P_String;
DBMS_OUTPUT.PUT_LINE(' DeleteOld=' || p_DeleteOld);
ELSE
DBMS_OUTPUT.PUT_LINE('*** Unknown Parameter=' || p.ParameterName);
END IF;
END LOOP; -- Get Parameter
DBMS_OUTPUT.PUT_LINE(' PriceList_Version_ID=' || p_PriceList_Version_ID);
-- Checking Prerequisites
-- -- PO Prices must exists
ResultStr := 'CorrectingProductPO';
DBMS_OUTPUT.PUT_LINE(ResultStr);
UPDATE M_Product_PO
SET PriceList = 0
WHERE PriceList IS NULL;
UPDATE M_Product_PO
SET PriceLastPO = 0
WHERE PriceLastPO IS NULL;
UPDATE M_Product_PO
SET PricePO = PriceLastPO
WHERE (PricePO IS NULL OR PricePO = 0) AND PriceLastPO <> 0;
UPDATE M_Product_PO
SET PricePO = 0
WHERE PricePO IS NULL;
-- Set default current vendor
UPDATE M_Product_PO p
SET IsCurrentVendor = 'Y'
WHERE IsCurrentVendor = 'N'
AND NOT EXISTS
(SELECT pp.M_Product_ID FROM M_Product_PO pp
WHERE pp.M_Product_ID=p.M_Product_ID
GROUP BY pp.M_Product_ID HAVING COUNT(*) > 1);
COMMIT;
/**
* Make sure that we have only one active product
*/
ResultStr := 'CorrectingDuplicates';
DBMS_OUTPUT.PUT_LINE(ResultStr);
DECLARE
-- All duplicate products
CURSOR Cur_Duplicates IS
SELECT DISTINCT M_Product_ID
FROM M_Product_PO po
WHERE IsCurrentVendor='Y' AND IsActive='Y'
AND EXISTS ( SELECT M_Product_ID FROM M_Product_PO x
WHERE x.M_Product_ID=po.M_Product_ID
AND IsCurrentVendor='Y' AND IsActive='Y'
GROUP BY M_Product_ID HAVING COUNT(*) > 1 )
ORDER BY 1;
-- All vendors of Product - expensive first
CURSOR Cur_Vendors (Product_ID NUMBER) IS
SELECT M_Product_ID, C_BPartner_ID
FROM M_Product_PO
WHERE IsCurrentVendor='Y' AND IsActive='Y'
AND M_Product_ID=Product_ID
ORDER BY PriceList DESC;
--
Product_ID NUMBER;
BPartner_ID NUMBER;
BEGIN
FOR dupl IN Cur_Duplicates LOOP
OPEN Cur_Vendors (dupl.M_Product_ID);
FETCH Cur_Vendors INTO Product_ID, BPartner_ID; -- Leave First
LOOP
FETCH Cur_Vendors INTO Product_ID, BPartner_ID; -- Get Record ID
EXIT WHEN Cur_Vendors%NOTFOUND;
--
DBMS_OUTPUT.PUT_LINE(' Record: ' || Product_ID || ' / ' || BPartner_ID);
UPDATE M_Product_PO
SET IsCurrentVendor='N'
WHERE M_Product_ID=Product_ID AND C_BPartner_ID=BPartner_ID;
END LOOP;
CLOSE Cur_Vendors;
END LOOP;
COMMIT;
END;
/** Delete Old Data */
ResultStr := 'DeletingOld';
IF (p_DeleteOld = 'Y') THEN
DELETE M_ProductPrice
WHERE M_PriceList_Version_ID = p_PriceList_Version_ID;
Message := '@Deleted@=' || SQL%ROWCOUNT || ' - ';
DBMS_OUTPUT.PUT_LINE(Message);
END IF;
-- Get PriceList Info
ResultStr := 'GetPLInfo';
DBMS_OUTPUT.PUT_LINE(ResultStr);
SELECT p.C_Currency_ID, c.StdPrecision,
v.AD_Client_ID, v.AD_Org_ID, v.UpdatedBy,
v.M_DiscountSchema_ID, M_PriceList_Version_Base_ID
INTO v_Currency_ID, v_StdPrecision,
v_Client_ID, v_Org_ID, v_UpdatedBy,
v_DiscountSchema_ID, v_PriceList_Version_Base_ID
FROM M_PriceList p, M_PriceList_Version v, C_Currency c
WHERE p.M_PriceList_ID=v.M_PriceList_ID
AND p.C_Currency_ID=c.C_Currency_ID
AND v.M_PriceList_Version_ID=p_PriceList_Version_ID;
/**
* For All Discount Lines in Sequence
*/
FOR dl IN Cur_DiscountLine (v_DiscountSchema_ID) LOOP
ResultStr := 'Parameter Seq=' || dl.SeqNo;
-- DBMS_OUTPUT.PUT_LINE(ResultStr);
-- Clear Temporary Table
DELETE FROM T_Selection WHERE AD_PInstance_ID = PInstance_ID;
-- -----------------------------------
-- Create Selection in temporary table
-- -----------------------------------
IF (v_PriceList_Version_Base_ID IS NULL) THEN
-- Create Selection from M_Product_PO
INSERT INTO T_Selection (AD_PInstance_ID, T_Selection_ID)
SELECT DISTINCT PInstance_ID, po.M_Product_ID
FROM M_Product p, M_Product_PO po
WHERE p.M_Product_ID=po.M_Product_ID
AND (p.AD_Client_ID=v_Client_ID OR p.AD_Client_ID=0)
AND p.IsActive='Y' AND po.IsActive='Y' AND po.IsCurrentVendor='Y'
-- Optional Restrictions
AND (dl.M_Product_Category_ID IS NULL OR p.M_Product_Category_ID=dl.M_Product_Category_ID)
AND (dl.C_BPartner_ID IS NULL OR po.C_BPartner_ID=dl.C_BPartner_ID)
AND (dl.M_Product_ID IS NULL OR p.M_Product_ID=dl.M_Product_ID);
ELSE
-- Create Selection from existing PriceList
INSERT INTO T_Selection (AD_PInstance_ID, T_Selection_ID)
SELECT DISTINCT PInstance_ID, p.M_Product_ID
FROM M_Product p, M_ProductPrice pp
WHERE p.M_Product_ID=pp.M_Product_ID
AND pp.M_PriceList_Version_ID=v_PriceList_Version_Base_ID
AND p.IsActive='Y' AND pp.IsActive='Y'
-- Optional Restrictions
AND (dl.M_Product_Category_ID IS NULL OR p.M_Product_Category_ID=dl.M_Product_Category_ID)
AND (dl.C_BPartner_ID IS NULL OR EXISTS
(SELECT * FROM M_Product_PO po WHERE po.M_Product_ID=p.M_Product_ID AND po.C_BPartner_ID=dl.C_BPartner_ID))
AND (dl.M_Product_ID IS NULL OR p.M_Product_ID=dl.M_Product_ID);
END IF;
Message := Message || '@Selected@=' || SQL%ROWCOUNT;
-- DBMS_OUTPUT.PUT_LINE(Message);
-- Delete Prices in Selection, so that we can insert
IF (v_PriceList_Version_Base_ID IS NULL
OR v_PriceList_Version_Base_ID <> p_PriceList_Version_ID) THEN
ResultStr := ResultStr || ', Delete';
DELETE M_ProductPrice pp
WHERE pp.M_PriceList_Version_ID = p_PriceList_Version_ID
AND EXISTS (SELECT * FROM T_Selection s WHERE pp.M_Product_ID=s.T_Selection_ID
AND s.AD_PInstance_ID = PInstance_ID);
Message := ', @Deleted@=' || SQL%ROWCOUNT;
END IF;
-- --------------------
-- Copy (Insert) Prices
-- --------------------
IF (v_PriceList_Version_Base_ID = p_PriceList_Version_ID) THEN
-- We have Prices already
NULL;
ELSIF (v_PriceList_Version_Base_ID IS NULL) THEN
-- Copy and Convert from Product_PO
ResultStr := ResultStr || ',Copy_PO';
INSERT INTO M_ProductPrice
(M_PriceList_Version_ID, M_Product_ID,
AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy,
PriceList, PriceStd, PriceLimit)
SELECT
p_PriceList_Version_ID, po.M_Product_ID,
v_Client_ID, v_Org_ID, 'Y', SysDate, v_UpdatedBy, SysDate, v_UpdatedBy,
-- Price List
COALESCE(currencyConvert(po.PriceList,
po.C_Currency_ID, v_Currency_ID, dl.ConversionDate, dl.C_ConversionType_ID, v_Client_ID, v_Org_ID),0),
-- Price Std
COALESCE(currencyConvert(po.PriceList,
po.C_Currency_ID, v_Currency_ID, dl.ConversionDate, dl.C_ConversionType_ID, v_Client_ID, v_Org_ID),0),
-- Price Limit
COALESCE(currencyConvert(po.PricePO,
po.C_Currency_ID, v_Currency_ID, dl.ConversionDate, dl.C_ConversionType_ID, v_Client_ID, v_Org_ID),0)
FROM M_Product_PO po
WHERE EXISTS (SELECT * FROM T_Selection s WHERE po.M_Product_ID=s.T_Selection_ID
AND s.AD_PInstance_ID = PInstance_ID)
AND po.IsCurrentVendor='Y' AND po.IsActive='Y';
ELSE
-- Copy and Convert from other PriceList_Version
ResultStr := ResultStr || ',Copy_PL';
INSERT INTO M_ProductPrice
(M_PriceList_Version_ID, M_Product_ID,
AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy,
PriceList, PriceStd, PriceLimit)
SELECT
p_PriceList_Version_ID, pp.M_Product_ID,
v_Client_ID, v_Org_ID, 'Y', SysDate, v_UpdatedBy, SysDate, v_UpdatedBy,
-- Price List
COALESCE(currencyConvert(pp.PriceList,
pl.C_Currency_ID, v_Currency_ID, dl.ConversionDate, dl.C_ConversionType_ID, v_Client_ID, v_Org_ID),0),
-- Price Std
COALESCE(currencyConvert(pp.PriceStd,
pl.C_Currency_ID, v_Currency_ID, dl.ConversionDate, dl.C_ConversionType_ID, v_Client_ID, v_Org_ID),0),
-- Price Limit
COALESCE(currencyConvert(pp.PriceLimit,
pl.C_Currency_ID, v_Currency_ID, dl.ConversionDate, dl.C_ConversionType_ID, v_Client_ID, v_Org_ID),0)
FROM M_ProductPrice pp
INNER JOIN M_PriceList_Version plv ON (pp.M_PriceList_Version_ID=plv.M_PriceList_Version_ID)
INNER JOIN M_PriceList pl ON (plv.M_PriceList_ID=pl.M_PriceList_ID)
WHERE pp.M_PriceList_Version_ID=v_PriceList_Version_Base_ID
AND EXISTS (SELECT * FROM T_Selection s WHERE pp.M_Product_ID=s.T_Selection_ID
AND s.AD_PInstance_ID = PInstance_ID)
AND pp.IsActive='Y';
END IF;
Message := Message || ', @Inserted@=' || SQL%ROWCOUNT;
-- -----------
-- Calculation
-- -----------
ResultStr := ResultStr || ',Calc';
UPDATE M_ProductPrice p
SET PriceList = (DECODE(dl.List_Base, 'S', PriceStd, 'X', PriceLimit, PriceList)
+ dl.List_AddAmt) * (1 - dl.List_Discount/100),
PriceStd = (DECODE(dl.Std_Base, 'L', PriceList, 'X', PriceLimit, PriceStd)
+ dl.Std_AddAmt) * (1 - dl.Std_Discount/100),
PriceLimit = (DECODE(dl.Limit_Base, 'L', PriceList, 'S', PriceStd, PriceLimit)
+ dl.Limit_AddAmt) * (1 - dl.Limit_Discount/100)
WHERE M_PriceList_Version_ID=p_PriceList_Version_ID
AND EXISTS (SELECT * FROM T_Selection s
WHERE s.T_Selection_ID=p.M_Product_ID
AND s.AD_PInstance_ID = PInstance_ID);
-- --------
-- Rounding (AD_Reference_ID=155)
-- --------
ResultStr := ResultStr || ',Round';
UPDATE M_ProductPrice p
SET PriceList = DECODE(dl.List_Rounding,
'N', PriceList,
'0', ROUND(PriceList, 0), -- Even .00
'D', ROUND(PriceList, 1), -- Dime .10
'T', ROUND(PriceList, -1), -- Ten 10.00
'5', ROUND(PriceList*20,0)/20, -- Nickle .05
'Q', ROUND(PriceList*4,0)/4, -- Quarter .25
ROUND(PriceList, v_StdPrecision)),-- Currency
PriceStd = DECODE(dl.Std_Rounding,
'N', PriceStd,
'0', ROUND(PriceStd, 0), -- Even .00
'D', ROUND(PriceStd, 1), -- Dime .10
'T', ROUND(PriceStd, -1), -- Ten 10.00
'5', ROUND(PriceStd*20,0)/20, -- Nickle .05
'Q', ROUND(PriceStd*4,0)/4, -- Quarter .25
ROUND(PriceStd, v_StdPrecision)), -- Currency
PriceLimit = DECODE(dl.Limit_Rounding,
'N', PriceLimit,
'0', ROUND(PriceLimit, 0), -- Even .00
'D', ROUND(PriceLimit, 1), -- Dime .10
'T', ROUND(PriceLimit, -1), -- Ten 10.00
'5', ROUND(PriceLimit*20,0)/20, -- Nickle .05
'Q', ROUND(PriceLimit*4,0)/4, -- Quarter .25
ROUND(PriceLimit, v_StdPrecision))-- Currency
WHERE M_PriceList_Version_ID=p_PriceList_Version_ID
AND EXISTS (SELECT * FROM T_Selection s
WHERE s.T_Selection_ID=p.M_Product_ID
AND s.AD_PInstance_ID = PInstance_ID);
Message := Message || ', @Updated@=' || SQL%ROWCOUNT;
-- Fixed Price overwrite
ResultStr := ResultStr || ',Fix';
UPDATE M_ProductPrice p
SET PriceList = DECODE(dl.List_Base, 'F', dl.List_Fixed, PriceList),
PriceStd = DECODE(dl.Std_Base, 'F', dl.Std_Fixed, PriceStd),
PriceLimit = DECODE(dl.Limit_Base, 'F', dl.Limit_Fixed, PriceLimit)
WHERE M_PriceList_Version_ID=p_PriceList_Version_ID
AND EXISTS (SELECT * FROM T_Selection s
WHERE s.T_Selection_ID=p.M_Product_ID
AND s.AD_PInstance_ID = PInstance_ID);
-- Log Info
INSERT INTO AD_PInstance_Log (AD_PInstance_ID, Log_ID, P_ID, P_NUMBER, P_MSG)
VALUES (PInstance_ID, v_NextNo, null, dl.SeqNo, Message);
--
v_NextNo := v_NextNo + 1;
Message := '';
END LOOP; -- For all DiscountLines
-- Delete Temporary Selection
DELETE FROM T_Selection WHERE AD_PInstance_ID = PInstance_ID;
<<FINISH_PROCESS>>
-- Update AD_PInstance
DBMS_OUTPUT.PUT_LINE(Message);
DBMS_OUTPUT.PUT_LINE('Updating PInstance - Finished');
UPDATE AD_PInstance
SET Updated = SysDate,
IsProcessing = 'N',
Result = 1, -- success
ErrorMsg = Message
WHERE AD_PInstance_ID=PInstance_ID;
COMMIT;
RETURN;
EXCEPTION
WHEN OTHERS THEN
ResultStr := ResultStr || ':' || SQLERRM || ' ' || Message;
DBMS_OUTPUT.PUT_LINE(ResultStr);
UPDATE AD_PInstance
SET Updated = SysDate,
IsProcessing = 'N',
Result = 0, -- failure
ErrorMsg = ResultStr
WHERE AD_PInstance_ID=PInstance_ID;
COMMIT;
RETURN;
END M_PriceList_Create;
/

View File

@ -0,0 +1,171 @@
CREATE OR REPLACE FUNCTION currencyRate
(
p_CurFrom_ID IN NUMBER,
p_CurTo_ID IN NUMBER,
p_ConvDate IN DATE,
p_ConversionType_ID IN NUMBER,
p_Client_ID IN NUMBER,
p_Org_ID IN NUMBER
)
RETURN NUMBER
/*************************************************************************
* The contents of this file are subject to the Compiere License. You may
* obtain a copy of the License at http://www.compiere.org/license.html
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
* express or implied. See the License for details. Code: Compiere ERP+CRM
* Copyright (C) 1999-2001 Jorg Janke, ComPiere, Inc. All Rights Reserved.
*************************************************************************
* $Id: C_Currency_Rate.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
***
* Title: Return Conversion Rate
* Description:
* from CurrencyFrom_ID to CurrencyTo_ID
* Returns NULL, if rate not found
* Test
* SELECT C_Currency_Rate(116, 100, null, null) FROM DUAL; => .647169
* SELECT C_Currency_Rate(116, 100) FROM DUAL; => .647169
************************************************************************/
AS
-- Currency From variables
cf_IsEuro CHAR(1);
cf_IsEMUMember CHAR(1);
cf_EMUEntryDate DATE;
cf_EMURate NUMBER;
-- Currency To variables
ct_IsEuro CHAR(1);
ct_IsEMUMember CHAR(1);
ct_EMUEntryDate DATE;
ct_EMURate NUMBER;
-- Triangle
v_CurrencyFrom NUMBER;
v_CurrencyTo NUMBER;
v_CurrencyEuro NUMBER;
--
v_ConvDate DATE := SysDate;
v_ConversionType_ID NUMBER := 0;
v_Rate NUMBER;
BEGIN
-- No Conversion
IF (p_CurFrom_ID = p_CurTo_ID) THEN
RETURN 1;
END IF;
-- Default Date Parameter
IF (p_ConvDate IS NOT NULL) THEN
v_ConvDate := p_ConvDate; -- SysDate
END IF;
-- Default Conversion Type
IF (p_ConversionType_ID IS NULL OR p_ConversionType_ID = 0) THEN
BEGIN
SELECT C_ConversionType_ID
INTO v_ConversionType_ID
FROM C_ConversionType
WHERE IsDefault='Y'
AND AD_Client_ID IN (0,p_Client_ID)
AND ROWNUM=1
ORDER BY AD_Client_ID DESC;
EXCEPTION WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('Conversion Type Not Found');
END;
ELSE
v_ConversionType_ID := p_ConversionType_ID;
END IF;
-- Get Currency Info
SELECT MAX(TO_CHAR(IsEuro)), MAX(TO_CHAR(IsEMUMember)), MAX(EMUEntryDate), MAX(EMURate)
INTO cf_IsEuro, cf_IsEMUMember, cf_EMUEntryDate, cf_EMURate
FROM C_Currency
WHERE C_Currency_ID = p_CurFrom_ID;
-- Not Found
IF (cf_IsEuro IS NULL) THEN
DBMS_OUTPUT.PUT_LINE('From Currency Not Found');
RETURN NULL;
END IF;
SELECT MAX(TO_CHAR(IsEuro)), MAX(TO_CHAR(IsEMUMember)), MAX(EMUEntryDate), MAX(EMURate)
INTO ct_IsEuro, ct_IsEMUMember, ct_EMUEntryDate, ct_EMURate
FROM C_Currency
WHERE C_Currency_ID = p_CurTo_ID;
-- Not Found
IF (ct_IsEuro IS NULL) THEN
DBMS_OUTPUT.PUT_LINE('To Currency Not Found');
RETURN NULL;
END IF;
-- Fixed - From Euro to EMU
IF (cf_IsEuro = 'Y' AND ct_IsEMUMember ='Y' AND v_ConvDate >= ct_EMUEntryDate) THEN
RETURN ct_EMURate;
END IF;
-- Fixed - From EMU to Euro
IF (ct_IsEuro = 'Y' AND cf_IsEMUMember ='Y' AND v_ConvDate >= cf_EMUEntryDate) THEN
RETURN 1 / cf_EMURate;
END IF;
-- Fixed - From EMU to EMU
IF (cf_IsEMUMember = 'Y' AND cf_IsEMUMember ='Y'
AND v_ConvDate >= cf_EMUEntryDate AND v_ConvDate >= ct_EMUEntryDate) THEN
RETURN ct_EMURate / cf_EMURate;
END IF;
-- Flexible Rates
v_CurrencyFrom := p_CurFrom_ID;
v_CurrencyTo := p_CurTo_ID;
-- if EMU Member involved, replace From/To Currency
IF ((cf_isEMUMember = 'Y' AND v_ConvDate >= cf_EMUEntryDate)
OR (ct_isEMUMember = 'Y' AND v_ConvDate >= ct_EMUEntryDate)) THEN
SELECT MAX(C_Currency_ID)
INTO v_CurrencyEuro
FROM C_Currency
WHERE IsEuro = 'Y';
-- Conversion Rate not Found
IF (v_CurrencyEuro IS NULL) THEN
DBMS_OUTPUT.PUT_LINE('Euro Not Found');
RETURN NULL;
END IF;
IF (cf_isEMUMember = 'Y' AND v_ConvDate >= cf_EMUEntryDate) THEN
v_CurrencyFrom := v_CurrencyEuro;
ELSE
v_CurrencyTo := v_CurrencyEuro;
END IF;
END IF;
-- Get Rate
DECLARE
CURSOR CUR_Rate IS
SELECT MultiplyRate
FROM C_Conversion_Rate
WHERE C_Currency_ID=v_CurrencyFrom AND C_Currency_ID_To=v_CurrencyTo
AND C_ConversionType_ID=v_ConversionType_ID
AND v_ConvDate BETWEEN ValidFrom AND ValidTo
AND AD_Client_ID IN (0,p_Client_ID) AND AD_Org_ID IN (0,p_Org_ID)
ORDER BY AD_Client_ID DESC, AD_Org_ID DESC, ValidFrom DESC;
BEGIN
FOR c IN CUR_Rate LOOP
v_Rate := c.MultiplyRate;
EXIT; -- only first
END LOOP;
END;
-- Not found
IF (v_Rate IS NULL) THEN
DBMS_OUTPUT.PUT_LINE('Conversion Rate Not Found');
RETURN NULL;
END IF;
-- Currency From was EMU
IF (cf_isEMUMember = 'Y' AND v_ConvDate >= cf_EMUEntryDate) THEN
RETURN v_Rate / cf_EMURate;
END IF;
-- Currency To was EMU
IF (ct_isEMUMember = 'Y' AND v_ConvDate >= ct_EMUEntryDate) THEN
RETURN v_Rate * ct_EMURate;
END IF;
RETURN v_Rate;
EXCEPTION WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE(SQLERRM);
RETURN NULL;
END currencyRate;
/

View File

@ -0,0 +1,21 @@
UPDATE ad_process
SET classname = NULL,
procedurename = 'M_PriceList_Create'
WHERE VALUE = 'M_PriceList Create';
UPDATE ad_process
SET classname = NULL,
procedurename = 'AD_PrintPaper_Default'
WHERE VALUE = 'AD_PrintPaper_Default';
UPDATE ad_process
SET classname = NULL,
procedurename = 'M_Product_BOM_Check'
WHERE VALUE = 'M_Product_BOM';
UPDATE ad_process
SET classname = NULL,
procedurename = 'M_Production_Run'
WHERE VALUE = 'M_Production';
COMMIT;

View File

@ -0,0 +1,19 @@
INSERT INTO ad_message
(ad_message_id, ad_client_id, ad_org_id, isactive, created,
createdby, updated, updatedby, VALUE,
msgtext, msgtip, msgtype, entitytype
)
VALUES (50007, 0, 0, 'Y', TO_DATE ('12-02-2007', 'DD-MM-RRRR'),
0, TO_DATE ('12-02-2007', 'DD-MM-RRRR'), 0, 'Charset',
'Charset', 'Charset used for import / export', 'I', 'D'
);
COMMIT ;
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_message_id) + 1
FROM ad_message
WHERE ad_message_id < 1000000)
WHERE NAME = 'AD_Message';
COMMIT ;

View File

@ -0,0 +1,18 @@
INSERT INTO ad_message_trl
(ad_message_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby, updated, updatedby, msgtext, msgtip,
istranslated)
SELECT m.ad_message_id, lang.ad_language, m.ad_client_id, m.ad_org_id, 'Y',
m.created, m.createdby, m.updated, m.updatedby, m.msgtext, m.msgtip,
'N'
FROM ad_message m, ad_language lang
WHERE m.ad_message_id = 50007
AND lang.issystemlanguage = 'Y'
AND lang.isbaselanguage = 'N'
AND NOT EXISTS (
SELECT *
FROM ad_message_trl m2
WHERE m2.ad_message_id = m.ad_message_id
AND m2.ad_language = lang.ad_language);
COMMIT ;

View File

@ -0,0 +1,125 @@
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50040, 0, 0, 'Y',
TO_DATE ('02/13/2007 23:31:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:31:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
'CopyColumnsFromTable', 'D', 'Copy Columns From Table',
'Copy Columns From Table'
);
INSERT INTO ad_process
(ad_process_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
VALUE, NAME,
description,
accesslevel, entitytype, isreport, isdirectprint, classname,
statistic_count, statistic_seconds, isbetafunctionality,
isserverprocess, showhelp
)
VALUES (50011, 0, 0, 'Y',
TO_DATE ('02/13/2007 23:35:07', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:35:48', 'MM/DD/YYYY HH24:MI:SS'), 100,
'AD_Table_CopyColumnsFromTable', 'Copy Columns from Table',
'Create Dictionary Columns for a Table taking another as base',
'4', 'D', 'N', 'N', 'org.compiere.process.CopyColumnsFromTable',
2, 6, 'N',
'N', 'Y'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
ad_element_id, entitytype
)
VALUES (50005, 0, 0, 'Y',
TO_DATE ('02/13/2007 23:39:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:43:06', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Table', 'Database Table information',
'The Database Table provides the information of the table definition',
50011, 10, 19, 'AD_Table_ID',
'Y', 0, 'Y', 'N',
126, 'D'
);
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,
isidentifier, seqno, istranslated, isencrypted,
isselectioncolumn, ad_element_id, ad_process_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50183, 0, 0, 'Y',
TO_DATE ('02/13/2007 23:46:03', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/13/2007 23:46:03', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Copy Columns from Table', 'Copy Columns from Table', 1,
'D', 'CopyColumnsFromTable', 100, 28,
1, 'N', 'N', 'N', 'Y',
'N', 0, 'N', 'N',
'N', 50040, 50011, 'N',
'N'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description, iscentrallymaintained, ad_tab_id,
ad_column_id, isdisplayed, displaylength, isreadonly,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50157, 0, 0, 'Y',
TO_DATE ('02/13/2007 23:56:24', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:56:24', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Copy Columns from Table', 'Copy Columns from Table', 'Y', 100,
50183, 'Y', 1, 'N',
'N', 'N', 'N', 'N', 'D'
);
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_element_id) + 1
FROM ad_element
WHERE ad_element_id < 1000000)
WHERE NAME = 'AD_Element';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_process_id) + 1
FROM ad_process
WHERE ad_process_id < 1000000)
WHERE NAME = 'AD_Process';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_process_para_id) + 1
FROM ad_process_para
WHERE ad_process_para_id < 1000000)
WHERE NAME = 'AD_Process_Para';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_column_id) + 1
FROM ad_column
WHERE ad_column_id < 1000000)
WHERE NAME = 'AD_Column';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_field_id) + 1
FROM ad_field
WHERE ad_field_id < 1000000)
WHERE NAME = 'AD_Field';
COMMIT ;
ALTER TABLE ad_table ADD copycolumnsfromtable NVARCHAR2(1);

View File

@ -0,0 +1,69 @@
INSERT INTO ad_element_trl
(ad_element_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, printname, istranslated
)
VALUES (50040, 'es_MX', 0, 0, 'Y',
TO_DATE ('02/13/2007 23:31:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:31:53', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Copia Columnas desde Tabla', 'Copia Columnas desde Tabla', 'Y'
);
INSERT INTO ad_process_trl
(ad_process_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description,
istranslated
)
VALUES (50011, 'es_MX', 0, 0, 'Y',
TO_DATE ('02/13/2007 23:35:07', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:35:40', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Copiar Columnas desde Tabla',
'Crear columnas del diccionario para una tabla tomando otra como base',
'N'
);
INSERT INTO ad_process_para_trl
(ad_process_para_id, ad_language, ad_client_id, ad_org_id,
isactive, created,
createdby, updated,
updatedby, NAME, description,
HELP,
istranslated
)
VALUES (50005, 'es_MX', 0, 0,
'Y', TO_DATE ('02/13/2007 23:39:09', 'MM/DD/YYYY HH24:MI:SS'),
100, TO_DATE ('02/13/2007 23:43:32', 'MM/DD/YYYY HH24:MI:SS'),
100, 'Tabla', 'Información de tabla de la base de datos',
'La tabla de la base de datos provee información sobre definición de la tabla',
'Y'
);
INSERT INTO ad_column_trl
(ad_column_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, istranslated
)
VALUES (50183, 'es_MX', 0, 0, 'Y',
TO_DATE ('02/13/2007 23:46:03', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:46:22', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Copiar Columnas de Tabla', 'Y'
);
INSERT INTO ad_field_trl
(ad_field_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description, istranslated
)
VALUES (50157, 'es_MX', 0, 0, 'Y',
TO_DATE ('02/13/2007 23:56:24', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:57:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Copiar Columnas desde Tabla', 'Copiar Columnas desde Tabla', 'Y'
);
COMMIT ;

View File

@ -0,0 +1,13 @@
UPDATE ad_process
SET classname = 'org.adempiere.pipo.PackRoll'
WHERE classname = 'org.compiere.PackOut.PackRoll';
UPDATE ad_process
SET classname = 'org.adempiere.pipo.PackOut'
WHERE classname = 'org.compiere.PackOut.PackOut';
UPDATE ad_process
SET classname = 'org.adempiere.pipo.PackIn'
WHERE classname = 'org.compiere.PackOut.IntPackIn';
COMMIT ;

View File

@ -0,0 +1,84 @@
CREATE OR REPLACE FUNCTION productAttribute
(
p_M_AttributeSetInstance_ID IN NUMBER
)
RETURN VARCHAR2
/*************************************************************************
* The contents of this file are subject to the Compiere License. You may
* obtain a copy of the License at http://www.compiere.org/license.html
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
* express or implied. See the License for details. Code: Compiere ERP+CRM
* Copyright (C) 1999-2001 Jorg Janke, ComPiere, Inc. All Rights Reserved.
*************************************************************************
* $Id: M_Attribute_Name.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
***
* Title: Return Instance Attribute Info
* Description:
*
* Test:
SELECT M_Attribute_Name (M_AttributeSetInstance_ID)
FROM M_InOutLine WHERE M_AttributeSetInstance_ID > 0
--
SELECT p.Name
FROM C_InvoiceLine il LEFT OUTER JOIN M_Product p ON (il.M_Product_ID=p.M_Product_ID);
SELECT p.Name || M_Attribute_Name (il.M_AttributeSetInstance_ID)
FROM C_InvoiceLine il LEFT OUTER JOIN M_Product p ON (il.M_Product_ID=p.M_Product_ID);
************************************************************************/
AS
v_Name VARCHAR2(2000) := NULL;
v_NameAdd VARCHAR2(2000) := '';
--
v_Lot M_AttributeSetInstance.Lot%TYPE;
v_LotStart M_AttributeSet.LotCharSOverwrite%TYPE;
v_LotEnd M_AttributeSet.LotCharEOverwrite%TYPE;
v_SerNo M_AttributeSetInstance.SerNo%TYPE;
v_SerNoStart M_AttributeSet.SerNoCharSOverwrite%TYPE;
v_SerNoEnd M_AttributeSet.SerNoCharEOverwrite%TYPE;
v_GuaranteeDate M_AttributeSetInstance.GuaranteeDate%TYPE;
--
CURSOR CUR_Attributes IS
SELECT ai.Value, a.Name
FROM M_AttributeInstance ai
INNER JOIN M_Attribute a ON (ai.M_Attribute_ID=a.M_Attribute_ID AND a.IsInstanceAttribute='Y')
WHERE ai.M_AttributeSetInstance_ID=p_M_AttributeSetInstance_ID;
BEGIN
/* -- Get Product Name
SELECT Name
INTO v_Name
FROM M_Product WHERE M_Product_ID=p_M_Product_ID;
*/
-- Get Product Attribute Set Instance
IF (p_M_AttributeSetInstance_ID > 0) THEN
SELECT asi.Lot, asi.SerNo, asi.GuaranteeDate,
COALESCE(a.SerNoCharSOverwrite, TO_NCHAR('#')), COALESCE(a.SerNoCharEOverwrite, TO_NCHAR('')),
COALESCE(a.LotCharSOverwrite, TO_NCHAR('«')), COALESCE(a.LotCharEOverwrite, TO_NCHAR('»'))
INTO v_Lot, v_SerNo, v_GuaranteeDate,
v_SerNoStart, v_SerNoEnd, v_LotStart, v_LotEnd
FROM M_AttributeSetInstance asi
INNER JOIN M_AttributeSet a ON (asi.M_AttributeSet_ID=a.M_AttributeSet_ID)
WHERE asi.M_AttributeSetInstance_ID=p_M_AttributeSetInstance_ID;
--
IF (v_SerNo IS NOT NULL) THEN
v_NameAdd := v_NameAdd || v_SerNoStart || v_SerNo || v_SerNoEnd || ' ';
END IF;
IF (v_Lot IS NOT NULL) THEN
v_NameAdd := v_NameAdd || v_LotStart || v_Lot || v_LotEnd || ' ';
END IF;
IF (v_GuaranteeDate IS NOT NULL) THEN
v_NameAdd := v_NameAdd || v_GuaranteeDate || ' ';
END IF;
--
FOR a IN CUR_Attributes LOOP
v_NameAdd := v_NameAdd || a.Name || ':' || a.Value || ' ';
END LOOP;
--
IF (LENGTH(v_NameAdd) > 0) THEN
v_Name := v_Name || ' (' || TRIM(v_NameAdd) || ')';
END IF;
END IF;
RETURN v_Name;
END productAttribute;
/

View File

@ -0,0 +1,48 @@
INSERT INTO ad_message
(ad_message_id, ad_client_id, ad_org_id, isactive, created,
createdby, updated, updatedby, VALUE,
msgtext, msgtip, msgtype, entitytype
)
values (
50008,0,0,'Y',to_date('26-02-2007','DD-MM-RRRR'),
0,to_date('26-02-2007','DD-MM-RRRR'),0,'ImplementationVendor',
'Implementation Vendor',null,'I','D'
);
INSERT INTO ad_message
(ad_message_id, ad_client_id, ad_org_id, isactive, created,
createdby, updated, updatedby, VALUE,
msgtext, msgtip, msgtype, entitytype
)
values (
50009,0,0,'Y',to_date('26-02-2007','DD-MM-RRRR'),
0,to_date('26-02-2007','DD-MM-RRRR'),0,'ImplementationVersion',
'Implementation Version',null,'I','D'
);
INSERT INTO ad_message_trl
(ad_message_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby, updated, updatedby, msgtext, msgtip,
istranslated)
SELECT m.ad_message_id, lang.ad_language, m.ad_client_id, m.ad_org_id, 'Y',
m.created, m.createdby, m.updated, m.updatedby, m.msgtext, m.msgtip,
'N'
FROM ad_message m, ad_language lang
WHERE m.ad_message_id in (50008, 50009)
AND lang.issystemlanguage = 'Y'
AND lang.isbaselanguage = 'N'
AND NOT EXISTS (
SELECT *
FROM ad_message_trl m2
WHERE m2.ad_message_id = m.ad_message_id
AND m2.ad_language = lang.ad_language);
COMMIT ;
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_message_id) + 1
FROM ad_message
WHERE ad_message_id < 1000000)
WHERE NAME = 'AD_Message';
COMMIT ;

View File

@ -0,0 +1,248 @@
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50041, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'StoreAttachmentsOnFileSystem', 'D', 'Store Attachments On File System',
'Store Attachments On File System'
);
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,
isidentifier, seqno, istranslated, isencrypted,
isselectioncolumn, ad_element_id, callout, issyncdatabase,
isalwaysupdateable
)
VALUES (50184, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Store Attachments On File System', 'Store Attachments On File System', 1,
'D', 'StoreAttachmentsOnFileSystem', 112, 20,
1, 'N', 'N', 'Y', 'Y',
'N', 0, 'N', 'N',
'N', 50041, 'org.compiere.model.CalloutClient.storeAttachmentOnFileSystem', 'N',
'N'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description, iscentrallymaintained, seqno, ad_tab_id,
ad_column_id, isdisplayed, displaylength, isreadonly,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50158, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Store Attachments On File System', 'Store Attachments On File System', 'Y', 220, 145,
50184, 'Y', 1, 'N',
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50042, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'WindowsAttachmentPath', 'D', 'Windows Attachment Path',
'Windows Attachment Path'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
help, VERSION,
entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, seqno, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50185, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Windows Attachment Path', 'Windows Attachment Path - If you change this value make sure to copy the attachments to the new path!',
'Path of the Adempiere attachments in the file system. If you change this value make sure to copy the attachments to the new path!', 1,
'D', 'WindowsAttachmentPath', 112, 10,
255, 'N', 'N', 'N', 'Y',
'N', 0, 'N', 'N',
'N', 50042, 'N',
'N'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
help,
iscentrallymaintained, seqno, ad_tab_id,
ad_column_id, isdisplayed, displaylength, isreadonly,
issameline, isheading, isfieldonly, isencrypted, entitytype, displaylogic
)
VALUES (50159, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Windows Attachment Path', 'Windows Attachment Path',
'If you change this value make sure to copy the attachments to the new path!',
'Y', 230, 145,
50185, 'Y', 1, 'N',
'N', 'N', 'N', 'N', 'D','@StoreAttachmentsOnFileSystem@=''Y'''
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50043, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'UnixAttachmentPath', 'D', 'Unix Attachment Path',
'Unix Attachment Path'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
help, VERSION,
entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, seqno, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50186, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Unix Attachment Path', 'Unix Attachment Path - If you change this value make sure to copy the attachments to the new path!',
'Path of the Adempiere attachments in the file system. If you change this value make sure to copy the attachments to the new path!', 1,
'D', 'UnixAttachmentPath', 112, 10,
255, 'N', 'N', 'N', 'Y',
'N', 0, 'N', 'N',
'N', 50043, 'N',
'N'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
help,
iscentrallymaintained, seqno, ad_tab_id,
ad_column_id, isdisplayed, displaylength, isreadonly,
issameline, isheading, isfieldonly, isencrypted, entitytype, displaylogic
)
VALUES (50160, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Unix Attachment Path', 'Unix Attachment Path',
'If you change this value make sure to copy the attachments to the new path!',
'Y', 240 ,145,
50186, 'Y', 1, 'N',
'Y', 'N', 'N', 'N', 'D','@StoreAttachmentsOnFileSystem@=''Y'''
);
INSERT INTO ad_message
(ad_message_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
value, msgtext, msgtype
)
VALUES (50010, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'StoreAttachmentWarning',
'If you change the attachment storage method, the old attachments are no longer available to your client.','I'
);
INSERT INTO ad_message
(ad_message_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
value, msgtext, msgtype
)
VALUES (50011, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'AttachmentPathWarning','Make sure to copy the attachments to the new path!','I'
);
INSERT INTO ad_message_trl
(ad_message_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby, updated, updatedby, msgtext, msgtip,
istranslated)
SELECT m.ad_message_id, lang.ad_language, m.ad_client_id, m.ad_org_id, 'Y',
m.created, m.createdby, m.updated, m.updatedby, m.msgtext, m.msgtip,
'N'
FROM ad_message m, ad_language lang
WHERE m.ad_message_id in (50010, 50011)
AND lang.issystemlanguage = 'Y'
AND lang.isbaselanguage = 'N'
AND NOT EXISTS (
SELECT *
FROM ad_message_trl m2
WHERE m2.ad_message_id = m.ad_message_id
AND m2.ad_language = lang.ad_language);
COMMIT ;
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_element_id) + 1
FROM ad_element
WHERE ad_element_id < 1000000)
WHERE NAME = 'AD_Element';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_column_id) + 1
FROM ad_column
WHERE ad_column_id < 1000000)
WHERE NAME = 'AD_Column';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_field_id) + 1
FROM ad_field
WHERE ad_field_id < 1000000)
WHERE NAME = 'AD_Field';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_message_id) + 1
FROM ad_message
WHERE ad_message_id < 1000000)
WHERE NAME = 'AD_Message';
ALTER TABLE ad_client ADD StoreAttachmentsOnFilesystem CHAR(1 BYTE) DEFAULT 'N' NOT NULL;
ALTER TABLE ad_client ADD WindowsAttachmentPath NVARCHAR2(255);
ALTER TABLE ad_client ADD UnixAttachmentPath NVARCHAR2(255);
COMMIT ;

View File

@ -0,0 +1,97 @@
DROP TABLE tire_storage;
DELETE FROM ad_treenodemm
WHERE node_id = 226;
DELETE FROM ad_menu_trl
WHERE ad_menu_id = 226;
DELETE FROM ad_menu
WHERE ad_menu_id = 226;
DELETE FROM ad_field_trl
WHERE ad_field_id IN (SELECT ad_field_id
FROM ad_field
WHERE ad_tab_id = 318);
DELETE FROM ad_field
WHERE ad_tab_id = 318;
DELETE FROM ad_tab_trl
WHERE ad_tab_id = 318;
DELETE FROM ad_tab
WHERE ad_tab_id = 318;
DELETE FROM ad_window_access
WHERE ad_window_id = 190;
DELETE FROM ad_window_trl
WHERE ad_window_id = 190;
DELETE FROM ad_window
WHERE ad_window_id = 190;
DELETE FROM ad_process_trl
WHERE ad_process_id = 160;
DELETE FROM ad_process
WHERE ad_process_id = 160;
DELETE FROM ad_reportview
WHERE ad_reportview_id = 121;
DELETE FROM ad_column_trl
WHERE ad_column_id IN (SELECT ad_column_id
FROM ad_column
WHERE ad_table_id = 384);
DELETE FROM ad_column
WHERE ad_table_id = 384;
DELETE FROM ad_table_trl
WHERE ad_table_id = 384;
DELETE FROM ad_table
WHERE ad_table_id = 384;
DELETE FROM ad_element_trl
WHERE ad_element_id IN
(1527,
1325,
1333,
1339,
1330,
1340,
1331,
1337,
1335,
1327,
1336,
1332,
1334,
1328,
1338
);
DELETE FROM ad_element
WHERE ad_element_id IN
(1527,
1325,
1333,
1339,
1330,
1340,
1331,
1337,
1335,
1327,
1336,
1332,
1334,
1328,
1338
);
COMMIT;

View File

@ -0,0 +1,572 @@
SET DEFINE OFF;
SET SQLBLANKLINES OFF;
CREATE TABLE ad_sysconfig
(
ad_sysconfig_id NUMBER(10) NOT NULL,
ad_client_id NUMBER(10) NOT NULL,
ad_org_id NUMBER(10) NOT NULL,
created DATE NOT NULL,
updated DATE NOT NULL,
createdby NUMBER(10) NOT NULL,
updatedby NUMBER(10) NOT NULL,
isactive CHAR(1 BYTE) DEFAULT 'Y' NOT NULL,
NAME NVARCHAR2(50) NOT NULL,
VALUE NVARCHAR2(255) NOT NULL,
description NVARCHAR2(255)
);
CREATE UNIQUE INDEX ad_sysconfig_key ON ad_sysconfig (ad_sysconfig_id);
ALTER TABLE ad_sysconfig ADD (
CHECK (isactive IN ('Y','N')));
ALTER TABLE ad_sysconfig ADD (
CONSTRAINT ad_sysconfig_key PRIMARY KEY (ad_sysconfig_id));
-- Dictionary
INSERT INTO ad_window
(ad_window_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, windowtype, issotrx, entitytype, processing, isdefault,
winheight, winwidth, isbetafunctionality
)
VALUES (50006, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
'System Configurator', 'M', 'Y', 'D', 'N', 'N',
0, 0, 'N'
);
INSERT INTO ad_window_access
(ad_window_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50006, 102, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_window_access
(ad_window_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50006, 50001, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_window_access
(ad_window_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50006, 0, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_window_access
(ad_window_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50006, 103, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_table
(ad_table_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, tablename, isview, accesslevel, entitytype, ad_window_id,
loadseq, issecurityenabled, isdeleteable, ishighvolume,
importtable, ischangelog, replicationtype, copycolumnsfromtable
)
VALUES (50009, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:08', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:41:08', 'MM/DD/YYYY HH24:MI:SS'), 100,
'System Configurator', 'AD_SysConfig', 'N', '6', 'D', 50006,
0, 'N', 'Y', 'Y',
'N', 'N', 'L', 'N'
);
INSERT INTO ad_sequence
(ad_sequence_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description, isautosequence, incrementno, startno,
currentnext, currentnextsys, isaudited, istableid, startnewyear
)
VALUES (50009, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:41:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
'AD_SysConfig', 'Table AD_SysConfig', 'Y', 1, 1000000,
1000000, 50000, 'N', 'Y', 'N'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50044, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'), 100,
'AD_SysConfig_ID', 'D', 'System Configurator',
'System Configurator'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50187, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:27', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:06', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'System Configurator', 0, 'D', 'AD_SysConfig_ID', 50009,
13, 10, 'Y', 'N', 'Y',
'N', 'N', 'N', 'N',
'N', 50044, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, istranslated, isencrypted, isselectioncolumn,
ad_element_id, issyncdatabase, isalwaysupdateable
)
VALUES (50188, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:42:05', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Client', 'Client/Tenant for this installation.',
'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',
0, 'D', 'AD_Client_ID', 50009, 19,
10, 'N', 'N', 'Y', 'N',
'N', 'N', 'N', 'N',
102, 'N', 'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, istranslated, isencrypted, isselectioncolumn,
ad_element_id, issyncdatabase, isalwaysupdateable
)
VALUES (50189, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:42:08', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Organization', 'Organizational entity within client',
'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',
0, 'D', 'AD_Org_ID', 50009, 19,
10, 'N', 'N', 'Y', 'N',
'N', 'N', 'N', 'N',
113, 'N', 'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, istranslated, isencrypted, isselectioncolumn,
ad_element_id, issyncdatabase, isalwaysupdateable
)
VALUES (50190, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:21', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Created', 'Date this record was created',
'The Created field indicates the date that this record was created.',
0, 'D', 'Created', 50009, 16,
7, 'N', 'N', 'Y', 'N',
'N', 'N', 'N', 'N',
245, 'N', 'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, istranslated, isencrypted, isselectioncolumn,
ad_element_id, issyncdatabase, isalwaysupdateable
)
VALUES (50191, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:40', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Updated', 'Date this record was updated',
'The Updated field indicates the date that this record was updated.',
0, 'D', 'Updated', 50009, 16,
7, 'N', 'N', 'Y', 'N',
'N', 'N', 'N', 'N',
607, 'N', 'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
ad_reference_value_id, fieldlength, iskey, isparent,
ismandatory, isupdateable, isidentifier, istranslated,
isencrypted, isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50192, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:25', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Created By', 'User who created this records',
'The Created By field indicates the user who created this record.',
0, 'D', 'CreatedBy', 50009, 18,
110, 10, 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 'N', 246, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, seqno, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50195, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:38', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Name', 'Alphanumeric identifier of the entity',
'The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',
0, 'D', 'Name', 50009, 10,
100, 'N', 'N', 'Y', 'Y',
'Y', 1, 'N', 'N',
'N', 469, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
ad_reference_value_id, fieldlength, iskey, isparent,
ismandatory, isupdateable, isidentifier, istranslated,
isencrypted, isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50193, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:41', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Updated By', 'User who updated this records',
'The Updated By field indicates the user who updated this record.',
0, 'D', 'UpdatedBy', 50009, 18,
110, 10, 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 'N', 608, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, istranslated, isencrypted, isselectioncolumn,
ad_element_id, issyncdatabase, isalwaysupdateable
)
VALUES (50194, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:36', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Active', 'The record is active in the system',
'There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',
0, 'D', 'IsActive', 50009, 20,
1, 'N', 'N', 'Y', 'Y',
'N', 'N', 'N', 'N',
348, 'N', 'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME,
description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, istranslated, isencrypted, isselectioncolumn,
ad_element_id, issyncdatabase, isalwaysupdateable
)
VALUES (50196, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:30', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:43', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Search Key',
'Search key for the record in the format required - must be unique',
'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_<TableName>", where TableName is the actual name of the table (e.g. C_Order).',
0, 'D', 'Value', 50009, 10,
255, 'N', 'N', 'Y', 'Y',
'N', 'N', 'N', 'N',
620, 'N', 'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP, VERSION, entitytype,
columnname, ad_table_id, ad_reference_id, fieldlength, iskey,
isparent, ismandatory, isupdateable, isidentifier, istranslated,
isencrypted, isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50197, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:30', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:33', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Description', 'Optional short description of the record',
'A description is limited to 255 characters.', 0, 'D',
'Description', 50009, 10, 255, 'N',
'N', 'N', 'Y', 'N', 'N',
'N', 'N', 275, 'N',
'N'
);
INSERT INTO ad_tab
(ad_tab_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, ad_table_id, ad_window_id, seqno, tablevel, issinglerow,
isinfotab, istranslationtab, isreadonly, hastree, processing,
importfields, issorttab, entitytype, isinsertrecord,
isadvancedtab
)
VALUES (50009, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:45:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:45:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
'System Configurator', 50009, 50006, 10, 0, 'N',
'N', 'N', 'N', 'N', 'N',
'N', 'N', 'D', 'Y',
'N'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
displaylength, isreadonly, seqno, issameline, isheading,
isfieldonly, isencrypted, entitytype
)
VALUES (50162, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Client', 'Client/Tenant for this installation.',
'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',
'Y', 50009, 50188, 'Y',
10, 'N', 10, 'N', 'N',
'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
displaylength, isreadonly, seqno, issameline, isheading,
isfieldonly, isencrypted, entitytype
)
VALUES (50161, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Active', 'The record is active in the system',
'There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',
'Y', 50009, 50194, 'Y',
1, 'N', 60, 'N', 'N',
'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description,
HELP,
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
displaylength, isreadonly, seqno, issameline, isheading,
isfieldonly, isencrypted, entitytype
)
VALUES (50166, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Search Key',
'Search key for the record in the format required - must be unique',
'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_<TableName>", where TableName is the actual name of the table (e.g. C_Order).',
'Y', 50009, 50196, 'Y',
255, 'N', 30, 'N', 'N',
'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP, iscentrallymaintained, ad_tab_id,
ad_column_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50163, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Description', 'Optional short description of the record',
'A description is limited to 255 characters.', 'Y', 50009,
50197, 'Y', 255, 'N', 50,
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
displaylength, isreadonly, seqno, issameline, isheading,
isfieldonly, isencrypted, entitytype
)
VALUES (50165, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Organization', 'Organizational entity within client',
'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',
'Y', 50009, 50189, 'Y',
10, 'N', 20, 'Y', 'N',
'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
displaylength, isreadonly, seqno, issameline, isheading,
isfieldonly, isencrypted, entitytype
)
VALUES (50164, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Name', 'Alphanumeric identifier of the entity',
'The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',
'Y', 50009, 50195, 'Y',
100, 'N', 40, 'N', 'N',
'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
isdisplayed, displaylength, isreadonly, seqno, issameline,
isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50167, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
'System Configurator', 'Y', 50009, 50187,
'N', 10, 'N', 0, 'N',
'N', 'N', 'N', 'D'
);
INSERT INTO ad_menu
(ad_menu_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated,
NAME, updatedby, issummary, issotrx, isreadonly, action,
ad_window_id, entitytype
)
VALUES (50008, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:54', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:54', 'MM/DD/YYYY HH24:MI:SS'),
'System Configurator', 100, 'N', 'N', 'N', 'W',
50006, 'D'
);
INSERT INTO ad_treenodemm
(ad_tree_id, node_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
parent_id, seqno
)
VALUES (10, 50008, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:53', 'MM/DD/YYYY HH24:MI:SS'), 0,
TO_DATE ('02/28/2007 01:47:50', 'MM/DD/YYYY HH24:MI:SS'), 0,
161, 17
);
COMMIT ;

View File

@ -0,0 +1,601 @@
ALTER TABLE ad_role ADD (
allow_info_account CHAR(1 BYTE) DEFAULT 'Y'
);
ALTER TABLE ad_role ADD (
allow_info_asset CHAR(1 BYTE) DEFAULT 'Y'
);
ALTER TABLE ad_role ADD (
allow_info_bpartner CHAR(1 BYTE) DEFAULT 'Y'
);
ALTER TABLE ad_role ADD (
allow_info_cashjournal CHAR(1 BYTE) DEFAULT 'Y'
);
ALTER TABLE ad_role ADD (
allow_info_inout CHAR(1 BYTE) DEFAULT 'Y'
);
ALTER TABLE ad_role ADD (
allow_info_invoice CHAR(1 BYTE) DEFAULT 'Y'
);
ALTER TABLE ad_role ADD (
allow_info_order CHAR(1 BYTE) DEFAULT 'Y'
);
ALTER TABLE ad_role ADD (
allow_info_payment CHAR(1 BYTE) DEFAULT 'Y'
);
ALTER TABLE ad_role ADD (
allow_info_product CHAR(1 BYTE) DEFAULT 'Y'
);
ALTER TABLE ad_role ADD (
allow_info_resource CHAR(1 BYTE) DEFAULT 'Y'
);
ALTER TABLE ad_role ADD (
allow_info_schedule CHAR(1 BYTE) DEFAULT 'Y'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50045, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:55', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:24:32', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Account', 'D', 'Allow Info Account',
'Allow Info Account'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50047, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:55', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:29:51', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_BPartner', 'D', 'Allow Info BPartner',
'Allow Info BPartner'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME, printname
)
VALUES (50046, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:55', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:27:15', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Asset', 'D', 'Allow Info Asset', 'Allow Info Asset'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME, printname
)
VALUES (50051, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:31:43', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Order', 'D', 'Allow Info Order', 'Allow Info Order'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50052, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:32:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Payment', 'D', 'Allow Info Payment',
'Allow Info Payment'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50053, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:32:15', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Product', 'D', 'Allow Info Product',
'Allow Info Product'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50054, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:32:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Resource', 'D', 'Allow Info Resource',
'Allow Info Resource'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50055, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:32:46', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Schedule', 'D', 'Allow Info Schedule',
'Allow Info Schedule'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME, printname
)
VALUES (50049, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:31:13', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_InOut', 'D', 'Allow Info InOut', 'Allow Info InOut'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50048, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:30:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_CashJournal', 'D', 'Allow Info CashJournal',
'Allow Info CashJournal'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50050, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:31:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Invoice', 'D', 'Allow Info Invoice',
'Allow Info Invoice'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50198, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:55', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:26:49', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Account', 0, 'D', 'Allow_Info_Account', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50045, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50200, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:55', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:30:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info BPartner', 0, 'D', 'Allow_Info_BPartner', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50047, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50199, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:55', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:28:11', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Asset', 0, 'D', 'Allow_Info_Asset', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50046, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50204, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:20', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Order', 0, 'D', 'Allow_Info_Order', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50051, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50205, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:21', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Payment', 0, 'D', 'Allow_Info_Payment', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50052, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50206, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:22', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Product', 0, 'D', 'Allow_Info_Product', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50053, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50207, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:26', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Resource', 0, 'D', 'Allow_Info_Resource', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50054, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50208, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:27', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Schedule', 0, 'D', 'Allow_Info_Schedule', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50055, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50202, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:16', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info InOut', 0, 'D', 'Allow_Info_InOut', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50049, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname,
ad_table_id, ad_reference_id, fieldlength, iskey, isparent,
ismandatory, isupdateable, isidentifier, istranslated,
isencrypted, isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50201, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:14', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info CashJournal', 0, 'D', 'Allow_Info_CashJournal',
156, 20, 1, 'N', 'N',
'N', 'Y', 'N', 'N',
'N', 'N', 50048, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50203, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:19', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Invoice', 0, 'D', 'Allow_Info_Invoice', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50050, 'N',
'N'
);
INSERT INTO ad_fieldgroup
(ad_fieldgroup_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, entitytype
)
VALUES (50000, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:35:11', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:35:11', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info In Role', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50168, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:37:40', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Account', 'Y', 119, 50198,
50000, 'Y', 1, 'N', 270,
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50170, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:35:31', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info BPartner', 'Y', 119, 50200,
50000, 'Y', 1, 'N', 290,
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50169, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:37:40', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Asset', 'Y', 119, 50199,
50000, 'Y', 1, 'N', 280,
'Y', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50174, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:37:43', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Order', 'Y', 119, 50204,
50000, 'Y', 1, 'N', 330,
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50175, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:35:44', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Payment', 'Y', 119, 50205,
50000, 'Y', 1, 'N', 340,
'Y', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50176, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:36:06', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Product', 'Y', 119, 50206,
50000, 'Y', 1, 'N', 350,
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50177, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:37:44', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Resource', 'Y', 119, 50207,
50000, 'Y', 1, 'N', 360,
'Y', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50178, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:36:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Schedule', 'Y', 119, 50208,
50000, 'Y', 1, 'N', 370,
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50172, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:37:42', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info InOut', 'Y', 119, 50202,
50000, 'Y', 1, 'N', 310,
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50171, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:37:41', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info CashJournal', 'Y', 119, 50201,
50000, 'Y', 1, 'N', 300,
'Y', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50173, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:35:34', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Invoice', 'Y', 119, 50203,
50000, 'Y', 1, 'N', 320,
'Y', 'N', 'N', 'N', 'D'
);
COMMIT ;

View File

@ -0,0 +1,323 @@
INSERT INTO ad_process
(ad_process_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
VALUE, NAME, accesslevel, entitytype,
isreport, isdirectprint, classname, statistic_count,
statistic_seconds, isbetafunctionality, isserverprocess, showhelp
)
VALUES (50012, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Request EMail Processor', 'Request EMail Processor', '3', 'D',
'N', 'N', 'org.compiere.process.RequestEMailProcessor', 0,
0, 'N', 'N', 'Y'
);
INSERT INTO ad_process_access
(ad_process_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50012, 0, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_process_access
(ad_process_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50012, 50001, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_process_access
(ad_process_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50012, 103, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_process_access
(ad_process_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50012, 102, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50006, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:59:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:11:16', 'MM/DD/YYYY HH24:MI:SS'), 100,
'IMAP Host', 50012, 10, 10, 'p_IMAPHost',
'Y', 60, 'Y', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50007, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:59:22', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:11:32', 'MM/DD/YYYY HH24:MI:SS'), 100,
'IMAP User', 50012, 20, 10, 'p_IMAPUser',
'Y', 60, 'Y', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50008, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:59:34', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:11:41', 'MM/DD/YYYY HH24:MI:SS'), 100,
'IMAP Password', 50012, 30, 10, 'p_IMAPPwd',
'Y', 60, 'Y', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50009, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:00:31', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:11:48', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Request Folder', 50012, 40, 10, 'p_RequestFolder',
'Y', 60, 'Y', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50010, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:01:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:11:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Inbox Folder', 50012, 50, 10, 'p_InboxFolder',
'Y', 60, 'Y', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50011, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:01:20', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:12:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Error Folder', 50012, 60, 10, 'p_ErrorFolder',
'Y', 60, 'Y', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50012, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:02:11', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:12:11', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Business Partner', 'Identifies a Business Partner',
'A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson',
50012, 70, 30, 'C_BPartner_ID',
'Y', 10, 'N', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description,
HELP,
ad_process_id, seqno, ad_reference_id, ad_val_rule_id,
columnname, iscentrallymaintained, fieldlength, ismandatory,
isrange, defaultvalue, entitytype
)
VALUES (50013, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:02:49', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:12:20', 'MM/DD/YYYY HH24:MI:SS'), 100,
'User/Contact',
'User within the system - Internal or Business Partner Contact',
'The User identifies a unique user in the system. This could be an internal user or a business partner contact',
50012, 80, 19, 123,
'AD_User_ID', 'Y', 10, 'N',
'N', '-1', 'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
defaultvalue, entitytype
)
VALUES (50014, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:03:31', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:12:28', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Role', 'Responsibility Role',
'The Role determines security and access a user who has this Role will have in the System.',
50012, 90, 19, 'AD_Role_ID',
'Y', 10, 'N', 'N',
'-1', 'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
ad_process_id, seqno, ad_reference_id, ad_reference_value_id,
columnname, iscentrallymaintained, fieldlength, ismandatory,
isrange, defaultvalue, entitytype
)
VALUES (50015, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:03:54', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:12:35', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Sales Representative', 'Sales Representative or Company Agent',
'The Sales Representative indicates the Sales Rep for this Region. Any Sales Rep must be a valid internal user.',
50012, 100, 18, 286,
'SalesRep_ID', 'Y', 10, 'N',
'N', '@AD_User_ID@', 'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50016, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:06:47', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:12:44', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Request Type', 'Type of request (e.g. Inquiry, Complaint, ..)',
'Request Types are used for processing and categorizing requests. Options are Account Inquiry, Warranty Issue, etc.',
50012, 110, 19, 'R_RequestType_ID',
'Y', 10, 'N', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description, ad_process_id,
seqno, ad_reference_id, ad_reference_value_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50017, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:09:52', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:12:58', 'MM/DD/YYYY HH24:MI:SS'), 100,
'User Importance', 'Priority of the issue for the User', 50012,
120, 17, 154, 'p_DefaultPriority',
'Y', 1, 'N', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description, ad_process_id, seqno, ad_reference_id,
ad_reference_value_id, columnname, iscentrallymaintained,
fieldlength, ismandatory, isrange, entitytype
)
VALUES (50018, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:10:19', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:13:05', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Confidentiality', 'Type of Confidentiality', 50012, 130, 17,
340, 'p_DefaultConfidentiality', 'Y',
1, 'N', 'N', 'D'
);
INSERT INTO ad_menu
(ad_menu_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated,
NAME, updatedby, issummary, issotrx, isreadonly, action,
ad_process_id, entitytype
)
VALUES (50009, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:14:03', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:14:03', 'MM/DD/YYYY HH24:MI:SS'),
'Request EMail Processor', 100, 'N', 'N', 'N', 'P',
50012, 'D'
);
INSERT INTO ad_treenodemm
(ad_tree_id, node_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
parent_id, seqno
)
VALUES (10, 50009, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:14:02', 'MM/DD/YYYY HH24:MI:SS'), 0,
TO_DATE ('02/28/2007 03:14:10', 'MM/DD/YYYY HH24:MI:SS'), 0,
456, 5
);
COMMIT ;

View File

@ -0,0 +1,115 @@
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values
(50063,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_ErrorFolder','D','Error Folder','Error Folder',null,null,
null,null,null,null
);
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values
(50062,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_RequestFolder','D','Request Folder','Request Folder',null,null,
null,null,null,null
);
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values
(50061,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_DefaultPriority','D','User Importance','User Importance','Priority of the issue for the User',null,null,
null,null,null
);
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values
(50060,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_IMAPHost','D','IMAP Host','IMAP Host',null,null,
null,null,null,null
);
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values
(50059,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_IMAPPwd','D','IMAP Password','IMAP Password',null,null,
null,null,null,null
);
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values
(50058,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_IMAPUser','D','IMAP User','IMAP User',null,null,
null,null,null,null
);
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values (
50057,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_DefaultConfidentiality','D','Confidentiality','Confidentiality','Type of Confidentiality',null,null,
null,null,null
);
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values
(50056,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_InboxFolder','D','Inbox Folder','Inbox Folder',null,null,
null,null,null,null
);
commit;
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_element_id) + 1
FROM ad_element
WHERE ad_element_id < 1000000)
WHERE NAME = 'AD_Element';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_process_id) + 1
FROM ad_process
WHERE ad_process_id < 1000000)
WHERE NAME = 'AD_Process';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_process_para_id) + 1
FROM ad_process_para
WHERE ad_process_para_id < 1000000)
WHERE NAME = 'AD_Process_Para';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_menu_id) + 1
FROM ad_menu
WHERE ad_menu_id < 1000000)
WHERE NAME = 'AD_Menu';
commit;

View File

@ -0,0 +1,106 @@
Insert into "AD_ELEMENT"
("AD_ELEMENT_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY",
"UPDATED","UPDATEDBY","COLUMNNAME","ENTITYTYPE","NAME","PRINTNAME","DESCRIPTION",
"HELP","PO_NAME","PO_PRINTNAME","PO_DESCRIPTION","PO_HELP")
values
(50064,0,0,'Y',to_date('27.02.07','DD.MM.RR'),0,
to_date('27.02.07','DD.MM.RR'),0,'JasperProcess_ID','D',
'Jasper Process','Jasper Process',
'The Jasper Process used by the printengine if any process defined'
,null,null,null,null,null);
Insert into "AD_VAL_RULE"
("AD_VAL_RULE_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY",
"UPDATED","UPDATEDBY","NAME","DESCRIPTION","TYPE","CODE","ENTITYTYPE")
values
(270,0,0,'Y',to_date('27.02.07','DD.MM.RR'),0,to_date('27.02.07','DD.MM.RR'),
0,'AD_Process Jasper Reports',null,'S','AD_Process.JasperReport IS NOT NULL','D');
UPDATE AD_VAL_RULE
SET CODE = 'AD_Process.IsReport=''Y'' AND AD_Process.JasperReport IS NULL'
WHERE NAME = 'AD_Process Reports';
Insert into "AD_REFERENCE"
("AD_REFERENCE_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY",
"UPDATED","UPDATEDBY","NAME","DESCRIPTION","HELP","VALIDATIONTYPE","VFORMAT","ENTITYTYPE")
values
(400,0,0,'Y',to_date('27.02.07','DD.MM.RR'),0,to_date('27.02.07','DD.MM.RR'),
0,'AD_Process_JasperReports',null,null,'T',null,'D');
Insert into "AD_REF_TABLE"
("AD_REFERENCE_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY",
"UPDATED","UPDATEDBY","AD_TABLE_ID","AD_KEY","AD_DISPLAY","ISVALUEDISPLAYED",
"WHERECLAUSE","ORDERBYCLAUSE","ENTITYTYPE")
values
(400,0,0,'Y',to_date('27.02.07','DD.MM.RR'),0,to_date('27.02.07','DD.MM.RR'),
0,284,2801,2809,'N','AD_Process.JasperReport IS NOT NULL',null,'D');
Insert into "AD_COLUMN"
("AD_COLUMN_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","UPDATED",
"CREATEDBY","UPDATEDBY","NAME","DESCRIPTION","HELP","VERSION","ENTITYTYPE",
"COLUMNNAME","AD_TABLE_ID","AD_REFERENCE_ID","AD_REFERENCE_VALUE_ID",
"AD_VAL_RULE_ID","FIELDLENGTH","DEFAULTVALUE","ISKEY","ISPARENT","ISMANDATORY",
"ISUPDATEABLE","READONLYLOGIC","ISIDENTIFIER","SEQNO","ISTRANSLATED","ISENCRYPTED",
"CALLOUT","VFORMAT","VALUEMIN","VALUEMAX","ISSELECTIONCOLUMN","AD_ELEMENT_ID",
"AD_PROCESS_ID","ISSYNCDATABASE","ISALWAYSUPDATEABLE","COLUMNSQL")
values
(50209,0,0,'Y',to_date('27.02.07','DD.MM.RR'),to_date('27.02.07','DD.MM.RR'),0,
0,'Jasper Process','The Jasper Process used by the printengine if any process defined',
null,1,'D','JasperProcess_ID',493,18,400,null,22,null,'N','N','N','Y',null,'N',0,'N',
'N',null,null,null,null,'N',50064,null,'N','N',null);
Insert into "AD_FIELD"
("AD_FIELD_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY",
"UPDATED","UPDATEDBY","NAME","DESCRIPTION","HELP","ISCENTRALLYMAINTAINED",
"AD_TAB_ID","AD_COLUMN_ID","AD_FIELDGROUP_ID","ISDISPLAYED","DISPLAYLOGIC",
"DISPLAYLENGTH","ISREADONLY","SEQNO","SORTNO","ISSAMELINE","ISHEADING",
"ISFIELDONLY","ISENCRYPTED","ENTITYTYPE","OBSCURETYPE","AD_REFERENCE_ID",
"ISMANDATORY")
values
(50179,0,0,'Y',to_date('27.02.07','DD.MM.RR'),0,to_date('27.02.07','DD.MM.RR'),
0,'Jasper Process','The Jasper Process used by the printengine if any process defined',
null,'Y',425,50209,null,'Y',null,14,'N',195,0,'N','N','N','N','D',null,null,null);
COMMIT;
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_element_id) + 1
FROM ad_element
WHERE ad_element_id < 1000000)
WHERE NAME = 'AD_Element';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_val_rule_id) + 1
FROM ad_val_rule
WHERE ad_val_rule_id < 1000000)
WHERE NAME = 'AD_Val_Rule';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_reference_id) + 1
FROM ad_reference
WHERE ad_reference_id < 1000000)
WHERE NAME = 'AD_Reference';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_reference_id) + 1
FROM ad_ref_table
WHERE ad_reference_id < 1000000)
WHERE NAME = 'AD_Ref_Table';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_column_id) + 1
FROM ad_column
WHERE ad_column_id < 1000000)
WHERE NAME = 'AD_Column';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_field_id) + 1
FROM ad_field
WHERE ad_field_id < 1000000)
WHERE NAME = 'AD_Field';
COMMIT;
ALTER TABLE AD_PrintFormat ADD JasperProcess_ID NUMBER(10);
COMMIT;

View File

@ -0,0 +1,6 @@
UPDATE ad_system
SET releaseno = '315',
version = '2007-02-28'
WHERE ad_system_id = 0 AND ad_client_id = 0;
COMMIT ;

View File

@ -0,0 +1,5 @@
UPDATE ad_entitytype
SET NAME = 'Applications'
WHERE entitytype = 'A';
COMMIT ;

View File

@ -0,0 +1,87 @@
INSERT INTO ad_sequence
(ad_sequence_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description, isautosequence, incrementno, startno,
currentnext, currentnextsys, isaudited, istableid, startnewyear
)
VALUES (50014, 0, 0, 'Y',
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
'DocumentNo_R_InterestArea',
'DocumentNo/Value for Table R_InterestArea', 'Y', 1, 1000000,
1000000, 50000, 'N', 'N', 'N'
);
INSERT INTO ad_sequence
(ad_sequence_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description, isautosequence, incrementno, startno,
currentnext, currentnextsys, isaudited, istableid, startnewyear
)
VALUES (50013, 0, 0, 'Y',
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
'DocumentNo_AD_SysConfig',
'DocumentNo/Value for Table AD_SysConfig', 'Y', 1, 1000000,
1000000, 50000, 'N', 'N', 'N'
);
INSERT INTO ad_sequence
(ad_sequence_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description, isautosequence, incrementno, startno,
currentnext, currentnextsys, isaudited, istableid, startnewyear
)
VALUES (50012, 11, 0, 'Y',
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
'DocumentNo_AD_SysConfig',
'DocumentNo/Value for Table AD_SysConfig', 'Y', 1, 1000000,
1000000, 50000, 'N', 'N', 'N'
);
INSERT INTO ad_sequence
(ad_sequence_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description, isautosequence,
incrementno, startno, currentnext, currentnextsys, isaudited,
istableid, startnewyear
)
VALUES (50011, 11, 0, 'Y',
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
'DocumentNo_AD_User', 'DocumentNo/Value for Table AD_User', 'Y',
1, 1000000, 1000000, 50000, 'N',
'N', 'N'
);
INSERT INTO ad_sequence
(ad_sequence_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description, isautosequence, incrementno, startno,
currentnext, currentnextsys, isaudited, istableid, startnewyear
)
VALUES (50010, 11, 0, 'Y',
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
'DocumentNo_R_InterestArea',
'DocumentNo/Value for Table R_InterestArea', 'Y', 1, 1000000,
1000000, 50000, 'N', 'N', 'N'
);
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_sequence_id) + 1
FROM ad_sequence
WHERE ad_sequence_id < 1000000)
WHERE NAME = 'AD_Sequence';
COMMIT ;

View File

@ -0,0 +1,19 @@
INSERT INTO ad_message
(ad_message_id, ad_client_id, ad_org_id, isactive, created,
createdby, updated, updatedby, VALUE,
msgtext, msgtip, msgtype, entitytype
)
VALUES (50007, 0, 0, 'Y', TO_DATE ('12-02-2007', 'DD-MM-RRRR'),
0, TO_DATE ('12-02-2007', 'DD-MM-RRRR'), 0, 'Charset',
'Charset', 'Charset used for import / export', 'I', 'D'
);
COMMIT ;
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_message_id) + 1
FROM ad_message
WHERE ad_message_id < 1000000)
WHERE NAME = 'AD_Message';
COMMIT ;

View File

@ -0,0 +1,18 @@
INSERT INTO ad_message_trl
(ad_message_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby, updated, updatedby, msgtext, msgtip,
istranslated)
SELECT m.ad_message_id, lang.ad_language, m.ad_client_id, m.ad_org_id, 'Y',
m.created, m.createdby, m.updated, m.updatedby, m.msgtext, m.msgtip,
'N'
FROM ad_message m, ad_language lang
WHERE m.ad_message_id = 50007
AND lang.issystemlanguage = 'Y'
AND lang.isbaselanguage = 'N'
AND NOT EXISTS (
SELECT *
FROM ad_message_trl m2
WHERE m2.ad_message_id = m.ad_message_id
AND m2.ad_language = lang.ad_language);
COMMIT ;

View File

@ -0,0 +1,127 @@
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50040, 0, 0, 'Y',
TO_DATE ('02/13/2007 23:31:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:31:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
'CopyColumnsFromTable', 'D', 'Copy Columns From Table',
'Copy Columns From Table'
);
INSERT INTO ad_process
(ad_process_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
VALUE, NAME,
description,
accesslevel, entitytype, isreport, isdirectprint, classname,
statistic_count, statistic_seconds, isbetafunctionality,
isserverprocess, showhelp
)
VALUES (50011, 0, 0, 'Y',
TO_DATE ('02/13/2007 23:35:07', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:35:48', 'MM/DD/YYYY HH24:MI:SS'), 100,
'AD_Table_CopyColumnsFromTable', 'Copy Columns from Table',
'Create Dictionary Columns for a Table taking another as base',
'4', 'D', 'N', 'N', 'org.compiere.process.CopyColumnsFromTable',
2, 6, 'N',
'N', 'Y'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
ad_element_id, entitytype
)
VALUES (50005, 0, 0, 'Y',
TO_DATE ('02/13/2007 23:39:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:43:06', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Table', 'Database Table information',
'The Database Table provides the information of the table definition',
50011, 10, 19, 'AD_Table_ID',
'Y', 0, 'Y', 'N',
126, 'D'
);
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,
isidentifier, seqno, istranslated, isencrypted,
isselectioncolumn, ad_element_id, ad_process_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50183, 0, 0, 'Y',
TO_DATE ('02/13/2007 23:46:03', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/13/2007 23:46:03', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Copy Columns from Table', 'Copy Columns from Table', 1,
'D', 'CopyColumnsFromTable', 100, 28,
1, 'N', 'N', 'N', 'Y',
'N', 0, 'N', 'N',
'N', 50040, 50011, 'N',
'N'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description, iscentrallymaintained, ad_tab_id,
ad_column_id, isdisplayed, displaylength, isreadonly,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50157, 0, 0, 'Y',
TO_DATE ('02/13/2007 23:56:24', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:56:24', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Copy Columns from Table', 'Copy Columns from Table', 'Y', 100,
50183, 'Y', 1, 'N',
'N', 'N', 'N', 'N', 'D'
);
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_element_id) + 1
FROM ad_element
WHERE ad_element_id < 1000000)
WHERE NAME = 'AD_Element';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_process_id) + 1
FROM ad_process
WHERE ad_process_id < 1000000)
WHERE NAME = 'AD_Process';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_process_para_id) + 1
FROM ad_process_para
WHERE ad_process_para_id < 1000000)
WHERE NAME = 'AD_Process_Para';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_column_id) + 1
FROM ad_column
WHERE ad_column_id < 1000000)
WHERE NAME = 'AD_Column';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_field_id) + 1
FROM ad_field
WHERE ad_field_id < 1000000)
WHERE NAME = 'AD_Field';
COMMIT ;
ALTER TABLE ad_table ADD copycolumnsfromtable VARCHAR(1);
COMMIT ;

View File

@ -0,0 +1,69 @@
INSERT INTO ad_element_trl
(ad_element_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, printname, istranslated
)
VALUES (50040, 'es_MX', 0, 0, 'Y',
TO_DATE ('02/13/2007 23:31:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:31:53', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Copia Columnas desde Tabla', 'Copia Columnas desde Tabla', 'Y'
);
INSERT INTO ad_process_trl
(ad_process_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description,
istranslated
)
VALUES (50011, 'es_MX', 0, 0, 'Y',
TO_DATE ('02/13/2007 23:35:07', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:35:40', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Copiar Columnas desde Tabla',
'Crear columnas del diccionario para una tabla tomando otra como base',
'N'
);
INSERT INTO ad_process_para_trl
(ad_process_para_id, ad_language, ad_client_id, ad_org_id,
isactive, created,
createdby, updated,
updatedby, NAME, description,
HELP,
istranslated
)
VALUES (50005, 'es_MX', 0, 0,
'Y', TO_DATE ('02/13/2007 23:39:09', 'MM/DD/YYYY HH24:MI:SS'),
100, TO_DATE ('02/13/2007 23:43:32', 'MM/DD/YYYY HH24:MI:SS'),
100, 'Tabla', 'Información de tabla de la base de datos',
'La tabla de la base de datos provee información sobre definición de la tabla',
'Y'
);
INSERT INTO ad_column_trl
(ad_column_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, istranslated
)
VALUES (50183, 'es_MX', 0, 0, 'Y',
TO_DATE ('02/13/2007 23:46:03', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:46:22', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Copiar Columnas de Tabla', 'Y'
);
INSERT INTO ad_field_trl
(ad_field_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description, istranslated
)
VALUES (50157, 'es_MX', 0, 0, 'Y',
TO_DATE ('02/13/2007 23:56:24', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/13/2007 23:57:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Copiar Columnas desde Tabla', 'Copiar Columnas desde Tabla', 'Y'
);
COMMIT ;

View File

@ -0,0 +1,13 @@
UPDATE ad_process
SET classname = 'org.adempiere.pipo.PackRoll'
WHERE classname = 'org.compiere.PackOut.PackRoll';
UPDATE ad_process
SET classname = 'org.adempiere.pipo.PackOut'
WHERE classname = 'org.compiere.PackOut.PackOut';
UPDATE ad_process
SET classname = 'org.adempiere.pipo.PackIn'
WHERE classname = 'org.compiere.PackOut.IntPackIn';
COMMIT ;

View File

@ -0,0 +1,48 @@
INSERT INTO ad_message
(ad_message_id, ad_client_id, ad_org_id, isactive, created,
createdby, updated, updatedby, VALUE,
msgtext, msgtip, msgtype, entitytype
)
values (
50008,0,0,'Y',to_date('26-02-2007','DD-MM-RRRR'),
0,to_date('26-02-2007','DD-MM-RRRR'),0,'ImplementationVendor',
'Implementation Vendor',null,'I','D'
);
INSERT INTO ad_message
(ad_message_id, ad_client_id, ad_org_id, isactive, created,
createdby, updated, updatedby, VALUE,
msgtext, msgtip, msgtype, entitytype
)
values (
50009,0,0,'Y',to_date('26-02-2007','DD-MM-RRRR'),
0,to_date('26-02-2007','DD-MM-RRRR'),0,'ImplementationVersion',
'Implementation Version',null,'I','D'
);
INSERT INTO ad_message_trl
(ad_message_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby, updated, updatedby, msgtext, msgtip,
istranslated)
SELECT m.ad_message_id, lang.ad_language, m.ad_client_id, m.ad_org_id, 'Y',
m.created, m.createdby, m.updated, m.updatedby, m.msgtext, m.msgtip,
'N'
FROM ad_message m, ad_language lang
WHERE m.ad_message_id in (50008, 50009)
AND lang.issystemlanguage = 'Y'
AND lang.isbaselanguage = 'N'
AND NOT EXISTS (
SELECT *
FROM ad_message_trl m2
WHERE m2.ad_message_id = m.ad_message_id
AND m2.ad_language = lang.ad_language);
COMMIT ;
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_message_id) + 1
FROM ad_message
WHERE ad_message_id < 1000000)
WHERE NAME = 'AD_Message';
COMMIT ;

View File

@ -0,0 +1,248 @@
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50041, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'StoreAttachmentsOnFileSystem', 'D', 'Store Attachments On File System',
'Store Attachments On File System'
);
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,
isidentifier, seqno, istranslated, isencrypted,
isselectioncolumn, ad_element_id, callout, issyncdatabase,
isalwaysupdateable
)
VALUES (50184, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Store Attachments On File System', 'Store Attachments On File System', 1,
'D', 'StoreAttachmentsOnFileSystem', 112, 20,
1, 'N', 'N', 'Y', 'Y',
'N', 0, 'N', 'N',
'N', 50041, 'org.compiere.model.CalloutClient.storeAttachmentOnFileSystem', 'N',
'N'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description, iscentrallymaintained, seqno, ad_tab_id,
ad_column_id, isdisplayed, displaylength, isreadonly,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50158, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Store Attachments On File System', 'Store Attachments On File System', 'Y', 220, 145,
50184, 'Y', 1, 'N',
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50042, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'WindowsAttachmentPath', 'D', 'Windows Attachment Path',
'Windows Attachment Path'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
help, VERSION,
entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, seqno, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50185, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Windows Attachment Path', 'Windows Attachment Path - If you change this value make sure to copy the attachments to the new path!',
'Path of the Adempiere attachments in the file system. If you change this value make sure to copy the attachments to the new path!', 1,
'D', 'WindowsAttachmentPath', 112, 10,
255, 'N', 'N', 'N', 'Y',
'N', 0, 'N', 'N',
'N', 50042, 'N',
'N'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
help,
iscentrallymaintained, seqno, ad_tab_id,
ad_column_id, isdisplayed, displaylength, isreadonly,
issameline, isheading, isfieldonly, isencrypted, entitytype, displaylogic
)
VALUES (50159, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Windows Attachment Path', 'Windows Attachment Path',
'If you change this value make sure to copy the attachments to the new path!',
'Y', 230, 145,
50185, 'Y', 1, 'N',
'N', 'N', 'N', 'N', 'D','@StoreAttachmentsOnFileSystem@=''Y'''
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50043, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'UnixAttachmentPath', 'D', 'Unix Attachment Path',
'Unix Attachment Path'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
help, VERSION,
entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, seqno, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50186, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Unix Attachment Path', 'Unix Attachment Path - If you change this value make sure to copy the attachments to the new path!',
'Path of the Adempiere attachments in the file system. If you change this value make sure to copy the attachments to the new path!', 1,
'D', 'UnixAttachmentPath', 112, 10,
255, 'N', 'N', 'N', 'Y',
'N', 0, 'N', 'N',
'N', 50043, 'N',
'N'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
help,
iscentrallymaintained, seqno, ad_tab_id,
ad_column_id, isdisplayed, displaylength, isreadonly,
issameline, isheading, isfieldonly, isencrypted, entitytype, displaylogic
)
VALUES (50160, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Unix Attachment Path', 'Unix Attachment Path',
'If you change this value make sure to copy the attachments to the new path!',
'Y', 240 ,145,
50186, 'Y', 1, 'N',
'Y', 'N', 'N', 'N', 'D','@StoreAttachmentsOnFileSystem@=''Y'''
);
INSERT INTO ad_message
(ad_message_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
value, msgtext, msgtype
)
VALUES (50010, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'StoreAttachmentWarning',
'If you change the attachment storage method, the old attachments are no longer available to your client.','I'
);
INSERT INTO ad_message
(ad_message_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
value, msgtext, msgtype
)
VALUES (50011, 0, 0, 'Y',
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/26/2007 12:30:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'AttachmentPathWarning','Make sure to copy the attachments to the new path!','I'
);
INSERT INTO ad_message_trl
(ad_message_id, ad_language, ad_client_id, ad_org_id, isactive,
created, createdby, updated, updatedby, msgtext, msgtip,
istranslated)
SELECT m.ad_message_id, lang.ad_language, m.ad_client_id, m.ad_org_id, 'Y',
m.created, m.createdby, m.updated, m.updatedby, m.msgtext, m.msgtip,
'N'
FROM ad_message m, ad_language lang
WHERE m.ad_message_id in (50010, 50011)
AND lang.issystemlanguage = 'Y'
AND lang.isbaselanguage = 'N'
AND NOT EXISTS (
SELECT *
FROM ad_message_trl m2
WHERE m2.ad_message_id = m.ad_message_id
AND m2.ad_language = lang.ad_language);
COMMIT ;
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_element_id) + 1
FROM ad_element
WHERE ad_element_id < 1000000)
WHERE NAME = 'AD_Element';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_column_id) + 1
FROM ad_column
WHERE ad_column_id < 1000000)
WHERE NAME = 'AD_Column';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_field_id) + 1
FROM ad_field
WHERE ad_field_id < 1000000)
WHERE NAME = 'AD_Field';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_message_id) + 1
FROM ad_message
WHERE ad_message_id < 1000000)
WHERE NAME = 'AD_Message';
ALTER TABLE ad_client ADD StoreAttachmentsOnFilesystem CHAR(1) DEFAULT 'N' NOT NULL;
ALTER TABLE ad_client ADD WindowsAttachmentPath VARCHAR(255);
ALTER TABLE ad_client ADD UnixAttachmentPath VARCHAR(255);
COMMIT ;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,97 @@
DROP TABLE tire_storage;
DELETE FROM ad_treenodemm
WHERE node_id = 226;
DELETE FROM ad_menu_trl
WHERE ad_menu_id = 226;
DELETE FROM ad_menu
WHERE ad_menu_id = 226;
DELETE FROM ad_field_trl
WHERE ad_field_id IN (SELECT ad_field_id
FROM ad_field
WHERE ad_tab_id = 318);
DELETE FROM ad_field
WHERE ad_tab_id = 318;
DELETE FROM ad_tab_trl
WHERE ad_tab_id = 318;
DELETE FROM ad_tab
WHERE ad_tab_id = 318;
DELETE FROM ad_window_access
WHERE ad_window_id = 190;
DELETE FROM ad_window_trl
WHERE ad_window_id = 190;
DELETE FROM ad_window
WHERE ad_window_id = 190;
DELETE FROM ad_process_trl
WHERE ad_process_id = 160;
DELETE FROM ad_process
WHERE ad_process_id = 160;
DELETE FROM ad_reportview
WHERE ad_reportview_id = 121;
DELETE FROM ad_column_trl
WHERE ad_column_id IN (SELECT ad_column_id
FROM ad_column
WHERE ad_table_id = 384);
DELETE FROM ad_column
WHERE ad_table_id = 384;
DELETE FROM ad_table_trl
WHERE ad_table_id = 384;
DELETE FROM ad_table
WHERE ad_table_id = 384;
DELETE FROM ad_element_trl
WHERE ad_element_id IN
(1527,
1325,
1333,
1339,
1330,
1340,
1331,
1337,
1335,
1327,
1336,
1332,
1334,
1328,
1338
);
DELETE FROM ad_element
WHERE ad_element_id IN
(1527,
1325,
1333,
1339,
1330,
1340,
1331,
1337,
1335,
1327,
1336,
1332,
1334,
1328,
1338
);
COMMIT;

View File

@ -0,0 +1,566 @@
CREATE TABLE ad_sysconfig
(
ad_sysconfig_id NUMERIC(10) NOT NULL,
ad_client_id NUMERIC(10) NOT NULL,
ad_org_id NUMERIC(10) NOT NULL,
created TIMESTAMP NOT NULL,
updated TIMESTAMP NOT NULL,
createdby NUMERIC(10) NOT NULL,
updatedby NUMERIC(10) NOT NULL,
isactive CHAR(1) DEFAULT 'Y' NOT NULL,
NAME VARCHAR(50) NOT NULL,
VALUE VARCHAR(255) NOT NULL,
description VARCHAR(255)
);
ALTER TABLE ad_sysconfig ADD
CHECK (isactive IN ('Y','N'));
ALTER TABLE ad_sysconfig ADD
CONSTRAINT ad_sysconfig_key PRIMARY KEY (ad_sysconfig_id);
INSERT INTO ad_window
(ad_window_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, windowtype, issotrx, entitytype, processing, isdefault,
winheight, winwidth, isbetafunctionality
)
VALUES (50006, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
'System Configurator', 'M', 'Y', 'D', 'N', 'N',
0, 0, 'N'
);
INSERT INTO ad_window_access
(ad_window_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50006, 102, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_window_access
(ad_window_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50006, 50001, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_window_access
(ad_window_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50006, 0, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_window_access
(ad_window_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50006, 103, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:39:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_table
(ad_table_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, tablename, isview, accesslevel, entitytype, ad_window_id,
loadseq, issecurityenabled, isdeleteable, ishighvolume,
importtable, ischangelog, replicationtype, copycolumnsfromtable
)
VALUES (50009, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:08', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:41:08', 'MM/DD/YYYY HH24:MI:SS'), 100,
'System Configurator', 'AD_SysConfig', 'N', '6', 'D', 50006,
0, 'N', 'Y', 'Y',
'N', 'N', 'L', 'N'
);
INSERT INTO ad_sequence
(ad_sequence_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description, isautosequence, incrementno, startno,
currentnext, currentnextsys, isaudited, istableid, startnewyear
)
VALUES (50009, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:41:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
'AD_SysConfig', 'Table AD_SysConfig', 'Y', 1, 1000000,
1000000, 50000, 'N', 'Y', 'N'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50044, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'), 100,
'AD_SysConfig_ID', 'D', 'System Configurator',
'System Configurator'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50187, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:27', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:06', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'System Configurator', 0, 'D', 'AD_SysConfig_ID', 50009,
13, 10, 'Y', 'N', 'Y',
'N', 'N', 'N', 'N',
'N', 50044, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, istranslated, isencrypted, isselectioncolumn,
ad_element_id, issyncdatabase, isalwaysupdateable
)
VALUES (50188, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:42:05', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Client', 'Client/Tenant for this installation.',
'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',
0, 'D', 'AD_Client_ID', 50009, 19,
10, 'N', 'N', 'Y', 'N',
'N', 'N', 'N', 'N',
102, 'N', 'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, istranslated, isencrypted, isselectioncolumn,
ad_element_id, issyncdatabase, isalwaysupdateable
)
VALUES (50189, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:42:08', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Organization', 'Organizational entity within client',
'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',
0, 'D', 'AD_Org_ID', 50009, 19,
10, 'N', 'N', 'Y', 'N',
'N', 'N', 'N', 'N',
113, 'N', 'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, istranslated, isencrypted, isselectioncolumn,
ad_element_id, issyncdatabase, isalwaysupdateable
)
VALUES (50190, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:28', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:21', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Created', 'Date this record was created',
'The Created field indicates the date that this record was created.',
0, 'D', 'Created', 50009, 16,
7, 'N', 'N', 'Y', 'N',
'N', 'N', 'N', 'N',
245, 'N', 'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, istranslated, isencrypted, isselectioncolumn,
ad_element_id, issyncdatabase, isalwaysupdateable
)
VALUES (50191, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:40', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Updated', 'Date this record was updated',
'The Updated field indicates the date that this record was updated.',
0, 'D', 'Updated', 50009, 16,
7, 'N', 'N', 'Y', 'N',
'N', 'N', 'N', 'N',
607, 'N', 'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
ad_reference_value_id, fieldlength, iskey, isparent,
ismandatory, isupdateable, isidentifier, istranslated,
isencrypted, isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50192, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:25', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Created By', 'User who created this records',
'The Created By field indicates the user who created this record.',
0, 'D', 'CreatedBy', 50009, 18,
110, 10, 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 'N', 246, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, seqno, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50195, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:38', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Name', 'Alphanumeric identifier of the entity',
'The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',
0, 'D', 'Name', 50009, 10,
100, 'N', 'N', 'Y', 'Y',
'Y', 1, 'N', 'N',
'N', 469, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
ad_reference_value_id, fieldlength, iskey, isparent,
ismandatory, isupdateable, isidentifier, istranslated,
isencrypted, isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50193, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:41', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Updated By', 'User who updated this records',
'The Updated By field indicates the user who updated this record.',
0, 'D', 'UpdatedBy', 50009, 18,
110, 10, 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 'N', 608, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, istranslated, isencrypted, isselectioncolumn,
ad_element_id, issyncdatabase, isalwaysupdateable
)
VALUES (50194, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:29', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:36', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Active', 'The record is active in the system',
'There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',
0, 'D', 'IsActive', 50009, 20,
1, 'N', 'N', 'Y', 'Y',
'N', 'N', 'N', 'N',
348, 'N', 'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME,
description,
HELP,
VERSION, entitytype, columnname, ad_table_id, ad_reference_id,
fieldlength, iskey, isparent, ismandatory, isupdateable,
isidentifier, istranslated, isencrypted, isselectioncolumn,
ad_element_id, issyncdatabase, isalwaysupdateable
)
VALUES (50196, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:30', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:43', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Search Key',
'Search key for the record in the format required - must be unique',
'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_<TableName>", where TableName is the actual name of the table (e.g. C_Order).',
0, 'D', 'Value', 50009, 10,
255, 'N', 'N', 'Y', 'Y',
'N', 'N', 'N', 'N',
620, 'N', 'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, description,
HELP, VERSION, entitytype,
columnname, ad_table_id, ad_reference_id, fieldlength, iskey,
isparent, ismandatory, isupdateable, isidentifier, istranslated,
isencrypted, isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50197, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:41:30', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 01:43:33', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Description', 'Optional short description of the record',
'A description is limited to 255 characters.', 0, 'D',
'Description', 50009, 10, 255, 'N',
'N', 'N', 'Y', 'N', 'N',
'N', 'N', 275, 'N',
'N'
);
INSERT INTO ad_tab
(ad_tab_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, ad_table_id, ad_window_id, seqno, tablevel, issinglerow,
isinfotab, istranslationtab, isreadonly, hastree, processing,
importfields, issorttab, entitytype, isinsertrecord,
isadvancedtab
)
VALUES (50009, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:45:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:45:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
'System Configurator', 50009, 50006, 10, 0, 'N',
'N', 'N', 'N', 'N', 'N',
'N', 'N', 'D', 'Y',
'N'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
displaylength, isreadonly, seqno, issameline, isheading,
isfieldonly, isencrypted, entitytype
)
VALUES (50162, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Client', 'Client/Tenant for this installation.',
'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.',
'Y', 50009, 50188, 'Y',
10, 'N', 10, 'N', 'N',
'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
displaylength, isreadonly, seqno, issameline, isheading,
isfieldonly, isencrypted, entitytype
)
VALUES (50161, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Active', 'The record is active in the system',
'There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.',
'Y', 50009, 50194, 'Y',
1, 'N', 60, 'N', 'N',
'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description,
HELP,
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
displaylength, isreadonly, seqno, issameline, isheading,
isfieldonly, isencrypted, entitytype
)
VALUES (50166, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Search Key',
'Search key for the record in the format required - must be unique',
'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_<TableName>", where TableName is the actual name of the table (e.g. C_Order).',
'Y', 50009, 50196, 'Y',
255, 'N', 30, 'N', 'N',
'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP, iscentrallymaintained, ad_tab_id,
ad_column_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50163, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Description', 'Optional short description of the record',
'A description is limited to 255 characters.', 'Y', 50009,
50197, 'Y', 255, 'N', 50,
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
displaylength, isreadonly, seqno, issameline, isheading,
isfieldonly, isencrypted, entitytype
)
VALUES (50165, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Organization', 'Organizational entity within client',
'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.',
'Y', 50009, 50189, 'Y',
10, 'N', 20, 'Y', 'N',
'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
iscentrallymaintained, ad_tab_id, ad_column_id, isdisplayed,
displaylength, isreadonly, seqno, issameline, isheading,
isfieldonly, isencrypted, entitytype
)
VALUES (50164, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Name', 'Alphanumeric identifier of the entity',
'The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.',
'Y', 50009, 50195, 'Y',
100, 'N', 40, 'N', 'N',
'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
isdisplayed, displaylength, isreadonly, seqno, issameline,
isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50167, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
'System Configurator', 'Y', 50009, 50187,
'N', 10, 'N', 0, 'N',
'N', 'N', 'N', 'D'
);
INSERT INTO ad_menu
(ad_menu_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated,
NAME, updatedby, issummary, issotrx, isreadonly, action,
ad_window_id, entitytype
)
VALUES (50008, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:54', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 01:46:54', 'MM/DD/YYYY HH24:MI:SS'),
'System Configurator', 100, 'N', 'N', 'N', 'W',
50006, 'D'
);
INSERT INTO ad_treenodemm
(ad_tree_id, node_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
parent_id, seqno
)
VALUES (10, 50008, 0, 0, 'Y',
TO_DATE ('02/28/2007 01:46:53', 'MM/DD/YYYY HH24:MI:SS'), 0,
TO_DATE ('02/28/2007 01:47:50', 'MM/DD/YYYY HH24:MI:SS'), 0,
161, 17
);
COMMIT ;

View File

@ -0,0 +1,590 @@
ALTER TABLE ad_role ADD
allow_info_account CHAR(1) DEFAULT 'Y';
ALTER TABLE ad_role ADD
allow_info_asset CHAR(1) DEFAULT 'Y';
ALTER TABLE ad_role ADD
allow_info_bpartner CHAR(1) DEFAULT 'Y';
ALTER TABLE ad_role ADD
allow_info_cashjournal CHAR(1) DEFAULT 'Y';
ALTER TABLE ad_role ADD
allow_info_inout CHAR(1) DEFAULT 'Y';
ALTER TABLE ad_role ADD
allow_info_invoice CHAR(1) DEFAULT 'Y';
ALTER TABLE ad_role ADD
allow_info_order CHAR(1) DEFAULT 'Y';
ALTER TABLE ad_role ADD
allow_info_payment CHAR(1) DEFAULT 'Y';
ALTER TABLE ad_role ADD
allow_info_product CHAR(1) DEFAULT 'Y';
ALTER TABLE ad_role ADD
allow_info_resource CHAR(1) DEFAULT 'Y';
ALTER TABLE ad_role ADD
allow_info_schedule CHAR(1) DEFAULT 'Y';
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50045, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:55', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:24:32', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Account', 'D', 'Allow Info Account',
'Allow Info Account'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50047, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:55', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:29:51', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_BPartner', 'D', 'Allow Info BPartner',
'Allow Info BPartner'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME, printname
)
VALUES (50046, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:55', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:27:15', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Asset', 'D', 'Allow Info Asset', 'Allow Info Asset'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME, printname
)
VALUES (50051, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:31:43', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Order', 'D', 'Allow Info Order', 'Allow Info Order'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50052, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:32:00', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Payment', 'D', 'Allow Info Payment',
'Allow Info Payment'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50053, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:32:15', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Product', 'D', 'Allow Info Product',
'Allow Info Product'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50054, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:32:29', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Resource', 'D', 'Allow Info Resource',
'Allow Info Resource'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50055, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:32:46', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Schedule', 'D', 'Allow Info Schedule',
'Allow Info Schedule'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME, printname
)
VALUES (50049, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:31:13', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_InOut', 'D', 'Allow Info InOut', 'Allow Info InOut'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50048, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:30:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_CashJournal', 'D', 'Allow Info CashJournal',
'Allow Info CashJournal'
);
INSERT INTO ad_element
(ad_element_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
columnname, entitytype, NAME,
printname
)
VALUES (50050, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:31:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow_Info_Invoice', 'D', 'Allow Info Invoice',
'Allow Info Invoice'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50198, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:55', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:26:49', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Account', 0, 'D', 'Allow_Info_Account', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50045, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50200, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:55', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:30:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info BPartner', 0, 'D', 'Allow_Info_BPartner', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50047, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50199, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:55', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:28:11', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Asset', 0, 'D', 'Allow_Info_Asset', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50046, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50204, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:20', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Order', 0, 'D', 'Allow_Info_Order', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50051, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50205, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:21', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Payment', 0, 'D', 'Allow_Info_Payment', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50052, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50206, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:22', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Product', 0, 'D', 'Allow_Info_Product', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50053, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50207, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:26', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Resource', 0, 'D', 'Allow_Info_Resource', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50054, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50208, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:27', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Schedule', 0, 'D', 'Allow_Info_Schedule', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50055, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50202, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:16', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info InOut', 0, 'D', 'Allow_Info_InOut', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50049, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname,
ad_table_id, ad_reference_id, fieldlength, iskey, isparent,
ismandatory, isupdateable, isidentifier, istranslated,
isencrypted, isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50201, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:14', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info CashJournal', 0, 'D', 'Allow_Info_CashJournal',
156, 20, 1, 'N', 'N',
'N', 'Y', 'N', 'N',
'N', 'N', 50048, 'N',
'N'
);
INSERT INTO ad_column
(ad_column_id, ad_client_id, ad_org_id, isactive,
created,
updated, createdby,
updatedby, NAME, VERSION, entitytype, columnname, ad_table_id,
ad_reference_id, fieldlength, iskey, isparent, ismandatory,
isupdateable, isidentifier, istranslated, isencrypted,
isselectioncolumn, ad_element_id, issyncdatabase,
isalwaysupdateable
)
VALUES (50203, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:23:56', 'MM/DD/YYYY HH24:MI:SS'),
TO_DATE ('02/28/2007 02:33:19', 'MM/DD/YYYY HH24:MI:SS'), 100,
100, 'Allow Info Invoice', 0, 'D', 'Allow_Info_Invoice', 156,
20, 1, 'N', 'N', 'N',
'Y', 'N', 'N', 'N',
'N', 50050, 'N',
'N'
);
INSERT INTO ad_fieldgroup
(ad_fieldgroup_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, entitytype
)
VALUES (50000, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:35:11', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:35:11', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info In Role', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50168, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:37:40', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Account', 'Y', 119, 50198,
50000, 'Y', 1, 'N', 270,
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50170, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:35:31', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info BPartner', 'Y', 119, 50200,
50000, 'Y', 1, 'N', 290,
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50169, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:37:40', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Asset', 'Y', 119, 50199,
50000, 'Y', 1, 'N', 280,
'Y', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50174, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:37:43', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Order', 'Y', 119, 50204,
50000, 'Y', 1, 'N', 330,
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50175, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:35:44', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Payment', 'Y', 119, 50205,
50000, 'Y', 1, 'N', 340,
'Y', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50176, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:36:06', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Product', 'Y', 119, 50206,
50000, 'Y', 1, 'N', 350,
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50177, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:37:44', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Resource', 'Y', 119, 50207,
50000, 'Y', 1, 'N', 360,
'Y', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50178, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:36:09', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Schedule', 'Y', 119, 50208,
50000, 'Y', 1, 'N', 370,
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50172, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:37:42', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info InOut', 'Y', 119, 50202,
50000, 'Y', 1, 'N', 310,
'N', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50171, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:37:41', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info CashJournal', 'Y', 119, 50201,
50000, 'Y', 1, 'N', 300,
'Y', 'N', 'N', 'N', 'D'
);
INSERT INTO ad_field
(ad_field_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, iscentrallymaintained, ad_tab_id, ad_column_id,
ad_fieldgroup_id, isdisplayed, displaylength, isreadonly, seqno,
issameline, isheading, isfieldonly, isencrypted, entitytype
)
VALUES (50173, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:33:57', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:35:34', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Allow Info Invoice', 'Y', 119, 50203,
50000, 'Y', 1, 'N', 320,
'Y', 'N', 'N', 'N', 'D'
);
COMMIT ;

View File

@ -0,0 +1,323 @@
INSERT INTO ad_process
(ad_process_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
VALUE, NAME, accesslevel, entitytype,
isreport, isdirectprint, classname, statistic_count,
statistic_seconds, isbetafunctionality, isserverprocess, showhelp
)
VALUES (50012, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Request EMail Processor', 'Request EMail Processor', '3', 'D',
'N', 'N', 'org.compiere.process.RequestEMailProcessor', 0,
0, 'N', 'N', 'Y'
);
INSERT INTO ad_process_access
(ad_process_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50012, 0, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_process_access
(ad_process_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50012, 50001, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_process_access
(ad_process_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50012, 103, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_process_access
(ad_process_id, ad_role_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
isreadwrite
)
VALUES (50012, 102, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 02:57:59', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Y'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50006, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:59:01', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:11:16', 'MM/DD/YYYY HH24:MI:SS'), 100,
'IMAP Host', 50012, 10, 10, 'p_IMAPHost',
'Y', 60, 'Y', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50007, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:59:22', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:11:32', 'MM/DD/YYYY HH24:MI:SS'), 100,
'IMAP User', 50012, 20, 10, 'p_IMAPUser',
'Y', 60, 'Y', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50008, 0, 0, 'Y',
TO_DATE ('02/28/2007 02:59:34', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:11:41', 'MM/DD/YYYY HH24:MI:SS'), 100,
'IMAP Password', 50012, 30, 10, 'p_IMAPPwd',
'Y', 60, 'Y', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50009, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:00:31', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:11:48', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Request Folder', 50012, 40, 10, 'p_RequestFolder',
'Y', 60, 'Y', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50010, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:01:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:11:56', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Inbox Folder', 50012, 50, 10, 'p_InboxFolder',
'Y', 60, 'Y', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50011, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:01:20', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:12:02', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Error Folder', 50012, 60, 10, 'p_ErrorFolder',
'Y', 60, 'Y', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50012, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:02:11', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:12:11', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Business Partner', 'Identifies a Business Partner',
'A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson',
50012, 70, 30, 'C_BPartner_ID',
'Y', 10, 'N', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description,
HELP,
ad_process_id, seqno, ad_reference_id, ad_val_rule_id,
columnname, iscentrallymaintained, fieldlength, ismandatory,
isrange, defaultvalue, entitytype
)
VALUES (50013, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:02:49', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:12:20', 'MM/DD/YYYY HH24:MI:SS'), 100,
'User/Contact',
'User within the system - Internal or Business Partner Contact',
'The User identifies a unique user in the system. This could be an internal user or a business partner contact',
50012, 80, 19, 123,
'AD_User_ID', 'Y', 10, 'N',
'N', '-1', 'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
defaultvalue, entitytype
)
VALUES (50014, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:03:31', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:12:28', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Role', 'Responsibility Role',
'The Role determines security and access a user who has this Role will have in the System.',
50012, 90, 19, 'AD_Role_ID',
'Y', 10, 'N', 'N',
'-1', 'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
ad_process_id, seqno, ad_reference_id, ad_reference_value_id,
columnname, iscentrallymaintained, fieldlength, ismandatory,
isrange, defaultvalue, entitytype
)
VALUES (50015, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:03:54', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:12:35', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Sales Representative', 'Sales Representative or Company Agent',
'The Sales Representative indicates the Sales Rep for this Region. Any Sales Rep must be a valid internal user.',
50012, 100, 18, 286,
'SalesRep_ID', 'Y', 10, 'N',
'N', '@AD_User_ID@', 'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description,
HELP,
ad_process_id, seqno, ad_reference_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50016, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:06:47', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:12:44', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Request Type', 'Type of request (e.g. Inquiry, Complaint, ..)',
'Request Types are used for processing and categorizing requests. Options are Account Inquiry, Warranty Issue, etc.',
50012, 110, 19, 'R_RequestType_ID',
'Y', 10, 'N', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description, ad_process_id,
seqno, ad_reference_id, ad_reference_value_id, columnname,
iscentrallymaintained, fieldlength, ismandatory, isrange,
entitytype
)
VALUES (50017, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:09:52', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:12:58', 'MM/DD/YYYY HH24:MI:SS'), 100,
'User Importance', 'Priority of the issue for the User', 50012,
120, 17, 154, 'p_DefaultPriority',
'Y', 1, 'N', 'N',
'D'
);
INSERT INTO ad_process_para
(ad_process_para_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description, ad_process_id, seqno, ad_reference_id,
ad_reference_value_id, columnname, iscentrallymaintained,
fieldlength, ismandatory, isrange, entitytype
)
VALUES (50018, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:10:19', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:13:05', 'MM/DD/YYYY HH24:MI:SS'), 100,
'Confidentiality', 'Type of Confidentiality', 50012, 130, 17,
340, 'p_DefaultConfidentiality', 'Y',
1, 'N', 'N', 'D'
);
INSERT INTO ad_menu
(ad_menu_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated,
NAME, updatedby, issummary, issotrx, isreadonly, action,
ad_process_id, entitytype
)
VALUES (50009, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:14:03', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 03:14:03', 'MM/DD/YYYY HH24:MI:SS'),
'Request EMail Processor', 100, 'N', 'N', 'N', 'P',
50012, 'D'
);
INSERT INTO ad_treenodemm
(ad_tree_id, node_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
parent_id, seqno
)
VALUES (10, 50009, 0, 0, 'Y',
TO_DATE ('02/28/2007 03:14:02', 'MM/DD/YYYY HH24:MI:SS'), 0,
TO_DATE ('02/28/2007 03:14:10', 'MM/DD/YYYY HH24:MI:SS'), 0,
456, 5
);
COMMIT ;

View File

@ -0,0 +1,115 @@
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values
(50063,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_ErrorFolder','D','Error Folder','Error Folder',null,null,
null,null,null,null
);
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values
(50062,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_RequestFolder','D','Request Folder','Request Folder',null,null,
null,null,null,null
);
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values
(50061,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_DefaultPriority','D','User Importance','User Importance','Priority of the issue for the User',null,null,
null,null,null
);
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values
(50060,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_IMAPHost','D','IMAP Host','IMAP Host',null,null,
null,null,null,null
);
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values
(50059,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_IMAPPwd','D','IMAP Password','IMAP Password',null,null,
null,null,null,null
);
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values
(50058,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_IMAPUser','D','IMAP User','IMAP User',null,null,
null,null,null,null
);
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values (
50057,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_DefaultConfidentiality','D','Confidentiality','Confidentiality','Type of Confidentiality',null,null,
null,null,null
);
insert into ad_element
(ad_element_id,ad_client_id,ad_org_id,isactive,created,createdby,updated,updatedby,
columnname,entitytype,name,printname,description,help,
po_name,po_printname,po_description,po_help
)
values
(50056,0,0,'Y',to_date('28-02-2007','DD-MM-RRRR'),0,to_date('28-02-2007','DD-MM-RRRR'),0,
'p_InboxFolder','D','Inbox Folder','Inbox Folder',null,null,
null,null,null,null
);
commit;
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_element_id) + 1
FROM ad_element
WHERE ad_element_id < 1000000)
WHERE NAME = 'AD_Element';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_process_id) + 1
FROM ad_process
WHERE ad_process_id < 1000000)
WHERE NAME = 'AD_Process';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_process_para_id) + 1
FROM ad_process_para
WHERE ad_process_para_id < 1000000)
WHERE NAME = 'AD_Process_Para';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_menu_id) + 1
FROM ad_menu
WHERE ad_menu_id < 1000000)
WHERE NAME = 'AD_Menu';
commit;

View File

@ -0,0 +1,106 @@
Insert into AD_ELEMENT
(AD_ELEMENT_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,
UPDATED,UPDATEDBY,COLUMNNAME,ENTITYTYPE,NAME,PRINTNAME,DESCRIPTION,
HELP,PO_NAME,PO_PRINTNAME,PO_DESCRIPTION,PO_HELP)
values
(50064,0,0,'Y',to_date('27.02.07','DD.MM.RR'),0,
to_date('27.02.07','DD.MM.RR'),0,'JasperProcess_ID','D',
'Jasper Process','Jasper Process',
'The Jasper Process used by the printengine if any process defined'
,null,null,null,null,null);
Insert into AD_VAL_RULE
(AD_VAL_RULE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,
UPDATED,UPDATEDBY,NAME,DESCRIPTION,TYPE,CODE,ENTITYTYPE)
values
(270,0,0,'Y',to_date('27.02.07','DD.MM.RR'),0,to_date('27.02.07','DD.MM.RR'),
0,'AD_Process Jasper Reports',null,'S','AD_Process.JasperReport IS NOT NULL','D');
UPDATE AD_VAL_RULE
SET CODE = 'AD_Process.IsReport=''Y'' AND AD_Process.JasperReport IS NULL'
WHERE NAME = 'AD_Process Reports';
Insert into AD_REFERENCE
(AD_REFERENCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,
UPDATED,UPDATEDBY,NAME,DESCRIPTION,HELP,VALIDATIONTYPE,VFORMAT,ENTITYTYPE)
values
(400,0,0,'Y',to_date('27.02.07','DD.MM.RR'),0,to_date('27.02.07','DD.MM.RR'),
0,'AD_Process_JasperReports',null,null,'T',null,'D');
Insert into AD_REF_TABLE
(AD_REFERENCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,
UPDATED,UPDATEDBY,AD_TABLE_ID,AD_KEY,AD_DISPLAY,ISVALUEDISPLAYED,
WHERECLAUSE,ORDERBYCLAUSE,ENTITYTYPE)
values
(400,0,0,'Y',to_date('27.02.07','DD.MM.RR'),0,to_date('27.02.07','DD.MM.RR'),
0,284,2801,2809,'N','AD_Process.JasperReport IS NOT NULL',null,'D');
Insert into AD_COLUMN
(AD_COLUMN_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,UPDATED,
CREATEDBY,UPDATEDBY,NAME,DESCRIPTION,HELP,VERSION,ENTITYTYPE,
COLUMNNAME,AD_TABLE_ID,AD_REFERENCE_ID,AD_REFERENCE_VALUE_ID,
AD_VAL_RULE_ID,FIELDLENGTH,DEFAULTVALUE,ISKEY,ISPARENT,ISMANDATORY,
ISUPDATEABLE,READONLYLOGIC,ISIDENTIFIER,SEQNO,ISTRANSLATED,ISENCRYPTED,
CALLOUT,VFORMAT,VALUEMIN,VALUEMAX,ISSELECTIONCOLUMN,AD_ELEMENT_ID,
AD_PROCESS_ID,ISSYNCDATABASE,ISALWAYSUPDATEABLE,COLUMNSQL)
values
(50209,0,0,'Y',to_date('27.02.07','DD.MM.RR'),to_date('27.02.07','DD.MM.RR'),0,
0,'Jasper Process','The Jasper Process used by the printengine if any process defined',
null,1,'D','JasperProcess_ID',493,18,400,null,22,null,'N','N','N','Y',null,'N',0,'N',
'N',null,null,null,null,'N',50064,null,'N','N',null);
Insert into AD_FIELD
(AD_FIELD_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,
UPDATED,UPDATEDBY,NAME,DESCRIPTION,HELP,ISCENTRALLYMAINTAINED,
AD_TAB_ID,AD_COLUMN_ID,AD_FIELDGROUP_ID,ISDISPLAYED,DISPLAYLOGIC,
DISPLAYLENGTH,ISREADONLY,SEQNO,SORTNO,ISSAMELINE,ISHEADING,
ISFIELDONLY,ISENCRYPTED,ENTITYTYPE,OBSCURETYPE,AD_REFERENCE_ID,
ISMANDATORY)
values
(50179,0,0,'Y',to_date('27.02.07','DD.MM.RR'),0,to_date('27.02.07','DD.MM.RR'),
0,'Jasper Process','The Jasper Process used by the printengine if any process defined',
null,'Y',425,50209,null,'Y',null,14,'N',195,0,'N','N','N','N','D',null,null,null);
COMMIT;
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_element_id) + 1
FROM ad_element
WHERE ad_element_id < 1000000)
WHERE NAME = 'AD_Element';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_val_rule_id) + 1
FROM ad_val_rule
WHERE ad_val_rule_id < 1000000)
WHERE NAME = 'AD_Val_Rule';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_reference_id) + 1
FROM ad_reference
WHERE ad_reference_id < 1000000)
WHERE NAME = 'AD_Reference';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_reference_id) + 1
FROM ad_ref_table
WHERE ad_reference_id < 1000000)
WHERE NAME = 'AD_Ref_Table';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_column_id) + 1
FROM ad_column
WHERE ad_column_id < 1000000)
WHERE NAME = 'AD_Column';
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_field_id) + 1
FROM ad_field
WHERE ad_field_id < 1000000)
WHERE NAME = 'AD_Field';
COMMIT;
ALTER TABLE AD_PrintFormat ADD JasperProcess_ID NUMERIC(10);
COMMIT;

View File

@ -0,0 +1,6 @@
UPDATE ad_system
SET releaseno = '315',
version = '2007-02-28'
WHERE ad_system_id = 0 AND ad_client_id = 0;
COMMIT ;

View File

@ -0,0 +1,5 @@
UPDATE ad_entitytype
SET NAME = 'Applications'
WHERE entitytype = 'A';
COMMIT ;

View File

@ -0,0 +1,87 @@
INSERT INTO ad_sequence
(ad_sequence_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description, isautosequence, incrementno, startno,
currentnext, currentnextsys, isaudited, istableid, startnewyear
)
VALUES (50014, 0, 0, 'Y',
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
'DocumentNo_R_InterestArea',
'DocumentNo/Value for Table R_InterestArea', 'Y', 1, 1000000,
1000000, 50000, 'N', 'N', 'N'
);
INSERT INTO ad_sequence
(ad_sequence_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description, isautosequence, incrementno, startno,
currentnext, currentnextsys, isaudited, istableid, startnewyear
)
VALUES (50013, 0, 0, 'Y',
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
'DocumentNo_AD_SysConfig',
'DocumentNo/Value for Table AD_SysConfig', 'Y', 1, 1000000,
1000000, 50000, 'N', 'N', 'N'
);
INSERT INTO ad_sequence
(ad_sequence_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description, isautosequence, incrementno, startno,
currentnext, currentnextsys, isaudited, istableid, startnewyear
)
VALUES (50012, 11, 0, 'Y',
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
'DocumentNo_AD_SysConfig',
'DocumentNo/Value for Table AD_SysConfig', 'Y', 1, 1000000,
1000000, 50000, 'N', 'N', 'N'
);
INSERT INTO ad_sequence
(ad_sequence_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME, description, isautosequence,
incrementno, startno, currentnext, currentnextsys, isaudited,
istableid, startnewyear
)
VALUES (50011, 11, 0, 'Y',
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
'DocumentNo_AD_User', 'DocumentNo/Value for Table AD_User', 'Y',
1, 1000000, 1000000, 50000, 'N',
'N', 'N'
);
INSERT INTO ad_sequence
(ad_sequence_id, ad_client_id, ad_org_id, isactive,
created, createdby,
updated, updatedby,
NAME,
description, isautosequence, incrementno, startno,
currentnext, currentnextsys, isaudited, istableid, startnewyear
)
VALUES (50010, 11, 0, 'Y',
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
TO_DATE ('02/28/2007 17:06:30', 'MM/DD/YYYY HH24:MI:SS'), 100,
'DocumentNo_R_InterestArea',
'DocumentNo/Value for Table R_InterestArea', 'Y', 1, 1000000,
1000000, 50000, 'N', 'N', 'N'
);
UPDATE ad_sequence
SET currentnextsys = (SELECT MAX (ad_sequence_id) + 1
FROM ad_sequence
WHERE ad_sequence_id < 1000000)
WHERE NAME = 'AD_Sequence';
COMMIT ;

View File

@ -0,0 +1,9 @@
Insert into "AD_REF_LIST"
("AD_REF_LIST_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY",
"UPDATED","UPDATEDBY","VALUE","NAME","DESCRIPTION","AD_REFERENCE_ID","VALIDFROM",
"VALIDTO","ENTITYTYPE")
values
(50040,0,0,'Y',to_date('02.03.07','DD.MM.RR'),0,to_date('02.03.07','DD.MM.RR'),
0,'S','Run silently - Take Defaults',null,50007,null,null,'D');
COMMIT;

View File

@ -0,0 +1,5 @@
UPDATE ad_column
SET iskey = 'N'
WHERE ad_column_id = 203;
COMMIT ;

View File

@ -0,0 +1,2 @@
UPDATE AD_Reference SET Name='C_Invoice InvoiceCollectionType' WHERE AD_Reference_ID=394;
commit;

View File

@ -0,0 +1,108 @@
SET DEFINE OFF;
SET SQLBLANKLINES OFF;
UPDATE ad_message_trl
SET msgtext = 'de'
WHERE ad_message_id = 620 AND ad_language = 'es_MX';
UPDATE ad_process_trl
SET NAME = 'Crear Columnas desde BD'
WHERE ad_process_id = 173 AND ad_language = 'es_MX';
UPDATE ad_field_trl
SET NAME = 'Crear Columnas desde BD'
WHERE ad_field_id = 5126 AND ad_language = 'es_MX';
UPDATE ad_menu_trl
SET NAME = 'Factura de solicitud'
WHERE ad_menu_id = 535 AND ad_language = 'es_MX';
UPDATE ad_element_trl
SET NAME = 'Dirección',
printname = 'Dirección',
description =
'Dirección de la Tarjeta de Crédito o el Poseedor de la cuenta'
WHERE ad_element_id = 1356 AND ad_language = 'es_MX';
UPDATE ad_column_trl
SET NAME = 'Dirección'
WHERE ad_column_id = 5234 AND ad_language = 'es_MX';
UPDATE ad_field_trl
SET NAME = 'Dirección',
description =
'Dirección de la Tarjeta de Crédito o el Poseedor de la cuenta'
WHERE ad_field_id = 4102 AND ad_language = 'es_MX';
UPDATE ad_element_trl
SET NAME = 'Descripción del Contacto',
printname = 'Descripción del Contacto'
WHERE ad_element_id = 1907 AND ad_language = 'es_MX';
UPDATE ad_field_trl
SET NAME = 'Descripción del Contacto'
WHERE ad_field_id = 5946 AND ad_language = 'es_MX';
UPDATE ad_workflow_trl
SET NAME = 'Configuración de Replicación',
istranslated = 'Y',
description = 'Configuración de replicación de datos',
HELP =
'La replicación de datos le permite sincronizar datos de instancias remotas con una oficina central. Todas las acciones son inicializadas desde la oficina central.<p>
<b>Sistema Central:</b><br>
- configurar el sistema con todas las organizaciones, roles, etc.<br>
- correr la migración para asegurar que todo esté actualizado<br>
- exportar el sistema central
<p>
<b>Sistema Remoto:</b>
- instalar la versión exacta como en el sistema central<br>
- importar datos del sistema central en las localizaciones remotas
<p>
<b>Sistema Central:</b>
- Definir Replicación por cada Remoto<br>
- Asegurarse que el rango de IDs es único por remoto - de lo contrario se perderán transacciones!<br>
- Inicialmente empezar la corrida de replicación para fijar el Remoto
<p>
** Ingresar Transacciones **
<p>
<b>Sistema Central:</b><br>
- Empezar la corrida de replicación cuando se requiera'
WHERE ad_workflow_id = 109 AND ad_language = 'es_MX';
UPDATE ad_menu_trl
SET NAME = 'Configuración de Replicación'
WHERE ad_menu_id = 395 AND ad_language = 'es_MX';
UPDATE ad_wf_node_trl
SET HELP =
'Los usuarios pueden registrarse en el sistema y tener acceso a la funcionalidad via uno o más roles. Esto permite al usuario ser tratado como representante de ventas en el sistema.'
WHERE ad_wf_node_id = 140 AND ad_language = 'es_MX';
UPDATE ad_menu_trl
SET NAME = 'Algoritmo Conciliación'
WHERE ad_menu_id = 437 AND ad_language = 'es_MX';
UPDATE ad_window_trl
SET NAME = 'Algoritmo Conciliación'
WHERE ad_window_id = 302 AND ad_language = 'es_MX';
UPDATE ad_element_trl
SET NAME = 'Contacto del menú',
printname = 'Contacto del menú'
WHERE ad_element_id = 2743 AND ad_language = 'es_MX';
UPDATE ad_field_trl
SET NAME = 'Contacto del menú'
WHERE ad_field_id = 11559 AND ad_language = 'es_MX';
UPDATE ad_menu_trl
SET NAME = 'País, Región y Ciudad',
description = 'Mantener países, regiones y ciudades'
WHERE ad_menu_id = 109 AND ad_language = 'es_MX';
UPDATE ad_window_trl
SET NAME = 'País, Región y Ciudad',
description = 'Mantener países, regiones y ciudades'
WHERE ad_window_id = 122 AND ad_language = 'es_MX';
COMMIT ;

View File

@ -0,0 +1,115 @@
CREATE OR REPLACE FUNCTION invoiceOpen
(
p_C_Invoice_ID IN NUMBER,
p_C_InvoicePaySchedule_ID IN NUMBER
)
RETURN NUMBER
/*************************************************************************
* The contents of this file are subject to the Compiere License. You may
* obtain a copy of the License at http://www.compiere.org/license.html
* Software is on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
* express or implied. See the License for details. Code: Compiere ERP+CRM
* Copyright (C) 1999-2001 Jorg Janke, ComPiere, Inc. All Rights Reserved.
*************************************************************************
* $Id: C_Invoice_Open.sql,v 1.1 2006/04/21 17:51:58 jjanke Exp $
***
* Title: Calculate Open Item Amount in Invoice Currency
* Description:
* Add up total amount open for C_Invoice_ID if no split payment.
* Grand Total minus Sum of Allocations in Invoice Currency
*
* For Split Payments:
* Allocate Payments starting from first schedule.
SELECT C_Invoice_Open (109) FROM DUAL;
SELECT C_Invoice_Open (109, null) FROM DUAL;
SELECT C_Invoice_Open (109, 11) FROM DUAL;
SELECT C_Invoice_Open (109, 102) FROM DUAL;
SELECT C_Invoice_Open (109, 103) FROM DUAL;
SELECT * FROM RV_OpenItem WHERE C_Invoice_ID=109;
SELECT C_InvoicePaySchedule_ID, DueAmt FROM C_InvoicePaySchedule WHERE C_Invoice_ID=109 ORDER BY DueDate;
* Cannot be used for IsPaid as mutating
************************************************************************/
AS
v_Currency_ID NUMBER(10);
v_TotalOpenAmt NUMBER := 0;
v_PaidAmt NUMBER := 0;
v_Remaining NUMBER := 0;
v_MultiplierAP NUMBER := 0;
v_MultiplierCM NUMBER := 0;
v_Temp NUMBER := 0;
--
CURSOR Cur_Alloc IS
SELECT a.AD_Client_ID, a.AD_Org_ID,
al.Amount, al.DiscountAmt, al.WriteOffAmt,
a.C_Currency_ID, a.DateTrx
FROM C_AllocationLine al
INNER JOIN C_AllocationHdr a ON (al.C_AllocationHdr_ID=a.C_AllocationHdr_ID)
WHERE al.C_Invoice_ID = p_C_Invoice_ID
AND a.IsActive='Y';
--
CURSOR Cur_PaySchedule IS
SELECT C_InvoicePaySchedule_ID, DueAmt
FROM C_InvoicePaySchedule
WHERE C_Invoice_ID = p_C_Invoice_ID
AND IsValid='Y'
ORDER BY DueDate;
BEGIN
-- Get Currency
BEGIN
SELECT MAX(C_Currency_ID), SUM(GrandTotal), MAX(MultiplierAP), MAX(Multiplier)
INTO v_Currency_ID, v_TotalOpenAmt, v_MultiplierAP, v_MultiplierCM
FROM C_Invoice_v -- corrected for CM / Split Payment
WHERE C_Invoice_ID = p_C_Invoice_ID;
EXCEPTION -- Invoice in draft form
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('InvoiceOpen - ' || SQLERRM);
RETURN NULL;
END;
-- DBMS_OUTPUT.PUT_LINE('== C_Invoice_ID=' || p_C_Invoice_ID || ', Total=' || v_TotalOpenAmt || ', AP=' || v_MultiplierAP || ', CM=' || v_MultiplierCM);
-- Calculate Allocated Amount
FOR a IN Cur_Alloc LOOP
v_Temp := a.Amount + a.DisCountAmt + a.WriteOffAmt;
v_PaidAmt := v_PaidAmt
-- Allocation
+ currencyConvert(v_Temp * v_MultiplierAP,
a.C_Currency_ID, v_Currency_ID, a.DateTrx, null, a.AD_Client_ID, a.AD_Org_ID);
DBMS_OUTPUT.PUT_LINE(' PaidAmt=' || v_PaidAmt || ', Allocation=' || v_Temp || ' * ' || v_MultiplierAP);
END LOOP;
-- Do we have a Payment Schedule ?
IF (p_C_InvoicePaySchedule_ID > 0) THEN -- if not valid = lists invoice amount
v_Remaining := v_PaidAmt;
FOR s IN Cur_PaySchedule LOOP
IF (s.C_InvoicePaySchedule_ID = p_C_InvoicePaySchedule_ID) THEN
v_TotalOpenAmt := (s.DueAmt*v_MultiplierCM) - v_Remaining;
IF (s.DueAmt - v_Remaining < 0) THEN
v_TotalOpenAmt := 0;
END IF;
-- DBMS_OUTPUT.PUT_LINE('Sched Total=' || v_TotalOpenAmt || ', Due=' || s.DueAmt || ',Remaining=' || v_Remaining || ',CM=' || v_MultiplierCM);
ELSE -- calculate amount, which can be allocated to next schedule
v_Remaining := v_Remaining - s.DueAmt;
IF (v_Remaining < 0) THEN
v_Remaining := 0;
END IF;
-- DBMS_OUTPUT.PUT_LINE('Remaining=' || v_Remaining);
END IF;
END LOOP;
ELSE
v_TotalOpenAmt := v_TotalOpenAmt - v_PaidAmt;
END IF;
-- DBMS_OUTPUT.PUT_LINE('== Total=' || v_TotalOpenAmt);
-- Ignore Rounding
IF (v_TotalOpenAmt BETWEEN -0.00999 AND 0.00999) THEN
v_TotalOpenAmt := 0;
END IF;
-- Round to penny
v_TotalOpenAmt := ROUND(COALESCE(v_TotalOpenAmt,0), 2);
RETURN v_TotalOpenAmt;
END invoiceOpen;
/

View File

@ -0,0 +1,32 @@
CREATE OR REPLACE VIEW RV_STORAGE
(AD_CLIENT_ID, AD_ORG_ID, M_PRODUCT_ID, VALUE, NAME,
DESCRIPTION, UPC, SKU, C_UOM_ID, M_PRODUCT_CATEGORY_ID,
CLASSIFICATION, WEIGHT, VOLUME, VERSIONNO, GUARANTEEDAYS,
GUARANTEEDAYSMIN, M_LOCATOR_ID, M_WAREHOUSE_ID, X, Y,
Z, QTYONHAND, QTYRESERVED, QTYAVAILABLE, QTYORDERED,
DATELASTINVENTORY, M_ATTRIBUTESETINSTANCE_ID, M_ATTRIBUTESET_ID, SERNO, LOT,
M_LOT_ID, GUARANTEEDATE, SHELFLIFEDAYS, GOODFORDAYS, SHELFLIFEREMAININGPCT)
AS
SELECT s.AD_Client_ID, s.AD_Org_ID,
-- Product
s.M_Product_ID,p.Value,p.Name,p.Description,p.UPC,p.SKU,
p.C_UOM_ID,p.M_Product_Category_ID,p.Classification, p.Weight,p.Volume,p.VersionNo,
p.GuaranteeDays,p.GuaranteeDaysMin,
-- Locator
s.M_Locator_ID, l.M_Warehouse_ID, l.X, l.Y, l.Z,
-- Storage
s.QtyOnHand, s.QtyReserved, s.QtyOnHand-s.QtyReserved AS QtyAvailable,
s.QtyOrdered, s.DateLastInventory,
-- Instance
s.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,
asi.GuaranteeDate, -- see PAttributeInstance.java
daysBetween(asi.GuaranteeDate,getdate()) AS ShelfLifeDays,
daysBetween(asi.GuaranteeDate,getdate())-p.GuaranteeDaysMin AS GoodForDays,
CASE WHEN COALESCE(p.GuaranteeDays,0)>0 THEN ROUND((daysBetween(asi.GuaranteeDate,getdate())/p.GuaranteeDays)*100,0) ELSE NULL END AS ShelfLifeRemainingPct
FROM M_Storage s
INNER JOIN M_Locator l ON (s.M_Locator_ID=l.M_Locator_ID)
INNER JOIN M_Product p ON (s.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (s.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID);

View File

@ -0,0 +1,6 @@
UPDATE AD_WINDOW
SET winheight = NULL,
winwidth = NULL
WHERE ad_window_id = 123;
COMMIT ;

View File

@ -0,0 +1,6 @@
UPDATE AD_SYSTEM
SET releaseno = '316',
VERSION = '2007-04-01'
WHERE ad_system_id = 0 AND ad_client_id = 0;
COMMIT ;

View File

@ -0,0 +1,9 @@
Insert into "ad_ref_list"
("ad_ref_list_id","ad_client_id","ad_org_id","isactive","created","createdby",
"updated","updatedby","value","name","description","ad_reference_id","validfrom",
"validto","entitytype")
values
(50040,0,0,'Y',to_date('02.03.07','DD.MM.RR'),0,to_date('02.03.07','DD.MM.RR'),
0,'S','Run silently - Take Defaults',null,50007,null,null,'D');
COMMIT;

View File

@ -0,0 +1,5 @@
UPDATE ad_column
SET iskey = 'N'
WHERE ad_column_id = 203;
COMMIT ;

View File

@ -0,0 +1,2 @@
UPDATE AD_Reference SET Name='C_Invoice InvoiceCollectionType' WHERE AD_Reference_ID=394;
commit;

View File

@ -0,0 +1,105 @@
UPDATE ad_message_trl
SET msgtext = 'de'
WHERE ad_message_id = 620 AND ad_language = 'es_MX';
UPDATE ad_process_trl
SET NAME = 'Crear Columnas desde BD'
WHERE ad_process_id = 173 AND ad_language = 'es_MX';
UPDATE ad_field_trl
SET NAME = 'Crear Columnas desde BD'
WHERE ad_field_id = 5126 AND ad_language = 'es_MX';
UPDATE ad_menu_trl
SET NAME = 'Factura de solicitud'
WHERE ad_menu_id = 535 AND ad_language = 'es_MX';
UPDATE ad_element_trl
SET NAME = 'Dirección',
printname = 'Dirección',
description =
'Dirección de la Tarjeta de Crédito o el Poseedor de la cuenta'
WHERE ad_element_id = 1356 AND ad_language = 'es_MX';
UPDATE ad_column_trl
SET NAME = 'Dirección'
WHERE ad_column_id = 5234 AND ad_language = 'es_MX';
UPDATE ad_field_trl
SET NAME = 'Dirección',
description =
'Dirección de la Tarjeta de Crédito o el Poseedor de la cuenta'
WHERE ad_field_id = 4102 AND ad_language = 'es_MX';
UPDATE ad_element_trl
SET NAME = 'Descripción del Contacto',
printname = 'Descripción del Contacto'
WHERE ad_element_id = 1907 AND ad_language = 'es_MX';
UPDATE ad_field_trl
SET NAME = 'Descripción del Contacto'
WHERE ad_field_id = 5946 AND ad_language = 'es_MX';
UPDATE ad_workflow_trl
SET NAME = 'Configuración de Replicación',
istranslated = 'Y',
description = 'Configuración de replicación de datos',
HELP =
'La replicación de datos le permite sincronizar datos de instancias remotas con una oficina central. Todas las acciones son inicializadas desde la oficina central.<p>
<b>Sistema Central:</b><br>
- configurar el sistema con todas las organizaciones, roles, etc.<br>
- correr la migración para asegurar que todo esté actualizado<br>
- exportar el sistema central
<p>
<b>Sistema Remoto:</b>
- instalar la versión exacta como en el sistema central<br>
- importar datos del sistema central en las localizaciones remotas
<p>
<b>Sistema Central:</b>
- Definir Replicación por cada Remoto<br>
- Asegurarse que el rango de IDs es único por remoto - de lo contrario se perderán transacciones!<br>
- Inicialmente empezar la corrida de replicación para fijar el Remoto
<p>
** Ingresar Transacciones **
<p>
<b>Sistema Central:</b><br>
- Empezar la corrida de replicación cuando se requiera'
WHERE ad_workflow_id = 109 AND ad_language = 'es_MX';
UPDATE ad_menu_trl
SET NAME = 'Configuración de Replicación'
WHERE ad_menu_id = 395 AND ad_language = 'es_MX';
UPDATE ad_wf_node_trl
SET HELP =
'Los usuarios pueden registrarse en el sistema y tener acceso a la funcionalidad via uno o más roles. Esto permite al usuario ser tratado como representante de ventas en el sistema.'
WHERE ad_wf_node_id = 140 AND ad_language = 'es_MX';
UPDATE ad_menu_trl
SET NAME = 'Algoritmo Conciliación'
WHERE ad_menu_id = 437 AND ad_language = 'es_MX';
UPDATE ad_window_trl
SET NAME = 'Algoritmo Conciliación'
WHERE ad_window_id = 302 AND ad_language = 'es_MX';
UPDATE ad_element_trl
SET NAME = 'Contacto del menú',
printname = 'Contacto del menú'
WHERE ad_element_id = 2743 AND ad_language = 'es_MX';
UPDATE ad_field_trl
SET NAME = 'Contacto del menú'
WHERE ad_field_id = 11559 AND ad_language = 'es_MX';
UPDATE ad_menu_trl
SET NAME = 'País, Región y Ciudad',
description = 'Mantener países, regiones y ciudades'
WHERE ad_menu_id = 109 AND ad_language = 'es_MX';
UPDATE ad_window_trl
SET NAME = 'País, Región y Ciudad',
description = 'Mantener países, regiones y ciudades'
WHERE ad_window_id = 122 AND ad_language = 'es_MX';
COMMIT ;

View File

@ -0,0 +1,32 @@
CREATE OR REPLACE VIEW RV_STORAGE
(AD_CLIENT_ID, AD_ORG_ID, M_PRODUCT_ID, VALUE, NAME,
DESCRIPTION, UPC, SKU, C_UOM_ID, M_PRODUCT_CATEGORY_ID,
CLASSIFICATION, WEIGHT, VOLUME, VERSIONNO, GUARANTEEDAYS,
GUARANTEEDAYSMIN, M_LOCATOR_ID, M_WAREHOUSE_ID, X, Y,
Z, QTYONHAND, QTYRESERVED, QTYAVAILABLE, QTYORDERED,
DATELASTINVENTORY, M_ATTRIBUTESETINSTANCE_ID, M_ATTRIBUTESET_ID, SERNO, LOT,
M_LOT_ID, GUARANTEEDATE, SHELFLIFEDAYS, GOODFORDAYS, SHELFLIFEREMAININGPCT)
AS
SELECT s.AD_Client_ID, s.AD_Org_ID,
-- Product
s.M_Product_ID,p.Value,p.Name,p.Description,p.UPC,p.SKU,
p.C_UOM_ID,p.M_Product_Category_ID,p.Classification, p.Weight,p.Volume,p.VersionNo,
p.GuaranteeDays,p.GuaranteeDaysMin,
-- Locator
s.M_Locator_ID, l.M_Warehouse_ID, l.X, l.Y, l.Z,
-- Storage
s.QtyOnHand, s.QtyReserved, s.QtyOnHand-s.QtyReserved AS QtyAvailable,
s.QtyOrdered, s.DateLastInventory,
-- Instance
s.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,
asi.GuaranteeDate, -- see PAttributeInstance.java
daysBetween(asi.GuaranteeDate,getdate()) AS ShelfLifeDays,
daysBetween(asi.GuaranteeDate,getdate())-p.GuaranteeDaysMin AS GoodForDays,
CASE WHEN COALESCE(p.GuaranteeDays,0)>0 THEN ROUND((daysBetween(asi.GuaranteeDate,getdate())/p.GuaranteeDays)*100,0) ELSE NULL END AS ShelfLifeRemainingPct
FROM M_Storage s
INNER JOIN M_Locator l ON (s.M_Locator_ID=l.M_Locator_ID)
INNER JOIN M_Product p ON (s.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (s.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID);

View File

@ -0,0 +1,6 @@
UPDATE AD_WINDOW
SET winheight = NULL,
winwidth = NULL
WHERE ad_window_id = 123;
COMMIT ;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,6 @@
UPDATE AD_SYSTEM
SET releaseno = '316',
VERSION = '2007-04-01'
WHERE ad_system_id = 0 AND ad_client_id = 0;
COMMIT ;