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

This commit is contained in:
Redhuan D. Oon 2008-12-17 12:38:04 +00:00
parent 50f1bd30d5
commit d1628c791e
12 changed files with 19881 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,42 @@
CAUTION, THIS SCRIPTS ARE GENERATED BUT NOT FULLY TESTED!!!
Written by Carlos Ruiz
Feel free to change everything you want, but you are using it at your own risk!
01_FromCompiere252dTo253a.sql generated with TOAD
02_migrationDictionary252dTo253a.sql generated with Karsten migration tool
Preparations
1. Make a database backup! Don't complain if something goes wrong,
just reapply your backup and report the error to the Adempiere forums
at: http://sourceforge.net/forum/?group_id=176962
You can use RUN_DBExport.bat in the Compiere2/utils folder.
2. Read and follow the instructions in the migration-structure.sql file.
You have to set some DEFAULT VALUES for some new columns. But it's
done easily.
Migration of Compiere database
1. This script only migrates the database from Compiere253a to 253b!
2. It's only tested with Oracle - but it should work with other databases
as well because it is just sql. If you try it with a different database
(successful or not) then please report it to the Adempiere forums
at: http://sourceforge.net/forum/?group_id=176962
3. First apply the 01_FromCompiere252dTo253a.sql via any SQL tool.
MAKE SHURE THAT YOU FOLLOWED THE INSTRUCTIONS IN THERE FIRST!
I use the Oracle SQL Developer (it's free but you have to register), you
can find it here:
http://www.oracle.com/technology/products/database/sql_developer/index.html
Of course you can also use Toad or even just SQLPlus:
(from the folder with the migration*.sql)
sqlplus compiere@COMPIERE_DB_NAME @01_FromCompiere252dTo253a.sql
Dependent on the tool you use you will get some errors. They should
derive only from unrecognized comments (-> unknown command), thats
just because the sql tool treats the comments as sql commands - don't worry.
4. Apply 02_migrationDictionary252dTo253a.sql the same way.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,251 @@
/* upgrading database from compiere 253a to 253b
Written by Karsten Thiemann, kt@schaeffer-ag.de
Feel free to change everything you want, but you are using it at your own risk!
Creates new 253b views, recreates views with differences between a and b.
If you changed any of these views, make a backup (via toad or sqldeveloper) and reapply your changes later.
*/
CREATE OR REPLACE FORCE VIEW "T_INVOICEGL_V" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "C_INVOICE_ID", "ISSOTRX", "DOCUMENTNO", "DOCSTATUS", "C_DOCTYPE_ID", "C_ORDER_ID", "DESCRIPTION", "SALESREP_ID", "DATEINVOICED", "DATEACCT", "C_PAYMENTTERM_ID", "C_BPARTNER_ID", "C_BPARTNER_LOCATION_ID", "AD_USER_ID", "ISSELFSERVICE", "C_CURRENCY_ID", "C_CONVERSIONTYPE_ID", "GRANDTOTAL", "ISTAXINCLUDED", "C_CAMPAIGN_ID", "C_PROJECT_ID", "C_ACTIVITY_ID", "AD_ORGTRX_ID", "USER1_ID", "USER2_ID", "C_LOCFROM_ID", "C_LOCTO_ID", "C_SALESREGION_ID", "FACT_ACCT_ID", "C_ACCTSCHEMA_ID", "ACCOUNT_ID", "C_PERIOD_ID", "GL_CATEGORY_ID", "GL_BUDGET_ID", "C_TAX_ID", "M_LOCATOR_ID", "POSTINGTYPE", "AMTSOURCEDR", "AMTSOURCECR", "AMTACCTDR", "AMTACCTCR", "C_UOM_ID", "QTY", "AD_PINSTANCE_ID", "APAR", "OPENAMT", "PERCENT", "AMTREVALDR", "AMTREVALCR", "DATEREVAL", "C_CONVERSIONTYPEREVAL_ID", "AMTSOURCEBALANCE", "AMTACCTBALANCE", "C_DOCTYPEREVAL_ID", "AMTREVALDRDIFF", "AMTREVALCRDIFF", "ISALLCURRENCIES") AS
SELECT i.AD_Client_ID, i.AD_Org_ID, i.IsActive, i.Created,i.CreatedBy, i.Updated,i.UpdatedBy,
i.C_Invoice_ID, i.IsSOTrx, i.DocumentNo, i.DocStatus, i.C_DocType_ID, i.C_Order_ID,
i.Description, i.SalesRep_ID, i.DateInvoiced, i.DateAcct, i.C_PaymentTerm_ID,
i.C_BPartner_ID, i.C_BPartner_Location_ID, i.AD_User_ID, i.IsSelfService,
i.C_Currency_ID, i.C_ConversionType_ID, i.GrandTotal, i.IsTaxIncluded,
-- References
i.C_Campaign_ID, i.C_Project_ID, i.C_Activity_ID,
i.AD_OrgTrx_ID, i.User1_ID, i.User2_ID,
fa.C_LocFrom_ID, fa.C_LocTo_ID, fa.C_SalesRegion_ID,
-- Accounting
fa.Fact_Acct_ID, fa.C_AcctSchema_ID, fa.Account_ID, fa.C_Period_ID, fa.GL_Category_ID, fa.GL_Budget_ID,
fa.C_Tax_ID, fa.M_Locator_ID,
fa.PostingType, fa.AmtSourceDr, fa.AmtSourceCr, fa.AmtAcctDr, fa.AmtAcctCr,
fa.C_UOM_ID, fa.Qty,
-- GL
gl.AD_PInstance_ID, gl.APAR, gl.OpenAmt, gl.Percent,
gl.AmtRevalDr, gl.AmtRevalCr, gl.DateReval, gl.C_ConversionTypeReval_ID,
gl.AmtSourceBalance, gl.AmtAcctBalance, gl.C_DocTypeReval_ID,
gl.AmtRevalDrDiff, gl.AmtRevalCrDiff, gl.IsAllCurrencies
FROM T_InvoiceGL gl
INNER JOIN C_Invoice i ON (gl.C_Invoice_ID=i.C_Invoice_ID)
INNER JOIN Fact_Acct fa ON (gl.Fact_Acct_ID=fa.Fact_Acct_ID)
;
CREATE OR REPLACE FORCE VIEW "T_INVOICEGL_VT" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "C_INVOICE_ID", "ISSOTRX", "DOCUMENTNO", "DOCSTATUS", "C_DOCTYPE_ID", "C_ORDER_ID", "DESCRIPTION", "SALESREP_ID", "DATEINVOICED", "DATEACCT", "C_PAYMENTTERM_ID", "C_BPARTNER_ID", "C_BPARTNER_LOCATION_ID", "AD_USER_ID", "ISSELFSERVICE", "C_CURRENCY_ID", "C_CONVERSIONTYPE_ID", "GRANDTOTAL", "ISTAXINCLUDED", "C_CAMPAIGN_ID", "C_PROJECT_ID", "C_ACTIVITY_ID", "AD_ORGTRX_ID", "USER1_ID", "USER2_ID", "C_LOCFROM_ID", "C_LOCTO_ID", "C_SALESREGION_ID", "FACT_ACCT_ID", "C_ACCTSCHEMA_ID", "ACCOUNT_ID", "C_PERIOD_ID", "GL_CATEGORY_ID", "GL_BUDGET_ID", "C_TAX_ID", "M_LOCATOR_ID", "POSTINGTYPE", "AMTSOURCEDR", "AMTSOURCECR", "AMTACCTDR", "AMTACCTCR", "C_UOM_ID", "QTY", "AD_PINSTANCE_ID", "APAR", "OPENAMT", "PERCENT", "AMTREVALDR", "AMTREVALCR", "DATEREVAL", "C_CONVERSIONTYPEREVAL_ID", "AMTSOURCEBALANCE", "AMTACCTBALANCE", "C_DOCTYPEREVAL_ID", "AMTREVALDRDIFF", "AMTREVALCRDIFF", "ISALLCURRENCIES") AS
SELECT i.AD_Client_ID, i.AD_Org_ID, i.IsActive, i.Created,i.CreatedBy, i.Updated,i.UpdatedBy,
i.C_Invoice_ID, i.IsSOTrx, i.DocumentNo, i.DocStatus, i.C_DocType_ID, i.C_Order_ID,
i.Description, i.SalesRep_ID, i.DateInvoiced, i.DateAcct, i.C_PaymentTerm_ID,
i.C_BPartner_ID, i.C_BPartner_Location_ID, i.AD_User_ID, i.IsSelfService,
i.C_Currency_ID, i.C_ConversionType_ID, i.GrandTotal, i.IsTaxIncluded,
-- References
i.C_Campaign_ID, i.C_Project_ID, i.C_Activity_ID,
i.AD_OrgTrx_ID, i.User1_ID, i.User2_ID,
fa.C_LocFrom_ID, fa.C_LocTo_ID, fa.C_SalesRegion_ID,
-- Accounting
fa.Fact_Acct_ID, fa.C_AcctSchema_ID, fa.Account_ID, fa.C_Period_ID, fa.GL_Category_ID, fa.GL_Budget_ID,
fa.C_Tax_ID, fa.M_Locator_ID,
fa.PostingType, fa.AmtSourceDr, fa.AmtSourceCr, fa.AmtAcctDr, fa.AmtAcctCr,
fa.C_UOM_ID, fa.Qty,
-- GL
gl.AD_PInstance_ID, gl.APAR, gl.OpenAmt, gl.Percent,
gl.AmtRevalDr, gl.AmtRevalCr, gl.DateReval, gl.C_ConversionTypeReval_ID,
gl.AmtSourceBalance, gl.AmtAcctBalance, gl.C_DocTypeReval_ID,
gl.AmtRevalDrDiff, gl.AmtRevalCrDiff, gl.IsAllCurrencies
FROM T_InvoiceGL gl
INNER JOIN C_Invoice i ON (gl.C_Invoice_ID=i.C_Invoice_ID)
INNER JOIN Fact_Acct fa ON (gl.Fact_Acct_ID=fa.Fact_Acct_ID)
;
CREATE OR REPLACE FORCE VIEW "M_INOUTLINEMA_VT" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "M_INOUT_ID", "M_INOUTLINE_ID", "LINE", "M_PRODUCT_ID", "M_ATTRIBUTESETINSTANCE_ID", "MOVEMENTQTY", "M_LOCATOR_ID") AS
SELECT m.AD_Client_ID, m.AD_Org_ID, m.IsActive, m.Created, m.CreatedBy, m.Updated, m.UpdatedBy,
l.M_InOut_ID, m.M_InOutLine_ID, l.Line, l.M_Product_ID,
m.M_AttributeSetInstance_ID, m.MovementQty, l.M_Locator_ID
FROM M_InOutLineMA m INNER JOIN M_InOutLine l ON (m.M_InOutLine_ID=l.M_InOutLine_ID)
UNION
SELECT AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy,
M_InOut_ID, M_InOutLine_ID, Line, M_Product_ID,
M_AttributeSetInstance_ID, MovementQty, M_Locator_ID
FROM M_InOutLine
;
CREATE OR REPLACE FORCE VIEW "M_MOVEMENTLINEMA_VT" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "M_MOVEMENT_ID", "M_MOVEMENTLINE_ID", "LINE", "M_PRODUCT_ID", "M_ATTRIBUTESETINSTANCE_ID", "MOVEMENTQTY", "M_LOCATOR_ID", "M_LOCATORTO_ID") AS
SELECT m.AD_Client_ID, m.AD_Org_ID, m.IsActive, m.Created, m.CreatedBy, m.Updated, m.UpdatedBy,
l.M_Movement_ID, m.M_MovementLine_ID, l.Line, l.M_Product_ID,
m.M_AttributeSetInstance_ID, m.MovementQty, l.M_Locator_ID, l.M_LocatorTo_ID
FROM M_MovementLineMA m INNER JOIN M_MovementLine l ON (m.M_MovementLine_ID=l.M_MovementLine_ID)
UNION
SELECT AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy,
M_Movement_ID, M_MovementLine_ID, Line, M_Product_ID,
M_AttributeSetInstance_ID, MovementQty, M_Locator_ID, M_LocatorTo_ID
FROM M_MovementLine
;
CREATE OR REPLACE FORCE VIEW "RV_C_INVOICE_PRODUCTMONTH" ("AD_CLIENT_ID", "AD_ORG_ID", "M_PRODUCT_ID", "DATEINVOICED", "LINENETAMT", "LINELISTAMT", "LINELIMITAMT", "LINEDISCOUNTAMT", "LINEDISCOUNT", "LINEOVERLIMITAMT", "LINEOVERLIMIT", "QTYINVOICED", "ISSOTRX") AS
SELECT il.AD_Client_ID, il.AD_Org_ID, il.M_Product_ID,
firstOf(il.DateInvoiced, 'MM') AS DateInvoiced,
SUM(il.LineNetAmt) AS LineNetAmt,
SUM(il.LineListAmt) AS LineListAmt,
SUM(il.LineLimitAmt) AS LineLimitAmt,
SUM(il.LineDiscountAmt) AS LineDiscountAmt,
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
SUM(QtyInvoiced) AS QtyInvoiced, IsSOTrx
FROM RV_C_InvoiceLine il
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.M_Product_ID,
firstOf(il.DateInvoiced, 'MM'), IsSOTrx
;
CREATE OR REPLACE FORCE VIEW "RV_C_INVOICE_PRODUCTQTR" ("AD_CLIENT_ID", "AD_ORG_ID", "M_PRODUCT_ID", "DATEINVOICED", "LINENETAMT", "LINELISTAMT", "LINELIMITAMT", "LINEDISCOUNTAMT", "LINEDISCOUNT", "LINEOVERLIMITAMT", "LINEOVERLIMIT", "QTYINVOICED", "ISSOTRX") AS
SELECT il.AD_Client_ID, il.AD_Org_ID, il.M_Product_ID,
firstOf(il.DateInvoiced, 'Q') AS DateInvoiced,
SUM(il.LineNetAmt) AS LineNetAmt,
SUM(il.LineListAmt) AS LineListAmt,
SUM(il.LineLimitAmt) AS LineLimitAmt,
SUM(il.LineDiscountAmt) AS LineDiscountAmt,
CASE WHEN SUM(LineListAmt)=0 THEN 0 ELSE
ROUND((SUM(LineListAmt)-SUM(LineNetAmt))/SUM(LineListAmt)*100,2) END AS LineDiscount,
SUM(LineOverLimitAmt) AS LineOverLimitAmt,
CASE WHEN SUM(LineNetAmt)=0 THEN 0 ELSE
100-ROUND((SUM(LineNetAmt)-SUM(LineOverLimitAmt))/SUM(LineNetAmt)*100,2) END AS LineOverLimit,
SUM(QtyInvoiced) AS QtyInvoiced, IsSOTrx
FROM RV_C_InvoiceLine il
GROUP BY il.AD_Client_ID, il.AD_Org_ID, il.M_Product_ID,
firstOf(il.DateInvoiced, 'Q'), IsSOTrx
;
CREATE OR REPLACE FORCE VIEW "R_REQUEST_V" ("R_REQUEST_ID", "AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "DOCUMENTNO", "R_REQUESTTYPE_ID", "R_GROUP_ID", "R_CATEGORY_ID", "R_STATUS_ID", "R_RESOLUTION_ID", "R_REQUESTRELATED_ID", "PRIORITY", "PRIORITYUSER", "DUETYPE", "SUMMARY", "CONFIDENTIALTYPE", "ISESCALATED", "ISSELFSERVICE", "SALESREP_ID", "AD_ROLE_ID", "DATELASTACTION", "DATELASTALERT", "LASTRESULT", "PROCESSED", "ISINVOICED", "C_BPARTNER_ID", "AD_USER_ID", "C_CAMPAIGN_ID", "C_ORDER_ID", "C_INVOICE_ID", "C_PAYMENT_ID", "M_PRODUCT_ID", "C_PROJECT_ID", "A_ASSET_ID", "M_INOUT_ID", "M_RMA_ID", "AD_TABLE_ID", "RECORD_ID", "REQUESTAMT", "R_MAILTEXT_ID", "RESULT", "CONFIDENTIALTYPEENTRY", "R_STANDARDRESPONSE_ID", "NEXTACTION", "DATENEXTACTION", "STARTTIME", "ENDTIME", "QTYSPENT", "QTYINVOICED", "M_PRODUCTSPENT_ID", "C_ACTIVITY_ID", "STARTDATE", "CLOSEDATE", "C_INVOICEREQUEST_ID", "M_CHANGEREQUEST_ID", "TASKSTATUS", "QTYPLAN", "DATECOMPLETEPLAN", "DATESTARTPLAN", "M_FIXCHANGENOTICE_ID") AS
SELECT "R_REQUEST_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","DOCUMENTNO","R_REQUESTTYPE_ID","R_GROUP_ID","R_CATEGORY_ID","R_STATUS_ID","R_RESOLUTION_ID","R_REQUESTRELATED_ID","PRIORITY","PRIORITYUSER","DUETYPE","SUMMARY","CONFIDENTIALTYPE","ISESCALATED","ISSELFSERVICE","SALESREP_ID","AD_ROLE_ID","DATELASTACTION","DATELASTALERT","LASTRESULT","PROCESSED","ISINVOICED","C_BPARTNER_ID","AD_USER_ID","C_CAMPAIGN_ID","C_ORDER_ID","C_INVOICE_ID","C_PAYMENT_ID","M_PRODUCT_ID","C_PROJECT_ID","A_ASSET_ID","M_INOUT_ID","M_RMA_ID","AD_TABLE_ID","RECORD_ID","REQUESTAMT","R_MAILTEXT_ID","RESULT","CONFIDENTIALTYPEENTRY","R_STANDARDRESPONSE_ID","NEXTACTION","DATENEXTACTION","STARTTIME","ENDTIME","QTYSPENT","QTYINVOICED","M_PRODUCTSPENT_ID","C_ACTIVITY_ID","STARTDATE","CLOSEDATE","C_INVOICEREQUEST_ID","M_CHANGEREQUEST_ID","TASKSTATUS","QTYPLAN","DATECOMPLETEPLAN","DATESTARTPLAN","M_FIXCHANGENOTICE_ID"
FROM R_Request
WHERE IsActive='Y' AND Processed='N'
AND getdate() > DateNextAction
;
CREATE OR REPLACE FORCE VIEW "RV_C_INVOICELINE" ("AD_CLIENT_ID", "AD_ORG_ID", "ISACTIVE", "CREATED", "CREATEDBY", "UPDATED", "UPDATEDBY", "C_INVOICELINE_ID", "C_INVOICE_ID", "SALESREP_ID", "C_BPARTNER_ID", "C_BP_GROUP_ID", "M_PRODUCT_ID", "M_PRODUCT_CATEGORY_ID", "DATEINVOICED", "DATEACCT", "ISSOTRX", "C_DOCTYPE_ID", "DOCSTATUS", "ISPAID", "QTYINVOICED", "QTYENTERED", "M_ATTRIBUTESETINSTANCE_ID", "PRODUCTATTRIBUTE", "M_ATTRIBUTESET_ID", "M_LOT_ID", "GUARANTEEDATE", "LOT", "SERNO", "PRICELIST", "PRICEACTUAL", "PRICELIMIT", "PRICEENTERED", "DISCOUNT", "MARGIN", "MARGINAMT", "LINENETAMT", "LINELISTAMT", "LINELIMITAMT", "LINEDISCOUNTAMT", "LINEOVERLIMITAMT") AS
SELECT
il.AD_Client_ID, il.AD_Org_ID, il.IsActive, il.Created, il.CreatedBy, il.Updated, il.UpdatedBy,
il.C_InvoiceLine_ID, i.C_Invoice_ID, i.SalesRep_ID,
i.C_BPartner_ID, i.C_BP_Group_ID,
il.M_Product_ID, p.M_Product_Category_ID,
i.DateInvoiced, i.DateAcct, i.IsSOTrx, i.C_DocType_ID, i.DocStatus, i.IsPaid,
-- Qty
il.QtyInvoiced*i.Multiplier AS QtyInvoiced,
il.QtyEntered*i.Multiplier AS QtyEntered,
-- Attributes
il.M_AttributeSetInstance_ID, productAttribute(il.M_AttributeSetInstance_ID) AS ProductAttribute,
pasi.M_AttributeSet_ID, pasi.M_Lot_ID, pasi.GuaranteeDate, pasi.Lot, pasi.SerNo,
-- Item Amounts
il.PriceList, il.PriceActual, il.PriceLimit, il.PriceEntered,
CASE WHEN PriceList=0 THEN 0 ELSE
ROUND((PriceList-PriceActual)/PriceList*100,2) END AS Discount,
CASE WHEN PriceLimit=0 THEN 0 ELSE
ROUND((PriceActual-PriceLimit)/PriceLimit*100,2) END AS Margin,
CASE WHEN PriceLimit=0 THEN 0 ELSE
(PriceActual-PriceLimit)*QtyInvoiced END AS MarginAmt,
-- Line Amounts
ROUND(i.Multiplier*LineNetAmt, 2) AS LineNetAmt,
ROUND(i.Multiplier*PriceList*QtyInvoiced, 2) AS LineListAmt,
CASE WHEN COALESCE(il.PriceLimit, 0)=0 THEN ROUND(i.Multiplier*LineNetAmt,2) ELSE
ROUND(i.Multiplier*PriceLimit*QtyInvoiced,2) END AS LineLimitAmt,
ROUND(i.Multiplier*PriceList*QtyInvoiced-LineNetAmt,2) AS LineDiscountAmt,
CASE WHEN COALESCE(il.PriceLimit,0)=0 THEN 0 ELSE
ROUND(i.Multiplier*LineNetAmt-PriceLimit*QtyInvoiced,2) END AS LineOverLimitAmt
FROM RV_C_Invoice i
INNER JOIN C_InvoiceLine il ON (i.C_Invoice_ID=il.C_Invoice_ID)
LEFT OUTER JOIN M_Product p ON (il.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN M_AttributeSetInstance pasi ON (il.M_AttributeSetInstance_ID=pasi.M_AttributeSetInstance_ID)
;
-- CHANGED VIEWS - but check them first - don't overwrite your customizations...
CREATE OR REPLACE FORCE VIEW AD_ORG_V
AS SELECT o.AD_Client_ID, o.AD_Org_ID,
o.IsActive, o.Created, o.CreatedBy, o.Updated, o.UpdatedBy,
o.Value, o.Name, o.Description, o.IsSummary,
i.C_Location_ID, i.DUNS, i.TaxID,
i.Supervisor_ID, i.Parent_Org_ID,
i.AD_OrgType_ID, i.M_Warehouse_ID,
bp.C_BPartner_ID
FROM AD_Org o
INNER JOIN AD_OrgInfo i ON (o.AD_Org_ID=i.AD_Org_ID)
LEFT OUTER JOIN C_BPartner bp ON (o.AD_Org_ID=bp.AD_OrgBP_ID)
;
CREATE OR REPLACE FORCE VIEW RV_BPARTNER
AS SELECT bp.AD_Client_ID, bp.AD_Org_ID,
bp.IsActive, bp.Created, bp.CreatedBy, bp.Updated, bp.UpdatedBy,
bp.C_BPartner_ID, bp.Value, bp.Name, bp.Name2, bp.Description, bp.IsSummary,
bp.C_BP_Group_ID, bp.IsOneTime, bp.IsProspect, bp.IsVendor, bp.IsCustomer, bp.IsEmployee, bp.IsSalesRep,
bp.ReferenceNo, bp.Duns, bp.URL, bp.AD_Language, bp.TaxID, bp.IsTaxExempt,
bp.C_InvoiceSchedule_ID, bp.Rating, bp.SalesVolume, bp.NumberEmployees, bp.NAICS,
bp.FirstSale, bp.AcqusitionCost, bp.PotentialLifeTimeValue, bp.ActualLifeTimeValue,
bp.ShareOfCustomer, bp.PaymentRule,
bp.SO_CreditLimit, bp.SO_CreditUsed, bp.SO_CreditUsed-bp.SO_CreditLimit AS SO_CreditAvailable,
bp.C_PaymentTerm_ID, bp.M_PriceList_ID, bp.M_DiscountSchema_ID, bp.C_Dunning_ID,
bp.IsDiscountPrinted, bp.SO_Description, bp.POReference, PaymentRulePO,
bp.PO_PriceList_ID, bp.PO_DiscountSchema_ID, bp.PO_PaymentTerm_ID,
bp.DocumentCopies, bp.C_Greeting_ID, bp.InvoiceRule, bp.DeliveryRule,
bp.FreightCostRule, bp.DeliveryViaRule, bp.SalesRep_ID,
bp.SendEMail, bp.BPartner_Parent_ID, bp.Invoice_PrintFormat_ID,
bp.SOCreditStatus, bp.ShelfLifeMinPct, bp.AD_OrgBP_ID,
bp.FlatDiscount, bp.TotalOpenBalance,
-- Contact
c.AD_User_ID, c.Name AS ContactName, c.Description AS ContactDescription,
c.EMail, c.Supervisor_ID,
c.EMailUser, c.C_Greeting_ID AS BPContactGreeting,
c.Title, c.Comments, c.Phone, c.Phone2, c.Fax,
c.LastContact, c.LastResult, c.BirthDay, c.AD_OrgTrx_ID,
c.EMailVerify, c.LDAPUser, c.EMailVerifyDate, c.NotificationType,
-- Location
l.C_BPartner_Location_ID, a.Postal, a.City, a.Address1, a.Address2, a.Address3,
a.C_Region_ID, COALESCE(r.Name,a.RegionName) AS RegionName,
a.C_Country_ID, cc.Name AS CountryName
FROM C_BPartner bp
LEFT OUTER JOIN C_BPartner_Location l ON (bp.C_BPartner_ID=l.C_BPartner_ID AND l.IsActive='Y')
LEFT OUTER JOIN AD_User c ON (bp.C_BPartner_ID=c.C_BPartner_ID AND (c.C_BPartner_Location_ID IS NULL OR c.C_BPartner_Location_ID=l.C_BPartner_Location_ID) AND c.IsActive='Y')
LEFT OUTER JOIN C_Location a ON (l.C_Location_ID=a.C_Location_ID)
LEFT OUTER JOIN C_Region r ON (a.C_Region_ID=r.C_Region_ID)
INNER JOIN C_Country cc ON (a.C_Country_ID=cc.C_Country_ID)
;
CREATE OR REPLACE FORCE VIEW M_INOUT_CANDIDATE_V
AS SELECT
o.AD_Client_ID, o.AD_Org_ID, o.C_BPartner_ID, o.C_Order_ID,
o.DocumentNo, o.DateOrdered, o.C_DocType_ID,
o.POReference, o.Description, o.SalesRep_ID,
l.M_Warehouse_ID,
SUM((l.QtyOrdered-l.QtyDelivered)*l.PriceActual) AS TotalLines
FROM C_Order o
INNER JOIN C_OrderLine l ON (o.C_Order_ID=l.C_Order_ID)
WHERE (o.DocStatus = 'CO' AND o.IsDelivered='N') -- Status must be CO - not CL/RE
-- not Offers and open Walkin-Receipts
AND o.C_DocType_ID IN (SELECT C_DocType_ID FROM C_DocType
WHERE DocBaseType='SOO' AND DocSubTypeSO NOT IN ('ON','OB','WR'))
-- Delivery Rule - not manual
AND o.DeliveryRule<>'M'
AND (l.M_Product_ID IS NULL OR EXISTS
(SELECT * FROM M_Product p
WHERE l.M_Product_ID=p.M_Product_ID AND p.IsExcludeAutoDelivery='N'))
-- we need to ship
AND l.QtyOrdered <> l.QtyDelivered
AND o.IsDropShip='N'
AND (l.M_Product_ID IS NOT NULL OR l.C_Charge_ID IS NOT NULL)
-- Not confirmed shipment
AND NOT EXISTS (SELECT * FROM M_InOutLine iol
INNER JOIN M_InOut io ON (iol.M_InOut_ID=io.M_InOut_ID)
WHERE iol.C_OrderLine_ID=l.C_OrderLine_ID AND io.DocStatus IN ('IP','WC'))
--
GROUP BY o.AD_Client_ID, o.AD_Org_ID, o.C_BPartner_ID, o.C_Order_ID,
o.DocumentNo, o.DateOrdered, o.C_DocType_ID,
o.POReference, o.Description, o.SalesRep_ID, l.M_Warehouse_ID
;
update AD_System set version='2006-01-20';
COMMIT;

View File

@ -0,0 +1,891 @@
-- upgrading database from compiere 253a to 253b
-- Written by Karsten Thiemann, kt@schaeffer-ag.de
-- Feel free to change everything you want, but you are using it at your own risk!
-- This script changes the db structure by adding missing tables and columns.
-- It also adds lines to some of the new tables.
-- Your data is left unchaged - with the following exceptions: .
-- ALL ENTRIES IN PA_ACHIEVEMENT, PA_MEASURE, PA_GOAL,
-- PA_MEASURECALC AND T_INVENTORYVALUE ARE DELETED
-- If you have CUSTOM DATA in there please do a backup and reapply it after migration.
-- The code for the deletion is marked with BEWARE
-- CUSTOM DATA means data from your client not from GardeWorld or System:
-- select * from PA_MEASURE where AD_Client_ID!=11 and AD_Client_ID!=0;
-- select * from PA_MEASURECALC where AD_Client_ID!=11 and AD_Client_ID!=0;
-- select * from T_INVENTORYVALUE where AD_Client_ID!=11 and AD_Client_ID!=0;
-- If you get some lines, you have custom data...
-- Please review the setting of the DEFAULT VALUES for some of the
-- added columns. They are marked with REPLACE_ME so just use the search function
-- of your editor. So just follow the instructions there.
DELETE FROM PA_ACHIEVEMENT;
DELETE from PA_GOAL;
CREATE TABLE "AD_CLIENTSHARE"
( "AD_CLIENTSHARE_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"NAME" NVARCHAR2(60) NOT NULL ENABLE,
"DESCRIPTION" NVARCHAR2(255),
"AD_TABLE_ID" NUMBER(10,0) NOT NULL ENABLE,
"SHARETYPE" CHAR(1 BYTE) NOT NULL ENABLE,
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "AD_CLIENTSHARE_KEY" PRIMARY KEY ("AD_CLIENTSHARE_ID") ENABLE,
CONSTRAINT "ADCLIENT_ADCLIENTSHARE" FOREIGN KEY ("AD_CLIENT_ID")
REFERENCES "AD_CLIENT" ("AD_CLIENT_ID") ENABLE,
CONSTRAINT "ADORG_ADCLIENTSHARE" FOREIGN KEY ("AD_ORG_ID")
REFERENCES "AD_ORG" ("AD_ORG_ID") ENABLE,
CONSTRAINT "ADTABLE_ADCLIENTSHARE" FOREIGN KEY ("AD_TABLE_ID")
REFERENCES "AD_TABLE" ("AD_TABLE_ID") ENABLE
) ;
CREATE UNIQUE INDEX "AD_CLIENTSHARE_TABLE" ON "AD_CLIENTSHARE" ("AD_CLIENT_ID", "AD_TABLE_ID") ;
CREATE TABLE "R_ISSUESYSTEM"
( "R_ISSUESYSTEM_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"DBADDRESS" NVARCHAR2(255) NOT NULL ENABLE,
"STATISTICSINFO" NVARCHAR2(60),
"PROFILEINFO" NVARCHAR2(60),
"SYSTEMSTATUS" CHAR(1 BYTE) NOT NULL ENABLE,
"A_ASSET_ID" NUMBER(10,0),
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "R_ISSUESYSTEM_KEY" PRIMARY KEY ("R_ISSUESYSTEM_ID") ENABLE
) ;
CREATE UNIQUE INDEX "R_ISSUESYSTEM_ADDRESS" ON "R_ISSUESYSTEM" ("DBADDRESS") ;
CREATE TABLE "R_ISSUEUSER"
( "R_ISSUEUSER_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"USERNAME" NVARCHAR2(60) NOT NULL ENABLE,
"DESCRIPTION" NVARCHAR2(255),
"AD_USER_ID" NUMBER(10,0),
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "R_ISSUEUSER_KEY" PRIMARY KEY ("R_ISSUEUSER_ID") ENABLE,
CONSTRAINT "ADUSER_RISSUEUSER" FOREIGN KEY ("AD_USER_ID")
REFERENCES "AD_USER" ("AD_USER_ID") ENABLE
) ;
CREATE UNIQUE INDEX "R_ISSUEUSER_EMAIL" ON "R_ISSUEUSER" ("USERNAME", "AD_CLIENT_ID") ;
CREATE TABLE "R_ISSUESTATUS"
( "R_ISSUESTATUS_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"NAME" NVARCHAR2(60) NOT NULL ENABLE,
"DESCRIPTION" NVARCHAR2(255),
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "R_ISSUESTATUS_KEY" PRIMARY KEY ("R_ISSUESTATUS_ID") ENABLE
) ;
CREATE TABLE "R_ISSUEPROJECT"
( "R_ISSUEPROJECT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"NAME" NVARCHAR2(60) NOT NULL ENABLE,
"DESCRIPTION" NVARCHAR2(255),
"A_ASSET_ID" NUMBER(10,0),
"C_PROJECT_ID" NUMBER(10,0),
"STATISTICSINFO" NVARCHAR2(60),
"PROFILEINFO" NVARCHAR2(60),
"SYSTEMSTATUS" CHAR(1 BYTE) NOT NULL ENABLE,
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "R_ISSUEPROJECT_KEY" PRIMARY KEY ("R_ISSUEPROJECT_ID") ENABLE,
CONSTRAINT "AASSET_RISSUEPROJECT" FOREIGN KEY ("A_ASSET_ID")
REFERENCES "A_ASSET" ("A_ASSET_ID") ENABLE,
CONSTRAINT "CPROJECT_RISSUEPROJECT" FOREIGN KEY ("C_PROJECT_ID")
REFERENCES "C_PROJECT" ("C_PROJECT_ID") ENABLE
) ;
CREATE INDEX "R_ISSUEPROJECT_NAME" ON "R_ISSUEPROJECT" ("NAME") ;
CREATE TABLE "R_ISSUERECOMMENDATION"
( "R_ISSUERECOMMENDATION_ID" CHAR(1 BYTE) DEFAULT 'N' NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"NAME" NVARCHAR2(60) NOT NULL ENABLE,
"DESCRIPTION" NVARCHAR2(255),
"HELP" NVARCHAR2(2000),
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "R_ISSUERECOMMENDATION_KEY" PRIMARY KEY ("R_ISSUERECOMMENDATION_ID") ENABLE
) ;
CREATE TABLE "R_ISSUEKNOWN"
( "R_ISSUEKNOWN_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"ISSUESUMMARY" NVARCHAR2(255) NOT NULL ENABLE,
"RELEASENO" CHAR(4 BYTE) NOT NULL ENABLE,
"SOURCECLASSNAME" NVARCHAR2(60),
"SOURCEMETHODNAME" NVARCHAR2(60),
"LOGGERNAME" NVARCHAR2(60),
"LINENO" NUMBER(10,0) DEFAULT 0,
"DESCRIPTION" NVARCHAR2(255),
"ISSUESTATUS" NVARCHAR2(2000),
"R_ISSUERECOMMENDATION_ID" CHAR(1 BYTE),
"R_ISSUESTATUS_ID" NUMBER(10,0),
"R_REQUEST_ID" NUMBER(10,0),
"PROCESSING" CHAR(1 BYTE),
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "R_KNOWNISSUE_KEY" PRIMARY KEY ("R_ISSUEKNOWN_ID") ENABLE,
CONSTRAINT "RISSUEREC_RISSUEKNOWN" FOREIGN KEY ("R_ISSUERECOMMENDATION_ID")
REFERENCES "R_ISSUERECOMMENDATION" ("R_ISSUERECOMMENDATION_ID") ENABLE,
CONSTRAINT "RISSUESTATUS_RISSUEKNOWN" FOREIGN KEY ("R_ISSUESTATUS_ID")
REFERENCES "R_ISSUESTATUS" ("R_ISSUESTATUS_ID") ENABLE,
CONSTRAINT "RREQUEST_RISSUEKNOWN" FOREIGN KEY ("R_REQUEST_ID")
REFERENCES "R_REQUEST" ("R_REQUEST_ID") ENABLE
) ;
CREATE UNIQUE INDEX "R_KNOWNISSUE_ALT" ON "R_ISSUEKNOWN" ("ISSUESUMMARY", "RELEASENO", "SOURCECLASSNAME", "SOURCEMETHODNAME", "LOGGERNAME", "LINENO") ;
CREATE TABLE "R_ISSUESOURCE"
( "R_ISSUESOURCE_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"R_ISSUESYSTEM_ID" NUMBER(10,0) NOT NULL ENABLE,
"R_ISSUEPROJECT_ID" NUMBER(10,0) NOT NULL ENABLE,
"R_ISSUEUSER_ID" NUMBER(10,0) NOT NULL ENABLE,
"STATISTICSINFO" NVARCHAR2(60),
"PROFILEINFO" NVARCHAR2(60),
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "R_ISSUESOURCE_KEY" PRIMARY KEY ("R_ISSUESOURCE_ID") ENABLE,
CONSTRAINT "RISSUEPROJECT_RISSUESOURCE" FOREIGN KEY ("R_ISSUEPROJECT_ID")
REFERENCES "R_ISSUEPROJECT" ("R_ISSUEPROJECT_ID") ENABLE,
CONSTRAINT "RISSUESYSTEM_RISSUESOURCE" FOREIGN KEY ("R_ISSUESYSTEM_ID")
REFERENCES "R_ISSUESYSTEM" ("R_ISSUESYSTEM_ID") ENABLE,
CONSTRAINT "RISSUEUSER_RISSUESOURCE" FOREIGN KEY ("R_ISSUEUSER_ID")
REFERENCES "R_ISSUEUSER" ("R_ISSUEUSER_ID") ENABLE
) ;
CREATE UNIQUE INDEX "R_ISSUESOURCE_SPO" ON "R_ISSUESOURCE" ("R_ISSUESYSTEM_ID", "R_ISSUEPROJECT_ID", "R_ISSUEUSER_ID") ;
CREATE TABLE "AD_ISSUE"
( "AD_ISSUE_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"RELEASENO" CHAR(4 BYTE) NOT NULL ENABLE,
"VERSION" NVARCHAR2(40) NOT NULL ENABLE,
"NAME" NVARCHAR2(60) NOT NULL ENABLE,
"USERNAME" NVARCHAR2(60) NOT NULL ENABLE,
"SUPPORTEMAIL" NVARCHAR2(60),
"DBADDRESS" NVARCHAR2(255),
"LOCAL_HOST" NVARCHAR2(120),
"OPERATINGSYSTEMINFO" NVARCHAR2(255) DEFAULT NULL,
"RELEASETAG" NVARCHAR2(60),
"DATABASEINFO" NVARCHAR2(255) DEFAULT NULL,
"JAVAINFO" NVARCHAR2(255) DEFAULT NULL,
"REMOTE_ADDR" NVARCHAR2(60),
"REMOTE_HOST" NVARCHAR2(120),
"ISSUESUMMARY" NVARCHAR2(2000) DEFAULT NULL NOT NULL ENABLE,
"COMMENTS" NVARCHAR2(2000),
"SOURCECLASSNAME" NVARCHAR2(60),
"SOURCEMETHODNAME" NVARCHAR2(60),
"LOGGERNAME" NVARCHAR2(60),
"LINENO" NUMBER(10,0) DEFAULT 0,
"STACKTRACE" NVARCHAR2(2000),
"ERRORTRACE" NVARCHAR2(2000),
"RECORD_ID" NUMBER(10,0),
"REQUESTDOCUMENTNO" NVARCHAR2(30),
"A_ASSET_ID" NUMBER(10,0),
"R_REQUEST_ID" NUMBER(10,0),
"RESPONSETEXT" NVARCHAR2(2000),
"PROCESSING" CHAR(1 BYTE),
"PROCESSED" CHAR(1 BYTE) DEFAULT 'N' NOT NULL ENABLE,
"ISVANILLASYSTEM" CHAR(1 BYTE) DEFAULT 'N'
,
"ISREPRODUCIBLE" CHAR(1 BYTE) DEFAULT 'N'
,
"R_ISSUEKNOWN_ID" NUMBER(10,0),
"STATISTICSINFO" NVARCHAR2(255) DEFAULT NULL,
"PROFILEINFO" NVARCHAR2(255) DEFAULT NULL,
"SYSTEMSTATUS" CHAR(1 BYTE) NOT NULL ENABLE,
"R_ISSUEPROJECT_ID" NUMBER(10,0),
"R_ISSUEUSER_ID" NUMBER(10,0),
"R_ISSUESYSTEM_ID" NUMBER(10,0),
"ISSUESOURCE" CHAR(1 BYTE),
"AD_WINDOW_ID" NUMBER(10,0),
"AD_PROCESS_ID" NUMBER(10,0),
"AD_FORM_ID" NUMBER(10,0),
CHECK (IsActive in ('Y','N')) ENABLE,
CHECK (Processed in ('Y','N')) ENABLE,
CHECK (IsVanillaSystem in ('Y','N')) ENABLE,
CHECK (IsReproducible in ('Y','N')) ENABLE,
CONSTRAINT "AD_ISSUE_KEY" PRIMARY KEY ("AD_ISSUE_ID") ENABLE,
CONSTRAINT "AASSET_ADISSUE" FOREIGN KEY ("A_ASSET_ID")
REFERENCES "A_ASSET" ("A_ASSET_ID") ON DELETE SET NULL ENABLE,
CONSTRAINT "ADFORM_ADISSUE" FOREIGN KEY ("AD_FORM_ID")
REFERENCES "AD_FORM" ("AD_FORM_ID") ON DELETE SET NULL ENABLE,
CONSTRAINT "ADPROCESS_ADISSUE" FOREIGN KEY ("AD_PROCESS_ID")
REFERENCES "AD_PROCESS" ("AD_PROCESS_ID") ON DELETE SET NULL ENABLE,
CONSTRAINT "ADWINDOW_ADISSUE" FOREIGN KEY ("AD_WINDOW_ID")
REFERENCES "AD_WINDOW" ("AD_WINDOW_ID") ON DELETE SET NULL ENABLE,
CONSTRAINT "RISSUEPROJECT_ADISSUE" FOREIGN KEY ("R_ISSUEPROJECT_ID")
REFERENCES "R_ISSUEPROJECT" ("R_ISSUEPROJECT_ID") ENABLE,
CONSTRAINT "RISSUESYSTEM_AD_ISSUE" FOREIGN KEY ("R_ISSUESYSTEM_ID")
REFERENCES "R_ISSUESYSTEM" ("R_ISSUESYSTEM_ID") ENABLE,
CONSTRAINT "RISSUEUSER_ADISSUE" FOREIGN KEY ("R_ISSUEUSER_ID")
REFERENCES "R_ISSUEUSER" ("R_ISSUEUSER_ID") ENABLE,
CONSTRAINT "RKNOWNISSUE_ADISSUE" FOREIGN KEY ("R_ISSUEKNOWN_ID")
REFERENCES "R_ISSUEKNOWN" ("R_ISSUEKNOWN_ID") ENABLE,
CONSTRAINT "RREQUEST_ADISSUE" FOREIGN KEY ("R_REQUEST_ID")
REFERENCES "R_REQUEST" ("R_REQUEST_ID") ON DELETE SET NULL ENABLE
) ;
COMMENT ON TABLE "AD_ISSUE" IS 'Compiere Automatic Issue Reporting';
CREATE TABLE "C_SUBACCT"
( "C_SUBACCT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"VALUE" NVARCHAR2(40) NOT NULL ENABLE,
"NAME" NVARCHAR2(60) NOT NULL ENABLE,
"DESCRIPTION" NVARCHAR2(255),
"HELP" NVARCHAR2(2000),
"C_ELEMENTVALUE_ID" NUMBER(10,0) NOT NULL ENABLE,
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "C_SUBACCT_KEY" PRIMARY KEY ("C_SUBACCT_ID") ENABLE,
CONSTRAINT "CELEMENTVALUE_CSUBACCT" FOREIGN KEY ("C_ELEMENTVALUE_ID")
REFERENCES "C_ELEMENTVALUE" ("C_ELEMENTVALUE_ID") ON DELETE CASCADE ENABLE
) ;
CREATE TABLE "PA_GOALRESTRICTION"
( "PA_GOALRESTRICTION_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"NAME" NVARCHAR2(60) NOT NULL ENABLE,
"GOALRESTRICTIONTYPE" CHAR(1 BYTE) NOT NULL ENABLE,
"PA_GOAL_ID" NUMBER(10,0) NOT NULL ENABLE,
"C_BPARTNER_ID" NUMBER(10,0),
"M_PRODUCT_ID" NUMBER(10,0),
"ORG_ID" NUMBER(10,0),
"C_BP_GROUP_ID" NUMBER(10,0),
"M_PRODUCT_CATEGORY_ID" NUMBER(10,0),
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "PA_GOALRESTRICTION_KEY" PRIMARY KEY ("PA_GOALRESTRICTION_ID") ENABLE,
CONSTRAINT "ADORG2_PAGOALRESTRICTION" FOREIGN KEY ("ORG_ID")
REFERENCES "AD_ORG" ("AD_ORG_ID") ENABLE,
CONSTRAINT "ADORG_PAGOALRESTRICTION" FOREIGN KEY ("AD_ORG_ID")
REFERENCES "AD_ORG" ("AD_ORG_ID") ENABLE,
CONSTRAINT "CBPARTNER_PAGOALRESTRICTION" FOREIGN KEY ("C_BPARTNER_ID")
REFERENCES "C_BPARTNER" ("C_BPARTNER_ID") ENABLE,
CONSTRAINT "CBPGROUP_PAGOALRESTRICTION" FOREIGN KEY ("C_BP_GROUP_ID")
REFERENCES "C_BP_GROUP" ("C_BP_GROUP_ID") ENABLE,
CONSTRAINT "MPRODUCTCAT_PAGOALRESTRICTION" FOREIGN KEY ("M_PRODUCT_CATEGORY_ID")
REFERENCES "M_PRODUCT_CATEGORY" ("M_PRODUCT_CATEGORY_ID") ENABLE,
CONSTRAINT "MPRODUCT_PAGOALRESTRICTION" FOREIGN KEY ("M_PRODUCT_ID")
REFERENCES "M_PRODUCT" ("M_PRODUCT_ID") ENABLE,
CONSTRAINT "PAGOAL_PAGOALRESTRICTION" FOREIGN KEY ("PA_GOAL_ID")
REFERENCES "PA_GOAL" ("PA_GOAL_ID") ENABLE
) ;
CREATE TABLE "R_MAILTEXT_TRL"
( "R_MAILTEXT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_LANGUAGE" VARCHAR2(6 BYTE) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"ISTRANSLATED" CHAR(1 BYTE) DEFAULT 'N' NOT NULL ENABLE,
"NAME" NVARCHAR2(60) NOT NULL ENABLE,
"MAILHEADER" NVARCHAR2(2000) NOT NULL ENABLE,
"MAILTEXT" NVARCHAR2(2000) NOT NULL ENABLE,
"MAILTEXT2" NVARCHAR2(2000),
"MAILTEXT3" NVARCHAR2(2000),
CHECK (IsActive in ('Y','N')) ENABLE,
CHECK (IsTranslated in ('Y','N')) ENABLE,
CONSTRAINT "R_MAILTEXT_TRL_KEY" PRIMARY KEY ("R_MAILTEXT_ID", "AD_LANGUAGE") ENABLE,
CONSTRAINT "ADLANGUAGE_RMAILTEXTTRL" FOREIGN KEY ("AD_LANGUAGE")
REFERENCES "AD_LANGUAGE" ("AD_LANGUAGE") ENABLE,
CONSTRAINT "RMAILTEXT_RMAILTEXTTRL" FOREIGN KEY ("R_MAILTEXT_ID")
REFERENCES "R_MAILTEXT" ("R_MAILTEXT_ID") ON DELETE CASCADE ENABLE
) ;
CREATE TABLE "PA_COLORSCHEMA"
( "PA_COLORSCHEMA_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"NAME" NVARCHAR2(60) NOT NULL ENABLE,
"DESCRIPTION" NVARCHAR2(255),
"MARK1PERCENT" NUMBER(10,0) DEFAULT 0 NOT NULL ENABLE,
"AD_PRINTCOLOR1_ID" NUMBER(10,0) NOT NULL ENABLE,
"MARK2PERCENT" NUMBER(10,0) DEFAULT 0 NOT NULL ENABLE,
"AD_PRINTCOLOR2_ID" NUMBER(10,0) NOT NULL ENABLE,
"MARK3PERCENT" NUMBER(10,0) DEFAULT 0,
"AD_PRINTCOLOR3_ID" NUMBER(10,0),
"MARK4PERCENT" NUMBER(10,0) DEFAULT 0,
"AD_PRINTCOLOR4_ID" NUMBER(10,0),
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "PA_COLORSCHEMA_KEY" PRIMARY KEY ("PA_COLORSCHEMA_ID") ENABLE,
CONSTRAINT "ADPRINTCOLOR1_PACOLORSCHEMA" FOREIGN KEY ("AD_PRINTCOLOR1_ID")
REFERENCES "AD_PRINTCOLOR" ("AD_PRINTCOLOR_ID") ENABLE,
CONSTRAINT "ADPRINTCOLOR2_PACOLORSCHEMA" FOREIGN KEY ("AD_PRINTCOLOR2_ID")
REFERENCES "AD_PRINTCOLOR" ("AD_PRINTCOLOR_ID") ENABLE,
CONSTRAINT "ADPRINTCOLOR3_PACOLORSCHEMA" FOREIGN KEY ("AD_PRINTCOLOR3_ID")
REFERENCES "AD_PRINTCOLOR" ("AD_PRINTCOLOR_ID") ENABLE,
CONSTRAINT "ADPRINTCOLOR4_PACOLORSCHEMA" FOREIGN KEY ("AD_PRINTCOLOR4_ID")
REFERENCES "AD_PRINTCOLOR" ("AD_PRINTCOLOR_ID") ENABLE
) ;
/* INSERTING into PA_COLORSCHEMA */
Insert into "PA_COLORSCHEMA" ("PA_COLORSCHEMA_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","MARK1PERCENT","AD_PRINTCOLOR1_ID","MARK2PERCENT","AD_PRINTCOLOR2_ID","MARK3PERCENT","AD_PRINTCOLOR3_ID","MARK4PERCENT","AD_PRINTCOLOR4_ID") values (101,0,0,'Y',to_date('31.12.05','DD.MM.RR'),100,to_date('31.12.05','DD.MM.RR'),100,'Green (50) - Yellow (100) - Red','< 100% is the goal',50,103,100,113,9999,102,0,null);
Insert into "PA_COLORSCHEMA" ("PA_COLORSCHEMA_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","MARK1PERCENT","AD_PRINTCOLOR1_ID","MARK2PERCENT","AD_PRINTCOLOR2_ID","MARK3PERCENT","AD_PRINTCOLOR3_ID","MARK4PERCENT","AD_PRINTCOLOR4_ID") values (100,0,0,'Y',to_date('23.12.05','DD.MM.RR'),100,to_date('31.12.05','DD.MM.RR'),100,'Red (50) - Yellow (100) - Green','>= 100% is the goal',50,102,100,113,9999,103,0,null);
CREATE TABLE "PA_RATIO"
( "PA_RATIO_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"NAME" NVARCHAR2(60) NOT NULL ENABLE,
"DESCRIPTION" NVARCHAR2(255),
"HELP" NVARCHAR2(2000),
"C_ACCTSCHEMA_ID" NUMBER(10,0) NOT NULL ENABLE,
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "PA_RATIO_KEY" PRIMARY KEY ("PA_RATIO_ID") ENABLE,
CONSTRAINT "CACCTSCHEMA_PARATIO" FOREIGN KEY ("C_ACCTSCHEMA_ID")
REFERENCES "C_ACCTSCHEMA" ("C_ACCTSCHEMA_ID") ENABLE
) ;
/* INSERTING into PA_RATIO */
Insert into "PA_RATIO" ("PA_RATIO_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","HELP","C_ACCTSCHEMA_ID") values (100,11,11,'Y',to_date('26.12.05','DD.MM.RR'),101,to_date('26.12.05','DD.MM.RR'),101,'Fxed Assets',null,null,101);
CREATE TABLE "PA_RATIOELEMENT"
( "PA_RATIOELEMENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"NAME" NVARCHAR2(60) NOT NULL ENABLE,
"DESCRIPTION" NVARCHAR2(255),
"PA_RATIO_ID" NUMBER(10,0) NOT NULL ENABLE,
"RATIOOPERAND" CHAR(1 BYTE) NOT NULL ENABLE,
"RATIOELEMENTTYPE" CHAR(1 BYTE) NOT NULL ENABLE,
"ACCOUNT_ID" NUMBER(10,0),
"PA_RATIOUSED_ID" NUMBER(10,0),
"PA_MEASURECALC_ID" NUMBER(10,0),
"CONSTANTVALUE" NUMBER,
"SEQNO" NUMBER(10,0) NOT NULL ENABLE,
"POSTINGTYPE" CHAR(1 BYTE),
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "PA_RATIOELEMENT_KEY" PRIMARY KEY ("PA_RATIOELEMENT_ID") ENABLE,
CONSTRAINT "CELEMENTVALUE_PARATIOELEMENT" FOREIGN KEY ("ACCOUNT_ID")
REFERENCES "C_ELEMENTVALUE" ("C_ELEMENTVALUE_ID") ENABLE,
CONSTRAINT "PAMEASURECALC_PARATIOELEMENT" FOREIGN KEY ("PA_MEASURECALC_ID")
REFERENCES "PA_MEASURECALC" ("PA_MEASURECALC_ID") ENABLE,
CONSTRAINT "PARATIOUSED_PARATIOELEMENT" FOREIGN KEY ("PA_RATIOUSED_ID")
REFERENCES "PA_RATIO" ("PA_RATIO_ID") ENABLE,
CONSTRAINT "PARATIO_PARATIOELEMENT" FOREIGN KEY ("PA_RATIO_ID")
REFERENCES "PA_RATIO" ("PA_RATIO_ID") ENABLE
) ;
/* INSERTING into PA_RATIOELEMENT */
Insert into "PA_RATIOELEMENT" ("PA_RATIOELEMENT_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","PA_RATIO_ID","RATIOOPERAND","RATIOELEMENTTYPE","ACCOUNT_ID","PA_RATIOUSED_ID","PA_MEASURECALC_ID","CONSTANTVALUE","SEQNO","POSTINGTYPE") values (100,11,11,'Y',to_date('26.12.05','DD.MM.RR'),101,to_date('26.12.05','DD.MM.RR'),101,'Long Term Investments',null,100,'P','A',537,null,null,0,10,'A');
Insert into "PA_RATIOELEMENT" ("PA_RATIOELEMENT_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","PA_RATIO_ID","RATIOOPERAND","RATIOELEMENTTYPE","ACCOUNT_ID","PA_RATIOUSED_ID","PA_MEASURECALC_ID","CONSTANTVALUE","SEQNO","POSTINGTYPE") values (101,11,11,'Y',to_date('26.12.05','DD.MM.RR'),101,to_date('26.12.05','DD.MM.RR'),101,'Inventory',null,100,'P','A',541,null,null,0,0,'A');
Insert into "PA_RATIOELEMENT" ("PA_RATIOELEMENT_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","PA_RATIO_ID","RATIOOPERAND","RATIOELEMENTTYPE","ACCOUNT_ID","PA_RATIOUSED_ID","PA_MEASURECALC_ID","CONSTANTVALUE","SEQNO","POSTINGTYPE") values (102,11,11,'Y',to_date('26.12.05','DD.MM.RR'),101,to_date('26.12.05','DD.MM.RR'),101,'Land and Building',null,100,'P','A',554,null,null,0,0,null);
CREATE TABLE "R_STATUSCATEGORY"
( "R_STATUSCATEGORY_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"NAME" NVARCHAR2(60) NOT NULL ENABLE,
"DESCRIPTION" NVARCHAR2(255),
"HELP" NVARCHAR2(2000),
"ISDEFAULT" CHAR(1 BYTE) DEFAULT 'N' NOT NULL ENABLE,
CHECK (IsActive in ('Y','N')) ENABLE,
CHECK (IsDefault in ('Y','N')) ENABLE,
CONSTRAINT "R_STATUSCATEGORY_KEY" PRIMARY KEY ("R_STATUSCATEGORY_ID") ENABLE
) ;
/* INSERTING into R_STATUSCATEGORY */
Insert into "R_STATUSCATEGORY" ("R_STATUSCATEGORY_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","HELP","ISDEFAULT") values (100,11,0,'Y',to_date('15.01.06','DD.MM.RR'),100,to_date('15.01.06','DD.MM.RR'),100,'Default','Default Request Status',null,'Y');
CREATE TABLE "PA_BENCHMARK"
( "PA_BENCHMARK_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"NAME" NVARCHAR2(60) NOT NULL ENABLE,
"DESCRIPTION" NVARCHAR2(255),
"HELP" NVARCHAR2(2000),
"ACCUMULATIONTYPE" CHAR(1 BYTE) NOT NULL ENABLE,
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "PA_BENMARK_KEY" PRIMARY KEY ("PA_BENCHMARK_ID") ENABLE
) ;
CREATE TABLE "PA_BENCHMARKDATA"
( "PA_BENCHMARKDATA_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_CLIENT_ID" NUMBER(10,0) NOT NULL ENABLE,
"AD_ORG_ID" NUMBER(10,0) NOT NULL ENABLE,
"ISACTIVE" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL ENABLE,
"CREATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"CREATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"UPDATED" DATE DEFAULT SYSDATE NOT NULL ENABLE,
"UPDATEDBY" NUMBER(10,0) NOT NULL ENABLE,
"NAME" NVARCHAR2(60) NOT NULL ENABLE,
"DESCRIPTION" NVARCHAR2(255),
"PA_BENCHMARK_ID" NUMBER(10,0) NOT NULL ENABLE,
"BENCHMARKDATE" DATE NOT NULL ENABLE,
"BENCHMARKVALUE" NUMBER NOT NULL ENABLE,
CHECK (IsActive in ('Y','N')) ENABLE,
CONSTRAINT "PA_BENCHMARKDATA_KEY" PRIMARY KEY ("PA_BENCHMARKDATA_ID") ENABLE,
CONSTRAINT "PABENCHMARK_PABENCHMARKDATA" FOREIGN KEY ("PA_BENCHMARK_ID")
REFERENCES "PA_BENCHMARK" ("PA_BENCHMARK_ID") ON DELETE CASCADE ENABLE
) ;
/* alter existing tables - add new columns */
ALTER TABLE "C_TAXDECLARATIONACCT"
ADD "LINE" NUMBER(10,0);
ALTER TABLE "C_TAXDECLARATIONLINE"
ADD ("ISMANUAL" CHAR(1 BYTE) DEFAULT 'N' NOT NULL ENABLE,
"C_CURRENCY_ID" NUMBER(10,0) NULL );
-- REPLACE_ME: set a
-- default value for C_Currency_ID (the default currency) 102 is EUR, 100 is USD
UPDATE "C_TAXDECLARATIONLINE" SET "C_CURRENCY_ID"=100;
ALTER TABLE "C_TAXDECLARATIONLINE"
MODIFY ("C_CURRENCY_ID" NUMBER(10,0) NOT NULL ENABLE);
ALTER TABLE "C_TAXDECLARATIONLINE"
ADD CONSTRAINT "CCURRENCY_CTAXDECLLINE" FOREIGN KEY ("C_CURRENCY_ID")
REFERENCES "C_CURRENCY" ("C_CURRENCY_ID");
ALTER TABLE "FACT_ACCT_BALANCE"
ADD ( "C_SUBACCT_ID" NUMBER(10,0),
"USERELEMENT1_ID" NUMBER(10,0),
"USERELEMENT2_ID" NUMBER(10,0));
ALTER TABLE "PA_ACHIEVEMENT"
ADD ( "MANUALACTUAL" NUMBER DEFAULT 0 NOT NULL,
"PA_MEASURE_ID" NUMBER(10,0) NULL,
"DATEDOC" DATE);
ALTER TABLE "PA_ACHIEVEMENT"
ADD CONSTRAINT "PAMEASURE_PAACHIEVEMENT" FOREIGN KEY ("PA_MEASURE_ID")
REFERENCES "PA_MEASURE" ("PA_MEASURE_ID");
-- REPLACE_ME: if there are lines in the table you have to set a
-- default value for PA_MEASURE_ID (references PA_Measure)
UPDATE "PA_ACHIEVEMENT" SET "PA_MEASURE_ID"=0;
ALTER TABLE "PA_ACHIEVEMENT"
MODIFY "PA_MEASURE_ID" NUMBER(10,0) NOT NULL;
/* BEWARE: ALL ENTRIES IN PA_MEASURE AND PA_MEASURECALC ARE DELETED */
DELETE FROM "PA_MEASURE";
DELETE FROM "PA_MEASURECALC";
ALTER TABLE "PA_MEASURECALC"
ADD ( "AD_TABLE_ID" NUMBER(10,0) NOT NULL ENABLE,
"KEYCOLUMN" NVARCHAR2(60) NOT NULL ENABLE,
"ENTITYTYPE" VARCHAR2(4 BYTE) NOT NULL ENABLE
) ;
/* INSERTING into PA_MEASURECALC */
Insert into "PA_MEASURECALC" ("PA_MEASURECALC_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","SELECTCLAUSE","WHERECLAUSE","DATECOLUMN","ORGCOLUMN","BPARTNERCOLUMN","PRODUCTCOLUMN","AD_TABLE_ID","KEYCOLUMN","ENTITYTYPE") values (100,0,0,'Y',to_date('26.04.01','DD.MM.RR'),0,to_date('01.01.06','DD.MM.RR'),100,'Invoiced Net Revenue','Invoiced net revenue, without tax and charges','SELECT SUM(il.LineNetAmt)
FROM RV_C_Invoice C_Invoice
INNER JOIN RV_C_InvoiceLine il ON (C_Invoice.C_Invoice_ID=il.C_Invoice_ID)','WHERE C_Invoice.IsSOTrx=''Y'' AND C_Invoice.Processed=''Y''','C_Invoice.DateInvoiced','C_Invoice.AD_Org_ID','C_Invoice.C_BPartner_ID','il.M_Product_ID',318,'C_Invoice.C_Invoice_ID','D');
Insert into "PA_MEASURECALC" ("PA_MEASURECALC_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","SELECTCLAUSE","WHERECLAUSE","DATECOLUMN","ORGCOLUMN","BPARTNERCOLUMN","PRODUCTCOLUMN","AD_TABLE_ID","KEYCOLUMN","ENTITYTYPE") values (101,0,0,'Y',to_date('26.04.01','DD.MM.RR'),0,to_date('01.01.06','DD.MM.RR'),100,'Invoiced Gross Revenue','Invoice gross amount including tax; Does not allow selection by product (Category)','SELECT SUM(GrandTotal)
FROM RV_C_Invoice C_Invoice','WHERE IsSOTrx=''Y'' AND Processed=''Y''','DateInvoiced','AD_Org_ID','C_BPartner_ID',null,318,'C_Invoice_ID','D');
Insert into "PA_MEASURECALC" ("PA_MEASURECALC_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","SELECTCLAUSE","WHERECLAUSE","DATECOLUMN","ORGCOLUMN","BPARTNERCOLUMN","PRODUCTCOLUMN","AD_TABLE_ID","KEYCOLUMN","ENTITYTYPE") values (102,0,0,'Y',to_date('26.04.01','DD.MM.RR'),0,to_date('01.01.06','DD.MM.RR'),100,'Invoiced Sales Margin','Difference between Limit and Actual price','SELECT SUM((il.PriceActual-il.PriceLimit)*QtyInvoiced)
FROM RV_C_Invoice C_Invoice
INNER JOIN RV_C_InvoiceLine il ON (C_Invoice.C_Invoice_ID=il.C_Invoice_ID)','WHERE C_Invoice.IsSOTrx=''Y'' AND C_Invoice.Processed=''Y''','C_Invoice.DateInvoiced','C_Invoice.AD_Org_ID','C_Invoice.C_BPartner_ID','il.M_Product_ID',318,'C_Invoice.C_Invoice_ID','D');
Insert into "PA_MEASURECALC" ("PA_MEASURECALC_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","SELECTCLAUSE","WHERECLAUSE","DATECOLUMN","ORGCOLUMN","BPARTNERCOLUMN","PRODUCTCOLUMN","AD_TABLE_ID","KEYCOLUMN","ENTITYTYPE") values (103,0,0,'Y',to_date('26.04.01','DD.MM.RR'),0,to_date('25.12.05','DD.MM.RR'),100,'Number of Customers','Number of (new) customers','SELECT COUNT(*)
FROM C_BPartner','WHERE IsCustomer=''Y''','Created','AD_Org_ID','C_BPartner_ID',null,291,'C_BPartner_ID','D');
Insert into "PA_MEASURECALC" ("PA_MEASURECALC_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","SELECTCLAUSE","WHERECLAUSE","DATECOLUMN","ORGCOLUMN","BPARTNERCOLUMN","PRODUCTCOLUMN","AD_TABLE_ID","KEYCOLUMN","ENTITYTYPE") values (104,0,0,'Y',to_date('25.12.05','DD.MM.RR'),100,to_date('01.01.06','DD.MM.RR'),100,'Invoiced Paid Quantities','Invoiced paid quantities','SELECT SUM(il.QtyInvoiced)
FROM RV_C_Invoice C_Invoice
INNER JOIN RV_C_InvoiceLine il ON (C_Invoice.C_Invoice_ID=il.C_Invoice_ID)','WHERE C_Invoice.IsSOTrx=''Y'' AND C_Invoice.Processed=''Y'' AND C_Invoice.IsPaid=''Y''
','C_Invoice.DateInvoiced','C_Invoice.AD_Org_ID','C_Invoice.C_BPartner_ID','il.M_Product_ID',318,'C_Invoice.C_Invoice_ID','D');
Insert into "PA_MEASURECALC" ("PA_MEASURECALC_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","SELECTCLAUSE","WHERECLAUSE","DATECOLUMN","ORGCOLUMN","BPARTNERCOLUMN","PRODUCTCOLUMN","AD_TABLE_ID","KEYCOLUMN","ENTITYTYPE") values (105,0,0,'Y',to_date('01.01.06','DD.MM.RR'),100,to_date('01.01.06','DD.MM.RR'),100,'Open Invoice Amount','Open Invoice Amount in Accounting Currency','SELECT COALESCE(SUM(currencyBase(invoiceOpen(C_Invoice_ID, C_InvoicePaySchedule_ID),C_Currency_ID, DateAcct, AD_Client_ID, AD_Org_ID)),0)
FROM C_Invoice_v C_Invoice','WHERE IsSOTrx=''Y'' AND Processed=''Y''','DateInvoiced','AD_Org_ID','C_BPartner_ID',null,318,'C_Invoice_ID','D');
ALTER TABLE "PA_MEASURE"
ADD ( "PA_BENCHMARK_ID" NUMBER(10,0),
"PA_RATIO_ID" NUMBER(10,0),
"PA_HIERARCHY_ID" NUMBER(10,0),
"MEASUREDATATYPE" CHAR(1 BYTE) NOT NULL ENABLE,
"R_REQUESTTYPE_ID" NUMBER(10,0),
"C_PROJECTTYPE_ID" NUMBER(10,0)
) ;
ALTER TABLE "PA_MEASURE"
ADD CONSTRAINT "PABENCHMARK_PAMEASURE" FOREIGN KEY ("PA_BENCHMARK_ID")
REFERENCES "PA_BENCHMARK" ("PA_BENCHMARK_ID");
ALTER TABLE "PA_MEASURE"
ADD CONSTRAINT "PAHIERARCHY_PAMEASURE" FOREIGN KEY ("PA_HIERARCHY_ID")
REFERENCES "PA_HIERARCHY" ("PA_HIERARCHY_ID");
ALTER TABLE "PA_MEASURE"
ADD CONSTRAINT "PARATIO_PAMEASURE" FOREIGN KEY ("PA_RATIO_ID")
REFERENCES "PA_RATIO" ("PA_RATIO_ID");
/* INSERTING into PA_MEASURE */
Insert into "PA_MEASURE" ("PA_MEASURE_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","MEASURETYPE","MANUALACTUAL","MANUALNOTE","CALCULATIONCLASS","PA_MEASURECALC_ID","PA_BENCHMARK_ID","PA_RATIO_ID","PA_HIERARCHY_ID","MEASUREDATATYPE","R_REQUESTTYPE_ID","C_PROJECTTYPE_ID") values (102,11,0,'Y',to_date('01.01.06','DD.MM.RR'),100,to_date('01.01.06','DD.MM.RR'),100,'Open Invoice Amount',null,'C',0,null,null,105,null,null,null,'S',null,null);
Insert into "PA_MEASURE" ("PA_MEASURE_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","MEASURETYPE","MANUALACTUAL","MANUALNOTE","CALCULATIONCLASS","PA_MEASURECALC_ID","PA_BENCHMARK_ID","PA_RATIO_ID","PA_HIERARCHY_ID","MEASUREDATATYPE","R_REQUESTTYPE_ID","C_PROJECTTYPE_ID") values (103,11,0,'Y',to_date('20.01.06','DD.MM.RR'),100,to_date('20.01.06','DD.MM.RR'),100,'Service Requests (Time)',null,'Q',0,null,null,null,null,null,null,'T',101,null);
Insert into "PA_MEASURE" ("PA_MEASURE_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","MEASURETYPE","MANUALACTUAL","MANUALNOTE","CALCULATIONCLASS","PA_MEASURECALC_ID","PA_BENCHMARK_ID","PA_RATIO_ID","PA_HIERARCHY_ID","MEASUREDATATYPE","R_REQUESTTYPE_ID","C_PROJECTTYPE_ID") values (104,11,0,'Y',to_date('20.01.06','DD.MM.RR'),100,to_date('20.01.06','DD.MM.RR'),100,'Service Requests (Status)',null,'Q',0,null,null,null,null,null,null,'S',101,null);
Insert into "PA_MEASURE" ("PA_MEASURE_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","NAME","DESCRIPTION","MEASURETYPE","MANUALACTUAL","MANUALNOTE","CALCULATIONCLASS","PA_MEASURECALC_ID","PA_BENCHMARK_ID","PA_RATIO_ID","PA_HIERARCHY_ID","MEASUREDATATYPE","R_REQUESTTYPE_ID","C_PROJECTTYPE_ID") values (101,11,0,'Y',to_date('25.12.05','DD.MM.RR'),100,to_date('26.12.05','DD.MM.RR'),101,'Invoices Gross Revenue',null,'C',0,null,null,101,null,null,null,'T',null,null);
ALTER TABLE "PA_GOAL"
ADD ( "AD_USER_ID" NUMBER(10,0),
"PA_COLORSCHEMA_ID" NUMBER(10,0) NOT NULL ENABLE,
"PA_GOALPARENT_ID" NUMBER(10,0),
"MEASURESCOPE" CHAR(1 BYTE) NOT NULL ENABLE,
"MEASUREDISPLAY" CHAR(1 BYTE),
"DATEFROM" DATE,
"DATETO" DATE,
"AD_ROLE_ID" NUMBER(10,0)
) ;
ALTER TABLE "PA_GOAL"
ADD CONSTRAINT "ADUSER_PAGOAL" FOREIGN KEY ("AD_USER_ID")
REFERENCES "AD_USER" ("AD_USER_ID");
ALTER TABLE "PA_GOAL"
ADD CONSTRAINT "PACOLORSCHEMA_PAGOAL" FOREIGN KEY ("PA_COLORSCHEMA_ID")
REFERENCES "PA_COLORSCHEMA" ("PA_COLORSCHEMA_ID");
ALTER TABLE "PA_GOAL"
ADD CONSTRAINT "PAGOALPARENT_PAGOAL" FOREIGN KEY ("PA_GOALPARENT_ID")
REFERENCES "PA_GOAL" ("PA_GOAL_ID");
/* INSERTING into PA_GOAL */
Insert into "PA_GOAL" ("PA_GOAL_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","SEQNO","NAME","DESCRIPTION","NOTE","AD_USER_ID","PA_COLORSCHEMA_ID","ISSUMMARY","PA_GOALPARENT_ID","PA_MEASURE_ID","RELATIVEWEIGHT","MEASURETARGET","MEASURESCOPE","MEASUREDISPLAY","DATEFROM","DATETO","MEASUREACTUAL","GOALPERFORMANCE","DATELASTRUN","AD_ROLE_ID") values (101,11,0,'Y',to_date('23.12.05','DD.MM.RR'),100,to_date('11.02.06','DD.MM.RR'),100,0,'Invoice Revenue','100k in Revenue',null,null,100,'N',null,101,1,100000,'1','5',null,null,0,0,to_date('11.02.06','DD.MM.RR'),null);
Insert into "PA_GOAL" ("PA_GOAL_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","SEQNO","NAME","DESCRIPTION","NOTE","AD_USER_ID","PA_COLORSCHEMA_ID","ISSUMMARY","PA_GOALPARENT_ID","PA_MEASURE_ID","RELATIVEWEIGHT","MEASURETARGET","MEASURESCOPE","MEASUREDISPLAY","DATEFROM","DATETO","MEASUREACTUAL","GOALPERFORMANCE","DATELASTRUN","AD_ROLE_ID") values (102,11,0,'Y',to_date('01.01.06','DD.MM.RR'),100,to_date('11.02.06','DD.MM.RR'),100,0,'Open Invoices','Open Invoices max $1000',null,null,101,'N',null,102,1,1000,'0','5',null,null,412.85,0.41285,to_date('11.02.06','DD.MM.RR'),null);
Insert into "PA_GOAL" ("PA_GOAL_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","SEQNO","NAME","DESCRIPTION","NOTE","AD_USER_ID","PA_COLORSCHEMA_ID","ISSUMMARY","PA_GOALPARENT_ID","PA_MEASURE_ID","RELATIVEWEIGHT","MEASURETARGET","MEASURESCOPE","MEASUREDISPLAY","DATEFROM","DATETO","MEASUREACTUAL","GOALPERFORMANCE","DATELASTRUN","AD_ROLE_ID") values (104,11,0,'Y',to_date('20.01.06','DD.MM.RR'),100,to_date('11.02.06','DD.MM.RR'),100,0,'Service Requests (Quarter)','Open Service Requests in Time',null,null,101,'N',null,103,1,10,'3',null,null,null,0,0,to_date('11.02.06','DD.MM.RR'),null);
Insert into "PA_GOAL" ("PA_GOAL_ID","AD_CLIENT_ID","AD_ORG_ID","ISACTIVE","CREATED","CREATEDBY","UPDATED","UPDATEDBY","SEQNO","NAME","DESCRIPTION","NOTE","AD_USER_ID","PA_COLORSCHEMA_ID","ISSUMMARY","PA_GOALPARENT_ID","PA_MEASURE_ID","RELATIVEWEIGHT","MEASURETARGET","MEASURESCOPE","MEASUREDISPLAY","DATEFROM","DATETO","MEASUREACTUAL","GOALPERFORMANCE","DATELASTRUN","AD_ROLE_ID") values (105,11,0,'Y',to_date('20.01.06','DD.MM.RR'),100,to_date('11.02.06','DD.MM.RR'),100,0,'Total Open Service Requests','Open Service Requests by Status',null,null,101,'N',null,104,1,10,'0',null,null,null,1,0.1,to_date('11.02.06','DD.MM.RR'),null);
/* BEWARE ALL ENTRIES IN T_INVENTORYVALUE ARE DELETED*/
DELETE FROM "T_INVENTORYVALUE";
ALTER TABLE "T_INVENTORYVALUE"
ADD ( "M_ATTRIBUTESETINSTANCE_ID" NUMBER(10,0) NOT NULL ENABLE,
"COST" NUMBER DEFAULT 0,
"COSTAMT" NUMBER DEFAULT 0,
"M_COSTELEMENT_ID" NUMBER(10,0));
ALTER TABLE "T_INVENTORYVALUE"
ADD CONSTRAINT "MASI_TINVENTORYVALUE" FOREIGN KEY ("M_ATTRIBUTESETINSTANCE_ID")
REFERENCES "M_ATTRIBUTESETINSTANCE" ("M_ATTRIBUTESETINSTANCE_ID");
ALTER TABLE "T_INVENTORYVALUE"
ADD CONSTRAINT "MCOSTELEMENT_TINVENTORYVALUE" FOREIGN KEY ("M_COSTELEMENT_ID")
REFERENCES "M_COSTELEMENT" ("M_COSTELEMENT_ID");
ALTER TABLE "T_INVOICEGL"
ADD ( "GRANDTOTAL" NUMBER DEFAULT 0 NOT NULL ENABLE,
"OPENAMT" NUMBER DEFAULT 0 NOT NULL ENABLE,
"PERCENT" NUMBER,
"AMTSOURCEBALANCE" NUMBER DEFAULT 0 NOT NULL ENABLE,
"AMTACCTBALANCE" NUMBER DEFAULT 0 NOT NULL ENABLE,
"C_DOCTYPEREVAL_ID" NUMBER(10,0),
"ISALLCURRENCIES" CHAR(1 BYTE) DEFAULT 'N' NOT NULL ENABLE);
ALTER TABLE "T_INVOICEGL"
ADD CONSTRAINT "CDOCTYPE_TINVOICEGL" FOREIGN KEY ("C_DOCTYPEREVAL_ID")
REFERENCES "C_DOCTYPE" ("C_DOCTYPE_ID");
COMMENT ON TABLE "T_INVOICEGL" IS 'The real data displayed in T_InvoiceGL_v';
ALTER TABLE "A_ASSET"
ADD ( "LASTMAINTENENCEDATE" DATE,
"NEXTMAINTENENCEDATE" DATE DEFAULT NULL,
"LASTMAINTENANCEUSEUNIT" NUMBER(10,0),
"NEXTMAINTENANCEUSEUNIT" NUMBER(10,0),
"LEASETERMINATIONDATE" DATE DEFAULT NULL,
"LEASE_BPARTNER_ID" NUMBER(10,0) DEFAULT NULL,
"LASTMAINTENANCENOTE" NVARCHAR2(60) DEFAULT NULL,
"LASTMAINTENANCEDATE" DATE DEFAULT NULL,
"LASTMAINTENANCEUNIT" NUMBER(10,0) DEFAULT NULL,
"NEXTMAINTENENCEUNIT" NUMBER(10,0) DEFAULT NULL);
ALTER TABLE "C_VALIDCOMBINATION"
ADD ( "C_SUBACCT_ID" NUMBER(10,0),
"USERELEMENT1_ID" NUMBER(10,0),
"USERELEMENT2_ID" NUMBER(10,0) ) ;
DROP INDEX "C_VALIDCOMBINATION_ALT";
CREATE UNIQUE INDEX "C_VALIDCOMBINATION_ALT" ON "C_VALIDCOMBINATION" ("C_ACCTSCHEMA_ID", "AD_ORG_ID", "ACCOUNT_ID", "C_SUBACCT_ID", "M_PRODUCT_ID", "C_BPARTNER_ID", "AD_ORGTRX_ID", "C_LOCFROM_ID", "C_LOCTO_ID", "C_SALESREGION_ID", "C_PROJECT_ID", "C_CAMPAIGN_ID", "C_ACTIVITY_ID", "USER1_ID", "USER2_ID", "USERELEMENT1_ID", "USERELEMENT2_ID")
;
ALTER TABLE "FACT_ACCT"
ADD ( "C_SUBACCT_ID" NUMBER(10,0),
"USERELEMENT1_ID" NUMBER(10,0),
"USERELEMENT2_ID" NUMBER(10,0)) ;
ALTER TABLE "I_BPARTNER"
ADD ( "R_INTERESTAREA_ID" NUMBER(10,0),
"INTERESTAREANAME" NVARCHAR2(40)) ;
ALTER TABLE "M_MATCHINV"
ADD ( "DESCRIPTION" NVARCHAR2(255)) ;
ALTER TABLE "M_MATCHPO"
ADD ( "PRICEMATCHDIFFERENCE" NUMBER,
"ISAPPROVED" CHAR(1 BYTE) DEFAULT 'Y',
"DESCRIPTION" NVARCHAR2(255)) ;
/* REPLACE_ME: set 1000017 to your clients C_DOCTYPE_ID for Purchase Requisition */
/* find it by: select C_DOCTYPE_ID from C_DOCTYPE where name='Purchase Requisition' and AD_Client_ID!=11; */
ALTER TABLE "M_REQUISITION"
ADD ( "C_DOCTYPE_ID" NUMBER(10,0) DEFAULT 1000017 NOT NULL ) ;
ALTER TABLE "M_REQUISITION"
MODIFY "C_DOCTYPE_ID" NUMBER(10,0) DEFAULT NULL NULL;
ALTER TABLE "M_REQUISITION"
MODIFY "C_DOCTYPE_ID" NUMBER(10,0) NOT NULL;
ALTER TABLE "M_REQUISITIONLINE"
ADD ( "C_CHARGE_ID" NUMBER(10,0)) ;
ALTER TABLE "R_REQUEST"
ADD ( "TASKSTATUS" CHAR(1 BYTE),
"QTYPLAN" NUMBER,
"DATECOMPLETEPLAN" DATE,
"DATESTARTPLAN" DATE,
"M_FIXCHANGENOTICE_ID" NUMBER(10,0) ) ;
ALTER TABLE "R_REQUEST"
ADD CONSTRAINT "MFIXCHANGENOTICE_RREQUEST" FOREIGN KEY ("M_FIXCHANGENOTICE_ID")
REFERENCES "M_CHANGENOTICE" ("M_CHANGENOTICE_ID");
ALTER TABLE "R_REQUESTACTION"
ADD ( "TASKSTATUS" CHAR(1 BYTE),
"DATECOMPLETEPLAN" DATE,
"QTYPLAN" NUMBER,
"QTYSPENT" NUMBER,
"STARTDATE" DATE,
"ENDDATE" DATE,
"DATESTARTPLAN" DATE,
"QTYINVOICED" NUMBER,
"M_PRODUCTSPENT_ID" NUMBER(10,0));
/* REPLACE_ME: set 100 to your clients default R_STATUSCATEGORY_ID should be 100 and can be changed later by sql anyway*/
ALTER TABLE "R_REQUESTTYPE"
ADD ( "R_STATUSCATEGORY_ID" NUMBER(10,0) DEFAULT 100 NOT NULL) ;
ALTER TABLE "R_REQUESTTYPE"
MODIFY ( "R_STATUSCATEGORY_ID" NUMBER(10,0) DEFAULT NULL NULL) ;
ALTER TABLE "R_REQUESTTYPE"
MODIFY ( "R_STATUSCATEGORY_ID" NUMBER(10,0) NOT NULL) ;
/* REPLACE_ME: set 100 to your clients default R_STATUSCATEGORY_ID */
ALTER TABLE "R_STATUS"
ADD ( "SEQNO" NUMBER(10,0) DEFAULT 0 NOT NULL,
"R_STATUSCATEGORY_ID" NUMBER(10,0) DEFAULT 100 NOT NULL ) ;
ALTER TABLE "R_STATUS"
MODIFY ( "R_STATUSCATEGORY_ID" NUMBER(10,0) DEFAULT NULL NULL) ;
ALTER TABLE "R_STATUS"
MODIFY ( "R_STATUSCATEGORY_ID" NUMBER(10,0) NOT NULL) ;
ALTER TABLE "C_BP_GROUP"
ADD ( "M_PRICELIST_ID" NUMBER(10,0),
"PO_PRICELIST_ID" NUMBER(10,0),
"M_DISCOUNTSCHEMA_ID" NUMBER(10,0),
"PO_DISCOUNTSCHEMA_ID" NUMBER(10,0),
"CREDITWATCHPERCENT" NUMBER,
"PRICEMATCHTOLERANCE" NUMBER);
ALTER TABLE "C_BP_GROUP"
ADD CONSTRAINT "MDISCOUNTSCHEMAPO_CBPGROUP" FOREIGN KEY ("PO_DISCOUNTSCHEMA_ID")
REFERENCES "M_DISCOUNTSCHEMA" ("M_DISCOUNTSCHEMA_ID") ON DELETE SET NULL;
ALTER TABLE "C_BP_GROUP"
ADD CONSTRAINT "MDISCOUNTSCHEMA_CBPGROUP" FOREIGN KEY ("M_DISCOUNTSCHEMA_ID")
REFERENCES "M_DISCOUNTSCHEMA" ("M_DISCOUNTSCHEMA_ID") ON DELETE SET NULL;
ALTER TABLE "C_BP_GROUP"
ADD CONSTRAINT "MPRICELISTPO_CBPGROUP" FOREIGN KEY ("PO_PRICELIST_ID")
REFERENCES "M_PRICELIST" ("M_PRICELIST_ID") ON DELETE SET NULL;
ALTER TABLE "C_BP_GROUP"
ADD CONSTRAINT "MPRICELIST_CBPGROUP" FOREIGN KEY ("M_PRICELIST_ID")
REFERENCES "M_PRICELIST" ("M_PRICELIST_ID") ON DELETE SET NULL;
ALTER TABLE "C_CHARGE"
ADD ( "C_BPARTNER_ID" NUMBER(10,0));
ALTER TABLE "AD_USER"
ADD ( "CONNECTIONPROFILE" CHAR(1 BYTE)) ;
ALTER TABLE "AD_WF_NODE"
ADD ( "EMAILRECIPIENT" CHAR(1 BYTE),
"EMAIL" NVARCHAR2(60),
"R_MAILTEXT_ID" NUMBER(10,0)) ;
ALTER TABLE "C_ACCTSCHEMA_ELEMENT"
ADD ( "AD_COLUMN_ID" NUMBER(10,0)) ;
ALTER TABLE "A_ASSET_GROUP"
ADD ( "ISTRACKISSUES" CHAR(1 BYTE) DEFAULT 'N' NOT NULL ) ;
ALTER TABLE "AD_PRINTPAPER"
ADD ( "SIZEX" NUMBER DEFAULT NULL,
"SIZEY" NUMBER DEFAULT NULL,
"DIMENSIONUNITS" CHAR(1 BYTE)) ;
ALTER TABLE "AD_ROLE"
ADD ( "CONNECTIONPROFILE" CHAR(1 BYTE)) ;
ALTER TABLE "AD_SYSTEM"
ADD ("ISAUTOERRORREPORT" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL,
"RECORD_ID" NUMBER(10,0),
"SUPPORTEXPDATE" DATE,
"PROCESSING" CHAR(1 BYTE),
"SUPPORTEMAIL" NVARCHAR2(60),
"ISALLOWSTATISTICS" CHAR(1 BYTE) DEFAULT 'Y' NOT NULL,
"STATISTICSINFO" NVARCHAR2(60),
"PROFILEINFO" NVARCHAR2(60),
"OLDNAME" NVARCHAR2(60),
"DESCRIPTION" NVARCHAR2(255),
"SYSTEMSTATUS" CHAR(1 BYTE) DEFAULT 'E' NOT NULL ) ;
COMMIT;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,618 @@
-- missing statements for old (0.5.1 or below) migration script
-- please apply the following statements to the migrated db.
ALTER TABLE AD_CLIENTINFO
DROP (
PA_GOAL_ID
);
ALTER TABLE AD_WORKBENCH
DROP (
PA_GOAL_ID
);
ALTER TABLE AD_USER
DROP (
PA_GOAL_ID,
PA_GOALPRIVATE_ID
);
ALTER TABLE PA_ACHIEVEMENT
DROP (
AD_USER_ID,
ACHIVENOTE,
ISSUMMARY,
PARENT_ID
);
ALTER TABLE PA_GOAL
DROP (
PARENT_ID
);
ALTER TABLE PA_MEASURE
DROP (
PA_ACHIEVEMENT_ID,
DATEFROM,
DATETO,
ORG_ID,
C_BP_GROUP_ID,
C_BPARTNER_ID,
M_PRODUCT_CATEGORY_ID,
M_PRODUCT_ID
);
SET DEFINE OFF;
INSERT INTO R_STATUSCATEGORY(R_STATUSCATEGORY_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,HELP,ISDEFAULT)values(100,11,0,'Y',to_date('2006-01-15','RRRR-MM-DD'),100,to_date('2006-01-15','RRRR-MM-DD'),100,'Default','Default Request Status',null,'Y');
INSERT INTO PA_COLORSCHEMA(PA_COLORSCHEMA_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,MARK1PERCENT,AD_PRINTCOLOR1_ID,MARK2PERCENT,AD_PRINTCOLOR2_ID,MARK3PERCENT,AD_PRINTCOLOR3_ID,MARK4PERCENT,AD_PRINTCOLOR4_ID)values(101,0,0,'Y',to_date('2005-12-31','RRRR-MM-DD'),100,to_date('2005-12-31','RRRR-MM-DD'),100,'Green (50) - Yellow (100) - Red','< 100% is the goal',50,103,100,113,9999,102,0,null);
INSERT INTO PA_COLORSCHEMA(PA_COLORSCHEMA_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,MARK1PERCENT,AD_PRINTCOLOR1_ID,MARK2PERCENT,AD_PRINTCOLOR2_ID,MARK3PERCENT,AD_PRINTCOLOR3_ID,MARK4PERCENT,AD_PRINTCOLOR4_ID)values(100,0,0,'Y',to_date('2005-12-23','RRRR-MM-DD'),100,to_date('2005-12-31','RRRR-MM-DD'),100,'Red (50) - Yellow (100) - Green','>= 100% is the goal',50,102,100,113,9999,103,0,null);
INSERT INTO PA_RATIO(PA_RATIO_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,HELP,C_ACCTSCHEMA_ID)values(100,11,11,'Y',to_date('2005-12-26','RRRR-MM-DD'),101,to_date('2005-12-26','RRRR-MM-DD'),101,'Fxed Assets',null,null,101);
INSERT INTO C_BANKACCOUNT(C_BANKACCOUNT_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,C_BANK_ID,C_CURRENCY_ID,BANKACCOUNTTYPE,ACCOUNTNO,CURRENTBALANCE,CREDITLIMIT,ISDEFAULT,IBAN,DESCRIPTION,BBAN)values(101,11,0,'Y',to_date('2005-11-21','RRRR-MM-DD'),100,to_date('2006-01-01','RRRR-MM-DD'),100,100,100,'C','5678',0,0,'N',null,'With Optimal Payments',null);
INSERT INTO C_PAYMENTPROCESSOR(C_PAYMENTPROCESSOR_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_BANKACCOUNT_ID,AD_SEQUENCE_ID,PAYPROCESSORCLASS,USERID,PASSWORD,HOSTADDRESS,HOSTPORT,PROXYADDRESS,PROXYPORT,PROXYLOGON,PROXYPASSWORD,ACCEPTVISA,ACCEPTMC,ACCEPTAMEX,ACCEPTDINERS,ACCEPTDISCOVER,ACCEPTCORPORATE,ACCEPTCHECK,ACCEPTATM,REQUIREVV,C_CURRENCY_ID,COSTPERTRX,COMMISSION,PARTNERID,VENDORID,MINIMUMAMT,ACCEPTDIRECTDEBIT,ACCEPTDIRECTDEPOSIT)values(101,11,0,'N',to_date('2005-11-21','RRRR-MM-DD'),100,to_date('2006-01-01','RRRR-MM-DD'),100,'Optimal Payments',null,101,null,'org.compiere.model.PP_Optimal','vrn400000000','vrn400000000','test-payflow.verisign.com',443,null,0,null,null,'N','N','N','N','N','N','N','N','N',100,0,0,'wfb','vrn400000000',0,'N','N');
INSERT INTO C_ELEMENTVALUE(C_ELEMENTVALUE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,VALUE,NAME,DESCRIPTION,ACCOUNTTYPE,ACCOUNTSIGN,ISDOCCONTROLLED,C_ELEMENT_ID,ISSUMMARY,VALIDFROM,VALIDTO,POSTACTUAL,POSTBUDGET,POSTENCUMBRANCE,POSTSTATISTICAL,ISBANKACCOUNT,C_BANKACCOUNT_ID,ISFOREIGNCURRENCY,C_CURRENCY_ID)values(783,11,11,'Y',to_date('2005-12-14','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,'7','7-Expenses','7-Expenses','E','N','N',105,'Y',null,null,'Y','Y','Y','Y','N',null,'N',null);
INSERT INTO PA_REPORTLINESET(PA_REPORTLINESET_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,PROCESSING)values(104,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-12','RRRR-MM-DD'),100,'Income Statement for Cash Flow','Income Statement for Cash Flow','N');
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(201,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,104,'Depreciation Expense summarized',459,'Depreciation Expense summarized','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(205,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,104,'Loss on sale of fixed asset',465,'Loss on sale of fixed asset','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(206,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,104,'Receivables(A/R, loans, taxes) summarized',490,'Receivables(A/R, loans, taxes) summarized','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(207,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,104,'Inventory summarized',495,'Inventory summarized','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(208,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,104,'Prepayments summarized',500,'Prepayments summarized','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(209,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,104,'Accounts Payable summarized',467,'Accounts Payable summarized','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(212,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,104,'Investments activities summarized',530,'Investments activities summarized','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(214,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,104,'Fixed Asset activity summarized',540,'Fixed Asset activity summarized','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(215,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,104,'Equipment activity summarized',545,'Equipment activity summarized','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(218,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,104,'Loss on sale of fixed asset',521,'Loss on sale of fixed asset','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(219,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,104,'Gain in sale of fixed asset',520,'Gain in sale of fixed asset','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(220,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,104,'Net gain on sale of fixed assets',522,'Net gain on sale of fixed assets','Y',null,'N','C','S',218,219,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(221,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Accum. Depreciation summarized',461,'Accum. Depreciation summarized','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(222,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Accum. Depreciation summarized for Investments',536,'Accum. Depreciation summarized for Investments','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(223,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,104,'Common Stock summarized',560,'Common Stock summarized','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(224,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,104,'Cash Dividends summarized',565,'Cash Dividends summarized','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(225,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,104,'Net cash from financing activity',570,'Net cash from financing activity','Y',null,'N','C','R',223,224,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(231,11,0,'Y',to_date('2005-12-23','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,104,'Amoritization summarized',460,'Amoritization summarized','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(239,11,0,'Y',to_date('2006-01-05','RRRR-MM-DD'),101,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Change in Deposits',562,'Change in Deposits','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(230,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Cash summarized',610,'Cash summarized','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(232,11,0,'Y',to_date('2005-12-23','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,104,'Uninsured Casualty Loss ',462,'Uninsured Casualty Loss','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(233,11,0,'Y',to_date('2005-12-23','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,104,'Unrealized Loss',463,'Unrealized Loss','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(234,11,0,'Y',to_date('2005-12-23','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,104,'Capital Loss',464,'Capital Loss','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(235,11,0,'Y',to_date('2005-12-23','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,104,'Unrealized Gain',505,'Unrealized Gain','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(236,11,0,'Y',to_date('2005-12-23','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,104,'Fixed Asset Sale Gain',506,'Fixed Asset Sale Gain','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(237,11,0,'Y',to_date('2006-01-05','RRRR-MM-DD'),101,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Currency Balancing summarized',468,'Currency Balancing summarized','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(238,11,0,'Y',to_date('2006-01-05','RRRR-MM-DD'),101,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Sub total asset changes',550,'Sub total asset changes','Y',null,'N','C','R',222,215,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(240,11,0,'Y',to_date('2006-01-05','RRRR-MM-DD'),101,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Unrealized Gain summarized for total cash flow',592,'Unrealized Gain summarized for total cash flow','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(241,11,0,'Y',to_date('2006-01-05','RRRR-MM-DD'),101,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Unrealized Losses summarized for total Cash flow',593,'Unrealized Losses summarized for total Cash flow','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(242,11,0,'Y',to_date('2006-01-05','RRRR-MM-DD'),101,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Currency Balancing summarized for total Cash flow',594,'Unrealized Balancing summarized for total Cash flow','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(243,11,0,'Y',to_date('2006-01-05','RRRR-MM-DD'),101,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Net total effect of change in Direct Exchange rate',595,'Net total effect of change in Direct Exchange rate','Y',null,'N','C','R',240,242,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(160,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-12','RRRR-MM-DD'),100,104,'4',251,'Sales','Y',null,'N','S',null,null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(162,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-12','RRRR-MM-DD'),100,104,'5',262,'Cost of Goods Sold','Y',null,'N','S',null,null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(167,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,104,'Gross Margin',286,'Gross Margin','Y',null,'N','C','S',160,162,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(177,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-12','RRRR-MM-DD'),100,104,'6',364,'6-Expenses','Y',null,'N','S',null,null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(190,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,104,'80',425,'Other Income summarized ','Y',null,'N','S',null,null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(192,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,104,'82',427,'Other Expense','Y',null,'N','S',null,null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(194,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Net other income (loss)',429,'Net Other Income (loss)','Y',null,'N','C','S',190,192,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(195,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,104,'89',450,'Income Tax & Summary','Y',null,'N','S',null,null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(199,11,0,'Y',to_date('2005-12-14','RRRR-MM-DD'),100,to_date('2005-12-14','RRRR-MM-DD'),100,104,'7-Expenses',400,'Summary of all 7-Expenses','Y',null,'N','S','A',null,null,null,null,null);
INSERT INTO PA_REPORTCOLUMNSET(PA_REPORTCOLUMNSET_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,PROCESSING)values(102,11,11,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,'Net Period Activity','Net Period Activity','N');
INSERT INTO PA_REPORTCOLUMN(PA_REPORTCOLUMN_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTCOLUMNSET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,POSTINGTYPE,GL_BUDGET_ID,COLUMNTYPE,RELATIVEPERIOD,CURRENCYTYPE,CALCULATIONTYPE,AMOUNTTYPE,C_CURRENCY_ID,ISADHOCCONVERSION,OPER_1_ID,OPER_2_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(112,11,11,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,102,'Beginning period ',30,'Beginning Period','Y','A',null,'R',-1,null,'A','BP',null,'N',null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTCOLUMN(PA_REPORTCOLUMN_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTCOLUMNSET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,POSTINGTYPE,GL_BUDGET_ID,COLUMNTYPE,RELATIVEPERIOD,CURRENCYTYPE,CALCULATIONTYPE,AMOUNTTYPE,C_CURRENCY_ID,ISADHOCCONVERSION,OPER_1_ID,OPER_2_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(113,11,11,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,102,'End period',20,'End period','Y','A',null,'R',0,null,'A','BP',null,'N',null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTCOLUMN(PA_REPORTCOLUMN_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTCOLUMNSET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,POSTINGTYPE,GL_BUDGET_ID,COLUMNTYPE,RELATIVEPERIOD,CURRENCYTYPE,CALCULATIONTYPE,AMOUNTTYPE,C_CURRENCY_ID,ISADHOCCONVERSION,OPER_1_ID,OPER_2_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(114,11,11,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,102,'Net period',10,'Net period','Y','A',null,'C',0,null,'S','BP',null,'N',113,112,null,null,null,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTCOLUMN(PA_REPORTCOLUMN_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTCOLUMNSET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,POSTINGTYPE,GL_BUDGET_ID,COLUMNTYPE,RELATIVEPERIOD,CURRENCYTYPE,CALCULATIONTYPE,AMOUNTTYPE,C_CURRENCY_ID,ISADHOCCONVERSION,OPER_1_ID,OPER_2_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(115,11,11,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,102,'Period debits',40,null,'Y','A',null,'R',0,null,'A','DP',null,'N',null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTCOLUMN(PA_REPORTCOLUMN_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTCOLUMNSET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,POSTINGTYPE,GL_BUDGET_ID,COLUMNTYPE,RELATIVEPERIOD,CURRENCYTYPE,CALCULATIONTYPE,AMOUNTTYPE,C_CURRENCY_ID,ISADHOCCONVERSION,OPER_1_ID,OPER_2_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(116,11,11,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,102,'Period credits only',50,'Period credits only','Y','A',null,'R',0,null,'A','CP',null,'N',null,null,null,null,null,null,null,null,null,null,null,null);
INSERT INTO PA_REPORT(PA_REPORT_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,PA_REPORTLINESET_ID,PA_REPORTCOLUMNSET_ID,C_ACCTSCHEMA_ID,C_CALENDAR_ID,PROCESSING,AD_PRINTFORMAT_ID,LISTSOURCES,LISTTRX)values(102,11,11,'Y',to_date('2006-01-05','RRRR-MM-DD'),101,to_date('2006-01-05','RRRR-MM-DD'),101,'Statement of Cash Flows','Statement of Cash Flows',104,102,101,102,'N',166,'N','N');
INSERT INTO PA_RATIOELEMENT(PA_RATIOELEMENT_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,PA_RATIO_ID,RATIOOPERAND,RATIOELEMENTTYPE,ACCOUNT_ID,PA_RATIOUSED_ID,PA_MEASURECALC_ID,CONSTANTVALUE,SEQNO,POSTINGTYPE)values(100,11,11,'Y',to_date('2005-12-26','RRRR-MM-DD'),101,to_date('2005-12-26','RRRR-MM-DD'),101,'Long Term Investments',null,100,'P','A',537,null,null,0,10,'A');
INSERT INTO PA_RATIOELEMENT(PA_RATIOELEMENT_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,PA_RATIO_ID,RATIOOPERAND,RATIOELEMENTTYPE,ACCOUNT_ID,PA_RATIOUSED_ID,PA_MEASURECALC_ID,CONSTANTVALUE,SEQNO,POSTINGTYPE)values(101,11,11,'Y',to_date('2005-12-26','RRRR-MM-DD'),101,to_date('2005-12-26','RRRR-MM-DD'),101,'Inventory',null,100,'P','A',541,null,null,0,0,'A');
INSERT INTO PA_RATIOELEMENT(PA_RATIOELEMENT_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,PA_RATIO_ID,RATIOOPERAND,RATIOELEMENTTYPE,ACCOUNT_ID,PA_RATIOUSED_ID,PA_MEASURECALC_ID,CONSTANTVALUE,SEQNO,POSTINGTYPE)values(102,11,11,'Y',to_date('2005-12-26','RRRR-MM-DD'),101,to_date('2005-12-26','RRRR-MM-DD'),101,'Land and Building',null,100,'P','A',554,null,null,0,0,null);
INSERT INTO PA_MEASURECALC(PA_MEASURECALC_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,SELECTCLAUSE,WHERECLAUSE,DATECOLUMN,ORGCOLUMN,BPARTNERCOLUMN,PRODUCTCOLUMN,AD_TABLE_ID,KEYCOLUMN,ENTITYTYPE)values(104,0,0,'Y',to_date('2005-12-25','RRRR-MM-DD'),100,to_date('2006-01-01','RRRR-MM-DD'),100,'Invoiced Paid Quantities','Invoiced paid quantities','SELECT SUM(il.QtyInvoiced) FROM RV_C_Invoice C_Invoice INNER JOIN RV_C_InvoiceLine il ON (C_Invoice.C_Invoice_ID=il.C_Invoice_ID)','WHERE C_Invoice.IsSOTrx=''Y'' AND C_Invoice.Processed=''Y'' AND C_Invoice.IsPaid=''Y'' ','C_Invoice.DateInvoiced','C_Invoice.AD_Org_ID','C_Invoice.C_BPartner_ID','il.M_Product_ID',318,'C_Invoice.C_Invoice_ID','D');
INSERT INTO PA_MEASURECALC(PA_MEASURECALC_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,SELECTCLAUSE,WHERECLAUSE,DATECOLUMN,ORGCOLUMN,BPARTNERCOLUMN,PRODUCTCOLUMN,AD_TABLE_ID,KEYCOLUMN,ENTITYTYPE)values(105,0,0,'Y',to_date('2006-01-01','RRRR-MM-DD'),100,to_date('2006-01-01','RRRR-MM-DD'),100,'Open Invoice Amount','Open Invoice Amount in Accounting Currency','SELECT COALESCE(SUM(currencyBase(invoiceOpen(C_Invoice_ID, C_InvoicePaySchedule_ID),C_Currency_ID, DateAcct, AD_Client_ID, AD_Org_ID)),0) FROM C_Invoice_v C_Invoice','WHERE IsSOTrx=''Y'' AND Processed=''Y''','DateInvoiced','AD_Org_ID','C_BPartner_ID',null,318,'C_Invoice_ID','D');
INSERT INTO PA_MEASURE(PA_MEASURE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,MEASURETYPE,MANUALACTUAL,MANUALNOTE,CALCULATIONCLASS,PA_MEASURECALC_ID,PA_BENCHMARK_ID,PA_RATIO_ID,PA_HIERARCHY_ID,MEASUREDATATYPE,R_REQUESTTYPE_ID,C_PROJECTTYPE_ID)values(101,11,0,'Y',to_date('2005-12-25','RRRR-MM-DD'),100,to_date('2005-12-26','RRRR-MM-DD'),101,'Invoices Gross Revenue',null,'C',0,null,null,101,null,null,null,'T',null,null);
INSERT INTO PA_MEASURE(PA_MEASURE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,MEASURETYPE,MANUALACTUAL,MANUALNOTE,CALCULATIONCLASS,PA_MEASURECALC_ID,PA_BENCHMARK_ID,PA_RATIO_ID,PA_HIERARCHY_ID,MEASUREDATATYPE,R_REQUESTTYPE_ID,C_PROJECTTYPE_ID)values(102,11,0,'Y',to_date('2006-01-01','RRRR-MM-DD'),100,to_date('2006-01-01','RRRR-MM-DD'),100,'Open Invoice Amount',null,'C',0,null,null,105,null,null,null,'S',null,null);
INSERT INTO PA_MEASURE(PA_MEASURE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,MEASURETYPE,MANUALACTUAL,MANUALNOTE,CALCULATIONCLASS,PA_MEASURECALC_ID,PA_BENCHMARK_ID,PA_RATIO_ID,PA_HIERARCHY_ID,MEASUREDATATYPE,R_REQUESTTYPE_ID,C_PROJECTTYPE_ID)values(103,11,0,'Y',to_date('2006-01-20','RRRR-MM-DD'),100,to_date('2006-01-20','RRRR-MM-DD'),100,'Service Requests (Time)',null,'Q',0,null,null,null,null,null,null,'T',101,null);
INSERT INTO PA_MEASURE(PA_MEASURE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,MEASURETYPE,MANUALACTUAL,MANUALNOTE,CALCULATIONCLASS,PA_MEASURECALC_ID,PA_BENCHMARK_ID,PA_RATIO_ID,PA_HIERARCHY_ID,MEASUREDATATYPE,R_REQUESTTYPE_ID,C_PROJECTTYPE_ID)values(104,11,0,'Y',to_date('2006-01-20','RRRR-MM-DD'),100,to_date('2006-01-20','RRRR-MM-DD'),100,'Service Requests (Status)',null,'Q',0,null,null,null,null,null,null,'S',101,null);
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(287,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Hokkaido','Hokkaido',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(288,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Aomori-ken','Aomori-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(289,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Iwate-ken','Iwate-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(290,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Miyagi-ken','Miyagi-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(291,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Akita-ken','Akita-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(292,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Yamagata-ken','Yamagata-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(293,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Fukushima-ken','Fukushima-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(294,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Ibaragi-ken','Ibaragi-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(295,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Tochigi-ken','Tochigi-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(296,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Gunma-ken','Gunma-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(297,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Saitama-ken','Saitama-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(298,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Chiba-ken','Chiba-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(299,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Tokyo-to','Tokyo-to',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(300,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Kanagawa-ken','Kanagawa-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(301,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Niigata-ken','Niigata-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(302,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Toyama-ken','Toyama-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(303,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Ishikawa-ken','Ishikawa-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(304,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Fukui-ken','Fukui-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(305,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Yamanashi-ken','Yamanashi-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(306,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Nagano-ken','Nagano-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(307,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Gifu-ken','Gifu-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(308,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Shizuoka-ken','Shizuoka-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(309,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Aichi-ken','Aichi-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(310,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Mie-ken','Mie-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(311,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Shiga-ken','Shiga-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(312,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Kyoto-fu','Kyoto-fu',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(313,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Osaka-fu','Osaka-fu',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(314,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Hyogo-ken','Hyogo-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(315,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Nara-ken','Nara-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(316,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Wakayama-ken','Wakayama-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(317,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Tottori-ken','Tottori-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(318,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Shimane-ken','Shimane-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(319,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Okayama-ken','Okayama-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(320,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Hiroshima-ken','Hiroshima-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(321,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Yamaguchi-ken','Yamaguchi-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(322,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Tokushima-ken','Tokushima-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(323,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Kagawa-ken','Kagawa-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(324,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Ehime-ken','Ehime-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(325,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Kochi-ken','Kochi-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(326,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Fukuoka-ken','Fukuoka-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(327,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Saga-ken','Saga-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(328,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Nagasaki-ken','Nagasaki-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(329,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Kumamoto-ken','Kumamoto-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(330,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Oita-ken','Oita-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(331,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Miyazaki-ken','Miyazaki-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(332,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Kagoshima-ken','Kagoshima-ken',216,'N');
INSERT INTO C_REGION(C_REGION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,NAME,DESCRIPTION,C_COUNTRY_ID,ISDEFAULT)values(333,0,0,'Y',to_date('2006-02-06','RRRR-MM-DD'),100,to_date('2006-02-06','RRRR-MM-DD'),100,'Okinawa-ken','Okinawa-ken',216,'N');
INSERT INTO R_REQUESTACTION(R_REQUESTACTION_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,R_REQUEST_ID,R_GROUP_ID,R_CATEGORY_ID,R_STATUS_ID,R_RESOLUTION_ID,SALESREP_ID,AD_ROLE_ID,ISESCALATED,ISINVOICED,CONFIDENTIALTYPE,ISSELFSERVICE,PRIORITY,PRIORITYUSER,C_BPARTNER_ID,AD_USER_ID,C_ORDER_ID,C_INVOICE_ID,C_PAYMENT_ID,M_PRODUCT_ID,C_PROJECT_ID,SUMMARY,DATENEXTACTION,C_ACTIVITY_ID,R_REQUESTTYPE_ID,A_ASSET_ID,M_INOUT_ID,M_RMA_ID,NULLCOLUMNS,TASKSTATUS,DATECOMPLETEPLAN,QTYPLAN,QTYSPENT,STARTDATE,ENDDATE,DATESTARTPLAN,QTYINVOICED,M_PRODUCTSPENT_ID)values(101,11,11,'Y',to_date('2006-01-20','RRRR-MM-DD'),100,to_date('2006-01-20','RRRR-MM-DD'),100,100,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,100,null,null,null,'StartDate',null,null,null,null,null,null,null,null,null);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,122,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,123,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,24,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,124,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,24,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,125,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,40,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,126,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,45,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,127,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,12,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,128,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,10,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,129,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,16,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,130,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,20,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,131,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,132,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,133,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,134,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,135,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,136,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,137,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,138,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,139,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,140,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,141,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,142,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,143,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,144,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,145,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,146,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,147,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO M_COST(AD_CLIENT_ID,AD_ORG_ID,M_PRODUCT_ID,M_COSTTYPE_ID,C_ACCTSCHEMA_ID,M_COSTELEMENT_ID,M_ATTRIBUTESETINSTANCE_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,CURRENTCOSTPRICE,CURRENTQTY,CUMULATEDAMT,CUMULATEDQTY,FUTURECOSTPRICE,DESCRIPTION,PERCENT)values(11,0,148,100,101,100,0,'Y',to_date('2005-11-27','RRRR-MM-DD'),100,to_date('2005-11-27','RRRR-MM-DD'),100,0,0,0,0,0,null,0);
INSERT INTO C_BANKACCOUNT_ACCT(C_BANKACCOUNT_ID,C_ACCTSCHEMA_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,B_INTRANSIT_ACCT,B_ASSET_ACCT,B_EXPENSE_ACCT,B_INTERESTREV_ACCT,B_INTERESTEXP_ACCT,B_UNIDENTIFIED_ACCT,B_UNALLOCATEDCASH_ACCT,B_PAYMENTSELECT_ACCT,B_SETTLEMENTGAIN_ACCT,B_SETTLEMENTLOSS_ACCT,B_REVALUATIONGAIN_ACCT,B_REVALUATIONLOSS_ACCT)values(101,101,11,0,'Y',to_date('2005-11-21','RRRR-MM-DD'),100,to_date('2005-11-21','RRRR-MM-DD'),100,257,258,259,260,261,262,286,287,263,264,265,266);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(288,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-12','RRRR-MM-DD'),100,null,160,'AC',null,632,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(290,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-12','RRRR-MM-DD'),100,null,162,'AC',null,429,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(295,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-12','RRRR-MM-DD'),100,null,167,'AC',null,null,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(305,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-14','RRRR-MM-DD'),100,'Summary of all 6-expenses ',177,'AC',null,449,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(318,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-12','RRRR-MM-DD'),100,null,190,'AC',null,704,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(320,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,'Other Expenses summarized',192,'AC',null,716,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(322,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-12','RRRR-MM-DD'),100,null,194,'AC',null,null,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(323,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-12','RRRR-MM-DD'),100,null,195,'AC',null,728,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(326,11,0,'Y',to_date('2005-12-14','RRRR-MM-DD'),100,to_date('2005-12-14','RRRR-MM-DD'),100,'Summary of 7-Expenses',199,'AC',null,783,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(327,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,'Depreciation Expense summarized',201,'AC',null,496,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(330,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,null,205,'AC',null,726,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(331,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,'Receivables(A/R, loans, taxes) summarized',206,'AC',null,517,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(332,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,'Inventory summarized',207,'AC',null,541,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(333,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,'Prepayments summarized',208,'AC',null,542,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(334,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,'Accounts Payable summarized',209,'AC',null,585,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(335,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,'Investments activities summarized',212,'AC',null,537,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(337,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,'Fixed Asset activity summarized',214,'AC',null,554,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(338,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,'Equipment activity summarized',215,'AC',null,560,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(339,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,'Loss on sale of fixed asset',218,'AC',null,726,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(340,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,'Gain in sale of fixed asset',219,'AC',null,714,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(341,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,' Accum. Depreciation summarized',221,'AC',null,744,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(342,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,' Accum. Depreciation summarized',222,'AC',null,744,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(343,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,'Liabilities summarized',223,'AC',null,626,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(344,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,'Cash Dividends summarized',224,'AC',null,757,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(346,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,'Cash summarized',230,'AC',null,507,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(347,11,0,'Y',to_date('2005-12-23','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,'Amoritization summarized',231,'AC',null,693,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(348,11,0,'Y',to_date('2005-12-23','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,'Uninsured Casualty Loss',232,'AC',null,768,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(349,11,0,'Y',to_date('2005-12-23','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,'Unrealized Loss',233,'AC',null,722,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(350,11,0,'Y',to_date('2005-12-23','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,'Capital Loss',234,'AC',null,725,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(351,11,0,'Y',to_date('2005-12-23','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,'Unrealized Gain',235,'AC',null,712,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(352,11,0,'Y',to_date('2005-12-23','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,'Fixed Asset Sale Gain',236,'AC',null,714,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(353,11,0,'Y',to_date('2006-01-05','RRRR-MM-DD'),101,to_date('2006-01-05','RRRR-MM-DD'),101,'Currency Balancing summarized',237,'AC',null,724,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(354,11,0,'Y',to_date('2006-01-05','RRRR-MM-DD'),101,to_date('2006-01-05','RRRR-MM-DD'),101,'Change in Deposits',239,'AC',null,548,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(355,11,0,'Y',to_date('2006-01-05','RRRR-MM-DD'),101,to_date('2006-01-05','RRRR-MM-DD'),101,'Unrealized Gain summarized for total cash flow',240,'AC',null,712,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(356,11,0,'Y',to_date('2006-01-05','RRRR-MM-DD'),101,to_date('2006-01-05','RRRR-MM-DD'),101,'Unrealized Losses summarized for total Cash flow',241,'AC',null,722,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(357,11,0,'Y',to_date('2006-01-05','RRRR-MM-DD'),101,to_date('2006-01-05','RRRR-MM-DD'),101,'Currency Balancing summarized for total Cash flow',242,'AC',null,724,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(210,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,104,'Subtractions to Cash Flow',510,'Subtractions to Cash Flow','Y',null,'N','C','R',206,236,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(216,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Net cash from Investment activity',555,'Net cash from Investment activity','Y',null,'N','C','A',220,238,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(226,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2005-12-22','RRRR-MM-DD'),100,104,'Cash flow from investing and financing activity',580,'Cash flow from investing and financing activity','Y',null,'N','C','A',216,225,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(188,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,104,'Total Expenses',423,'Total Expenses','Y',null,'N','C','R',177,199,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(189,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,104,'Gross Margin less Expenses',424,'Gross Margin less Expenses','Y',null,'N','C','S',162,188,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(200,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Net Income Before Taxes',440,'Net Income Before Taxes','Y',null,'N','C','A',189,194,null,null,null);
INSERT INTO PA_GOAL(PA_GOAL_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,SEQNO,NAME,DESCRIPTION,NOTE,AD_USER_ID,PA_COLORSCHEMA_ID,ISSUMMARY,PA_GOALPARENT_ID,PA_MEASURE_ID,RELATIVEWEIGHT,MEASURETARGET,MEASURESCOPE,MEASUREDISPLAY,DATEFROM,DATETO,MEASUREACTUAL,GOALPERFORMANCE,DATELASTRUN,AD_ROLE_ID)values(101,11,0,'Y',to_date('2005-12-23','RRRR-MM-DD'),100,to_date('2006-10-20','RRRR-MM-DD'),101,0,'Invoice Revenue','100k in Revenue',null,null,100,'N',null,101,1,100000,'1','5',null,null,0,0,to_date('2006-10-20','RRRR-MM-DD'),null);
INSERT INTO PA_GOAL(PA_GOAL_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,SEQNO,NAME,DESCRIPTION,NOTE,AD_USER_ID,PA_COLORSCHEMA_ID,ISSUMMARY,PA_GOALPARENT_ID,PA_MEASURE_ID,RELATIVEWEIGHT,MEASURETARGET,MEASURESCOPE,MEASUREDISPLAY,DATEFROM,DATETO,MEASUREACTUAL,GOALPERFORMANCE,DATELASTRUN,AD_ROLE_ID)values(102,11,0,'Y',to_date('2006-01-01','RRRR-MM-DD'),100,to_date('2006-10-20','RRRR-MM-DD'),101,0,'Open Invoices','Open Invoices max $1000',null,null,101,'N',null,102,1,1000,'0','5',null,null,412.85,.41285,to_date('2006-10-20','RRRR-MM-DD'),null);
INSERT INTO PA_GOAL(PA_GOAL_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,SEQNO,NAME,DESCRIPTION,NOTE,AD_USER_ID,PA_COLORSCHEMA_ID,ISSUMMARY,PA_GOALPARENT_ID,PA_MEASURE_ID,RELATIVEWEIGHT,MEASURETARGET,MEASURESCOPE,MEASUREDISPLAY,DATEFROM,DATETO,MEASUREACTUAL,GOALPERFORMANCE,DATELASTRUN,AD_ROLE_ID)values(104,11,0,'Y',to_date('2006-01-20','RRRR-MM-DD'),100,to_date('2006-10-20','RRRR-MM-DD'),101,0,'Service Requests (Quarter)','Open Service Requests in Time',null,null,101,'N',null,103,1,10,'3',null,null,null,0,0,to_date('2006-10-20','RRRR-MM-DD'),null);
INSERT INTO PA_GOAL(PA_GOAL_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,SEQNO,NAME,DESCRIPTION,NOTE,AD_USER_ID,PA_COLORSCHEMA_ID,ISSUMMARY,PA_GOALPARENT_ID,PA_MEASURE_ID,RELATIVEWEIGHT,MEASURETARGET,MEASURESCOPE,MEASUREDISPLAY,DATEFROM,DATETO,MEASUREACTUAL,GOALPERFORMANCE,DATELASTRUN,AD_ROLE_ID)values(105,11,0,'Y',to_date('2006-01-20','RRRR-MM-DD'),100,to_date('2006-10-20','RRRR-MM-DD'),101,0,'Total Open Service Requests','Open Service Requests by Status',null,null,101,'N',null,104,1,10,'0',null,null,null,1,.1,to_date('2006-10-20','RRRR-MM-DD'),null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(316,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-12','RRRR-MM-DD'),100,null,188,'AC',null,null,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(317,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-12','RRRR-MM-DD'),100,null,189,'AC',null,null,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(196,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,104,'Net Income',455,'Net Income','Y',null,'N','C','S',200,195,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(324,11,0,'Y',to_date('2005-12-12','RRRR-MM-DD'),100,to_date('2005-12-12','RRRR-MM-DD'),100,null,196,'AC',null,771,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(202,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,104,'Accrued A/P increase',470,'Accrued A/P increase','Y',null,'N','S','A',196,201,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(203,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-23','RRRR-MM-DD'),100,104,'Additions to Cash Flow',475,'Additions to Cash Flow','Y',null,'N','C','R',201,202,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(204,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,104,'Cash Flow sub total',480,'Cash Flow sub total','Y',null,'N','C','A',196,203,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(211,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,104,'Cash Flow from Operations',515,'Cash Flow from Operations','Y',null,'N','C','S',204,210,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(227,11,0,'Y',to_date('2005-12-22','RRRR-MM-DD'),100,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Net calculated change in cash',590,'Net calculated change in cash','Y',null,'N','C','A',211,226,null,null,null);
INSERT INTO PA_REPORTLINE(PA_REPORTLINE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,PA_REPORTLINESET_ID,NAME,SEQNO,DESCRIPTION,ISPRINTED,PARENT_ID,ISSUMMARY,LINETYPE,CALCULATIONTYPE,OPER_1_ID,OPER_2_ID,POSTINGTYPE,GL_BUDGET_ID,AMOUNTTYPE)values(244,11,0,'Y',to_date('2006-01-05','RRRR-MM-DD'),101,to_date('2006-01-05','RRRR-MM-DD'),101,104,'Total Net Cash Flow',600,'Total Net Cash Flow','Y',null,'N','C','A',227,243,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(328,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,'Accounts Receivable summarized',203,'AC',null,517,null,null,null,null,null,null,null);
INSERT INTO PA_REPORTSOURCE(PA_REPORTSOURCE_ID,AD_CLIENT_ID,AD_ORG_ID,ISACTIVE,CREATED,CREATEDBY,UPDATED,UPDATEDBY,DESCRIPTION,PA_REPORTLINE_ID,ELEMENTTYPE,ORG_ID,C_ELEMENTVALUE_ID,C_PROJECT_ID,C_BPARTNER_ID,M_PRODUCT_ID,C_CAMPAIGN_ID,C_LOCATION_ID,C_SALESREGION_ID,C_ACTIVITY_ID)values(329,11,0,'Y',to_date('2005-12-21','RRRR-MM-DD'),100,to_date('2005-12-21','RRRR-MM-DD'),100,'Accrued A/P increase',202,'AC',null,601,null,null,null,null,null,null,null);
UPDATE C_BPARTNER SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=0,UPDATEDBY=100,VALUE='Standard',NAME='Standard',NAME2=null,DESCRIPTION='Walk-In Customer',ISSUMMARY='N',C_BP_GROUP_ID=103,ISONETIME='N',ISPROSPECT='N',ISVENDOR='N',ISCUSTOMER='Y',ISEMPLOYEE='N',ISSALESREP='N',REFERENCENO=null,DUNS=null,URL=null,AD_LANGUAGE=null,TAXID=null,ISTAXEXEMPT='N',C_INVOICESCHEDULE_ID=null,RATING=null,SALESVOLUME=null,NUMBEREMPLOYEES=null,NAICS=null,ACQUSITIONCOST=0,POTENTIALLIFETIMEVALUE=0,ACTUALLIFETIMEVALUE=151.05,SHAREOFCUSTOMER=null,PAYMENTRULE=null,SO_CREDITLIMIT=0,SO_CREDITUSED=0,C_PAYMENTTERM_ID=null,M_PRICELIST_ID=null,M_DISCOUNTSCHEMA_ID=null,C_DUNNING_ID=null,ISDISCOUNTPRINTED='Y',SO_DESCRIPTION=null,POREFERENCE=null,PAYMENTRULEPO=null,PO_PRICELIST_ID=null,PO_DISCOUNTSCHEMA_ID=null,PO_PAYMENTTERM_ID=null,DOCUMENTCOPIES=null,C_GREETING_ID=null,INVOICERULE=null,DELIVERYRULE=null,FREIGHTCOSTRULE=null,DELIVERYVIARULE=null,SALESREP_ID=null,SENDEMAIL='N',BPARTNER_PARENT_ID=null,INVOICE_PRINTFORMAT_ID=null,SOCREDITSTATUS='O',SHELFLIFEMINPCT=null,AD_ORGBP_ID=null,FLATDISCOUNT=null,TOTALOPENBALANCE=0 WHERE C_BPARTNER_ID=112;
UPDATE C_BPARTNER SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=0,UPDATEDBY=100,VALUE='GardenAdmin',NAME='GardenAdmin BP',NAME2=null,DESCRIPTION=null,ISSUMMARY='N',C_BP_GROUP_ID=105,ISONETIME='N',ISPROSPECT='Y',ISVENDOR='Y',ISCUSTOMER='N',ISEMPLOYEE='Y',ISSALESREP='Y',REFERENCENO=null,DUNS=null,URL=null,AD_LANGUAGE=null,TAXID=null,ISTAXEXEMPT='N',C_INVOICESCHEDULE_ID=null,RATING=null,SALESVOLUME=null,NUMBEREMPLOYEES=null,NAICS=null,ACQUSITIONCOST=0,POTENTIALLIFETIMEVALUE=0,ACTUALLIFETIMEVALUE=0,SHAREOFCUSTOMER=null,PAYMENTRULE=null,SO_CREDITLIMIT=0,SO_CREDITUSED=0,C_PAYMENTTERM_ID=null,M_PRICELIST_ID=null,M_DISCOUNTSCHEMA_ID=null,C_DUNNING_ID=null,ISDISCOUNTPRINTED='Y',SO_DESCRIPTION=null,POREFERENCE=null,PAYMENTRULEPO='P',PO_PRICELIST_ID=101,PO_DISCOUNTSCHEMA_ID=null,PO_PAYMENTTERM_ID=105,DOCUMENTCOPIES=null,C_GREETING_ID=null,INVOICERULE=null,DELIVERYRULE=null,FREIGHTCOSTRULE=null,DELIVERYVIARULE=null,SALESREP_ID=null,SENDEMAIL='N',BPARTNER_PARENT_ID=null,INVOICE_PRINTFORMAT_ID=null,SOCREDITSTATUS='O',SHELFLIFEMINPCT=null,AD_ORGBP_ID=null,FLATDISCOUNT=null,TOTALOPENBALANCE=0 WHERE C_BPARTNER_ID=113;
UPDATE C_BANKACCOUNT SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_BANK_ID=100,C_CURRENCY_ID=100,BANKACCOUNTTYPE='C',ACCOUNTNO='1234',CURRENTBALANCE=0,CREDITLIMIT=0,ISDEFAULT='Y',IBAN=null,DESCRIPTION='With PayFlwo Pro',BBAN=null WHERE C_BANKACCOUNT_ID=100;
UPDATE C_COUNTRY SET AD_CLIENT_ID=0,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=0,UPDATEDBY=100,NAME='Slovenia',DESCRIPTION='Slovenia',COUNTRYCODE='SI',HASREGION='N',REGIONNAME=null,EXPRESSIONPHONE=null,DISPLAYSEQUENCE='@P@ @C@',EXPRESSIONPOSTAL=null,HASPOSTAL_ADD='N',EXPRESSIONPOSTAL_ADD=null,AD_LANGUAGE='sl_SI',C_CURRENCY_ID=314,DISPLAYSEQUENCELOCAL=null,ISADDRESSLINESREVERSE='N',ISADDRESSLINESLOCALREVERSE='N',EXPRESSIONBANKROUTINGNO=null,EXPRESSIONBANKACCOUNTNO=null,MEDIASIZE=null WHERE C_COUNTRY_ID=302;
UPDATE C_CONVERSION_RATE SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_CURRENCY_ID=102,C_CURRENCY_ID_TO=100,MULTIPLYRATE=1.17647058823529411764705882352941176471E00,DIVIDERATE=8.49999999999999977795539507496869191527E-01,C_CONVERSIONTYPE_ID=114 WHERE C_CONVERSION_RATE_ID=136;
UPDATE C_CONVERSION_RATE SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_CURRENCY_ID=100,C_CURRENCY_ID_TO=102,MULTIPLYRATE=8.0064051240992794235388310648518815052E-01,DIVIDERATE=1.2489999999999998880895191177842207253E00,C_CONVERSIONTYPE_ID=114 WHERE C_CONVERSION_RATE_ID=137;
UPDATE C_CONVERSION_RATE SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_CURRENCY_ID=102,C_CURRENCY_ID_TO=100,MULTIPLYRATE=1.249,DIVIDERATE=8.00640512409927840309364910353906452656E-01,C_CONVERSIONTYPE_ID=114 WHERE C_CONVERSION_RATE_ID=138;
UPDATE C_ELEMENTVALUE SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,VALUE='49',NAME='Other Revenue',DESCRIPTION=null,ACCOUNTTYPE='R',ACCOUNTSIGN='N',ISDOCCONTROLLED='N',C_ELEMENT_ID=105,ISSUMMARY='Y',POSTACTUAL='Y',POSTBUDGET='Y',POSTENCUMBRANCE='Y',POSTSTATISTICAL='Y',ISBANKACCOUNT='N',C_BANKACCOUNT_ID=null,ISFOREIGNCURRENCY='N',C_CURRENCY_ID=null WHERE C_ELEMENTVALUE_ID=425;
UPDATE C_ELEMENTVALUE SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,VALUE='59101',NAME='Trade Discounts',DESCRIPTION='Granted Trade discounts (corrects Product Revenue)',ACCOUNTTYPE='E',ACCOUNTSIGN='N',ISDOCCONTROLLED='Y',C_ELEMENT_ID=105,ISSUMMARY='N',POSTACTUAL='Y',POSTBUDGET='Y',POSTENCUMBRANCE='Y',POSTSTATISTICAL='Y',ISBANKACCOUNT='N',C_BANKACCOUNT_ID=null,ISFOREIGNCURRENCY='N',C_CURRENCY_ID=null WHERE C_ELEMENTVALUE_ID=426;
UPDATE C_ELEMENTVALUE SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,VALUE='59201',NAME='Payment discount revenue',DESCRIPTION='Granted early payment discount to customers',ACCOUNTTYPE='E',ACCOUNTSIGN='N',ISDOCCONTROLLED='Y',C_ELEMENT_ID=105,ISSUMMARY='N',POSTACTUAL='Y',POSTBUDGET='Y',POSTENCUMBRANCE='Y',POSTSTATISTICAL='Y',ISBANKACCOUNT='N',C_BANKACCOUNT_ID=null,ISFOREIGNCURRENCY='N',C_CURRENCY_ID=null WHERE C_ELEMENTVALUE_ID=427;
UPDATE C_ELEMENTVALUE SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,VALUE='59300',NAME='Promotion Discounts',DESCRIPTION=null,ACCOUNTTYPE='E',ACCOUNTSIGN='N',ISDOCCONTROLLED='N',C_ELEMENT_ID=105,ISSUMMARY='N',POSTACTUAL='Y',POSTBUDGET='Y',POSTENCUMBRANCE='Y',POSTSTATISTICAL='Y',ISBANKACCOUNT='N',C_BANKACCOUNT_ID=null,ISFOREIGNCURRENCY='N',C_CURRENCY_ID=null WHERE C_ELEMENTVALUE_ID=428;
UPDATE C_ELEMENTVALUE SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,VALUE='82800',NAME='Fixed Asset Sale Loss',DESCRIPTION=null,ACCOUNTTYPE='E',ACCOUNTSIGN='N',ISDOCCONTROLLED='N',C_ELEMENT_ID=105,ISSUMMARY='N',POSTACTUAL='Y',POSTBUDGET='Y',POSTENCUMBRANCE='Y',POSTSTATISTICAL='Y',ISBANKACCOUNT='N',C_BANKACCOUNT_ID=null,ISFOREIGNCURRENCY='N',C_CURRENCY_ID=null WHERE C_ELEMENTVALUE_ID=726;
UPDATE C_ELEMENTVALUE SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,VALUE='59',NAME='CoGs/Sales Discounts',DESCRIPTION=null,ACCOUNTTYPE='E',ACCOUNTSIGN='N',ISDOCCONTROLLED='N',C_ELEMENT_ID=105,ISSUMMARY='Y',POSTACTUAL='Y',POSTBUDGET='Y',POSTENCUMBRANCE='Y',POSTSTATISTICAL='Y',ISBANKACCOUNT='N',C_BANKACCOUNT_ID=null,ISFOREIGNCURRENCY='N',C_CURRENCY_ID=null WHERE C_ELEMENTVALUE_ID=446;
UPDATE C_ELEMENTVALUE SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,VALUE='49500',NAME='Cash book receipts',DESCRIPTION='Default other revenue for petty cash transactions',ACCOUNTTYPE='R',ACCOUNTSIGN='N',ISDOCCONTROLLED='Y',C_ELEMENT_ID=105,ISSUMMARY='N',POSTACTUAL='Y',POSTBUDGET='Y',POSTENCUMBRANCE='Y',POSTSTATISTICAL='Y',ISBANKACCOUNT='N',C_BANKACCOUNT_ID=null,ISFOREIGNCURRENCY='N',C_CURRENCY_ID=null WHERE C_ELEMENTVALUE_ID=701;
UPDATE C_ELEMENTVALUE SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,VALUE='49700',NAME='Charge revenue',DESCRIPTION='Default other revenue',ACCOUNTTYPE='R',ACCOUNTSIGN='N',ISDOCCONTROLLED='Y',C_ELEMENT_ID=105,ISSUMMARY='N',POSTACTUAL='Y',POSTBUDGET='Y',POSTENCUMBRANCE='Y',POSTSTATISTICAL='Y',ISBANKACCOUNT='N',C_BANKACCOUNT_ID=null,ISFOREIGNCURRENCY='N',C_CURRENCY_ID=null WHERE C_ELEMENTVALUE_ID=703;
UPDATE C_ELEMENTVALUE SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,VALUE='51400',NAME='Inventory Clearing',DESCRIPTION='Default Product costs (I.e. on inventory)',ACCOUNTTYPE='E',ACCOUNTSIGN='N',ISDOCCONTROLLED='Y',C_ELEMENT_ID=105,ISSUMMARY='N',POSTACTUAL='Y',POSTBUDGET='Y',POSTENCUMBRANCE='Y',POSTSTATISTICAL='Y',ISBANKACCOUNT='N',C_BANKACCOUNT_ID=null,ISFOREIGNCURRENCY='N',C_CURRENCY_ID=null WHERE C_ELEMENTVALUE_ID=780;
UPDATE C_ELEMENTVALUE SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,VALUE='51800',NAME='Commissions Paid',DESCRIPTION='Commissions Paid',ACCOUNTTYPE='E',ACCOUNTSIGN='N',ISDOCCONTROLLED='N',C_ELEMENT_ID=105,ISSUMMARY='N',POSTACTUAL='Y',POSTBUDGET='Y',POSTENCUMBRANCE='Y',POSTSTATISTICAL='Y',ISBANKACCOUNT='N',C_BANKACCOUNT_ID=null,ISFOREIGNCURRENCY='N',C_CURRENCY_ID=null WHERE C_ELEMENTVALUE_ID=778;
UPDATE R_REQUESTUPDATE SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,R_REQUEST_ID=100,CONFIDENTIALTYPEENTRY='C',QTYSPENT=0,QTYINVOICED=0,M_PRODUCTSPENT_ID=null,RESULT='Some Unicode test: Some Extended Characters: £¥©§®½ European Characters: äöüÄÖÜß-áéèêëýÿ¿ÉÊÇçñ Characters > 100h: ?? Greek: ????? Cyrillic: ????????? Arabic: ??????' WHERE R_REQUESTUPDATE_ID=100;
UPDATE R_REQUESTTYPE SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,NAME='Request for Quotation',DESCRIPTION=null,ISDEFAULT='N',ISSELFSERVICE='Y',DUEDATETOLERANCE=7,ISEMAILWHENOVERDUE='N',ISEMAILWHENDUE='N',ISINVOICED=null,AUTODUEDATEDAYS=null,CONFIDENTIALTYPE='C',ISAUTOCHANGEREQUEST='N',ISCONFIDENTIALINFO='N',R_STATUSCATEGORY_ID=100 WHERE R_REQUESTTYPE_ID=100;
UPDATE R_REQUESTTYPE SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,NAME='Service Request',DESCRIPTION=null,ISDEFAULT='N',ISSELFSERVICE='Y',DUEDATETOLERANCE=7,ISEMAILWHENOVERDUE='N',ISEMAILWHENDUE='N',ISINVOICED=null,AUTODUEDATEDAYS=null,CONFIDENTIALTYPE='C',ISAUTOCHANGEREQUEST='N',ISCONFIDENTIALINFO='N',R_STATUSCATEGORY_ID=100 WHERE R_REQUESTTYPE_ID=101;
UPDATE R_REQUESTTYPE SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,NAME='Warranty',DESCRIPTION=null,ISDEFAULT='N',ISSELFSERVICE='Y',DUEDATETOLERANCE=7,ISEMAILWHENOVERDUE='N',ISEMAILWHENDUE='N',ISINVOICED=null,AUTODUEDATEDAYS=null,CONFIDENTIALTYPE='C',ISAUTOCHANGEREQUEST='N',ISCONFIDENTIALINFO='N',R_STATUSCATEGORY_ID=100 WHERE R_REQUESTTYPE_ID=102;
UPDATE R_STATUS SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,NAME='Open',DESCRIPTION=null,HELP=null,ISDEFAULT='Y',ISOPEN='Y',ISCLOSED='N',VALUE='Open',NEXT_STATUS_ID=null,UPDATE_STATUS_ID=null,TIMEOUTDAYS=0,ISWEBCANUPDATE='Y',ISFINALCLOSE='N',SEQNO=1,R_STATUSCATEGORY_ID=100 WHERE R_STATUS_ID=100;
UPDATE R_STATUS SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,NAME='Waiting on customer',DESCRIPTION=null,HELP=null,ISDEFAULT='N',ISOPEN='Y',ISCLOSED='N',VALUE='Waiting',NEXT_STATUS_ID=102,UPDATE_STATUS_ID=100,TIMEOUTDAYS=5,ISWEBCANUPDATE='Y',ISFINALCLOSE='N',SEQNO=2,R_STATUSCATEGORY_ID=100 WHERE R_STATUS_ID=101;
UPDATE R_STATUS SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,NAME='Closed',DESCRIPTION=null,HELP=null,ISDEFAULT='N',ISOPEN='N',ISCLOSED='Y',VALUE='Closed',NEXT_STATUS_ID=103,UPDATE_STATUS_ID=100,TIMEOUTDAYS=1,ISWEBCANUPDATE='Y',ISFINALCLOSE='N',SEQNO=3,R_STATUSCATEGORY_ID=100 WHERE R_STATUS_ID=102;
UPDATE R_STATUS SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,NAME='Final Close',DESCRIPTION=null,HELP=null,ISDEFAULT='N',ISOPEN='N',ISCLOSED='Y',VALUE='Final',NEXT_STATUS_ID=null,UPDATE_STATUS_ID=null,TIMEOUTDAYS=0,ISWEBCANUPDATE='N',ISFINALCLOSE='Y',SEQNO=9,R_STATUSCATEGORY_ID=100 WHERE R_STATUS_ID=103;
UPDATE W_ADVERTISEMENT SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,NAME='ComPiere, Inc.',DESCRIPTION='USA, Oregon',HELP='Help ??',ISSELFSERVICE='Y',C_BPARTNER_ID=113,AD_USER_ID=101,W_CLICKCOUNT_ID=100,W_COUNTERCOUNT_ID=100,IMAGEURL='http://www1.compiere.com/images/ComPiereCom120x60.gif',ADTEXT='ComPiere, Inc. privides Support and Services for Compiere, the premier Open Source business application. Guaranteed <b>Support</b> is available in Gold/Silver/Bronze level you want to keep your mission critical system running and up-to-date. All support offerings include all licenses you may need for Compiere. We offer Intensive <b>Training</b> to get you started fast end allow you to implement Compiere efficiently. The Technical Training gives you a head start when extending Compiere to meet specific business requiredments. <p>Some Unicode test: <br> Some Extended Characters: £¥©§®½<br> European Characters: äöüÄÖÜß-áéèêëýÿ¿ÉÊÇçñ<br> Characters > 100h: ??<br> Greek: ?????<br> Cyrillic: ?????????<br> Arabic: ??????<br> If you see ? or squares in the above in the Java client, your database character set is not UTF. ',WEBPARAM1='Compiere Contributor',WEBPARAM2='http://www.compiere.com/images/partner_x.gif',WEBPARAM3='Using Compiere Internally',WEBPARAM4='Compiere <a href="http://www1.compiere.org/about/references.html">Success Stories</a>',PUBLISHSTATUS='T',VERSION=null,PROCESSING=null WHERE W_ADVERTISEMENT_ID=100;
UPDATE I_CONVERSION_RATE SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_CONVERSION_RATE_ID=137,ISO_CODE='USD',C_CURRENCY_ID=100,ISO_CODE_TO='EUR',C_CURRENCY_ID_TO=102,CONVERSIONTYPEVALUE='S',C_CONVERSIONTYPE_ID=114,MULTIPLYRATE=8.0064051240992794235388310648518815052E-01,DIVIDERATE=1.249,CREATERECIPROCALRATE='Y',I_ISIMPORTED='Y',I_ERRORMSG=null,PROCESSING='N',PROCESSED='Y' WHERE I_CONVERSION_RATE_ID=101;
UPDATE C_VALIDCOMBINATION SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,ALIAS=null,COMBINATION='HQ-59101-_-_-_-_',DESCRIPTION='HQ-Trade Discounts-_-_-_-_',ISFULLYQUALIFIED='Y',C_ACCTSCHEMA_ID=101,ACCOUNT_ID=426,M_PRODUCT_ID=null,C_BPARTNER_ID=null,AD_ORGTRX_ID=null,C_LOCFROM_ID=null,C_LOCTO_ID=null,C_SALESREGION_ID=null,C_PROJECT_ID=null,C_CAMPAIGN_ID=null,C_ACTIVITY_ID=null,USER1_ID=null,USER2_ID=null,C_SUBACCT_ID=null,USERELEMENT1_ID=null,USERELEMENT2_ID=null WHERE C_VALIDCOMBINATION_ID=284;
UPDATE C_VALIDCOMBINATION SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,ALIAS=null,COMBINATION='HQ-51300-_-_-_-_',DESCRIPTION='HQ-Cost Adjustments-_-_-_-_',ISFULLYQUALIFIED='Y',C_ACCTSCHEMA_ID=101,ACCOUNT_ID=781,M_PRODUCT_ID=null,C_BPARTNER_ID=null,AD_ORGTRX_ID=null,C_LOCFROM_ID=null,C_LOCTO_ID=null,C_SALESREGION_ID=null,C_PROJECT_ID=null,C_CAMPAIGN_ID=null,C_ACTIVITY_ID=null,USER1_ID=null,USER2_ID=null,C_SUBACCT_ID=null,USERELEMENT1_ID=null,USERELEMENT2_ID=null WHERE C_VALIDCOMBINATION_ID=298;
UPDATE C_VALIDCOMBINATION SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,ALIAS=null,COMBINATION='HQ-51400-_-_-_-_',DESCRIPTION='HQ-Inventory Clearing-_-_-_-_',ISFULLYQUALIFIED='Y',C_ACCTSCHEMA_ID=101,ACCOUNT_ID=780,M_PRODUCT_ID=null,C_BPARTNER_ID=null,AD_ORGTRX_ID=null,C_LOCFROM_ID=null,C_LOCTO_ID=null,C_SALESREGION_ID=null,C_PROJECT_ID=null,C_CAMPAIGN_ID=null,C_ACTIVITY_ID=null,USER1_ID=null,USER2_ID=null,C_SUBACCT_ID=null,USERELEMENT1_ID=null,USERELEMENT2_ID=null WHERE C_VALIDCOMBINATION_ID=299;
UPDATE C_VALIDCOMBINATION SET AD_CLIENT_ID=11,AD_ORG_ID=12,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,ALIAS=null,COMBINATION='Store-49500-_-_-_-_',DESCRIPTION='Store-Cash book receipts-_-_-_-_',ISFULLYQUALIFIED='Y',C_ACCTSCHEMA_ID=101,ACCOUNT_ID=701,M_PRODUCT_ID=null,C_BPARTNER_ID=null,AD_ORGTRX_ID=null,C_LOCFROM_ID=null,C_LOCTO_ID=null,C_SALESREGION_ID=null,C_PROJECT_ID=null,C_CAMPAIGN_ID=null,C_ACTIVITY_ID=null,USER1_ID=null,USER2_ID=null,C_SUBACCT_ID=null,USERELEMENT1_ID=null,USERELEMENT2_ID=null WHERE C_VALIDCOMBINATION_ID=296;
UPDATE C_VALIDCOMBINATION SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,ALIAS=null,COMBINATION='HQ-51800-_-_-_-_',DESCRIPTION='HQ-Commissions Paid-_-_-_-_',ISFULLYQUALIFIED='Y',C_ACCTSCHEMA_ID=101,ACCOUNT_ID=778,M_PRODUCT_ID=null,C_BPARTNER_ID=null,AD_ORGTRX_ID=null,C_LOCFROM_ID=null,C_LOCTO_ID=null,C_SALESREGION_ID=null,C_PROJECT_ID=null,C_CAMPAIGN_ID=null,C_ACTIVITY_ID=null,USER1_ID=null,USER2_ID=null,C_SUBACCT_ID=null,USERELEMENT1_ID=null,USERELEMENT2_ID=null WHERE C_VALIDCOMBINATION_ID=297;
UPDATE C_VALIDCOMBINATION SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,ALIAS=null,COMBINATION='HQ-59201-_-_-_-_',DESCRIPTION='HQ-Payment discount revenue-_-_-_-_',ISFULLYQUALIFIED='Y',C_ACCTSCHEMA_ID=101,ACCOUNT_ID=427,M_PRODUCT_ID=null,C_BPARTNER_ID=null,AD_ORGTRX_ID=null,C_LOCFROM_ID=null,C_LOCTO_ID=null,C_SALESREGION_ID=null,C_PROJECT_ID=null,C_CAMPAIGN_ID=null,C_ACTIVITY_ID=null,USER1_ID=null,USER2_ID=null,C_SUBACCT_ID=null,USERELEMENT1_ID=null,USERELEMENT2_ID=null WHERE C_VALIDCOMBINATION_ID=240;
UPDATE C_VALIDCOMBINATION SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,ALIAS=null,COMBINATION='HQ-49700-_-_-_-_',DESCRIPTION='HQ-Charge revenue-_-_-_-_',ISFULLYQUALIFIED='Y',C_ACCTSCHEMA_ID=101,ACCOUNT_ID=703,M_PRODUCT_ID=null,C_BPARTNER_ID=null,AD_ORGTRX_ID=null,C_LOCFROM_ID=null,C_LOCTO_ID=null,C_SALESREGION_ID=null,C_PROJECT_ID=null,C_CAMPAIGN_ID=null,C_ACTIVITY_ID=null,USER1_ID=null,USER2_ID=null,C_SUBACCT_ID=null,USERELEMENT1_ID=null,USERELEMENT2_ID=null WHERE C_VALIDCOMBINATION_ID=268;
UPDATE C_VALIDCOMBINATION SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,ALIAS=null,COMBINATION='HQ-49500-_-_-_-_',DESCRIPTION='HQ-Cash book receipts-_-_-_-_',ISFULLYQUALIFIED='Y',C_ACCTSCHEMA_ID=101,ACCOUNT_ID=701,M_PRODUCT_ID=null,C_BPARTNER_ID=null,AD_ORGTRX_ID=null,C_LOCFROM_ID=null,C_LOCTO_ID=null,C_SALESREGION_ID=null,C_PROJECT_ID=null,C_CAMPAIGN_ID=null,C_ACTIVITY_ID=null,USER1_ID=null,USER2_ID=null,C_SUBACCT_ID=null,USERELEMENT1_ID=null,USERELEMENT2_ID=null WHERE C_VALIDCOMBINATION_ID=276;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1515;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1516;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='PJI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1517;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='CMA',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1518;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='MXI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1519;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='MMP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1520;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='GLD',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1521;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='CMC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1522;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='MXP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1523;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='MMM',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1524;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='MMI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1525;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='ARF',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1526;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='CMB',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1527;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1528;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='API',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1529;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='APC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1530;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='GLJ',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1531;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='ARI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1532;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='ARI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1533;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='ARC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1534;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='ARR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1535;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1536;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1537;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='APP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1538;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='POO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1539;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='POR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1540;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1541;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1542;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1543;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1544;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1545;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1546;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1547;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1548;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=197,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1549;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1550;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1551;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='PJI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1552;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='CMA',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1553;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='MXI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1554;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='MMP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1555;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='GLD',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1556;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='CMC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1557;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='MXP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1558;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='MMM',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1559;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='MMI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1560;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='ARF',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1561;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='CMB',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1562;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1563;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='API',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1564;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='APC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1565;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='GLJ',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1566;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='ARI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1567;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='ARI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1568;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='ARC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1569;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='ARR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1570;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1571;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1572;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='APP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1573;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='POO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1574;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='POR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1575;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1576;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1577;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1578;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1579;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1580;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1581;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1582;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1583;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=198,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1584;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1585;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1586;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='PJI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1587;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='CMA',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1588;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='MXI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1589;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='MMP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1590;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='GLD',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1591;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='CMC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1592;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='MXP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1593;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='MMM',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1594;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='MMI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1595;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='ARF',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1596;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='CMB',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1597;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1598;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='API',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1599;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='APC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1600;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='GLJ',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1601;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='ARI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1602;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='ARI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1603;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='ARC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1604;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='ARR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1605;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1606;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1607;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='APP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1608;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='POO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1609;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='POR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1610;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1611;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1612;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1613;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1614;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1615;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1616;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1617;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1618;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=199,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1619;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1620;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1621;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='PJI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1622;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='CMA',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1623;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='MXI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1624;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='MMP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1625;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='GLD',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1626;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='CMC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1627;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='MXP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1628;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='MMM',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1629;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='MMI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1630;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='ARF',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1631;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='CMB',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1632;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1633;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='API',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1634;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='APC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1635;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='GLJ',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1636;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='ARI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1637;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='ARI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1638;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='ARC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1639;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='ARR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1640;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1641;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1642;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='APP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1643;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='POO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1644;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='POR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1645;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1646;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1647;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1648;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1649;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1650;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1651;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1652;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1653;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=200,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1654;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1655;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1656;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='PJI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1657;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='CMA',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1658;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='MXI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1659;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='MMP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1660;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='GLD',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1661;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='CMC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1662;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='MXP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1663;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='MMM',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1664;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='MMI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1665;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='ARF',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1666;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='CMB',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1667;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1668;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='API',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1669;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='APC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1670;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='GLJ',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1671;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='ARI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1672;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='ARI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1673;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='ARC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1674;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='ARR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1675;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1676;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1677;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='APP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1678;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='POO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1679;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='POR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1680;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1681;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1682;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1683;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1684;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1685;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1686;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1687;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1688;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=201,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1689;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1690;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1691;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='PJI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1692;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='CMA',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1693;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='MXI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1694;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='MMP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1695;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='GLD',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1696;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='CMC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1697;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='MXP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1698;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='MMM',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1699;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='MMI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1700;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='ARF',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1701;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='CMB',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1702;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1703;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='API',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1704;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='APC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1705;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='GLJ',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1706;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='ARI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1707;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='ARI',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1708;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='ARC',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1709;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='ARR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1710;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1711;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='MMS',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1712;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='APP',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1713;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='POO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1714;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='POR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1715;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1716;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1717;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1718;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1719;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1720;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1721;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1722;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='SOO',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1723;
UPDATE C_PERIODCONTROL SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,C_PERIOD_ID=202,DOCBASETYPE='MMR',PERIODSTATUS='O',PERIODACTION='N',PROCESSING='N' WHERE C_PERIODCONTROL_ID=1724;
UPDATE PA_MEASURECALC SET AD_CLIENT_ID=0,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=0,UPDATEDBY=100,NAME='Invoiced Net Revenue',DESCRIPTION='Invoiced net revenue, without tax and charges',SELECTCLAUSE='SELECT SUM(il.LineNetAmt) FROM RV_C_Invoice C_Invoice INNER JOIN RV_C_InvoiceLine il ON (C_Invoice.C_Invoice_ID=il.C_Invoice_ID)',WHERECLAUSE='WHERE C_Invoice.IsSOTrx=''Y'' AND C_Invoice.Processed=''Y''',DATECOLUMN='C_Invoice.DateInvoiced',ORGCOLUMN='C_Invoice.AD_Org_ID',BPARTNERCOLUMN='C_Invoice.C_BPartner_ID',PRODUCTCOLUMN='il.M_Product_ID',AD_TABLE_ID=318,KEYCOLUMN='C_Invoice.C_Invoice_ID',ENTITYTYPE='D' WHERE PA_MEASURECALC_ID=100;
UPDATE PA_MEASURECALC SET AD_CLIENT_ID=0,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=0,UPDATEDBY=100,NAME='Invoiced Gross Revenue',DESCRIPTION='Invoice gross amount including tax; Does not allow selection by product (Category)',SELECTCLAUSE='SELECT SUM(GrandTotal) FROM RV_C_Invoice C_Invoice',WHERECLAUSE='WHERE IsSOTrx=''Y'' AND Processed=''Y''',DATECOLUMN='DateInvoiced',ORGCOLUMN='AD_Org_ID',BPARTNERCOLUMN='C_BPartner_ID',PRODUCTCOLUMN=null,AD_TABLE_ID=318,KEYCOLUMN='C_Invoice_ID',ENTITYTYPE='D' WHERE PA_MEASURECALC_ID=101;
UPDATE PA_MEASURECALC SET AD_CLIENT_ID=0,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=0,UPDATEDBY=100,NAME='Invoiced Sales Margin',DESCRIPTION='Difference between Limit and Actual price',SELECTCLAUSE='SELECT SUM((il.PriceActual-il.PriceLimit)*QtyInvoiced) FROM RV_C_Invoice C_Invoice INNER JOIN RV_C_InvoiceLine il ON (C_Invoice.C_Invoice_ID=il.C_Invoice_ID)',WHERECLAUSE='WHERE C_Invoice.IsSOTrx=''Y'' AND C_Invoice.Processed=''Y''',DATECOLUMN='C_Invoice.DateInvoiced',ORGCOLUMN='C_Invoice.AD_Org_ID',BPARTNERCOLUMN='C_Invoice.C_BPartner_ID',PRODUCTCOLUMN='il.M_Product_ID',AD_TABLE_ID=318,KEYCOLUMN='C_Invoice.C_Invoice_ID',ENTITYTYPE='D' WHERE PA_MEASURECALC_ID=102;
UPDATE PA_MEASURECALC SET AD_CLIENT_ID=0,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=0,UPDATEDBY=100,NAME='Number of Customers',DESCRIPTION='Number of (new) customers',SELECTCLAUSE='SELECT COUNT(*) FROM C_BPartner',WHERECLAUSE='WHERE IsCustomer=''Y''',DATECOLUMN='Created',ORGCOLUMN='AD_Org_ID',BPARTNERCOLUMN='C_BPartner_ID',PRODUCTCOLUMN=null,AD_TABLE_ID=291,KEYCOLUMN='C_BPartner_ID',ENTITYTYPE='D' WHERE PA_MEASURECALC_ID=103;
UPDATE C_REGION SET AD_CLIENT_ID=0,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=0,UPDATEDBY=100,NAME='Newfoundland and Labrador',DESCRIPTION='Terre-Neuve-et-Labrador',C_COUNTRY_ID=109,ISDEFAULT='N' WHERE C_REGION_ID=160;
UPDATE C_REGION SET AD_CLIENT_ID=0,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=0,UPDATEDBY=100,NAME='CT',DESCRIPTION='Connecticut',C_COUNTRY_ID=100,ISDEFAULT='N' WHERE C_REGION_ID=102;
UPDATE C_REGION SET AD_CLIENT_ID=0,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=0,UPDATEDBY=100,NAME='OR',DESCRIPTION='Oregon',C_COUNTRY_ID=100,ISDEFAULT='Y' WHERE C_REGION_ID=142;
UPDATE R_REQUEST SET AD_CLIENT_ID=11,AD_ORG_ID=11,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,DOCUMENTNO='10000002',R_REQUESTTYPE_ID=101,R_GROUP_ID=101,R_CATEGORY_ID=101,R_STATUS_ID=100,R_RESOLUTION_ID=null,R_REQUESTRELATED_ID=null,PRIORITY='5',PRIORITYUSER='5',DUETYPE='5',SUMMARY='Could you please trim the trees for me?',CONFIDENTIALTYPE='A',ISESCALATED='N',ISSELFSERVICE='N',SALESREP_ID=101,AD_ROLE_ID=null,LASTRESULT=null,PROCESSED='N',ISINVOICED='N',C_BPARTNER_ID=120,AD_USER_ID=105,C_CAMPAIGN_ID=null,C_ORDER_ID=null,C_INVOICE_ID=null,C_PAYMENT_ID=null,M_PRODUCT_ID=null,C_PROJECT_ID=null,A_ASSET_ID=null,M_INOUT_ID=null,M_RMA_ID=null,AD_TABLE_ID=null,RECORD_ID=null,REQUESTAMT=0,R_MAILTEXT_ID=null,RESULT=null,CONFIDENTIALTYPEENTRY='A',R_STANDARDRESPONSE_ID=null,NEXTACTION='F',QTYSPENT=0,QTYINVOICED=0,M_PRODUCTSPENT_ID=null,C_ACTIVITY_ID=null,C_INVOICEREQUEST_ID=null,M_CHANGEREQUEST_ID=null,TASKSTATUS=null,QTYPLAN=null,M_FIXCHANGENOTICE_ID=null WHERE R_REQUEST_ID=100;
UPDATE C_ELEMENTVALUE SET AD_CLIENT_ID=11,AD_ORG_ID=0,ISACTIVE='Y',CREATEDBY=100,UPDATEDBY=100,VALUE='51300',NAME='Cost Adjustments',DESCRIPTION='Product Cost Adjustments',ACCOUNTTYPE='E',ACCOUNTSIGN='N',ISDOCCONTROLLED='Y',C_ELEMENT_ID=105,ISSUMMARY='N',POSTACTUAL='Y',POSTBUDGET='Y',POSTENCUMBRANCE='Y',POSTSTATISTICAL='Y',ISBANKACCOUNT='N',C_BANKACCOUNT_ID=null,ISFOREIGNCURRENCY='N',C_CURRENCY_ID=null WHERE C_ELEMENTVALUE_ID=781;
DELETE FROM AD_WINDOW_ACCESS WHERE AD_WINDOW_ID=118 AND AD_ROLE_ID=103;
DELETE FROM AD_WINDOW_ACCESS WHERE AD_WINDOW_ID=212 AND AD_ROLE_ID=103;
DELETE FROM AD_WINDOW_ACCESS WHERE AD_WINDOW_ID=213 AND AD_ROLE_ID=103;
DELETE FROM AD_WINDOW_ACCESS WHERE AD_WINDOW_ID=214 AND AD_ROLE_ID=103;
DELETE FROM AD_WINDOW_ACCESS WHERE AD_WINDOW_ID=215 AND AD_ROLE_ID=103;
DELETE FROM AD_WINDOW_ACCESS WHERE AD_WINDOW_ID=211 AND AD_ROLE_ID=0;
DELETE FROM AD_WINDOW_ACCESS WHERE AD_WINDOW_ID=211 AND AD_ROLE_ID=102;
DELETE FROM AD_WINDOW_ACCESS WHERE AD_WINDOW_ID=214 AND AD_ROLE_ID=102;
DELETE FROM AD_IMPFORMAT_ROW WHERE AD_IMPFORMAT_ROW_ID=147;
DELETE FROM AD_IMPFORMAT_ROW WHERE AD_IMPFORMAT_ROW_ID=149;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=8429;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4701;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4654;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4639;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4641;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4697;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4626;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4706;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=8432;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4704;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4627;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4637;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4638;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4717;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4719;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4703;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4635;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4705;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4718;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4636;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=5095;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4640;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4715;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4698;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4628;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4624;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=4695;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=7008;
DELETE FROM AD_FIELD WHERE AD_FIELD_ID=7007;
DELETE FROM AD_WF_EVENTAUDIT WHERE AD_WF_EVENTAUDIT_ID=100;
DELETE FROM AD_WF_EVENTAUDIT WHERE AD_WF_EVENTAUDIT_ID=101;
DELETE FROM AD_WF_EVENTAUDIT WHERE AD_WF_EVENTAUDIT_ID=102;
DELETE FROM AD_WF_EVENTAUDIT WHERE AD_WF_EVENTAUDIT_ID=103;
DELETE FROM AD_WF_EVENTAUDIT WHERE AD_WF_EVENTAUDIT_ID=104;
DELETE FROM AD_WF_EVENTAUDIT WHERE AD_WF_EVENTAUDIT_ID=105;
DELETE FROM AD_WF_EVENTAUDIT WHERE AD_WF_EVENTAUDIT_ID=106;
DELETE FROM AD_WF_EVENTAUDIT WHERE AD_WF_EVENTAUDIT_ID=107;
DELETE FROM AD_WF_EVENTAUDIT WHERE AD_WF_EVENTAUDIT_ID=108;
DELETE FROM AD_WF_EVENTAUDIT WHERE AD_WF_EVENTAUDIT_ID=109;
DELETE FROM AD_WF_EVENTAUDIT WHERE AD_WF_EVENTAUDIT_ID=110;
DELETE FROM AD_WF_ACTIVITY WHERE AD_WF_ACTIVITY_ID=100;
DELETE FROM AD_WF_ACTIVITY WHERE AD_WF_ACTIVITY_ID=101;
DELETE FROM AD_WF_ACTIVITY WHERE AD_WF_ACTIVITY_ID=102;
DELETE FROM AD_WF_ACTIVITY WHERE AD_WF_ACTIVITY_ID=103;
DELETE FROM AD_WF_ACTIVITY WHERE AD_WF_ACTIVITY_ID=104;
DELETE FROM AD_WF_ACTIVITY WHERE AD_WF_ACTIVITY_ID=105;
DELETE FROM AD_WF_ACTIVITY WHERE AD_WF_ACTIVITY_ID=106;
DELETE FROM AD_WF_ACTIVITY WHERE AD_WF_ACTIVITY_ID=107;
DELETE FROM AD_WF_ACTIVITY WHERE AD_WF_ACTIVITY_ID=108;
DELETE FROM AD_WF_ACTIVITY WHERE AD_WF_ACTIVITY_ID=109;
DELETE FROM AD_WF_ACTIVITY WHERE AD_WF_ACTIVITY_ID=110;
DELETE FROM AD_WF_NODENEXT WHERE AD_WF_NODENEXT_ID=149;
DELETE FROM AD_WF_NODENEXT WHERE AD_WF_NODENEXT_ID=150;
DELETE FROM AD_WF_NODE WHERE AD_WF_NODE_ID=150;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5883;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5909;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5845;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5907;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5875;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5869;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5874;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5882;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5881;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5910;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5911;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5873;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5849;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=6419;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5848;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5906;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5847;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5867;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5870;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5925;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5878;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5879;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5880;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5905;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5897;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5876;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5877;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5871;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=5908;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=14264;
DELETE FROM AD_COLUMN WHERE AD_COLUMN_ID=14265;
DELETE FROM AD_TAB WHERE AD_TAB_ID=366;
DELETE FROM AD_TABLE WHERE AD_TABLE_ID=439;
DELETE FROM AD_TREENODE WHERE AD_TREE_ID=20 AND NODE_ID=0;
DELETE FROM AD_TREENODE WHERE AD_TREE_ID=101 AND NODE_ID=779;
DELETE FROM AD_PROCESS_PARA WHERE AD_PROCESS_PARA_ID=235;
DELETE FROM AD_PROCESS_ACCESS WHERE AD_PROCESS_ID=182 AND AD_ROLE_ID=103;
DELETE FROM AD_REPLICATIONTABLE WHERE AD_REPLICATIONTABLE_ID=140;
DELETE FROM AD_MENU WHERE AD_MENU_ID=273;
DELETE FROM AD_MENU WHERE AD_MENU_ID=274;
DELETE FROM AD_WINDOW WHERE AD_WINDOW_ID=211;
DELETE FROM AD_WINDOW WHERE AD_WINDOW_ID=214;
DELETE FROM AD_WF_PROCESS WHERE AD_WF_PROCESS_ID=100;
DELETE FROM AD_WF_PROCESS WHERE AD_WF_PROCESS_ID=101;
DELETE FROM AD_WF_PROCESS WHERE AD_WF_PROCESS_ID=102;
DELETE FROM AD_ELEMENT WHERE AD_ELEMENT_ID=1600;
DELETE FROM AD_ELEMENT WHERE AD_ELEMENT_ID=1585;
DELETE FROM AD_ELEMENT WHERE AD_ELEMENT_ID=1577;
DELETE FROM AD_ELEMENT WHERE AD_ELEMENT_ID=1593;
DELETE FROM AD_ELEMENT WHERE AD_ELEMENT_ID=1595;

View File

@ -0,0 +1,65 @@
Written by Karsten Thiemann, kthiemann@adempiere.org
Feel free to change everything you want, but you are using it at your own risk!
Preparations
1. Make a database backup! Don't complain if something goes wrong,
just reapply your backup and report the error to the Adempiere forums
at: http://sourceforge.net/forum/?group_id=176962
You can use RUN_DBExport.bat in the Compiere2/utils folder.
2. Read and follow the instructions in the migration-structure.sql file.
You have to set some DEFAULT VALUES for some new columns. But it's
done easily.
Migration of Compiere database
1. This script only migrates the database from Compiere253a to 253b!
2. It's only tested with Oracle - but it should work with other databases
as well because it is just sql. If you try it with a different database
(successful or not) then please report it to the Adempiere forums
at: http://sourceforge.net/forum/?group_id=176962
3. First apply the migration-structure.sql via any SQL tool.
MAKE SHURE THAT YOU FOLLOWED THE INSTRUCTIONS IN THERE FIRST!
I use the Oracle SQL Developer (it's free but you have to register), you
can find it here:
http://www.oracle.com/technology/products/database/sql_developer/index.html
Of course you can also use Toad or even just SQLPlus:
(from the folder with the migration*.sql)
sqlplus compiere@COMPIERE_DB_NAME @migration-structure.sql
Dependent on the tool you use you will get some errors. They should
derive only from unrecognized comments (-> unknown command), thats
just because the sql tool treats the comments as sql commands - don't worry.
4. Apply the remaining scripts in the order
migration-replace-views.sql
migration-newLines.sql,
migration-updateElements.sql,
and finally old_migration_missing.sql the same way.
Installation of Compiere253b
1. Rename (backup) your Compiere folder (e.g. from Compiere2 to _Compiere2)
2. Extract Compiere253b to your former Compiere folder (Compiere2)
3. Copy the CompiereEnv.properties and Compiere.properties from your old
installation folder (the renamed _Compiere2) into the new Compiere2 folder
4. Run RUN_Setup.bat. It should give you the setup screen with all correct
settings (derived from your old *.properties). Select save.
5. Recreate all sqlj functions (from console):
prompt>loadjava -user compiere/COMPIERE_DB_PASSWORD@COMPIERE_DB_NAME -verbose -force
-resolve "PATH_TO_NEW_COMPIERE\lib\sqlj.jar"
prompt>@sqlplus compiere/COMPIERE_DB_PASSWORD@COMPIERE_DB_NAME @"EPATH_TO_NEW_COMPIERE\utils
\oracle\createSQLJ.sql"
6. Start Adempiere and login as System Administrator (SuperUser, System -> role System Administrator)
Run System Admin -> Sequence Check (you may have to run it more than once)
7. If you use additional languages: login with the standard english language as System Administrator,
open General Rules -> System Rules -> Language, select your language and push
'Language Maintenance' button. Choose 'add missing translation' and run the process.
8. Start Adempiere.
9. Try to find new Windows (search for Issue). You got it? Welcome to 253b!
10. Test the installation and PLEASE REPORT ERRORS to the Adempiere forums
at: http://sourceforge.net/forum/?group_id=176962

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,48 @@
Written by Karsten Thiemann, kthiemann@adempiere.org
Feel free to change everything you want, but you are using it at your own risk!
Preparations
1. Make a database backup! Don't complain if something goes wrong,
just reapply your backup and report the error to the Adempiere forums
at: http://sourceforge.net/forum/?group_id=176962
You can use RUN_DBExport.bat in the Compiere2/utils folder.
2. Read and follow the INSTRUCTIONS in the migration-bd-generated.sql file.
You have to set some DEFAULT VALUES for some new columns. But it's
done easily.
Migration of Compiere database
1. This script only migrates the database from Adempiere3.1.0 (Compiere253b)
to Adempiere3.1.1 (253d)!
2. It's only tested with Oracle - but it may work with other databases
as well because it is just sql. If you try it with a different database
(successful or not) then please report it to the Adempiere forums
at: http://sourceforge.net/forum/?group_id=176962
3. Apply the migration-bd-generated.sql via any SQL tool.
BUT MAKE SHURE THAT YOU HAVE FOLLOWED THE INSTRUCTIONS IN THERE FIRST!
I use the Oracle SQL Developer (it's free but you have to register), you
can find it here:
http://www.oracle.com/technology/products/database/sql_developer/index.html
Of course you can also use Toad or even just SQLPlus:
(from the folder with the migration*.sql)
sqlplus compiere@COMPIERE_DB_NAME @migration-bd-generated.sql
Installation of Adempiere 3.1.1
1. Rename (backup) your Adempiere folder (e.g. from Adempiere to _Adempiere)
2. Follow the installation instructions :)
3. Start Adempiere and login as System Administrator (SuperUser, System -> role System Administrator)
Run System Admin -> Sequence Check (you may have to run it more than once)
4. If you use additional languages: login with the standard english language as System Administrator,
open General Rules -> System Rules -> Language, select your language and push
'Language Maintenance' button. Choose 'add missing translation' and run the process.
5. Start Adempiere.
6. Try to find new Windows (search for Issue). You got it? Welcome to 253b!
7. Test the installation and PLEASE REPORT ERRORS to the Adempiere forums
at: http://sourceforge.net/forum/?group_id=176962