Work in progress - preparing release 3.5.1

Bring all reviewed migration scripts from trunk to prepare a clean 351 seed
This commit is contained in:
Carlos Ruiz 2008-05-28 03:20:48 +00:00
parent 203360218a
commit ee89bad80b
109 changed files with 135183 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,47 @@
-- Jan 3, 2008 1:31:35 PM CST
-- Libero Manufacturing
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=54111
/
-- Jan 3, 2008 1:31:35 PM CST
-- Libero Manufacturing
DELETE FROM AD_Field WHERE AD_Field_ID=54111
/
-- Jan 3, 2008 1:31:40 PM CST
-- Libero Manufacturing
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=54112
/
-- Jan 3, 2008 1:31:40 PM CST
-- Libero Manufacturing
DELETE FROM AD_Field WHERE AD_Field_ID=54112
/
-- Jan 3, 2008 1:56:17 PM CST
-- Libero Manufacturing
UPDATE AD_Column SET SeqNo=0,Updated=TO_DATE('2008-01-03 13:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=2304
/
-- Jan 3, 2008 2:01:42 PM CST
-- Libero Manufacturing
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=13704
/
-- Jan 3, 2008 2:01:42 PM CST
-- Libero Manufacturing
DELETE FROM AD_Column WHERE AD_Column_ID=13704
/
-- Jan 3, 2008 2:01:49 PM CST
-- Libero Manufacturing
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=53407
/
-- Jan 3, 2008 2:01:49 PM CST
-- Libero Manufacturing
DELETE FROM AD_Column WHERE AD_Column_ID=53407
/

View File

@ -0,0 +1,4 @@
-- Jan 3, 2008 2:14:48 PM CST
-- Libero Manufacturing
INSERT INTO AD_ModelValidator (AD_Client_ID,AD_ModelValidator_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Name,ModelValidationClass,IsActive,EntityType) VALUES (0,50000,0,TO_DATE('2008-01-03 14:14:48','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2008-01-03 14:14:48','YYYY-MM-DD HH24:MI:SS'),0,'Model Validator to Libero Manufacturing Management','org.eevolution.model.LiberoValidator','Y','EE01')
/

View File

@ -0,0 +1,4 @@
UPDATE AD_Table SET EntityType='EE01' WHERE AD_Table_ID=53041
/
UPDATE AD_Column SET EntityType='EE01' WHERE AD_Table_ID=53041
/

View File

@ -0,0 +1,616 @@
CREATE OR REPLACE VIEW C_INVOICE_LINETAX_V
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, C_INVOICE_ID, C_INVOICELINE_ID,
C_TAX_ID, TAXAMT, LINETOTALAMT, TAXINDICATOR, LINE,
M_PRODUCT_ID, QTYINVOICED, QTYENTERED, UOMSYMBOL, NAME,
DESCRIPTION, DOCUMENTNOTE, UPC, SKU, PRODUCTVALUE,
RESOURCEDESCRIPTION, PRICELIST, PRICEENTEREDLIST, DISCOUNT, PRICEACTUAL,
PRICEENTERED, LINENETAMT, M_ATTRIBUTESETINSTANCE_ID, M_ATTRIBUTESET_ID, SERNO,
LOT, M_LOT_ID, GUARANTEEDATE, PRODUCTDESCRIPTION, IMAGEURL,
C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, C_PROJECTPHASE_ID, C_PROJECTTASK_ID)
AS
SELECT il.AD_Client_ID, il.AD_Org_ID, il.IsActive, il.Created, il.CreatedBy, il.Updated, il.UpdatedBy,
'en_US' AS AD_Language,
il.C_Invoice_ID, il.C_InvoiceLine_ID,
il.C_Tax_ID, il.TaxAmt, il.LineTotalAmt, t.TaxIndicator,
il.Line, p.M_Product_ID,
CASE WHEN il.QtyInvoiced<>0 OR il.M_Product_ID IS NOT NULL THEN il.QtyInvoiced END AS QtyInvoiced,
CASE WHEN il.QtyEntered<>0 OR il.M_Product_ID IS NOT NULL THEN il.QtyEntered END AS QtyEntered,
CASE WHEN il.QtyEntered<>0 OR il.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
COALESCE(c.Name,p.Name||productAttribute(il.M_AttributeSetInstance_ID), il.Description) AS Name, -- main line
CASE WHEN COALESCE(c.Name,p.Name) IS NOT NULL THEN il.Description END AS Description, -- second line
p.DocumentNote, -- third line
p.UPC, p.SKU, COALESCE(pp.VendorProductNo,p.Value) AS ProductValue,
ra.Description AS ResourceDescription, -- forth line
CASE WHEN i.IsDiscountPrinted='Y' AND il.PriceList<>0
THEN il.PriceList END AS PriceList,
CASE WHEN i.IsDiscountPrinted='Y' AND il.PriceList<>0 AND il.QtyEntered<>0
THEN il.PriceList*il.QtyInvoiced/il.QtyEntered END AS PriceEnteredList,
CASE WHEN i.IsDiscountPrinted='Y' AND il.PriceList>il.PriceActual AND il.PriceList<>0
THEN (il.PriceList-il.PriceActual)/il.PriceList*100 END AS Discount,
CASE WHEN il.PriceActual<>0 OR il.M_Product_ID IS NOT NULL THEN il.PriceActual END AS PriceActual,
CASE WHEN il.PriceEntered<>0 OR il.M_Product_ID IS NOT NULL THEN il.PriceEntered END AS PriceEntered,
CASE WHEN il.LineNetAmt<>0 OR il.M_Product_ID IS NOT NULL THEN il.LineNetAmt END AS LineNetAmt,
il.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID,
asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
p.Description as ProductDescription, p.ImageURL,
il.C_Campaign_ID, il.C_Project_ID, il.C_Activity_ID, il.C_ProjectPhase_ID, il.C_ProjectTask_ID
FROM C_InvoiceLine il
INNER JOIN C_UOM uom ON (il.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN C_Invoice i ON (il.C_Invoice_ID=i.C_Invoice_ID)
LEFT OUTER JOIN C_Tax t ON (il.C_Tax_ID=t.C_Tax_ID)
LEFT OUTER JOIN M_Product p ON (il.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN C_Charge c ON (il.C_Charge_ID=c.C_Charge_ID)
LEFT OUTER JOIN C_BPartner_Product pp ON (il.M_Product_ID=pp.M_Product_ID AND i.C_BPartner_ID=pp.C_BPartner_ID)
LEFT OUTER JOIN S_ResourceAssignment ra ON (il.S_ResourceAssignment_ID=ra.S_ResourceAssignment_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (il.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
UNION -- bom lines
SELECT il.AD_Client_ID, il.AD_Org_ID, il.IsActive, il.Created, il.CreatedBy, il.Updated, il.UpdatedBy,
'en_US' AS AD_Language,
il.C_Invoice_ID, il.C_InvoiceLine_ID,
il.C_Tax_ID, il.TaxAmt, il.LineTotalAmt, t.TaxIndicator,
il.Line+(bl.Line/100) AS Line, p.M_Product_ID,
--il.QtyInvoiced*b.BOMQty AS QtyInvoiced,
CASE WHEN bl.IsQtyPercentage = 'N' THEN il.QtyInvoiced*bl.QtyBOM ELSE il.QtyInvoiced*(bl.QtyBatch / 100) END AS QtyInvoiced,
--il.QtyEntered*b.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN il.QtyEntered*bl.QtyBOM ELSE il.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
p.Name, -- main
b.Description,
p.DocumentNote, p.UPC, p.SKU, p.Value AS ProductValue,
null, null, null, null, null, null, null,
il.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
p.Description as ProductDescription, p.ImageURL,
il.C_Campaign_ID, il.C_Project_ID, il.C_Activity_ID, il.C_ProjectPhase_ID, il.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN C_InvoiceLine il ON (b.M_Product_ID=il.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=il.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)
LEFT OUTER JOIN C_Tax t ON (il.C_Tax_ID=t.C_Tax_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (il.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)*/
FROM PP_Product_BOM b -- BOM lines
INNER JOIN C_InvoiceLine il ON (b.M_Product_ID=il.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=il.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (bl.M_Product_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)
LEFT OUTER JOIN C_Tax t ON (il.C_Tax_ID=t.C_Tax_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (il.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
UNION -- comment lines
SELECT il.AD_Client_ID, il.AD_Org_ID, il.IsActive, il.Created, il.CreatedBy, il.Updated, il.UpdatedBy,
'en_US', il.C_Invoice_ID, il.C_InvoiceLine_ID,
null, null, null, null,
il.Line, null,
null, null, null,
il.Description,
null, null, null, null, null, null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null, null, null, null, null
FROM C_InvoiceLine il
WHERE il.C_UOM_ID IS NULL
UNION -- empty line
SELECT AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy,
'en_US', C_Invoice_ID, null,
null, null, null, null,
9998, null,
null, null, null,
null,
null, null, null, null, null, null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null, null, null, null, null
FROM C_Invoice
UNION -- tax lines
SELECT it.AD_Client_ID, it.AD_Org_ID, it.IsActive, it.Created, it.CreatedBy, it.Updated, it.UpdatedBy,
'en_US', it.C_Invoice_ID, null,
it.C_Tax_ID, null, null, t.TaxIndicator,
9999, null,
null, null, null,
t.Name,
null, null, null, null, null, null,
null, null, null,
CASE WHEN it.IsTaxIncluded='Y' THEN it.TaxAmt ELSE it.TaxBaseAmt END,
CASE WHEN it.IsTaxIncluded='Y' THEN it.TaxAmt ELSE it.TaxBaseAmt END,
CASE WHEN it.IsTaxIncluded='Y' THEN NULL ELSE it.TaxAmt END,
null, null, null, null, null, null, null, null,
null, null, null, null, null
FROM C_InvoiceTax it
INNER JOIN C_Tax t ON (it.C_Tax_ID=t.C_Tax_ID);
CREATE OR REPLACE VIEW C_INVOICE_LINETAX_VT
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, C_INVOICE_ID, C_INVOICELINE_ID,
C_TAX_ID, TAXAMT, LINETOTALAMT, TAXINDICATOR, LINE,
M_PRODUCT_ID, QTYINVOICED, QTYENTERED, UOMSYMBOL, NAME,
DESCRIPTION, DOCUMENTNOTE, UPC, SKU, PRODUCTVALUE,
RESOURCEDESCRIPTION, PRICELIST, PRICEENTEREDLIST, DISCOUNT, PRICEACTUAL,
PRICEENTERED, LINENETAMT, M_ATTRIBUTESETINSTANCE_ID, M_ATTRIBUTESET_ID, SERNO,
LOT, M_LOT_ID, GUARANTEEDATE, PRODUCTDESCRIPTION, IMAGEURL,
C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, C_PROJECTPHASE_ID, C_PROJECTTASK_ID)
AS
SELECT il.AD_Client_ID, il.AD_Org_ID, il.IsActive, il.Created, il.CreatedBy, il.Updated, il.UpdatedBy,
uom.AD_Language,
il.C_Invoice_ID, il.C_InvoiceLine_ID,
il.C_Tax_ID, il.TaxAmt, il.LineTotalAmt, t.TaxIndicator,
il.Line, p.M_Product_ID,
CASE WHEN il.QtyInvoiced<>0 OR il.M_Product_ID IS NOT NULL THEN il.QtyInvoiced END AS QtyInvoiced,
CASE WHEN il.QtyEntered<>0 OR il.M_Product_ID IS NOT NULL THEN il.QtyEntered END AS QtyEntered,
CASE WHEN il.QtyEntered<>0 OR il.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
COALESCE(c.Name,COALESCE(pt.Name,p.Name)||productAttribute(il.M_AttributeSetInstance_ID), il.Description) AS Name, -- main line
CASE WHEN COALESCE(c.Name,pt.Name,p.Name) IS NOT NULL THEN il.Description END AS Description, -- second line
COALESCE(pt.DocumentNote,p.DocumentNote) AS DocumentNote, -- third line
p.UPC, p.SKU, COALESCE(pp.VendorProductNo,p.Value) AS ProductValue,
ra.Description AS ResourceDescription, -- forth line
CASE WHEN i.IsDiscountPrinted='Y' AND il.PriceList<>0
THEN il.PriceList END AS PriceList,
CASE WHEN i.IsDiscountPrinted='Y' AND il.PriceList<>0 AND il.QtyEntered<>0
THEN il.PriceList*il.QtyInvoiced/il.QtyEntered END AS PriceEnteredList,
CASE WHEN i.IsDiscountPrinted='Y' AND il.PriceList>il.PriceActual AND il.PriceList<>0
THEN (il.PriceList-il.PriceActual)/il.PriceList*100 END AS Discount,
CASE WHEN il.PriceActual<>0 OR il.M_Product_ID IS NOT NULL THEN il.PriceActual END AS PriceActual,
CASE WHEN il.PriceEntered<>0 OR il.M_Product_ID IS NOT NULL THEN il.PriceEntered END AS PriceEntered,
CASE WHEN il.LineNetAmt<>0 OR il.M_Product_ID IS NOT NULL THEN il.LineNetAmt END AS LineNetAmt,
il.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
pt.Description as ProductDescription, p.ImageURL,
il.C_Campaign_ID, il.C_Project_ID, il.C_Activity_ID, il.C_ProjectPhase_ID, il.C_ProjectTask_ID
FROM C_InvoiceLine il
INNER JOIN C_UOM_Trl uom ON (il.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN C_Invoice i ON (il.C_Invoice_ID=i.C_Invoice_ID)
LEFT OUTER JOIN C_Tax_Trl t ON (il.C_Tax_ID=t.C_Tax_ID AND uom.AD_Language=t.AD_Language)
LEFT OUTER JOIN M_Product p ON (il.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN C_Charge c ON (il.C_Charge_ID=c.C_Charge_ID)
LEFT OUTER JOIN C_BPartner_Product pp ON (il.M_Product_ID=pp.M_Product_ID AND i.C_BPartner_ID=pp.C_BPartner_ID)
LEFT OUTER JOIN M_Product_Trl pt ON (il.M_Product_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN S_ResourceAssignment ra ON (il.S_ResourceAssignment_ID=ra.S_ResourceAssignment_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (il.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
UNION -- bom lines
SELECT il.AD_Client_ID, il.AD_Org_ID, il.IsActive, il.Created, il.CreatedBy, il.Updated, il.UpdatedBy,
uom.AD_Language,
il.C_Invoice_ID, il.C_InvoiceLine_ID,
il.C_Tax_ID, il.TaxAmt, il.LineTotalAmt, t.TaxIndicator,
il.Line+(bl.Line/100) AS Line, p.M_Product_ID,
--il.QtyInvoiced*b.BOMQty AS QtyInvoiced,
CASE WHEN bl.IsQtyPercentage = 'N' THEN il.QtyInvoiced*bl.QtyBOM ELSE il.QtyInvoiced*(bl.QtyBatch / 100) END AS QtyInvoiced,
--il.QtyEntered*b.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN il.QtyEntered*bl.QtyBOM ELSE il.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
COALESCE(pt.Name,p.Name) AS Name, -- main
b.Description,
COALESCE(pt.DocumentNote,p.DocumentNote) AS DocumentNote, p.UPC, p.SKU, p.Value AS ProductValue,
null, null, null, null, null, null, null,
il.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
pt.Description as ProductDescription, p.ImageURL,
il.C_Campaign_ID, il.C_Project_ID, il.C_Activity_ID, il.C_ProjectPhase_ID, il.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN C_InvoiceLine il ON (b.M_Product_ID=il.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=il.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (b.M_ProductBOM_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN C_Tax t ON (il.C_Tax_ID=t.C_Tax_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (il.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)*/
FROM PP_Product_BOM b -- BOM lines
INNER JOIN C_InvoiceLine il ON (b.M_Product_ID=il.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=il.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (bl.M_Product_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (bl.M_Product_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN C_Tax t ON (il.C_Tax_ID=t.C_Tax_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (il.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
UNION -- comment line
SELECT il.AD_Client_ID, il.AD_Org_ID, il.IsActive, il.Created, il.CreatedBy, il.Updated, il.UpdatedBy,
l.AD_Language, il.C_Invoice_ID, il.C_InvoiceLine_ID,
null, null, null, null,
il.Line, null,
null, null, null,
il.Description,
null, null, null, null, null, null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null,null,null,null,null
FROM C_InvoiceLine il, AD_Language l
WHERE il.C_UOM_ID IS NULL
AND l.IsBaseLanguage='N' AND l.IsSystemLanguage='Y'
UNION -- empty line
SELECT i.AD_Client_ID, i.AD_Org_ID, i.IsActive, i.Created, i.CreatedBy, i.Updated, i.UpdatedBy,
AD_Language, i.C_Invoice_ID, null,
null, null, null, null,
9998, null,
null, null, null,
null,
null, null, null, null, null, null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null,null,null,null,null
FROM C_Invoice i, AD_Language l
WHERE l.IsBaseLanguage='N' AND l.IsSystemLanguage='Y'
UNION -- tax lines
SELECT it.AD_Client_ID, it.AD_Org_ID, it.IsActive, it.Created, it.CreatedBy, it.Updated, it.UpdatedBy,
t.AD_Language, it.C_Invoice_ID, null,
it.C_Tax_ID, null, null, t.TaxIndicator,
9999, null,
null, null, null,
t.Name,
null, null, null, null, null, null,
null, null, null,
CASE WHEN it.IsTaxIncluded='Y' THEN it.TaxAmt ELSE it.TaxBaseAmt END,
CASE WHEN it.IsTaxIncluded='Y' THEN it.TaxAmt ELSE it.TaxBaseAmt END,
CASE WHEN it.IsTaxIncluded='Y' THEN NULL ELSE it.TaxAmt END,
null, null, null, null, null, null, null, null,
null,null,null,null,null
FROM C_InvoiceTax it
INNER JOIN C_Tax_Trl t ON (it.C_Tax_ID=t.C_Tax_ID);
CREATE OR REPLACE VIEW C_ORDER_LINETAX_V
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, C_ORDER_ID, C_ORDERLINE_ID,
C_TAX_ID, TAXINDICATOR, C_BPARTNER_ID, C_BPARTNER_LOCATION_ID, BPNAME,
C_LOCATION_ID, LINE, M_PRODUCT_ID, QTYORDERED, QTYENTERED,
UOMSYMBOL, NAME, DESCRIPTION, DOCUMENTNOTE, UPC,
SKU, PRODUCTVALUE, RESOURCEDESCRIPTION, PRICELIST, PRICEENTEREDLIST,
DISCOUNT, PRICEACTUAL, PRICEENTERED, LINENETAMT, PRODUCTDESCRIPTION,
IMAGEURL, C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, C_PROJECTPHASE_ID,
C_PROJECTTASK_ID)
AS
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
'en_US' AS AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, t.TaxIndicator,
ol.C_BPartner_ID, ol.C_BPartner_Location_ID, bp.Name AS BPName, bpl.C_Location_ID,
ol.Line, p.M_Product_ID,
CASE WHEN ol.QtyOrdered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyOrdered END AS QtyOrdered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyEntered END AS QtyEntered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
COALESCE(c.Name,p.Name||productAttribute(ol.M_AttributeSetInstance_ID), ol.Description) AS Name, -- main line
CASE WHEN COALESCE(c.Name,p.Name) IS NOT NULL THEN ol.Description END AS Description, -- second line
p.DocumentNote, -- third line
p.UPC, p.SKU, COALESCE(pp.VendorProductNo,p.Value) AS ProductValue,
ra.Description AS ResourceDescription, -- forth line
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0
THEN ol.PriceList END AS PriceList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0 AND ol.QtyEntered<>0
THEN ol.PriceList*ol.QtyOrdered/ol.QtyEntered END AS PriceEnteredList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList>ol.PriceActual AND ol.PriceList<>0
THEN (ol.PriceList-ol.PriceActual)/ol.PriceList*100 END AS Discount,
CASE WHEN ol.PriceActual<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceActual END AS PriceActual,
CASE WHEN ol.PriceEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceEntered END AS PriceEntered,
CASE WHEN ol.LineNetAmt<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.LineNetAmt END AS LineNetAmt,
p.Description as ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
FROM C_OrderLine ol
INNER JOIN C_UOM uom ON (ol.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN C_Order i ON (ol.C_Order_ID=i.C_Order_ID)
LEFT OUTER JOIN M_Product p ON (ol.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN S_ResourceAssignment ra ON (ol.S_ResourceAssignment_ID=ra.S_ResourceAssignment_ID)
LEFT OUTER JOIN C_Charge c ON (ol.C_Charge_ID=c.C_Charge_ID)
LEFT OUTER JOIN C_BPartner_Product pp ON (ol.M_Product_ID=pp.M_Product_ID AND i.C_BPartner_ID=pp.C_BPartner_ID)
INNER JOIN C_BPartner bp ON (ol.C_BPartner_ID=bp.C_BPartner_ID)
INNER JOIN C_BPartner_Location bpl ON (ol.C_BPartner_Location_ID=bpl.C_BPartner_Location_ID)
LEFT OUTER JOIN C_Tax t ON (ol.C_Tax_ID=t.C_Tax_ID)
UNION
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
'en_US' AS AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, null,
null, null, null, null,
ol.Line+(bl.Line/100) AS Line, p.M_Product_ID,
--ol.QtyOrdered*bl.BOMQty AS QtyInvoiced
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyOrdered*bl.QtyBOM ELSE ol.QtyOrdered*(bl.QtyBatch / 100) END AS QtyInvoiced,
--ol.QtyEntered*bl.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyEntered*bl.QtyBOM ELSE ol.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
p.Name, -- main
bl.Description,
p.DocumentNote, p.UPC, p.SKU, p.Value AS ProductValue,
null, null, null, null, null, null, null, p.Description as ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN C_OrderLine ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)*/
FROM PP_Product_BOM b
INNER JOIN C_OrderLine ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (p.M_Product_ID=bl.M_Product_ID) -- BOM line product
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)
UNION
SELECT AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy,
'en_US', C_Order_ID, null, null, null,
null,
null, null, null,
null, null, null, null,
null, null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null,null,null,null,null
FROM C_Order
UNION
SELECT ot.AD_Client_ID, ot.AD_Org_ID, ot.IsActive, ot.Created, ot.CreatedBy, ot.Updated, ot.UpdatedBy,
'en_US', ot.C_Order_ID, null, ot.C_Tax_ID, t.TaxIndicator,
null, null, null, null,
null, null,
null, null, null,
t.Name,
null, null, null, null, null, null,
null, null, null,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN NULL ELSE ot.TaxAmt END,
null, null,
null,null,null,null,null
FROM C_OrderTax ot
INNER JOIN C_Tax t ON (ot.C_Tax_ID=t.C_Tax_ID);
CREATE OR REPLACE VIEW C_ORDER_LINETAX_VT
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, C_ORDER_ID, C_ORDERLINE_ID,
C_TAX_ID, TAXINDICATOR, C_BPARTNER_ID, C_BPARTNER_LOCATION_ID, BPNAME,
C_LOCATION_ID, LINE, M_PRODUCT_ID, QTYORDERED, QTYENTERED,
UOMSYMBOL, NAME, DESCRIPTION, DOCUMENTNOTE, UPC,
SKU, PRODUCTVALUE, RESOURCEDESCRIPTION, PRICELIST, PRICEENTEREDLIST,
DISCOUNT, PRICEACTUAL, PRICEENTERED, LINENETAMT, PRODUCTDESCRIPTION,
IMAGEURL, C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, C_PROJECTPHASE_ID,
C_PROJECTTASK_ID)
AS
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
uom.AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, t.TaxIndicator,
ol.C_BPartner_ID, ol.C_BPartner_Location_ID, bp.Name AS BPName, bpl.C_Location_ID,
ol.Line, p.M_Product_ID,
CASE WHEN ol.QtyOrdered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyOrdered END AS QtyOrdered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyEntered END AS QtyEntered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
COALESCE(c.Name,p.Name||productAttribute(ol.M_AttributeSetInstance_ID), ol.Description) AS Name, -- main line
CASE WHEN COALESCE(c.Name,pt.Name, p.Name) IS NOT NULL THEN ol.Description END AS Description, -- second line
COALESCE(pt.DocumentNote, p.DocumentNote) AS DocumentNote, -- third line
p.UPC, p.SKU, COALESCE(pp.VendorProductNo,p.Value) AS ProductValue,
ra.Description AS ResourceDescription, -- forth line
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0
THEN ol.PriceList END AS PriceList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0 AND ol.QtyEntered<>0
THEN ol.PriceList*ol.QtyOrdered/ol.QtyEntered END AS PriceEnteredList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList>ol.PriceActual AND ol.PriceList<>0
THEN (ol.PriceList-ol.PriceActual)/ol.PriceList*100 END AS Discount,
CASE WHEN ol.PriceActual<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceActual END AS PriceActual,
CASE WHEN ol.PriceEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceEntered END AS PriceEntered,
CASE WHEN ol.LineNetAmt<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.LineNetAmt END AS LineNetAmt,
pt.Description as ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
FROM C_OrderLine ol
INNER JOIN C_UOM_Trl uom ON (ol.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN C_Order i ON (ol.C_Order_ID=i.C_Order_ID)
LEFT OUTER JOIN M_Product p ON (ol.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN M_Product_Trl pt ON (ol.M_Product_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN S_ResourceAssignment ra ON (ol.S_ResourceAssignment_ID=ra.S_ResourceAssignment_ID)
LEFT OUTER JOIN C_Charge c ON (ol.C_Charge_ID=c.C_Charge_ID)
LEFT OUTER JOIN C_BPartner_Product pp ON (ol.M_Product_ID=pp.M_Product_ID AND i.C_BPartner_ID=pp.C_BPartner_ID)
INNER JOIN C_BPartner bp ON (ol.C_BPartner_ID=bp.C_BPartner_ID)
INNER JOIN C_BPartner_Location bpl ON (ol.C_BPartner_Location_ID=bpl.C_BPartner_Location_ID)
LEFT OUTER JOIN C_Tax_Trl t ON (ol.C_Tax_ID=t.C_Tax_ID AND uom.AD_Language=t.AD_Language)
UNION
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
uom.AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, null,
null, null, null, null,
ol.Line+(bl.Line/100) AS Line, p.M_Product_ID,
--ol.QtyOrdered*b.BOMQty AS QtyInvoiced,
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyOrdered*bl.QtyBOM ELSE ol.QtyOrdered*(bl.QtyBatch / 100) END AS QtyInvoiced,
--ol.QtyEntered*b.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyEntered*bl.QtyBOM ELSE ol.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
COALESCE(pt.Name, p.Name) AS Name, -- main
b.Description,
COALESCE(pt.DocumentNote, p.DocumentNote) AS DocumentNote, p.UPC, p.SKU, p.Value AS ProductValue,
null, null, null, null, null, null, null, pt.Description AS ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN C_OrderLine ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (b.M_ProductBOM_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)*/
FROM PP_Product_BOM b
INNER JOIN C_ORDERLINE ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_PRODUCT bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (p.M_Product_ID=bl.M_Product_ID) -- BOM line product
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (pt.M_Product_ID=bl.M_Product_ID AND uom.AD_Language=pt.AD_Language)
UNION
SELECT o.AD_Client_ID, o.AD_Org_ID, o.IsActive, o.Created, o.CreatedBy, o.Updated, o.UpdatedBy,
l.AD_Language, o.C_Order_ID, null, null, null,
null,
null, null, null,
null, null, null, null,
null, null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null,null,null,null,null
FROM C_Order o, AD_Language l
WHERE l.IsBaseLanguage='N' AND l.IsSystemLanguage='Y'
UNION
SELECT ot.AD_Client_ID, ot.AD_Org_ID, ot.IsActive, ot.Created, ot.CreatedBy, ot.Updated, ot.UpdatedBy,
t.AD_Language, ot.C_Order_ID, null, ot.C_Tax_ID, t.TaxIndicator,
null, null, null, null,
null, null,
null, null, null,
t.Name,
null, null, null, null, null, null,
null, null, null,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN NULL ELSE ot.TaxAmt END,
null, null,
null,null,null,null,null
FROM C_OrderTax ot
INNER JOIN C_Tax_Trl t ON (ot.C_Tax_ID=t.C_Tax_ID);
CREATE OR REPLACE VIEW M_INOUT_LINE_V
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, M_INOUT_ID, M_INOUTLINE_ID,
LINE, M_PRODUCT_ID, MOVEMENTQTY, QTYENTERED, UOMSYMBOL,
QTYORDERED, QTYDELIVERED, QTYBACKORDERED, NAME, DESCRIPTION,
DOCUMENTNOTE, UPC, SKU, PRODUCTVALUE, M_LOCATOR_ID,
M_WAREHOUSE_ID, X, Y, Z, M_ATTRIBUTESETINSTANCE_ID,
M_ATTRIBUTESET_ID, SERNO, LOT, M_LOT_ID, GUARANTEEDATE,
PRODUCTDESCRIPTION, IMAGEURL, C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID,
C_PROJECTPHASE_ID, C_PROJECTTASK_ID)
AS
SELECT iol.AD_Client_ID, iol.AD_Org_ID, iol.IsActive, iol.Created, iol.CreatedBy, iol.Updated, iol.UpdatedBy,
'en_US' AS AD_Language,
iol.M_InOut_ID, iol.M_InOutLine_ID,
iol.Line, p.M_Product_ID,
CASE WHEN iol.MovementQty<>0 OR iol.M_Product_ID IS NOT NULL THEN iol.MovementQty END AS MovementQty,
CASE WHEN iol.QtyEntered<>0 OR iol.M_Product_ID IS NOT NULL THEN iol.QtyEntered END AS QtyEntered,
CASE WHEN iol.MovementQty<>0 OR iol.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
ol.QtyOrdered, ol.QtyDelivered,
CASE WHEN iol.MovementQty<>0 OR iol.M_Product_ID IS NOT NULL THEN ol.QtyOrdered-ol.QtyDelivered END AS QtyBackOrdered,
COALESCE(p.Name||productAttribute(iol.M_AttributeSetInstance_ID), c.Name, iol.Description) AS Name, -- main line
CASE WHEN COALESCE(c.Name,p.Name) IS NOT NULL THEN iol.Description END AS Description, -- second line
p.DocumentNote, -- third line
p.UPC, p.SKU, p.Value AS ProductValue,
iol.M_Locator_ID, l.M_Warehouse_ID, l.X, l.Y, l.Z,
iol.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
p.Description AS ProductDescription, p.ImageURL,
iol.C_Campaign_ID, iol.C_Project_ID, iol.C_Activity_ID, iol.C_ProjectPhase_ID, iol.C_ProjectTask_ID
FROM M_InOutLine iol
INNER JOIN C_UOM uom ON (iol.C_UOM_ID=uom.C_UOM_ID)
LEFT OUTER JOIN M_Product p ON (iol.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (iol.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
LEFT OUTER JOIN M_Locator l ON (iol.M_Locator_ID=l.M_Locator_ID)
LEFT OUTER JOIN C_OrderLine ol ON (iol.C_OrderLine_ID=ol.C_OrderLine_ID)
LEFT OUTER JOIN C_Charge c ON (iol.C_Charge_ID=c.C_Charge_ID)
UNION -- BOM lines
SELECT iol.AD_Client_ID, iol.AD_Org_ID, iol.IsActive, iol.Created, iol.CreatedBy, iol.Updated, iol.UpdatedBy,
'en_US' AS AD_Language,
iol.M_InOut_ID, iol.M_InOutLine_ID,
iol.Line+(bl.Line/100) AS Line, p.M_Product_ID,
--iol.MovementQty*b.BOMQty AS QtyInvoiced,
CASE WHEN bl.IsQtyPercentage = 'N' THEN iol.MovementQty*bl.QtyBOM ELSE iol.MovementQty*(bl.QtyBatch / 100) END AS QtyInvoiced,
--iol.QtyEntered*b.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN iol.QtyEntered*bl.QtyBOM ELSE iol.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
null, null, null,
p.Name, -- main line
b.Description, -- second line
p.DocumentNote, -- third line
p.UPC, p.SKU, p.Value AS ProductValue,
iol.M_Locator_ID, l.M_Warehouse_ID, l.X, l.Y, l.Z,
iol.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
p.Description AS ProductDescription, p.ImageURL,
iol.C_Campaign_ID, iol.C_Project_ID, iol.C_Activity_ID, iol.C_ProjectPhase_ID, iol.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN M_InOutLine iol ON (b.M_Product_ID=iol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=iol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsPickListPrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (iol.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
LEFT OUTER JOIN M_Locator l ON (iol.M_Locator_ID=l.M_Locator_ID);
*/
FROM PP_Product_BOM b -- BOM lines
INNER JOIN M_InOutLine iol ON (b.M_Product_ID=iol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=iol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsPickListPrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (bl.M_Product_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (iol.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
LEFT OUTER JOIN M_Locator l ON (iol.M_Locator_ID=l.M_Locator_ID);
CREATE OR REPLACE VIEW M_INOUT_LINE_VT
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, M_INOUT_ID, M_INOUTLINE_ID,
LINE, M_PRODUCT_ID, MOVEMENTQTY, QTYENTERED, UOMSYMBOL,
QTYORDERED, QTYDELIVERED, QTYBACKORDERED, NAME, DESCRIPTION,
DOCUMENTNOTE, UPC, SKU, PRODUCTVALUE, M_LOCATOR_ID,
M_WAREHOUSE_ID, X, Y, Z, M_ATTRIBUTESETINSTANCE_ID,
M_ATTRIBUTESET_ID, SERNO, LOT, M_LOT_ID, GUARANTEEDATE,
PRODUCTDESCRIPTION, IMAGEURL, C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID,
C_PROJECTPHASE_ID, C_PROJECTTASK_ID)
AS
SELECT iol.AD_Client_ID, iol.AD_Org_ID, iol.IsActive, iol.Created, iol.CreatedBy, iol.Updated, iol.UpdatedBy,
uom.AD_Language,
iol.M_InOut_ID, iol.M_InOutLine_ID,
iol.Line, p.M_Product_ID,
CASE WHEN iol.MovementQty<>0 OR iol.M_Product_ID IS NOT NULL THEN iol.MovementQty END AS MovementQty,
CASE WHEN iol.QtyEntered<>0 OR iol.M_Product_ID IS NOT NULL THEN iol.QtyEntered END AS QtyEntered,
CASE WHEN iol.MovementQty<>0 OR iol.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
ol.QtyOrdered, ol.QtyDelivered,
CASE WHEN iol.MovementQty<>0 OR iol.M_Product_ID IS NOT NULL THEN ol.QtyOrdered-ol.QtyDelivered END AS QtyBackOrdered,
COALESCE(COALESCE(pt.Name,p.Name)||productAttribute(iol.M_AttributeSetInstance_ID), c.Name, iol.Description) AS Name, -- main line
CASE WHEN COALESCE(pt.Name,p.Name,c.Name) IS NOT NULL THEN iol.Description END AS Description, -- second line
COALESCE(pt.DocumentNote, p.DocumentNote) AS DocumentNote, -- third line
p.UPC, p.SKU, p.Value AS ProductValue,
iol.M_Locator_ID, l.M_Warehouse_ID, l.X, l.Y, l.Z,
iol.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
pt.Description AS ProductDescription, p.ImageURL,
iol.C_Campaign_ID, iol.C_Project_ID, iol.C_Activity_ID, iol.C_ProjectPhase_ID, iol.C_ProjectTask_ID
FROM M_InOutLine iol
INNER JOIN C_UOM_Trl uom ON (iol.C_UOM_ID=uom.C_UOM_ID)
LEFT OUTER JOIN M_Product p ON (iol.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN M_Product_Trl pt ON (iol.M_Product_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (iol.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
LEFT OUTER JOIN M_Locator l ON (iol.M_Locator_ID=l.M_Locator_ID)
LEFT OUTER JOIN C_OrderLine ol ON (iol.C_OrderLine_ID=ol.C_OrderLine_ID)
LEFT OUTER JOIN C_Charge c ON (iol.C_Charge_ID=c.C_Charge_ID)
UNION
SELECT iol.AD_Client_ID, iol.AD_Org_ID, iol.IsActive, iol.Created, iol.CreatedBy, iol.Updated, iol.UpdatedBy,
uom.AD_Language,
iol.M_InOut_ID, iol.M_InOutLine_ID,
iol.Line+(bl.Line/100) AS Line, p.M_Product_ID,
--iol.MovementQty*b.BOMQty AS QtyInvoiced,
CASE WHEN bl.IsQtyPercentage = 'N' THEN iol.MovementQty*bl.QtyBOM ELSE iol.MovementQty*(bl.QtyBatch / 100) END AS QtyInvoiced,
--iol.QtyEntered*b.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN iol.QtyEntered*bl.QtyBOM ELSE iol.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
null, null, null,
COALESCE (pt.Name, p.Name) AS Name, -- main line
b.Description, -- second line
COALESCE (pt.DocumentNote, p.DocumentNote) AS DocumentNote, -- third line
p.UPC, p.SKU, p.Value AS ProductValue,
iol.M_Locator_ID, l.M_Warehouse_ID, l.X, l.Y, l.Z,
iol.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
pt.Description AS ProductDescription, p.ImageURL,
iol.C_Campaign_ID, iol.C_Project_ID, iol.C_Activity_ID, iol.C_ProjectPhase_ID, iol.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN M_InOutLine iol ON (b.M_Product_ID=iol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=iol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsPickListPrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (iol.M_Product_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (iol.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
LEFT OUTER JOIN M_Locator l ON (iol.M_Locator_ID=l.M_Locator_ID);*/
FROM PP_Product_BOM b -- BOM lines
INNER JOIN M_InOutLine iol ON (b.M_Product_ID=iol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=iol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsPickListPrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (bl.M_Product_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (iol.M_Product_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (iol.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
LEFT OUTER JOIN M_Locator l ON (iol.M_Locator_ID=l.M_Locator_ID);

View File

@ -0,0 +1,28 @@
SET DEFINE OFF;
SET SQLBLANKLINES ON;
-- Dec 19, 2007 4:07:05 PM EST
-- fix entitytype column for PP_Order_Node, PP_Order_NodeNext & PP_Order_Workflow
UPDATE AD_Column SET AD_Reference_ID=18, DefaultValue='U', FieldLength=40, ReadOnlyLogic='@EntityType@=D',Updated=TO_DATE('2007-12-19 16:07:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53474
;
UPDATE AD_Field SET Name='Entity Type', Description='Dictionary Entity Type; Determines ownership and synchronization', Help='The Entity Types "Dictionary", "Adempiere" and "Application" might be automatically synchronized and customizations deleted or overwritten.
FOR customizations, copy THE entity AND SELECT "User"!' WHERE AD_Column_ID=53474 AND IsCentrallyMaintained='Y'
;
UPDATE AD_Column SET AD_Reference_ID=18, DefaultValue='U', FieldLength=40, ReadOnlyLogic='@EntityType@=D',Updated=TO_DATE('2007-12-19 16:07:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53520
;
UPDATE AD_Field SET Name='Entity Type', Description='Dictionary Entity Type; Determines ownership and synchronization', Help='The Entity Types "Dictionary", "Adempiere" and "Application" might be automatically synchronized and customizations deleted or overwritten.
FOR customizations, copy THE entity AND SELECT "User"!' WHERE AD_Column_ID=53520 AND IsCentrallyMaintained='Y'
;
UPDATE AD_Column SET AD_Reference_ID=18, DefaultValue='U', FieldLength=40, ReadOnlyLogic='@EntityType@=D',Updated=TO_DATE('2007-12-19 16:08:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53701
;
UPDATE AD_Field SET Name='Entity Type', Description='Dictionary Entity Type; Determines ownership and synchronization', Help='The Entity Types "Dictionary", "Adempiere" and "Application" might be automatically synchronized and customizations deleted or overwritten.
FOR customizations, copy THE entity AND SELECT "User"!' WHERE AD_Column_ID=53701 AND IsCentrallyMaintained='Y'
;

View File

@ -0,0 +1,4 @@
-- Jan 5, 2008 11:15:30 AM EST
-- Fix column PP_Product_BOMLine.Line default value
UPDATE AD_Column SET DefaultValue='@SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM PP_Product_BOMLine WHERE PP_Product_BOM_ID=@PP_Product_BOM_ID@',Updated=TO_DATE('2008-01-05 11:15:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53361
;

View File

@ -0,0 +1,14 @@
-- Jan 7, 2008 7:03:41 PM CST
-- Void Journal Cash
INSERT INTO AD_Column (Name,IsMandatory,IsTranslated,Description,IsIdentifier,SeqNo,Help,Version,IsActive,AD_Table_ID,AD_Column_ID,ColumnName,AD_Client_ID,AD_Org_ID,FieldLength,IsParent,Created,IsSyncDatabase,AD_Reference_ID,CreatedBy,Updated,AD_Element_ID,IsUpdateable,IsKey,IsSelectionColumn,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,EntityType) VALUES ('Payment','N','N','Payment identifier','N',0,'The Payment is a unique identifier of this payment.',0,'Y',410,54090,'C_Payment_ID',0,0,10,'N',TO_DATE('2008-01-07 19:03:34','YYYY-MM-DD HH24:MI:SS'),'N',19,0,TO_DATE('2008-01-07 19:03:34','YYYY-MM-DD HH24:MI:SS'),1384,'Y','N','N',0,'N','N','D')
;
-- Jan 7, 2008 7:03:42 PM CST
-- Void Journal Cash
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54090 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Jan 7, 2008 7:04:25 PM CST
-- Void Journal Cash
ALTER TABLE C_CashLine ADD C_Payment_ID NUMBER(10)
;

View File

@ -0,0 +1,61 @@
-- Jan 16, 2008 8:33:22 PM CST
--[+1871641+]+Account+Bank+into+POS+Terminal
INSERT INTO AD_Column (Name,IsMandatory,IsTranslated,Description,IsIdentifier,SeqNo,Help,Version,IsActive,AD_Table_ID,AD_Column_ID,ColumnName,AD_Client_ID,AD_Org_ID,FieldLength,IsParent,Created,IsSyncDatabase,AD_Reference_ID,CreatedBy,Updated,AD_Element_ID,IsUpdateable,IsKey,IsSelectionColumn,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,EntityType) VALUES ('Bank Account','N','N','Account at the Bank','N',0,'The Bank Account identifies an account at this Bank.',0,'Y',748,54236,'C_BankAccount_ID',0,0,22,'N',TO_DATE('2008-01-16 20:33:21','YYYY-MM-DD HH24:MI:SS'),'N',19,0,TO_DATE('2008-01-16 20:33:21','YYYY-MM-DD HH24:MI:SS'),836,'Y','N','N',0,'N','N','D')
;
-- Jan 16, 2008 8:33:22 PM CST
--[+1871641+]+Account+Bank+into+POS+Terminal
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54236 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Jan 16, 2008 8:33:52 PM CST
--[+1871641+]+Account+Bank+into+POS+Terminal
INSERT INTO AD_Field (IsEncrypted,AD_Org_ID,UpdatedBy,IsDisplayed,IsCentrallyMaintained,IsActive,Created,AD_Client_ID,AD_Field_ID,Description,DisplayLength,AD_Column_ID,IsFieldOnly,CreatedBy,Help,Updated,Name,AD_Tab_ID,IsSameLine,IsHeading,IsReadOnly,EntityType) VALUES ('N',0,0,'Y','Y','Y',TO_DATE('2008-01-16 20:33:52','YYYY-MM-DD HH24:MI:SS'),0,54330,'Account at the Bank',22,54236,'N',0,'The Bank Account identifies an account at this Bank.',TO_DATE('2008-01-16 20:33:52','YYYY-MM-DD HH24:MI:SS'),'Bank Account',676,'N','N','N','D')
;
-- Jan 16, 2008 8:33:52 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54330 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Jan 16, 2008 8:34:08 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54330
;
-- Jan 16, 2008 8:34:08 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=10811
;
-- Jan 16, 2008 8:34:08 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=10810
;
-- Jan 16, 2008 8:34:08 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=10798
;
-- Jan 16, 2008 8:34:08 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=10803
;
-- Jan 16, 2008 8:34:08 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=52017
;
-- Jan 16, 2008 8:34:16 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-01-16 20:34:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54330
;
-- Jan 16, 2008 9:23:14 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
ALTER TABLE C_POS ADD C_BankAccount_ID NUMBER(10) DEFAULT NULL
;

View File

@ -0,0 +1,281 @@
-- Jan 16, 2008 8:58:57 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Column (Name,IsMandatory,IsTranslated,IsIdentifier,SeqNo,Version,IsActive,AD_Table_ID,AD_Column_ID,ColumnName,AD_Client_ID,AD_Org_ID,FieldLength,IsParent,Created,IsSyncDatabase,AD_Reference_ID,CreatedBy,Updated,AD_Element_ID,IsUpdateable,IsKey,IsSelectionColumn,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,EntityType) VALUES ('Group1','N','N','N',0,0,'Y',477,54237,'Group1',0,0,255,'N',TO_DATE('2008-01-16 20:58:54','YYYY-MM-DD HH24:MI:SS'),'N',10,0,TO_DATE('2008-01-16 20:58:54','YYYY-MM-DD HH24:MI:SS'),52018,'Y','N','N',0,'N','N','D')
;
-- Jan 16, 2008 8:58:57 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54237 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Jan 16, 2008 8:59:29 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Column (Name,IsMandatory,IsTranslated,IsIdentifier,SeqNo,Version,IsActive,AD_Table_ID,AD_Column_ID,ColumnName,AD_Client_ID,AD_Org_ID,FieldLength,IsParent,Created,IsSyncDatabase,AD_Reference_ID,CreatedBy,Updated,AD_Element_ID,IsUpdateable,IsKey,IsSelectionColumn,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,EntityType) VALUES ('Group2','N','N','N',0,0,'Y',477,54238,'Group2',0,0,255,'N',TO_DATE('2008-01-16 20:59:26','YYYY-MM-DD HH24:MI:SS'),'N',10,0,TO_DATE('2008-01-16 20:59:26','YYYY-MM-DD HH24:MI:SS'),52019,'Y','N','N',0,'N','N','D')
;
-- Jan 16, 2008 8:59:29 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54238 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Jan 16, 2008 9:00:22 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Column (Name,IsMandatory,IsTranslated,Description,IsIdentifier,SeqNo,Help,Version,IsActive,AD_Table_ID,AD_Column_ID,ColumnName,AD_Client_ID,AD_Org_ID,FieldLength,IsParent,Created,IsSyncDatabase,AD_Reference_ID,CreatedBy,Updated,AD_Element_ID,IsUpdateable,IsKey,IsSelectionColumn,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,EntityType) VALUES ('Classification','N','N','Classification for grouping','N',0,'The Classification can be used to optionally group products.',0,'Y',477,54239,'Classification',0,0,12,'N',TO_DATE('2008-01-16 21:00:19','YYYY-MM-DD HH24:MI:SS'),'N',10,0,TO_DATE('2008-01-16 21:00:19','YYYY-MM-DD HH24:MI:SS'),852,'Y','N','N',0,'N','N','D')
;
-- Jan 16, 2008 9:00:22 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54239 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Jan 16, 2008 9:00:28 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
ALTER TABLE M_DiscountSchemaLine ADD Classification NVARCHAR2(12)
;
-- Jan 16, 2008 9:00:34 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
ALTER TABLE M_DiscountSchemaLine ADD Group2 NVARCHAR2(255)
;
-- Jan 16, 2008 9:00:39 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
ALTER TABLE M_DiscountSchemaLine ADD Group1 NVARCHAR2(255)
;
-- Jan 16, 2008 9:02:42 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Field (IsEncrypted,AD_Org_ID,UpdatedBy,IsDisplayed,IsCentrallyMaintained,IsActive,Created,AD_Client_ID,AD_Field_ID,Description,DisplayLength,AD_Column_ID,IsFieldOnly,CreatedBy,Help,Updated,Name,AD_Tab_ID,IsSameLine,IsHeading,IsReadOnly,EntityType) VALUES ('N',0,0,'Y','Y','Y',TO_DATE('2008-01-16 21:02:39','YYYY-MM-DD HH24:MI:SS'),0,54331,'Classification for grouping',12,54239,'N',0,'The Classification can be used to optionally group products.',TO_DATE('2008-01-16 21:02:39','YYYY-MM-DD HH24:MI:SS'),'Classification',405,'N','N','N','D')
;
-- Jan 16, 2008 9:02:42 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54331 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Jan 16, 2008 9:02:45 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Field (IsEncrypted,AD_Org_ID,UpdatedBy,IsDisplayed,IsCentrallyMaintained,IsActive,Created,AD_Client_ID,AD_Field_ID,DisplayLength,AD_Column_ID,IsFieldOnly,CreatedBy,Updated,Name,AD_Tab_ID,IsSameLine,IsHeading,IsReadOnly,EntityType) VALUES ('N',0,0,'Y','Y','Y',TO_DATE('2008-01-16 21:02:42','YYYY-MM-DD HH24:MI:SS'),0,54332,255,54237,'N',0,TO_DATE('2008-01-16 21:02:42','YYYY-MM-DD HH24:MI:SS'),'Group1',405,'N','N','N','D')
;
-- Jan 16, 2008 9:02:45 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54332 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Jan 16, 2008 9:02:48 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Field (IsEncrypted,AD_Org_ID,UpdatedBy,IsDisplayed,IsCentrallyMaintained,IsActive,Created,AD_Client_ID,AD_Field_ID,DisplayLength,AD_Column_ID,IsFieldOnly,CreatedBy,Updated,Name,AD_Tab_ID,IsSameLine,IsHeading,IsReadOnly,EntityType) VALUES ('N',0,0,'Y','Y','Y',TO_DATE('2008-01-16 21:02:45','YYYY-MM-DD HH24:MI:SS'),0,54333,255,54238,'N',0,TO_DATE('2008-01-16 21:02:45','YYYY-MM-DD HH24:MI:SS'),'Group2',405,'N','N','N','D')
;
-- Jan 16, 2008 9:02:48 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54333 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=5243
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=5244
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=5245
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=5247
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=5246
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=5248
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=8642
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=5253
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=5250
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=5251
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54331
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54332
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=54333
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=5254
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=5258
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=5255
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=5259
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=5256
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=5257
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=5349
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=5260
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=5264
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=5261
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=5265
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=5262
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=5263
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=5350
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=5266
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=5270
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=5267
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=5271
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=5268
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=5269
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=5348
;
-- Jan 16, 2008 9:04:22 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2008-01-16 21:04:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5251
;
-- Jan 16, 2008 9:04:25 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-01-16 21:04:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5249
;
-- Jan 16, 2008 9:04:36 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2008-01-16 21:04:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5249
;
-- Jan 16, 2008 9:04:42 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-01-16 21:04:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54331
;
-- Jan 16, 2008 9:04:45 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-01-16 21:04:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54333
;
-- Jan 16, 2008 9:09:32 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET DisplayLength=20,Updated=TO_DATE('2008-01-16 21:09:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54332
;
-- Jan 16, 2008 9:09:36 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET DisplayLength=20,Updated=TO_DATE('2008-01-16 21:09:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54333
;

View File

@ -0,0 +1,20 @@
-- Jan 19, 2008 10:44:04 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Ref_List SET Name='Distribution Order',Updated=TO_DATE('2008-01-19 22:44:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Ref_List_ID=53241
;
-- Jan 19, 2008 10:44:04 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53241
;
-- Jan 19, 2008 10:45:02 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
INSERT INTO AD_Ref_List (Created,CreatedBy,Updated,UpdatedBy,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Value,Name,IsActive,AD_Client_ID,EntityType) VALUES (TO_DATE('2008-01-19 22:45:00','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2008-01-19 22:45:00','YYYY-MM-DD HH24:MI:SS'),0,0,53287,329,'DOO','Distribution Order','Y',0,'EE01')
;
-- Jan 19, 2008 10:45:02 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53287 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID)
;

View File

@ -0,0 +1,10 @@
-- Jan 20, 2008 7:12:48 PM EST
-- Default comment for updating dictionary
UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_DATE('2008-01-20 19:12:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53408
;
-- Jan 20, 2008 7:12:48 PM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET Name='LowLevel', Description=NULL, Help=NULL WHERE AD_Column_ID=53408 AND IsCentrallyMaintained='Y'
;

View File

@ -0,0 +1,67 @@
-- Jan 20, 2008 8:25:27 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-01-20 20:25:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54221
;
-- Jan 20, 2008 8:28:39 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
INSERT INTO AD_Column (Name,IsMandatory,IsTranslated,Description,IsIdentifier,SeqNo,DefaultValue,Help,Version,IsActive,AD_Table_ID,AD_Column_ID,ColumnName,AD_Client_ID,AD_Org_ID,FieldLength,IsParent,Created,IsSyncDatabase,AD_Reference_ID,CreatedBy,Updated,AD_Element_ID,IsUpdateable,IsKey,IsSelectionColumn,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,EntityType) VALUES ('In Transit','N','N','Movement is in transit','N',0,'N','Material Movement is in transit - shipped, but not received.
The transaction is completed, if confirmed.',0,'Y',190,54240,'IsInTransit',0,0,1,'N',TO_DATE('2008-01-20 20:28:37','YYYY-MM-DD HH24:MI:SS'),'N',20,0,TO_DATE('2008-01-20 20:28:37','YYYY-MM-DD HH24:MI:SS'),2397,'Y','N','N',0,'N','N','EE01')
;
-- Jan 20, 2008 8:28:39 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54240 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Jan 20, 2008 8:28:44 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
ALTER TABLE M_Warehouse ADD IsInTransit CHAR(1) DEFAULT 'N' CHECK (IsInTransit IN ('Y','N'))
;
-- Jan 20, 2008 8:29:13 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
INSERT INTO AD_Field (IsEncrypted,AD_Org_ID,UpdatedBy,IsDisplayed,IsCentrallyMaintained,IsActive,Created,AD_Client_ID,AD_Field_ID,Description,DisplayLength,AD_Column_ID,IsFieldOnly,CreatedBy,Help,Updated,Name,AD_Tab_ID,IsSameLine,IsHeading,IsReadOnly,EntityType) VALUES ('N',0,0,'Y','Y','Y',TO_DATE('2008-01-20 20:29:10','YYYY-MM-DD HH24:MI:SS'),0,54334,'Movement is in transit',1,54240,'N',0,'Material Movement is in transit - shipped, but not received.
The transaction is completed, if confirmed.',TO_DATE('2008-01-20 20:29:10','YYYY-MM-DD HH24:MI:SS'),'In Transit',177,'N','N','N','EE01')
;
-- Jan 20, 2008 8:29:13 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54334 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Jan 20, 2008 8:30:44 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54334
;
-- Jan 20, 2008 8:30:44 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=12132
;
-- Jan 20, 2008 8:30:44 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=12131
;
-- Jan 20, 2008 8:30:57 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-01-20 20:30:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54334
;
-- Jan 20, 2008 8:33:07 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54334
;
-- Jan 20, 2008 8:33:07 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=995
;
-- Jan 20, 2008 8:33:07 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=3781
;

View File

@ -0,0 +1,174 @@
-- Jan 24, 2008 6:33:14 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50048
;
-- Jan 24, 2008 6:33:14 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50048
;
-- Jan 24, 2008 6:33:28 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50047
;
-- Jan 24, 2008 6:33:28 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50047
;
-- Jan 24, 2008 6:33:40 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50046
;
-- Jan 24, 2008 6:33:41 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50046
;
-- Jan 24, 2008 6:33:53 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50045
;
-- Jan 24, 2008 6:33:53 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50045
;
-- Jan 24, 2008 6:34:07 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(DocAuto)',Updated=TO_DATE('2008-01-24 18:34:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=233
;
-- Jan 24, 2008 6:34:07 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=233
;
-- Jan 24, 2008 6:34:15 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(DocComplete)',Updated=TO_DATE('2008-01-24 18:34:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=235
;
-- Jan 24, 2008 6:34:15 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=235
;
-- Jan 24, 2008 6:34:22 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(DocPrepare)',Updated=TO_DATE('2008-01-24 18:34:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=234
;
-- Jan 24, 2008 6:34:22 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=234
;
-- Jan 24, 2008 6:34:29 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(Start)',Updated=TO_DATE('2008-01-24 18:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=232
;
-- Jan 24, 2008 6:34:29 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=232
;
-- Jan 24, 2008 6:34:39 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_Workflow SET IsValid='Y', AD_WF_Node_ID=232,Updated=TO_DATE('2008-01-24 18:34:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Workflow_ID=128
;
-- Jan 24, 2008 6:35:50 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50037
;
-- Jan 24, 2008 6:35:50 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50037
;
-- Jan 24, 2008 6:36:00 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50038
;
-- Jan 24, 2008 6:36:01 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50038
;
-- Jan 24, 2008 6:36:14 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50039
;
-- Jan 24, 2008 6:36:14 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50039
;
-- Jan 24, 2008 6:36:37 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50040
;
-- Jan 24, 2008 6:36:37 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50040
;
-- Jan 24, 2008 6:36:53 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(DocAuto)',Updated=TO_DATE('2008-01-24 18:36:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=188
;
-- Jan 24, 2008 6:36:53 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=188
;
-- Jan 24, 2008 6:36:58 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(DocComplete)',Updated=TO_DATE('2008-01-24 18:36:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=190
;
-- Jan 24, 2008 6:36:58 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=190
;
-- Jan 24, 2008 6:37:02 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(DocPrepare)',Updated=TO_DATE('2008-01-24 18:37:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=189
;
-- Jan 24, 2008 6:37:02 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=189
;
-- Jan 24, 2008 6:37:07 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(Start)',Updated=TO_DATE('2008-01-24 18:37:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=187
;
-- Jan 24, 2008 6:37:07 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=187
;
-- Jan 24, 2008 6:37:14 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_Workflow SET IsValid='Y', AD_WF_Node_ID=187,Updated=TO_DATE('2008-01-24 18:37:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Workflow_ID=117
;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,685 @@
-- Feb 11, 2008 12:44:51 PM CST
-- Implementing Distribution Network
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,54310,53340,0,19,53020,'DD_NetworkDistribution_ID',TO_DATE('2008-02-11 12:44:48','YYYY-MM-DD HH24:MI:SS'),0,'EE01',22,'Y','N','N','N','N','N','N','N','N','N','Y','Network Distribution',0,TO_DATE('2008-02-11 12:44:48','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 11, 2008 12:44:51 PM CST
-- Implementing Distribution Network
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54310 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 11, 2008 12:44:58 PM CST
-- Implementing Distribution Network
ALTER TABLE PP_Product_Planning ADD DD_NetworkDistribution_ID NUMBER(10)
;
-- Feb 11, 2008 12:45:22 PM CST
-- Implementing Distribution Network
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54310,54392,0,53030,TO_DATE('2008-02-11 12:45:18','YYYY-MM-DD HH24:MI:SS'),0,22,'EE01','Y','Y','Y','N','N','N','N','N','Network Distribution',TO_DATE('2008-02-11 12:45:18','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 11, 2008 12:45:22 PM CST
-- Implementing Distribution Network
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54392 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54392
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=53519
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=53520
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=53521
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=53522
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=53523
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=53524
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=53525
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=53526
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=53527
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=53528
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=53529
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=53530
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=53531
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=53532
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=53533
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=53534
;
-- Feb 11, 2008 12:46:17 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Is Create Plan', PrintName='Is Create Plan',Updated=TO_DATE('2008-02-11 12:46:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53258
;
-- Feb 11, 2008 12:46:18 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53258
;
-- Feb 11, 2008 12:46:18 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='IsCreatePlan', Name='Is Create Plan', Description=NULL, Help=NULL WHERE AD_Element_ID=53258
;
-- Feb 11, 2008 12:46:18 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Is Create Plan', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53258) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:46:18 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsCreatePlan', Name='Is Create Plan', Description=NULL, Help=NULL, AD_Element_ID=53258 WHERE UPPER(ColumnName)='ISCREATEPLAN' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:46:18 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsCreatePlan', Name='Is Create Plan', Description=NULL, Help=NULL WHERE AD_Element_ID=53258 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:46:18 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Is Create Plan', Name='Is Create Plan' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53258)
;
-- Feb 11, 2008 12:46:18 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Is Create Plan', Name='Is Create Plan' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53258)
;
-- Feb 11, 2008 12:46:40 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Is Demand', PrintName='Is Demand',Updated=TO_DATE('2008-02-11 12:46:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53259
;
-- Feb 11, 2008 12:46:40 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53259
;
-- Feb 11, 2008 12:46:40 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='IsDemand', Name='Is Demand', Description=NULL, Help=NULL WHERE AD_Element_ID=53259
;
-- Feb 11, 2008 12:46:40 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Is Demand', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53259) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:46:40 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsDemand', Name='Is Demand', Description=NULL, Help=NULL, AD_Element_ID=53259 WHERE UPPER(ColumnName)='ISDEMAND' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:46:41 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsDemand', Name='Is Demand', Description=NULL, Help=NULL WHERE AD_Element_ID=53259 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:46:41 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Is Demand', Name='Is Demand' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53259)
;
-- Feb 11, 2008 12:46:41 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Is Demand', Name='Is Demand' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53259)
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Is Issue', PrintName='Is Issue',Updated=TO_DATE('2008-02-11 12:47:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53260
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53260
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='IsIssue', Name='Is Issue', Description=NULL, Help=NULL WHERE AD_Element_ID=53260
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Is Issue', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53260) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsIssue', Name='Is Issue', Description=NULL, Help=NULL, AD_Element_ID=53260 WHERE UPPER(ColumnName)='ISISSUE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsIssue', Name='Is Issue', Description=NULL, Help=NULL WHERE AD_Element_ID=53260 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Is Issue', Name='Is Issue' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53260)
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Is Issue', Name='Is Issue' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53260)
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Is MPS', PrintName='Is MPS',Updated=TO_DATE('2008-02-11 12:47:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53261
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53261
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='IsMPS', Name='Is MPS', Description=NULL, Help=NULL WHERE AD_Element_ID=53261
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Is MPS', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53261) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsMPS', Name='Is MPS', Description=NULL, Help=NULL, AD_Element_ID=53261 WHERE UPPER(ColumnName)='ISMPS' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsMPS', Name='Is MPS', Description=NULL, Help=NULL WHERE AD_Element_ID=53261 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Is MPS', Name='Is MPS' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53261)
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Is MPS', Name='Is MPS' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53261)
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Is Required MRP', PrintName='Is Required MRP',Updated=TO_DATE('2008-02-11 12:47:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53262
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53262
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='IsRequiredMRP', Name='Is Required MRP', Description=NULL, Help=NULL WHERE AD_Element_ID=53262
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Is Required MRP', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53262) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsRequiredMRP', Name='Is Required MRP', Description=NULL, Help=NULL, AD_Element_ID=53262 WHERE UPPER(ColumnName)='ISREQUIREDMRP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsRequiredMRP', Name='Is Required MRP', Description=NULL, Help=NULL WHERE AD_Element_ID=53262 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Is Required MRP', Name='Is Required MRP' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53262)
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Is Required MRP', Name='Is Required MRP' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53262)
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Is Supply', PrintName='Is Supply',Updated=TO_DATE('2008-02-11 12:48:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53263
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53263
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='IsSupply', Name='Is Supply', Description=NULL, Help=NULL WHERE AD_Element_ID=53263
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Is Supply', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53263) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsSupply', Name='Is Supply', Description=NULL, Help=NULL, AD_Element_ID=53263 WHERE UPPER(ColumnName)='ISSUPPLY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsSupply', Name='Is Supply', Description=NULL, Help=NULL WHERE AD_Element_ID=53263 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Is Supply', Name='Is Supply' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53263)
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Is Supply', Name='Is Supply' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53263)
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET PrintName='Order Max',Updated=TO_DATE('2008-02-11 12:48:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53264
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53264
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='Order_Max', Name='Order_Max', Description=NULL, Help=NULL WHERE AD_Element_ID=53264
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Order_Max', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53264) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Max', Name='Order_Max', Description=NULL, Help=NULL, AD_Element_ID=53264 WHERE UPPER(ColumnName)='ORDER_MAX' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Max', Name='Order_Max', Description=NULL, Help=NULL WHERE AD_Element_ID=53264 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Order Max', Name='Order_Max' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53264)
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Order Max', Name='Order_Max' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53264)
;
-- Feb 11, 2008 12:48:39 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET Name='Order Max',Updated=TO_DATE('2008-02-11 12:48:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53391
;
-- Feb 11, 2008 12:48:39 PM CST
-- Implementing Distribution Network
UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=53391
;
-- Feb 11, 2008 12:48:39 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Order Max', Description=NULL, Help=NULL WHERE AD_Column_ID=53391 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Order Period', PrintName='Order Period',Updated=TO_DATE('2008-02-11 12:48:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53265
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53265
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='Order_Period', Name='Order Period', Description=NULL, Help=NULL WHERE AD_Element_ID=53265
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Order Period', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53265) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Period', Name='Order Period', Description=NULL, Help=NULL, AD_Element_ID=53265 WHERE UPPER(ColumnName)='ORDER_PERIOD' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Period', Name='Order Period', Description=NULL, Help=NULL WHERE AD_Element_ID=53265 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Order Period', Name='Order Period' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53265)
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Order Period', Name='Order Period' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53265)
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Order Policy', PrintName='Order Policy',Updated=TO_DATE('2008-02-11 12:49:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53266
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53266
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='Order_Policy', Name='Order Policy', Description=NULL, Help=NULL WHERE AD_Element_ID=53266
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Order Policy', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53266) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Policy', Name='Order Policy', Description=NULL, Help=NULL, AD_Element_ID=53266 WHERE UPPER(ColumnName)='ORDER_POLICY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Policy', Name='Order Policy', Description=NULL, Help=NULL WHERE AD_Element_ID=53266 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Order Policy', Name='Order Policy' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53266)
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Order Policy', Name='Order Policy' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53266)
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Order Qty', PrintName='Order Qty',Updated=TO_DATE('2008-02-11 12:49:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53267
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53267
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='Order_Qty', Name='Order Qty', Description=NULL, Help=NULL WHERE AD_Element_ID=53267
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Order Qty', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53267) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Qty', Name='Order Qty', Description=NULL, Help=NULL, AD_Element_ID=53267 WHERE UPPER(ColumnName)='ORDER_QTY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Qty', Name='Order Qty', Description=NULL, Help=NULL WHERE AD_Element_ID=53267 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Order Qty', Name='Order Qty' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53267)
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Order Qty', Name='Order Qty' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53267)
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Planner ID', PrintName='Planner ID',Updated=TO_DATE('2008-02-11 12:49:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53269
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53269
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='Planner_ID', Name='Planner ID', Description=NULL, Help=NULL WHERE AD_Element_ID=53269
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Planner ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53269) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Planner_ID', Name='Planner ID', Description=NULL, Help=NULL, AD_Element_ID=53269 WHERE UPPER(ColumnName)='PLANNER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Planner_ID', Name='Planner ID', Description=NULL, Help=NULL WHERE AD_Element_ID=53269 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Planner ID', Name='Planner ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53269)
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Planner ID', Name='Planner ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53269)
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Planner', PrintName='Planner',Updated=TO_DATE('2008-02-11 12:50:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53269
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53269
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='Planner_ID', Name='Planner', Description=NULL, Help=NULL WHERE AD_Element_ID=53269
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Planner', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53269) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Planner_ID', Name='Planner', Description=NULL, Help=NULL, AD_Element_ID=53269 WHERE UPPER(ColumnName)='PLANNER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Planner_ID', Name='Planner', Description=NULL, Help=NULL WHERE AD_Element_ID=53269 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Planner', Name='Planner' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53269)
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Planner', Name='Planner' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53269)
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Time Fence', PrintName='Time Fence',Updated=TO_DATE('2008-02-11 12:50:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53270
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53270
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='TimeFence', Name='Time Fence', Description=NULL, Help=NULL WHERE AD_Element_ID=53270
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Time Fence', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53270) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='TimeFence', Name='Time Fence', Description=NULL, Help=NULL, AD_Element_ID=53270 WHERE UPPER(ColumnName)='TIMEFENCE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='TimeFence', Name='Time Fence', Description=NULL, Help=NULL WHERE AD_Element_ID=53270 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Time Fence', Name='Time Fence' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53270)
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Time Fence', Name='Time Fence' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53270)
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Transfert Time', PrintName='Transfert Time',Updated=TO_DATE('2008-02-11 12:50:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53271
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53271
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='TransfertTime', Name='Transfert Time', Description=NULL, Help=NULL WHERE AD_Element_ID=53271
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Transfert Time', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53271) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='TransfertTime', Name='Transfert Time', Description=NULL, Help=NULL, AD_Element_ID=53271 WHERE UPPER(ColumnName)='TRANSFERTTIME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='TransfertTime', Name='Transfert Time', Description=NULL, Help=NULL WHERE AD_Element_ID=53271 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Transfert Time', Name='Transfert Time' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53271)
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem pi SET PrintName='Transfert Time', Name='Transfert Time' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53271)
;

View File

@ -0,0 +1,283 @@
-- Feb 12, 2008 12:59:56 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Table (AD_Client_ID,AD_Org_ID,AD_Table_ID,AccessLevel,Created,CreatedBy,EntityType,ImportTable,IsActive,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEnabled,IsView,Name,ReplicationType,TableName,Updated,UpdatedBy) VALUES (0,0,53062,'3',TO_DATE('2008-02-12 12:59:54','YYYY-MM-DD HH24:MI:SS'),0,'EE01','N','Y','N','Y','N','N','N','Order BOM MA','L','PP_Order_BOMLineMA',TO_DATE('2008-02-12 12:59:54','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 12, 2008 12:59:56 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=53062 AND EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Table_ID!=t.AD_Table_ID)
;
-- Feb 12, 2008 12:59:57 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53079,TO_DATE('2008-02-12 12:59:56','YYYY-MM-DD HH24:MI:SS'),0,1000000,50000,'Table PP_Order_BOMLineMA',1,'Y','N','Y','Y','PP_Order_BOMLineMA','N',1000000,TO_DATE('2008-02-12 12:59:56','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 12, 2008 12:59:58 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='Direct Table Access', EntityType='D', Help=NULL, IsActive='Y', Name='Table Direct', ValidationType='D',Updated=TO_DATE('2008-02-12 12:59:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=19
;
-- Feb 12, 2008 12:59:58 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=19
;
-- Feb 12, 2008 12:59:59 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54311,102,0,19,53062,'AD_Client_ID',TO_DATE('2008-02-12 12:59:58','YYYY-MM-DD HH24:MI:SS'),0,'Client/Tenant for this installation.','EE01',10,'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','N','N','N','N','Y','N','N','Y','N','N','Client',TO_DATE('2008-02-12 12:59:58','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 12:59:59 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54311 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 12:59:59 PM CST
-- Include table PP_Order_BOMLineMA
CREATE TABLE PP_Order_BOMLineMA (AD_Client_ID NUMBER(10) NOT NULL)
;
-- Feb 12, 2008 1:00:01 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54312,113,0,19,53062,'AD_Org_ID',TO_DATE('2008-02-12 13:00:00','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client','EE01',10,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','N','N','N','N','Y','N','N','Y','N','N','Organization',TO_DATE('2008-02-12 13:00:00','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:01 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54312 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:01 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD AD_Org_ID NUMBER(10) NOT NULL
;
-- Feb 12, 2008 1:00:01 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='Date with time', EntityType='D', Help=NULL, IsActive='Y', Name='Date+Time', ValidationType='D',Updated=TO_DATE('2008-02-12 13:00:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=16
;
-- Feb 12, 2008 1:00:01 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=16
;
-- Feb 12, 2008 1:00:02 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54313,245,0,16,53062,'Created',TO_DATE('2008-02-12 13:00:01','YYYY-MM-DD HH24:MI:SS'),0,'Date this record was created','EE01',7,'The Created field indicates the date that this record was created.','Y','N','N','N','N','Y','N','N','Y','N','N','Created',TO_DATE('2008-02-12 13:00:01','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:02 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54313 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:02 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD Created DATE NOT NULL
;
-- Feb 12, 2008 1:00:02 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='Table List', EntityType='D', Help=NULL, IsActive='Y', Name='Table', ValidationType='D',Updated=TO_DATE('2008-02-12 13:00:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=18
;
-- Feb 12, 2008 1:00:02 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=18
;
-- Feb 12, 2008 1:00:03 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='User selection', EntityType='D', Help=NULL, IsActive='Y', Name='AD_User', ValidationType='T',Updated=TO_DATE('2008-02-12 13:00:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=110
;
-- Feb 12, 2008 1:00:03 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=110
;
-- Feb 12, 2008 1:00:03 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Ref_Table SET AD_Table_ID = 114, AD_Display = 213, AD_Key = 212, isValueDisplayed = 'N', OrderByClause = 'AD_User.Name', EntityType ='D', WhereClause = '' WHERE AD_Reference_ID = 110
;
-- Feb 12, 2008 1:00:04 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54314,246,0,18,110,53062,'CreatedBy',TO_DATE('2008-02-12 13:00:03','YYYY-MM-DD HH24:MI:SS'),0,'User who created this records','EE01',10,'The Created By field indicates the user who created this record.','Y','N','N','N','N','Y','N','N','Y','N','N','Created By',TO_DATE('2008-02-12 13:00:03','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:04 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54314 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:04 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD CreatedBy NUMBER(10) NOT NULL
;
-- Feb 12, 2008 1:00:04 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='CheckBox', EntityType='D', Help=NULL, IsActive='Y', Name='Yes-No', ValidationType='D',Updated=TO_DATE('2008-02-12 13:00:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=20
;
-- Feb 12, 2008 1:00:04 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=20
;
-- Feb 12, 2008 1:00:05 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54315,348,0,20,53062,'IsActive',TO_DATE('2008-02-12 13:00:04','YYYY-MM-DD HH24:MI:SS'),0,'The record is active in the system','EE01',1,'There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Y','N','N','N','N','Y','N','N','Y','N','Y','Active',TO_DATE('2008-02-12 13:00:04','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:05 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54315 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:05 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD IsActive CHAR(1) CHECK (IsActive IN ('Y','N')) NOT NULL
;
-- Feb 12, 2008 1:00:05 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='Product Attribute', EntityType='D', Help=NULL, IsActive='Y', Name='Product Attribute', ValidationType='D',Updated=TO_DATE('2008-02-12 13:00:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=35
;
-- Feb 12, 2008 1:00:05 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=35
;
-- Feb 12, 2008 1:00:06 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54316,2019,0,35,53062,'M_AttributeSetInstance_ID',TO_DATE('2008-02-12 13:00:05','YYYY-MM-DD HH24:MI:SS'),0,'Product Attribute Set Instance','EE01',10,'The values of the actual Product Attribute Instances. The product level attributes are defined on Product level.','Y','N','N','N','N','Y','N','N','Y','N','Y','Attribute Set Instance',TO_DATE('2008-02-12 13:00:05','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:06 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54316 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:06 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD M_AttributeSetInstance_ID NUMBER(10) NOT NULL
;
-- Feb 12, 2008 1:00:06 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='Quantity data type', EntityType='D', Help=NULL, IsActive='Y', Name='Quantity', ValidationType='D',Updated=TO_DATE('2008-02-12 13:00:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=29
;
-- Feb 12, 2008 1:00:06 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=29
;
-- Feb 12, 2008 1:00:08 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54317,1038,0,29,53062,'MovementQty',TO_DATE('2008-02-12 13:00:06','YYYY-MM-DD HH24:MI:SS'),0,'Quantity of a product moved.','EE01',22,'The Movement Quantity indicates the quantity of a product that has been moved.','Y','N','N','N','N','Y','N','N','Y','N','Y','Movement Quantity',TO_DATE('2008-02-12 13:00:06','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:08 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54317 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:08 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD MovementQty NUMBER NOT NULL
;
-- Feb 12, 2008 1:00:08 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='10 Digit Identifier', EntityType='D', Help=NULL, IsActive='Y', Name='ID', ValidationType='D',Updated=TO_DATE('2008-02-12 13:00:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=13
;
-- Feb 12, 2008 1:00:08 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=13
;
-- Feb 12, 2008 1:00:09 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53343,0,'PP_Order_BOMLineMA_ID',TO_DATE('2008-02-12 13:00:08','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','PP_Order_BOMLineMA_ID','PP_Order_BOMLineMA_ID',TO_DATE('2008-02-12 13:00:08','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 12, 2008 1:00:09 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53343 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- Feb 12, 2008 1:00:10 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54318,53343,0,13,53062,'PP_Order_BOMLineMA_ID',TO_DATE('2008-02-12 13:00:08','YYYY-MM-DD HH24:MI:SS'),0,'EE01',10,'Y','N','N','N','Y','Y','N','N','Y','N','N','PP_Order_BOMLineMA_ID',TO_DATE('2008-02-12 13:00:08','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:10 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54318 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:10 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD PP_Order_BOMLineMA_ID NUMBER(10) NOT NULL
;
-- Feb 12, 2008 1:00:10 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD CONSTRAINT PP_Order_BOMLineMA_Key PRIMARY KEY (PP_Order_BOMLineMA_ID)
;
-- Feb 12, 2008 1:00:11 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54319,53275,0,19,53062,'PP_Order_BOMLine_ID',TO_DATE('2008-02-12 13:00:10','YYYY-MM-DD HH24:MI:SS'),0,'EE01',10,'Y','N','N','N','N','Y','N','N','Y','N','Y','PP_Order_BOMLine_ID',TO_DATE('2008-02-12 13:00:10','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:11 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54319 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:11 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD PP_Order_BOMLine_ID NUMBER(10) NOT NULL
;
-- Feb 12, 2008 1:00:14 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54320,607,0,16,53062,'Updated',TO_DATE('2008-02-12 13:00:11','YYYY-MM-DD HH24:MI:SS'),0,'Date this record was updated','EE01',7,'The Updated field indicates the date that this record was updated.','Y','N','N','N','N','Y','N','N','Y','N','N','Updated',TO_DATE('2008-02-12 13:00:11','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:14 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54320 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:14 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD Updated DATE NOT NULL
;
-- Feb 12, 2008 1:00:14 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54321,608,0,18,110,53062,'UpdatedBy',TO_DATE('2008-02-12 13:00:14','YYYY-MM-DD HH24:MI:SS'),0,'User who updated this records','EE01',10,'The Updated By field indicates the user who updated this record.','Y','N','N','N','N','Y','N','N','Y','N','N','Updated By',TO_DATE('2008-02-12 13:00:14','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:14 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54321 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:15 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD UpdatedBy NUMBER(10) NOT NULL
;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,113 @@
SET DEFINE OFF
SET SQLBLANKLINES ON
-- Mar 1, 2008 10:25:14 PM CST
-- Qty Safety stock
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53354,0,'SafetyStock',TO_DATE('2008-03-01 22:25:08','YYYY-MM-DD HH24:MI:SS'),0,'Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs','EE01','Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.
Rereference:
http://en.wikipedia.org/wiki/Safety_stock','Y','Qty Safety Stock','Qty Safety Stock',TO_DATE('2008-03-01 22:25:08','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 1, 2008 10:25:14 PM CST
-- Qty Safety stock
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53354 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- Mar 1, 2008 10:26:36 PM CST
-- Qty Safety stock
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,54380,53354,0,29,53020,'SafetyStock',TO_DATE('2008-03-01 22:26:35','YYYY-MM-DD HH24:MI:SS'),0,'Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs','EE01',22,'Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.
Rereference:
http://en.wikipedia.org/wiki/Safety_stock','Y','N','N','N','N','N','N','N','N','N','Y','Qty Safety Stock',0,TO_DATE('2008-03-01 22:26:35','YYYY-MM-DD HH24:MI:SS'),0,1.000000000000)
;
-- Mar 1, 2008 10:26:36 PM CST
-- Qty Safety stock
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54380 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Mar 1, 2008 10:26:40 PM CST
-- Qty Safety stock
ALTER TABLE PP_Product_Planning ADD SafetyStock NUMBER
;
-- Mar 1, 2008 10:27:09 PM CST
-- Qty Safety stock
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54380,54420,0,53030,TO_DATE('2008-03-01 22:27:08','YYYY-MM-DD HH24:MI:SS'),0,'Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs',22,'EE01','Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.
Rereference:
http://en.wikipedia.org/wiki/Safety_stock','Y','Y','Y','N','N','N','N','N','Qty Safety Stock',TO_DATE('2008-03-01 22:27:08','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 1, 2008 10:27:09 PM CST
-- Qty Safety stock
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54420 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Mar 1, 2008 10:28:00 PM CST
-- Qty Safety stock
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=54420
;
-- Mar 1, 2008 10:28:00 PM CST
-- Qty Safety stock
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=53533
;
-- Mar 1, 2008 10:28:00 PM CST
-- Qty Safety stock
UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=53534
;
-- Mar 1, 2008 10:28:29 PM CST
-- Qty Safety stock
UPDATE AD_Element SET Name='Safety Stock Qty', PrintName='Safety Stock Qty',Updated=TO_DATE('2008-03-01 22:28:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53354
;
-- Mar 1, 2008 10:28:29 PM CST
-- Qty Safety stock
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53354
;
-- Mar 1, 2008 10:28:29 PM CST
-- Qty Safety stock
UPDATE AD_Column SET ColumnName='SafetyStock', Name='Safety Stock Qty', Description='Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs', Help='Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.
Rereference:
http://en.wikipedia.org/wiki/Safety_stock' WHERE AD_Element_ID=53354
;
-- Mar 1, 2008 10:28:30 PM CST
-- Qty Safety stock
UPDATE AD_Field SET Name='Safety Stock Qty', Description='Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs', Help='Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.
Rereference:
http://en.wikipedia.org/wiki/Safety_stock' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53354) AND IsCentrallyMaintained='Y'
;
-- Mar 1, 2008 10:28:30 PM CST
-- Qty Safety stock
UPDATE AD_Process_Para SET ColumnName='SafetyStock', Name='Safety Stock Qty', Description='Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs', Help='Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.
Rereference:
http://en.wikipedia.org/wiki/Safety_stock', AD_Element_ID=53354 WHERE UPPER(ColumnName)='SafetyStock' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Mar 1, 2008 10:28:30 PM CST
-- Qty Safety stock
UPDATE AD_Process_Para SET ColumnName='SafetyStock', Name='Safety Stock Qty', Description='Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs', Help='Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.
Rereference:
http://en.wikipedia.org/wiki/Safety_stock' WHERE AD_Element_ID=53354 AND IsCentrallyMaintained='Y'
;
-- Mar 1, 2008 10:28:30 PM CST
-- Qty Safety stock
UPDATE AD_PrintFormatItem pi SET PrintName='Safety Stock Qty', Name='Safety Stock Qty' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53354)
;
-- Mar 1, 2008 10:28:30 PM CST
-- Qty Safety stock
UPDATE AD_PrintFormatItem pi SET PrintName='Safety Stock Qty', Name='Safety Stock Qty' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53354)
;

View File

@ -0,0 +1,133 @@
-- Mar 2, 2008 10:27:20 PM CST
-- Fixed MRP
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=53514
;
-- Mar 2, 2008 10:27:20 PM CST
-- Fixed MRP
DELETE FROM AD_Field WHERE AD_Field_ID=53514
;
-- Mar 2, 2008 10:27:24 PM CST
-- Fixed MRP
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=53515
;
-- Mar 2, 2008 10:27:24 PM CST
-- Fixed MRP
DELETE FROM AD_Field WHERE AD_Field_ID=53515
;
-- Mar 2, 2008 10:27:58 PM CST
-- Fixed MRP
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=53383
;
-- Mar 2, 2008 10:27:58 PM CST
-- Fixed MRP
DELETE FROM AD_Column WHERE AD_Column_ID=53383
;
-- Mar 2, 2008 10:28:18 PM CST
-- Fixed MRP
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=53388
;
-- Mar 2, 2008 10:28:18 PM CST
-- Fixed MRP
DELETE FROM AD_Column WHERE AD_Column_ID=53388
;
-- Mar 2, 2008 10:32:01 PM CST
-- Fixed MRP
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1777,0,53016,53132,19,52002,'S_Resource_ID',TO_DATE('2008-03-02 22:31:55','YYYY-MM-DD HH24:MI:SS'),0,'EE01',22,'Y','Y','Y','N','S_Resource_ID',12,TO_DATE('2008-03-02 22:31:55','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 2, 2008 10:32:01 PM CST
-- Fixed MRP
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53132 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Mar 2, 2008 10:32:22 PM CST
-- Fixed MRP
UPDATE AD_Process_Para SET Name='Resource',Updated=TO_DATE('2008-03-02 22:32:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53132
;
-- Mar 2, 2008 10:32:22 PM CST
-- Fixed MRP
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53132
;
-- Mar 2, 2008 10:34:50 PM CST
-- Fixed MRP
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,459,0,53016,53133,19,'M_Warehouse_ID',TO_DATE('2008-03-02 22:34:50','YYYY-MM-DD HH24:MI:SS'),0,'Storage Warehouse and Service Point','EE01',22,'The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','Y','N','N','Warehouse',40,TO_DATE('2008-03-02 22:34:50','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 2, 2008 10:34:50 PM CST
-- Fixed MRP
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53133 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Mar 2, 2008 10:35:29 PM CST
-- Fixed MRP
UPDATE AD_Process_Para SET AD_Val_Rule_ID=202,Updated=TO_DATE('2008-03-02 22:35:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53054
;
-- Mar 2, 2008 10:35:37 PM CST
-- Fixed MRP
UPDATE AD_Process_Para SET SeqNo=20,Updated=TO_DATE('2008-03-02 22:35:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53132
;
-- Mar 2, 2008 10:35:43 PM CST
-- Fixed MRP
UPDATE AD_Process_Para SET SeqNo=30,Updated=TO_DATE('2008-03-02 22:35:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53133
;
-- Mar 2, 2008 10:35:49 PM CST
-- Fixed MRP
UPDATE AD_Process_Para SET SeqNo=40,Updated=TO_DATE('2008-03-02 22:35:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53053
;
-- Mar 2, 2008 10:40:57 PM CST
-- Fixed MRP
DELETE FROM AD_Process_Para_Trl WHERE AD_Process_Para_ID=53040
;
-- Mar 2, 2008 10:40:57 PM CST
-- Fixed MRP
DELETE FROM AD_Process_Para WHERE AD_Process_Para_ID=53040
;
-- Mar 2, 2008 10:41:02 PM CST
-- Fixed MRP
DELETE FROM AD_Process_Para_Trl WHERE AD_Process_Para_ID=53041
;
-- Mar 2, 2008 10:41:02 PM CST
-- Fixed MRP
DELETE FROM AD_Process_Para WHERE AD_Process_Para_ID=53041
;
-- Mar 2, 2008 10:41:13 PM CST
-- Fixed MRP
DELETE FROM AD_Element_Trl WHERE AD_Element_ID=53259
;
-- Mar 2, 2008 10:41:13 PM CST
-- Fixed MRP
DELETE FROM AD_Element WHERE AD_Element_ID=53259
;
-- Mar 2, 2008 10:41:25 PM CST
-- Fixed MRP
DELETE FROM AD_Element_Trl WHERE AD_Element_ID=53263
;
-- Mar 2, 2008 10:41:25 PM CST
-- Fixed MRP
DELETE FROM AD_Element WHERE AD_Element_ID=53263
;
ALTER TABLE PP_Product_Planning DROP COLUMN IsSupply;
ALTER TABLE PP_Product_Planning DROP COLUMN IsDemand;

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,45 @@
-- Mar 5, 2008 3:39:11 AM CST
-- Default comment for updating dictionary
UPDATE AD_SysConfig SET Value='New Event Model Validator',Updated=TO_DATE('2008-03-05 03:39:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_SysConfig_ID=50003
;
-- Mar 5, 2008 3:39:42 AM CST
-- New Event Model Validator
UPDATE AD_SysConfig SET Value='user',Updated=TO_DATE('2008-03-05 03:39:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_SysConfig_ID=50001
;
-- Mar 5, 2008 3:39:46 AM CST
-- New Event Model Validator
UPDATE AD_SysConfig SET Value='password',Updated=TO_DATE('2008-03-05 03:39:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_SysConfig_ID=50002
;
-- Mar 5, 2008 3:39:53 AM CST
-- New Event Model Validator
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53337,53237,TO_DATE('2008-03-05 03:39:52','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Table After New Replication',TO_DATE('2008-03-05 03:39:52','YYYY-MM-DD HH24:MI:SS'),0,'TANR')
;
-- Mar 5, 2008 3:39:53 AM CST
-- New Event Model Validator
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53337 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID)
;
-- Mar 5, 2008 3:40:44 AM CST
-- New Event Model Validator
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53338,53237,TO_DATE('2008-03-05 03:40:43','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Table After Change Replication',TO_DATE('2008-03-05 03:40:43','YYYY-MM-DD HH24:MI:SS'),0,'TACR')
;
-- Mar 5, 2008 3:40:44 AM CST
-- New Event Model Validator
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53338 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID)
;
-- Mar 5, 2008 3:41:37 AM CST
-- New Event Model Validator
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53339,53237,TO_DATE('2008-03-05 03:41:36','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Table Before Delete Replication',TO_DATE('2008-03-05 03:41:36','YYYY-MM-DD HH24:MI:SS'),0,'TBDR')
;
-- Mar 5, 2008 3:41:37 AM CST
-- New Event Model Validator
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53339 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID)
;

View File

@ -0,0 +1,2 @@
UPDATE AD_Table SET EntityType='D' WHERE AD_Table_ID=53071;
UPDATE AD_Column SET EntityType='D' WHERE AD_Table_ID=53071;

View File

@ -0,0 +1,95 @@
-- Mar 5, 2008 9:50:28 PM CST
-- Workflow Replication
UPDATE AD_WF_Node SET Description='Import Proccesor', Name='Import Proccesor',Updated=TO_DATE('2008-03-05 21:50:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_WF_Node_ID=50064
;
-- Mar 5, 2008 9:50:28 PM CST
-- Workflow Replication
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=50064
;
-- Mar 5, 2008 9:51:28 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node (AD_Client_ID,AD_Org_ID,AD_WF_Node_ID,AD_Window_ID,AD_Workflow_ID,Action,Cost,Created,CreatedBy,Description,DocAction,Duration,DynPriorityChange,EntityType,IsActive,IsCentrallyMaintained,JoinElement,Limit,Name,Priority,SplitElement,Updated,UpdatedBy,Value,WaitTime,WaitingTime,WorkingTime,XPosition,YPosition) VALUES (0,0,50065,53029,50012,'W',0,TO_DATE('2008-03-05 21:51:21','YYYY-MM-DD HH24:MI:SS'),100,'Import Processor Type','CO',0,0,'EE05','Y','N','X',0,'Import Processor Type',0,'X',TO_DATE('2008-03-05 21:51:21','YYYY-MM-DD HH24:MI:SS'),100,'Import Processor Type',0,0,0,0,0)
;
-- Mar 5, 2008 9:51:28 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node_Trl (AD_Language,AD_WF_Node_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_WF_Node_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_WF_Node t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_WF_Node_ID=50065 AND EXISTS (SELECT * FROM AD_WF_Node_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_WF_Node_ID!=t.AD_WF_Node_ID)
;
-- Mar 5, 2008 9:52:12 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node (AD_Client_ID,AD_Org_ID,AD_WF_Node_ID,AD_Window_ID,AD_Workflow_ID,Action,Cost,Created,CreatedBy,Description,DocAction,Duration,DynPriorityChange,EntityType,IsActive,IsCentrallyMaintained,JoinElement,Limit,Name,Priority,SplitElement,Updated,UpdatedBy,Value,WaitTime,WaitingTime,WorkingTime,XPosition,YPosition) VALUES (0,0,50066,53025,50012,'W',0,TO_DATE('2008-03-05 21:52:11','YYYY-MM-DD HH24:MI:SS'),100,'Export Format','CO',0,0,'EE05','Y','N','X',0,'Export Format',0,'X',TO_DATE('2008-03-05 21:52:11','YYYY-MM-DD HH24:MI:SS'),100,'Export Format',0,0,0,0,0)
;
-- Mar 5, 2008 9:52:12 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node_Trl (AD_Language,AD_WF_Node_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_WF_Node_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_WF_Node t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_WF_Node_ID=50066 AND EXISTS (SELECT * FROM AD_WF_Node_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_WF_Node_ID!=t.AD_WF_Node_ID)
;
-- Mar 5, 2008 9:53:10 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node (AD_Client_ID,AD_Org_ID,AD_WF_Node_ID,AD_Window_ID,AD_Workflow_ID,Action,Cost,Created,CreatedBy,Description,DocAction,Duration,DynPriorityChange,EntityType,IsActive,IsCentrallyMaintained,JoinElement,Limit,Name,Priority,SplitElement,Updated,UpdatedBy,Value,WaitTime,WaitingTime,WorkingTime,XPosition,YPosition) VALUES (0,0,50067,53026,50012,'W',0,TO_DATE('2008-03-05 21:53:09','YYYY-MM-DD HH24:MI:SS'),100,'Export Processor','CO',0,0,'EE05','Y','N','X',0,'Export Processor',0,'X',TO_DATE('2008-03-05 21:53:09','YYYY-MM-DD HH24:MI:SS'),100,'Export Processor',0,0,0,0,0)
;
-- Mar 5, 2008 9:53:10 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node_Trl (AD_Language,AD_WF_Node_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_WF_Node_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_WF_Node t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_WF_Node_ID=50067 AND EXISTS (SELECT * FROM AD_WF_Node_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_WF_Node_ID!=t.AD_WF_Node_ID)
;
-- Mar 5, 2008 9:53:47 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node (AD_Client_ID,AD_Org_ID,AD_WF_Node_ID,AD_Window_ID,AD_Workflow_ID,Action,Cost,Created,CreatedBy,Description,DocAction,Duration,DynPriorityChange,EntityType,IsActive,IsCentrallyMaintained,JoinElement,Limit,Name,Priority,SplitElement,Updated,UpdatedBy,Value,WaitTime,WaitingTime,WorkingTime,XPosition,YPosition) VALUES (0,0,50068,53027,50012,'W',0,TO_DATE('2008-03-05 21:53:46','YYYY-MM-DD HH24:MI:SS'),100,'Export Processor Type','CO',0,0,'EE05','Y','N','X',0,'Export Processor Type',0,'X',TO_DATE('2008-03-05 21:53:46','YYYY-MM-DD HH24:MI:SS'),100,'Export Processor Type',0,0,0,0,0)
;
-- Mar 5, 2008 9:53:47 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node_Trl (AD_Language,AD_WF_Node_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_WF_Node_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_WF_Node t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_WF_Node_ID=50068 AND EXISTS (SELECT * FROM AD_WF_Node_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_WF_Node_ID!=t.AD_WF_Node_ID)
;
-- Mar 5, 2008 9:55:00 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node (AD_Client_ID,AD_Org_ID,AD_WF_Node_ID,AD_Window_ID,AD_Workflow_ID,Action,Cost,Created,CreatedBy,Description,DocAction,Duration,DynPriorityChange,EntityType,IsActive,IsCentrallyMaintained,JoinElement,Limit,Name,Priority,SplitElement,Updated,UpdatedBy,Value,WaitTime,WaitingTime,WorkingTime,XPosition,YPosition) VALUES (0,0,50069,285,50012,'W',0,TO_DATE('2008-03-05 21:54:59','YYYY-MM-DD HH24:MI:SS'),100,'Replication Strategy','CO',0,0,'EE05','Y','N','X',0,'Replication Strategy',0,'X',TO_DATE('2008-03-05 21:54:59','YYYY-MM-DD HH24:MI:SS'),100,'Replication Strategy',0,0,0,0,0)
;
-- Mar 5, 2008 9:55:00 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node_Trl (AD_Language,AD_WF_Node_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_WF_Node_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_WF_Node t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_WF_Node_ID=50069 AND EXISTS (SELECT * FROM AD_WF_Node_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_WF_Node_ID!=t.AD_WF_Node_ID)
;
-- Mar 5, 2008 9:55:31 PM CST
-- Workflow Replication
UPDATE AD_Workflow SET AD_WF_Node_ID=50069, IsValid='Y',Updated=TO_DATE('2008-03-05 21:55:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50012
;
-- Mar 5, 2008 9:55:56 PM CST
-- Workflow Replication
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50066,50046,50069,TO_DATE('2008-03-05 21:55:55','YYYY-MM-DD HH24:MI:SS'),100,'EE05','Y','N',10,TO_DATE('2008-03-05 21:55:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 5, 2008 9:56:12 PM CST
-- Workflow Replication
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50068,50047,50066,TO_DATE('2008-03-05 21:56:12','YYYY-MM-DD HH24:MI:SS'),100,'EE05','Y','N',10,TO_DATE('2008-03-05 21:56:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 5, 2008 9:56:41 PM CST
-- Workflow Replication
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50067,50048,50068,TO_DATE('2008-03-05 21:56:35','YYYY-MM-DD HH24:MI:SS'),100,'EE05','Y','N',10,TO_DATE('2008-03-05 21:56:35','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 5, 2008 9:57:00 PM CST
-- Workflow Replication
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50065,50049,50067,TO_DATE('2008-03-05 21:56:59','YYYY-MM-DD HH24:MI:SS'),100,'EE05','Y','N',10,TO_DATE('2008-03-05 21:56:59','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 5, 2008 9:57:18 PM CST
-- Workflow Replication
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50064,50050,50065,TO_DATE('2008-03-05 21:57:17','YYYY-MM-DD HH24:MI:SS'),100,'EE05','Y','N',10,TO_DATE('2008-03-05 21:57:17','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 5, 2008 10:00:19 PM CST
-- Workflow Replication
DELETE FROM AD_WF_NodeNext WHERE AD_WF_NodeNext_ID=50045
;

View File

@ -0,0 +1,4 @@
-- Mar 7, 2008 1:23:28 PM CST
-- Set Tax Children as Grid
UPDATE AD_Field SET Included_Tab_ID=53078,Updated=TO_DATE('2008-03-07 13:23:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54520
;

View File

@ -0,0 +1,15 @@
-- 07-mar-2008 20:37:34 ECT
-- New Event Model Validator
UPDATE AD_Column SET FieldLength=2000,Updated=TO_DATE('2008-03-07 20:37:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=54257
;
-- 07-mar-2008 20:37:34 ECT
-- New Event Model Validator
UPDATE AD_Field SET Name='Script', Description='Dynamic Java Language Script to calculate result', Help='Use Java language constructs to define the result of the calculation' WHERE AD_Column_ID=54257 AND IsCentrallyMaintained='Y'
;
-- 07-mar-2008 20:37:38 ECT
-- New Event Model Validator
ALTER TABLE AD_Rule MODIFY Script NVARCHAR2(2000) DEFAULT NULL
;

View File

@ -0,0 +1,449 @@
-- Mar 10, 2008 8:51:52 AM CST
-- Improve RMA Functionality
UPDATE AD_Tab SET WhereClause='MovementType IN (''C-'', ''C+'')',Updated=TO_DATE('2008-03-10 08:51:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=257
;
-- Mar 10, 2008 8:52:19 AM CST
-- Improve RMA Functionality
UPDATE AD_Tab SET WhereClause='MovementType IN (''V+'', ''V-'')',Updated=TO_DATE('2008-03-10 08:52:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=296
;
-- 10-mar-2008 16:52:00 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@DocBaseType@=''SOO'' | ( @DocBaseType@=''POO'' & (DocSubTypeSO_Sub=null OR DocSubTypeSO_Sub=''RM'') )',Updated=TO_DATE('2008-03-10 16:52:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=2581
;
-- 10-mar-2008 16:54:36 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@DocBaseType@=''SOO'' | ( @DocBaseType@=''POO'' & @DocSubTypeSO@=''RM'' )',Updated=TO_DATE('2008-03-10 16:54:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=3071
;
-- 10-mar-2008 16:54:44 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@DocBaseType@=''SOO'' | ( @DocBaseType@=''POO'' & @DocSubTypeSO@=''RM'' )',Updated=TO_DATE('2008-03-10 16:54:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=3073
;
-- 10-mar-2008 17:02:53 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@DocBaseType@=''SOO'' ^ @DocBaseType@=''POO'' & @DocSubTypeSO@=''RM''',Updated=TO_DATE('2008-03-10 17:02:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=3073
;
-- 10-mar-2008 17:04:31 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@DocBaseType@=''SOO'' | @DocBaseType@=''POO''',Updated=TO_DATE('2008-03-10 17:04:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=3071
;
-- 10-mar-2008 17:04:38 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@DocBaseType@=''SOO'' | @DocBaseType@=''POO''',Updated=TO_DATE('2008-03-10 17:04:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=3073
;
-- 10-mar-2008 17:06:09 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@DocBaseType@=''SOO'' | @DocBaseType@=''POO''',Updated=TO_DATE('2008-03-10 17:06:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=2581
;
-- 10-mar-2008 17:22:30 CST
-- Improve RMA Functionality
UPDATE C_DocType SET GL_Category_ID=0,Updated=TO_DATE('2008-03-10 17:22:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=150
;
-- 10-mar-2008 17:43:32 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=4242
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=4243
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=2930
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=2933
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=7831
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=7829
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=7830
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=7832
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=7828
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=7827
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=2707
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=380,IsDisplayed='Y' WHERE AD_Field_ID=10369
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=390,IsDisplayed='Y' WHERE AD_Field_ID=9463
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=400,IsDisplayed='Y' WHERE AD_Field_ID=9462
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=3280
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=420,IsDisplayed='Y' WHERE AD_Field_ID=3281
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=430,IsDisplayed='Y' WHERE AD_Field_ID=10568
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=440,IsDisplayed='Y' WHERE AD_Field_ID=5143
;
-- 10-mar-2008 17:48:10 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@MovementType@=''C+''',Updated=TO_DATE('2008-03-10 17:48:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=4242
;
-- 10-mar-2008 17:48:14 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@MovementType@=''C+''',Updated=TO_DATE('2008-03-10 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=4243
;
-- 10-mar-2008 17:58:26 CST
-- Improve RMA Functionality
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-03-10 17:58:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=4243
;
-- 10-mar-2008 18:04:36 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@MovementType@=''C+''',Updated=TO_DATE('2008-03-10 18:04:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=2932
;
-- 10-mar-2008 18:04:42 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@MovementType@!''C+''',Updated=TO_DATE('2008-03-10 18:04:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=2932
;
-- 10-mar-2008 18:05:46 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2008-03-10 18:05:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=2932
;
-- Mar 11, 2008 8:29:43 AM CST
-- Improve RMA Functionality
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,52009,54714,0,257,TO_DATE('2008-03-11 08:29:36','YYYY-MM-DD HH24:MI:SS'),0,'Return Material Authorization',22,'D','A Return Material Authorization may be required to accept returns and to create Credit Memos','Y','Y','Y','N','N','N','N','N','RMA',TO_DATE('2008-03-11 08:29:36','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 11, 2008 8:29:43 AM CST
-- Improve RMA Functionality
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54714 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Mar 11, 2008 8:29:43 AM CST
-- Improve RMA Functionality
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,15903,54715,0,257,TO_DATE('2008-03-11 08:29:43','YYYY-MM-DD HH24:MI:SS'),0,'Volume of a product',22,'D','The Volume indicates the volume of the product in the Volume UOM of the Client','Y','Y','Y','N','N','N','N','N','Volume',TO_DATE('2008-03-11 08:29:43','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 11, 2008 8:29:43 AM CST
-- Improve RMA Functionality
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54715 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Mar 11, 2008 8:29:46 AM CST
-- Improve RMA Functionality
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,15904,54716,0,257,TO_DATE('2008-03-11 08:29:43','YYYY-MM-DD HH24:MI:SS'),0,'Weight of a product',22,'D','The Weight indicates the weight of the product in the Weight UOM of the Client','Y','Y','Y','N','N','N','N','N','Weight',TO_DATE('2008-03-11 08:29:43','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 11, 2008 8:29:46 AM CST
-- Improve RMA Functionality
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54716 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=54715
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=54716
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54714
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=2938
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=2945
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=2703
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=2931
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=2706
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=2935
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=2928
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=2929
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=2927
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=2944
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=2946
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=2936
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=6877
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=6541
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=2937
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=2943
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=10379
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=6880
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=6879
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=6878
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=2940
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=2939
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=4242
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=4243
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=2930
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=2933
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=7831
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=7829
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=7830
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=7832
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=7828
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=7827
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=380,IsDisplayed='Y' WHERE AD_Field_ID=2707
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=390,IsDisplayed='Y' WHERE AD_Field_ID=10369
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=400,IsDisplayed='Y' WHERE AD_Field_ID=9463
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=9462
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=420,IsDisplayed='Y' WHERE AD_Field_ID=3280
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=430,IsDisplayed='Y' WHERE AD_Field_ID=3281
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=440,IsDisplayed='Y' WHERE AD_Field_ID=10568
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=450,IsDisplayed='Y' WHERE AD_Field_ID=5143
;
-- Mar 11, 2008 8:31:07 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@M_RMA_ID@!0',Updated=TO_DATE('2008-03-11 08:31:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54714
;
-- Mar 11, 2008 8:33:45 AM CST
-- Improve RMA Functionality
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (11,0,53100,TO_DATE('2008-03-11 08:33:44','YYYY-MM-DD HH24:MI:SS'),100,590001,59000,'MM Customer Return',1,'Y','N','Y','N','MM Customer Return','N',590000,TO_DATE('2008-03-11 08:33:44','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 11, 2008 8:34:12 AM CST
-- Improve RMA Functionality
UPDATE C_DocType SET DocNoSequence_ID=53100,Updated=TO_DATE('2008-03-11 08:34:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=149
;
-- Mar 11, 2008 8:34:48 AM CST
-- Improve RMA Functionality
UPDATE C_DocType SET DocBaseType='MMR',Updated=TO_DATE('2008-03-11 08:34:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=149
;
-- Mar 11, 2008 8:35:16 AM CST
-- Improve RMA Functionality
UPDATE C_DocType SET DocBaseType='MMS',Updated=TO_DATE('2008-03-11 08:35:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=151
;
-- Mar 11, 2008 9:39:08 AM CST
-- Improve RMA Functionality
UPDATE C_DocType SET IsDocNoControlled='Y', IsSOTrx='Y',Updated=TO_DATE('2008-03-11 09:39:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=149
;
-- Mar 11, 2008 9:39:28 AM CST
-- Improve RMA Functionality
UPDATE C_DocType SET C_DocTypeInvoice_ID=124,Updated=TO_DATE('2008-03-11 09:39:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=150
;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,260 @@
-- Mar 24, 2008 9:02:52 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53099
;
-- Mar 24, 2008 9:02:52 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=385
;
-- Mar 24, 2008 9:02:52 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=386
;
-- Mar 24, 2008 9:02:52 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53100
;
-- Mar 24, 2008 9:02:52 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53102
;
-- Mar 24, 2008 9:02:52 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53101
;
-- Mar 24, 2008 9:02:52 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53104
;
-- Mar 24, 2008 9:02:52 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53103
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53099
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=385
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53100
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=386
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53102
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53101
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53104
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53103
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53099
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=385
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=386
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53100
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53102
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53101
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53104
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53103
;
-- Mar 24, 2008 9:09:35 AM CST
-- Fixed Permission to Replication
UPDATE AD_Window SET IsBetaFunctionality='N',Updated=TO_DATE('2008-03-24 09:09:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=285
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53105
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53083
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53099
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=385
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=386
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53100
;
-- Mar 24, 2008 9:09:55 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53102
;
-- Mar 24, 2008 9:09:55 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53101
;
-- Mar 24, 2008 9:09:55 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53104
;
-- Mar 24, 2008 9:09:55 AM CST
-- Fixed Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53103
;
-- Mar 24, 2008 9:11:44 AM CST
-- Fixed Permission to Replication
UPDATE AD_Menu SET Description=NULL,Updated=TO_DATE('2008-03-24 09:11:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53105
;
-- Mar 24, 2008 9:11:44 AM CST
-- Fixed Permission to Replication
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53105
;
-- Mar 24, 2008 9:12:52 AM CST
-- Fixed Permission to Replication
UPDATE AD_Table SET AccessLevel='6',Updated=TO_DATE('2008-03-24 09:12:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53072
;
-- Mar 24, 2008 9:13:11 AM CST
-- Fixed Permission to Replication
UPDATE AD_Table SET AccessLevel='6',Updated=TO_DATE('2008-03-24 09:13:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53073
;
-- Mar 24, 2008 9:13:45 AM CST
-- Fixed Permission to Replication
UPDATE AD_Table SET AccessLevel='6',Updated=TO_DATE('2008-03-24 09:13:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53077
;

View File

@ -0,0 +1,77 @@
-- Mar 24, 2008 11:18:28 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AccessLevel,Created,CreatedBy,EntityType,IsActive,IsBetaFunctionality,IsDirectPrint,IsReport,IsServerProcess,Name,ShowHelp,Statistic_Count,Statistic_Seconds,Updated,UpdatedBy,Value) VALUES (0,0,53085,'6',TO_DATE('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0,'EE05','Y','N','N','N','N','EXP_Format Generator','Y',0,0,TO_DATE('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0,'EXP_Format Generator')
;
-- Mar 24, 2008 11:18:28 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=53085 AND EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_ID!=t.AD_Process_ID)
;
-- Mar 24, 2008 11:18:28 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53085,0,TO_DATE('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 11:18:28 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53085,102,TO_DATE('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 11:18:28 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53085,103,TO_DATE('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 11:18:28 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53085,50001,TO_DATE('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 11:19:27 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,143,0,53085,53141,19,'AD_Window_ID',TO_DATE('2008-03-24 11:19:27','YYYY-MM-DD HH24:MI:SS'),0,'EE05',22,'Y','Y','N','N','Window',10,TO_DATE('2008-03-24 11:19:27','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 11:19:27 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53141 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Mar 24, 2008 11:19:41 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55059,524,0,53085,28,53072,'Processing',TO_DATE('2008-03-24 11:19:40','YYYY-MM-DD HH24:MI:SS'),0,'EE05',1,'Y','N','N','N','N','N','N','N','N','N','Y','Process Now',0,TO_DATE('2008-03-24 11:19:40','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Mar 24, 2008 11:19:41 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55059 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Mar 24, 2008 11:20:04 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,55059,55187,0,53085,TO_DATE('2008-03-24 11:20:04','YYYY-MM-DD HH24:MI:SS'),0,1,'EE05','Y','Y','Y','N','N','N','N','N','Process Now',TO_DATE('2008-03-24 11:20:04','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 11:20:04 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55187 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Mar 24, 2008 11:20:32 AM CST
-- Generate a Export Format from a Window
UPDATE AD_Field SET IsCentrallyMaintained='N', IsSameLine='Y', Name='Create from a Window',Updated=TO_DATE('2008-03-24 11:20:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55187
;
-- Mar 24, 2008 11:20:32 AM CST
-- Generate a Export Format from a Window
UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=55187
;
UPDATE AD_Process SET Classname='org.eevolution.process.ExportFormatGenerator',Updated=TO_DATE('2008-03-24 11:42:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53085
;
ALTER TABLE EXP_Format ADD Processing CHAR(1)
;

View File

@ -0,0 +1,260 @@
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=55187
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=54574
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54575
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54576
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54577
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54578
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54579
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54580
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54581
;
-- Mar 24, 2008 9:10:26 PM CST
-- Replication Functionality
INSERT INTO AD_Menu (AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,Action,Created,CreatedBy,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (0,53125,0,53085,'P',TO_DATE('2008-03-24 21:09:42','YYYY-MM-DD HH24:MI:SS'),0,'EE05','Y','N','N','N','Create Export Format from Window',TO_DATE('2008-03-24 21:09:42','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 9:10:26 PM CST
-- Replication Functionality
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=53125 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID)
;
-- Mar 24, 2008 9:10:26 PM CST
-- Replication Functionality
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', SysDate, 0, SysDate, 0,t.AD_Tree_ID, 53125, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=53125)
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53105
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53083
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53099
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=385
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=386
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53100
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53125
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53102
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53101
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53104
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53103
;
-- Mar 24, 2008 9:11:15 PM CST
-- Replication Functionality
UPDATE AD_Menu SET Name='Create Export Format from a Window',Updated=TO_DATE('2008-03-24 21:11:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=53125
;
-- Mar 24, 2008 9:11:15 PM CST
-- Replication Functionality
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53125
;
-- Mar 24, 2008 9:16:33 PM CST
-- Replication Functionality
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,2792,0,53085,53142,20,'IsInsertRecord',TO_DATE('2008-03-24 21:16:32','YYYY-MM-DD HH24:MI:SS'),0,'Generated Export Format for the Tabs with Insert Record is Yes','EE05',1,'Y','N','N','N','IsInsertRecord',20,TO_DATE('2008-03-24 21:16:32','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 9:16:33 PM CST
-- Replication Functionality
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53142 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Mar 24, 2008 9:23:04 PM CST
-- Replication Functionality
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,392,0,53085,53143,20,'IsMandatory',TO_DATE('2008-03-24 21:23:03','YYYY-MM-DD HH24:MI:SS'),0,'Generated an Export Format Line if the column is mandatory ','EE05',1,'Y','N','N','N','IsMandatory',30,TO_DATE('2008-03-24 21:23:03','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 9:23:04 PM CST
-- Replication Functionality
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53143 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Mar 24, 2008 9:25:13 PM CST
-- Replication Functionality
UPDATE AD_Process_Para SET IsMandatory='Y',Updated=TO_DATE('2008-03-24 21:25:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53141
;
-- Mar 24, 2008 9:30:09 PM CST
-- Replication Functionality
UPDATE AD_Process SET Description='Create multiple Export Format based in a Window',Updated=TO_DATE('2008-03-24 21:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53085
;
-- Mar 24, 2008 9:30:09 PM CST
-- Replication Functionality
UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=53085
;
-- Mar 24, 2008 9:30:09 PM CST
-- Replication Functionality
UPDATE AD_Menu SET Description='Create multiple Export Format based in a Window', IsActive='Y', Name='EXP_Format Generator',Updated=TO_DATE('2008-03-24 21:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=53125
;
-- Mar 24, 2008 9:30:09 PM CST
-- Replication Functionality
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53125
;
-- Mar 24, 2008 9:31:18 PM CST
-- Replication Functionality
UPDATE AD_Process_Para SET Name='Insert Record',Updated=TO_DATE('2008-03-24 21:31:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53142
;
-- Mar 24, 2008 9:31:18 PM CST
-- Replication Functionality
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53142
;
-- Mar 24, 2008 9:34:56 PM CST
-- Replication Functionality
UPDATE AD_Process_Para SET Name='Includes only the Tabs that Insert records',Updated=TO_DATE('2008-03-24 21:34:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53142
;
-- Mar 24, 2008 9:34:56 PM CST
-- Replication Functionality
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53142
;
-- Mar 24, 2008 9:35:52 PM CST
-- Replication Functionality
UPDATE AD_Process_Para SET Name='Includes only the mandatory columns',Updated=TO_DATE('2008-03-24 21:35:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53143
;
-- Mar 24, 2008 9:35:52 PM CST
-- Replication Functionality
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53143
;

View File

@ -0,0 +1,6 @@
UPDATE AD_SYSTEM
SET releaseno = '350',
VERSION = '2008-03-26'
WHERE ad_system_id = 0 AND ad_client_id = 0;
COMMIT ;

View File

@ -0,0 +1,246 @@
DROP VIEW C_ORDER_LINETAX_V;
CREATE OR REPLACE VIEW C_ORDER_LINETAX_V
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, C_ORDER_ID, C_ORDERLINE_ID,
C_TAX_ID, TAXINDICATOR, C_BPARTNER_ID, C_BPARTNER_LOCATION_ID, BPNAME,
C_LOCATION_ID, LINE, M_PRODUCT_ID,VendorProductNo, QTYORDERED, QTYENTERED,
UOMSYMBOL, NAME, DESCRIPTION, DOCUMENTNOTE, UPC,
SKU, PRODUCTVALUE, RESOURCEDESCRIPTION, PRICELIST, PRICEENTEREDLIST,
DISCOUNT, PRICEACTUAL, PRICEENTERED, LINENETAMT, PRODUCTDESCRIPTION,
IMAGEURL, C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, C_PROJECTPHASE_ID,
C_PROJECTTASK_ID)
AS
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
'en_US' AS AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, t.TaxIndicator,
ol.C_BPartner_ID, ol.C_BPartner_Location_ID, bp.Name AS BPName, bpl.C_Location_ID,
ol.Line, p.M_Product_ID, po.VendorProductNo,
CASE WHEN ol.QtyOrdered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyOrdered END AS QtyOrdered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyEntered END AS QtyEntered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
COALESCE(c.Name,p.Name||productAttribute(ol.M_AttributeSetInstance_ID), ol.Description) AS Name, -- main line
CASE WHEN COALESCE(c.Name,p.Name) IS NOT NULL THEN ol.Description END AS Description, -- second line
p.DocumentNote, -- third line
p.UPC, p.SKU, COALESCE(pp.VendorProductNo,p.Value) AS ProductValue,
ra.Description AS ResourceDescription, -- forth line
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0
THEN ol.PriceList END AS PriceList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0 AND ol.QtyEntered<>0
THEN ol.PriceList*ol.QtyOrdered/ol.QtyEntered END AS PriceEnteredList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList>ol.PriceActual AND ol.PriceList<>0
THEN (ol.PriceList-ol.PriceActual)/ol.PriceList*100 END AS Discount,
CASE WHEN ol.PriceActual<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceActual END AS PriceActual,
CASE WHEN ol.PriceEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceEntered END AS PriceEntered,
CASE WHEN ol.LineNetAmt<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.LineNetAmt END AS LineNetAmt,
p.Description as ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
FROM C_OrderLine ol
INNER JOIN C_UOM uom ON (ol.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN C_Order i ON (ol.C_Order_ID=i.C_Order_ID)
LEFT OUTER JOIN M_Product p ON (ol.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN M_Product_PO po ON (p.M_Product_ID=po.M_Product_ID)
LEFT OUTER JOIN S_ResourceAssignment ra ON (ol.S_ResourceAssignment_ID=ra.S_ResourceAssignment_ID)
LEFT OUTER JOIN C_Charge c ON (ol.C_Charge_ID=c.C_Charge_ID)
LEFT OUTER JOIN C_BPartner_Product pp ON (ol.M_Product_ID=pp.M_Product_ID AND i.C_BPartner_ID=pp.C_BPartner_ID)
INNER JOIN C_BPartner bp ON (ol.C_BPartner_ID=bp.C_BPartner_ID)
INNER JOIN C_BPartner_Location bpl ON (ol.C_BPartner_Location_ID=bpl.C_BPartner_Location_ID)
LEFT OUTER JOIN C_Tax t ON (ol.C_Tax_ID=t.C_Tax_ID)
UNION
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
'en_US' AS AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, null,
null, null, null, null,
ol.Line+(bl.Line/100) AS Line, p.M_Product_ID,po.VendorProductNo,
--ol.QtyOrdered*bl.BOMQty AS QtyInvoiced
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyOrdered*bl.QtyBOM ELSE ol.QtyOrdered*(bl.QtyBatch / 100) END AS QtyInvoiced,
--ol.QtyEntered*bl.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyEntered*bl.QtyBOM ELSE ol.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
p.Name, -- main
bl.Description,
p.DocumentNote, p.UPC, p.SKU, p.Value AS ProductValue,
null, null, null, null, null, null, null, p.Description as ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN C_OrderLine ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)*/
FROM PP_Product_BOM b
INNER JOIN C_OrderLine ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (p.M_Product_ID=bl.M_Product_ID) -- BOM line product
LEFT OUTER JOIN M_Product_PO po ON (p.M_Product_ID=po.M_Product_ID)
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)
UNION
SELECT AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy,
'en_US', C_Order_ID, null, null, null,
null,
null, null, null,
null, null, null, null,
null, null,null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null,null,null,null,null
FROM C_Order
UNION
SELECT ot.AD_Client_ID, ot.AD_Org_ID, ot.IsActive, ot.Created, ot.CreatedBy, ot.Updated, ot.UpdatedBy,
'en_US', ot.C_Order_ID, null, ot.C_Tax_ID, t.TaxIndicator,
null, null, null, null,
null, null,null,
null, null, null,
t.Name,
null, null, null, null, null, null,
null, null, null,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN NULL ELSE ot.TaxAmt END,
null, null,
null,null,null,null,null
FROM C_OrderTax ot
INNER JOIN C_Tax t ON (ot.C_Tax_ID=t.C_Tax_ID);
DROP VIEW C_ORDER_LINETAX_VT;
CREATE OR REPLACE VIEW C_ORDER_LINETAX_VT
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, C_ORDER_ID, C_ORDERLINE_ID,
C_TAX_ID, TAXINDICATOR, C_BPARTNER_ID, C_BPARTNER_LOCATION_ID, BPNAME,
C_LOCATION_ID, LINE, M_PRODUCT_ID,VendorProductNo, QTYORDERED, QTYENTERED,
UOMSYMBOL, NAME, DESCRIPTION, DOCUMENTNOTE, UPC,
SKU, PRODUCTVALUE, RESOURCEDESCRIPTION, PRICELIST, PRICEENTEREDLIST,
DISCOUNT, PRICEACTUAL, PRICEENTERED, LINENETAMT, PRODUCTDESCRIPTION,
IMAGEURL, C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, C_PROJECTPHASE_ID,
C_PROJECTTASK_ID)
AS
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
uom.AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, t.TaxIndicator,
ol.C_BPartner_ID, ol.C_BPartner_Location_ID, bp.Name AS BPName, bpl.C_Location_ID,
ol.Line, p.M_Product_ID,po.VendorProductNo,
CASE WHEN ol.QtyOrdered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyOrdered END AS QtyOrdered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyEntered END AS QtyEntered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
COALESCE(pt.Name,c.Name,p.Name||productAttribute(ol.M_AttributeSetInstance_ID), ol.Description) AS Name, -- main line
CASE WHEN COALESCE(c.Name,pt.Name, p.Name) IS NOT NULL THEN ol.Description END AS Description, -- second line
COALESCE(pt.DocumentNote, p.DocumentNote) AS DocumentNote, -- third line
p.UPC, p.SKU, COALESCE(pp.VendorProductNo,p.Value) AS ProductValue,
ra.Description AS ResourceDescription, -- forth line
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0
THEN ol.PriceList END AS PriceList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0 AND ol.QtyEntered<>0
THEN ol.PriceList*ol.QtyOrdered/ol.QtyEntered END AS PriceEnteredList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList>ol.PriceActual AND ol.PriceList<>0
THEN (ol.PriceList-ol.PriceActual)/ol.PriceList*100 END AS Discount,
CASE WHEN ol.PriceActual<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceActual END AS PriceActual,
CASE WHEN ol.PriceEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceEntered END AS PriceEntered,
CASE WHEN ol.LineNetAmt<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.LineNetAmt END AS LineNetAmt,
pt.Description as ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
FROM C_OrderLine ol
INNER JOIN C_UOM_Trl uom ON (ol.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN C_Order i ON (ol.C_Order_ID=i.C_Order_ID)
LEFT OUTER JOIN M_Product p ON (ol.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN M_Product_PO po ON (p.M_Product_ID=po.M_Product_ID)
LEFT OUTER JOIN M_Product_Trl pt ON (ol.M_Product_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN S_ResourceAssignment ra ON (ol.S_ResourceAssignment_ID=ra.S_ResourceAssignment_ID)
LEFT OUTER JOIN C_Charge c ON (ol.C_Charge_ID=c.C_Charge_ID)
LEFT OUTER JOIN C_BPartner_Product pp ON (ol.M_Product_ID=pp.M_Product_ID AND i.C_BPartner_ID=pp.C_BPartner_ID)
INNER JOIN C_BPartner bp ON (ol.C_BPartner_ID=bp.C_BPartner_ID)
INNER JOIN C_BPartner_Location bpl ON (ol.C_BPartner_Location_ID=bpl.C_BPartner_Location_ID)
LEFT OUTER JOIN C_Tax_Trl t ON (ol.C_Tax_ID=t.C_Tax_ID AND uom.AD_Language=t.AD_Language)
UNION
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
uom.AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, null,
null, null, null, null,
ol.Line+(bl.Line/100) AS Line, p.M_Product_ID,po.VendorProductNo,
--ol.QtyOrdered*b.BOMQty AS QtyInvoiced,
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyOrdered*bl.QtyBOM ELSE ol.QtyOrdered*(bl.QtyBatch / 100) END AS QtyInvoiced,
--ol.QtyEntered*b.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyEntered*bl.QtyBOM ELSE ol.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
COALESCE(pt.Name, p.Name) AS Name, -- main
b.Description,
COALESCE(pt.DocumentNote, p.DocumentNote) AS DocumentNote, p.UPC, p.SKU, p.Value AS ProductValue,
null, null, null, null, null, null, null, pt.Description AS ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN C_OrderLine ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (b.M_ProductBOM_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)*/
FROM PP_Product_BOM b
INNER JOIN C_ORDERLINE ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_PRODUCT bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (p.M_Product_ID=bl.M_Product_ID) -- BOM line product
LEFT OUTER JOIN M_Product_PO po ON (p.M_Product_ID=po.M_Product_ID)
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (pt.M_Product_ID=bl.M_Product_ID AND uom.AD_Language=pt.AD_Language)
UNION
SELECT o.AD_Client_ID, o.AD_Org_ID, o.IsActive, o.Created, o.CreatedBy, o.Updated, o.UpdatedBy,
l.AD_Language, o.C_Order_ID, null, null, null,
null,
null, null, null,
null, null, null, null,
null, null,null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null,null,null,null,null
FROM C_Order o, AD_Language l
WHERE l.IsBaseLanguage='N' AND l.IsSystemLanguage='Y'
UNION
SELECT ot.AD_Client_ID, ot.AD_Org_ID, ot.IsActive, ot.Created, ot.CreatedBy, ot.Updated, ot.UpdatedBy,
t.AD_Language, ot.C_Order_ID, null, ot.C_Tax_ID, t.TaxIndicator,
null, null, null, null,
null, null,null,
null, null, null,
t.Name,
null, null, null, null, null, null,
null, null, null,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN NULL ELSE ot.TaxAmt END,
null, null,
null,null,null,null,null
FROM C_OrderTax ot
INNER JOIN C_Tax_Trl t ON (ot.C_Tax_ID=t.C_Tax_ID);
-- 02-abr-2008 16:08:50 CST
-- FR 1932692 http://sourceforge.net/tracker/index.php?func=detail&aid=1932692&group_id=176962&atid=879335
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55199,623,0,10,497,'VendorProductNo',TO_DATE('2008-04-02 16:08:49','YYYY-MM-DD HH24:MI:SS'),0,'Product Key of the Business Partner','D',30,'The Business Partner Product Key identifies the number used by the Business Partner for this product. It can be printed on orders and invoices when you include the Product Key in the print format.','Y','N','N','N','N','N','N','N','N','N','Y','Partner Product Key',0,TO_DATE('2008-04-02 16:08:49','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 02-abr-2008 16:08:50 CST
-- FR 1932692 http://sourceforge.net/tracker/index.php?func=detail&aid=1932692&group_id=176962&atid=879335
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55199 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 02-abr-2008 16:10:34 CST
-- FR 1932692 http://sourceforge.net/tracker/index.php?func=detail&aid=1932692&group_id=176962&atid=879335
INSERT INTO AD_PrintFormatItem (AD_Client_ID,AD_Column_ID,AD_Org_ID,AD_PrintColor_ID,AD_PrintFont_ID,AD_PrintFormatItem_ID,AD_PrintFormat_ID,ArcDiameter,BelowColumn,Created,CreatedBy,FieldAlignmentType,ImageIsAttached,IsActive,IsAveraged,IsCentrallyMaintained,IsCounted,IsDeviationCalc,IsFilledRectangle,IsFixedWidth,IsGroupBy,IsHeightOneLine,IsImageField,IsMaxCalc,IsMinCalc,IsNextLine,IsNextPage,IsOrderBy,IsPageBreak,IsPrinted,IsRelativePosition,IsRunningTotal,IsSetNLPosition,IsSummarized,IsSuppressNull,IsVarianceCalc,LineAlignmentType,LineWidth,MaxHeight,MaxWidth,Name,PrintAreaType,PrintFormatType,PrintName,RunningTotalLines,SeqNo,ShapeType,SortNo,Updated,UpdatedBy,XPosition,XSpace,YPosition,YSpace) VALUES (0,55199,0,100,130,50477,101,0,0,TO_DATE('2008-04-02 16:10:34','YYYY-MM-DD HH24:MI:SS'),0,'D','N','Y','N','N','N','N','N','N','N','Y','N','N','N','Y','N','N','N','Y','Y','N','N','N','N','N','X',1,0,0,'VendorProductNo','C','F','VendorProductNo',20,110,'N',0,TO_DATE('2008-04-02 16:10:34','YYYY-MM-DD HH24:MI:SS'),0,0,0,0,0)
;
-- 02-abr-2008 16:10:34 CST
-- FR 1932692 http://sourceforge.net/tracker/index.php?func=detail&aid=1932692&group_id=176962&atid=879335
INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=50477 AND EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_PrintFormatItem_ID!=t.AD_PrintFormatItem_ID)
;
-- 02-abr-2008 16:10:35 CST
-- FR 1932692 http://sourceforge.net/tracker/index.php?func=detail&aid=1932692&group_id=176962&atid=879335
UPDATE AD_PrintFormatItem_Trl trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=55199) WHERE AD_PrintFormatItem_ID = 50477 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=55199 AND trl.AD_PrintFormatItem_ID = 50477) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=trl.AD_Client_ID AND IsMultiLingualDocument='Y')
;
-- 02-abr-2008 16:10:45 CST
-- FR 1932692 http://sourceforge.net/tracker/index.php?func=detail&aid=1932692&group_id=176962&atid=879335
UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50477
;

View File

@ -0,0 +1,114 @@
-- Apr 7, 2008 11:10:44 PM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,263,0,238,53144,20,'DateAcct',TO_DATE('2008-04-07 23:10:39','YYYY-MM-DD HH24:MI:SS'),0,'N','D',1,'Y','Y','N','N','DateAcct',15,TO_DATE('2008-04-07 23:10:39','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Apr 7, 2008 11:10:44 PM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53144 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Apr 7, 2008 11:11:17 PM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
UPDATE AD_Process_Para SET Description='Accounting Date', Help='The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.',Updated=TO_DATE('2008-04-07 23:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53144
;
-- Apr 7, 2008 11:11:17 PM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53144
;
-- Apr 7, 2008 11:12:00 PM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
UPDATE AD_Process_Para SET Name='Account Date',Updated=TO_DATE('2008-04-07 23:12:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53144
;
-- Apr 7, 2008 11:12:00 PM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53144
;
-- Apr 8, 2008 12:05:33 AM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
UPDATE AD_Process SET Help='The aging report allows you to report on Open Items (Invoices). Select the aging buckets, you want to have in your report. If you select a currency, you get only invoices of that currency, otherwise the amounts are converted to your primary accounting currency. If you do not select a Statement Date, the system date is used to calculate the buckets. If you do not list the individual invoices, the Due Date is the earliest due date for the business partner and the Due Days are the average due days of all invoices.<br>
<br>
If you select an Account Date the report will generate the Aging as of that date. The report will exclude documents after the selected date.<br>
<br>
For example: A customer has one invoice for $100 with the Account Date of 03/31/08 and one payment for $100 with the Account Date of 05/01/08. The report will show the following balances based on the Account Date selected: 03/15/08= 0; 04/15/08=100; 05/15/08 = 0.
',Updated=TO_DATE('2008-04-08 00:05:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=238
;
-- Apr 8, 2008 12:05:33 AM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=238
;
CREATE OR REPLACE VIEW RV_OPENITEMTODATE
(AD_ORG_ID, AD_CLIENT_ID, DOCUMENTNO, C_INVOICE_ID, C_ORDER_ID,
C_BPARTNER_ID, ISSOTRX, DATEINVOICED, DATEACCT, NETDAYS,
DUEDATE, DAYSDUE, DISCOUNTDATE, DISCOUNTAMT, GRANDTOTAL,
--PAIDAMT, OPENAMT,
C_CURRENCY_ID, C_CONVERSIONTYPE_ID, C_PAYMENTTERM_ID,
ISPAYSCHEDULEVALID, C_INVOICEPAYSCHEDULE_ID, INVOICECOLLECTIONTYPE, C_CAMPAIGN_ID, C_PROJECT_ID,
C_ACTIVITY_ID)
AS
SELECT i.AD_Org_ID, i.AD_Client_ID,
i.DocumentNo, i.C_Invoice_ID, i.C_Order_ID, i.C_BPartner_ID, i.IsSOTrx,
i.DateInvoiced, i.DateAcct,
p.NetDays,
paymentTermDueDate(i.C_PaymentTerm_ID, i.DateInvoiced) AS DueDate,
paymentTermDueDays(i.C_PaymentTerm_ID, i.DateInvoiced, getdate()) AS DaysDue,
addDays(i.DateInvoiced,p.DiscountDays) AS DiscountDate,
ROUND(i.GrandTotal*p.Discount/100,2) AS DiscountAmt,
i.GrandTotal,
--invoicePaid(i.C_Invoice_ID, i.C_Currency_ID, 1) AS PaidAmt,
--invoiceOpen(i.C_Invoice_ID,0) AS OpenAmt,
i.C_Currency_ID, i.C_ConversionType_ID,
i.C_PaymentTerm_ID,
i.IsPayScheduleValid, cast(null as number) AS C_InvoicePaySchedule_ID, i.InvoiceCollectionType,
i.C_Campaign_ID, i.C_Project_ID, i.C_Activity_ID
FROM RV_C_Invoice i
INNER JOIN C_PaymentTerm p ON (i.C_PaymentTerm_ID=p.C_PaymentTerm_ID)
WHERE -- i.IsPaid='N'
--invoiceOpen(i.C_Invoice_ID,0) <> 0 AND
i.IsPayScheduleValid<>'Y'
AND i.DocStatus<>'DR'
UNION
SELECT i.AD_Org_ID, i.AD_Client_ID,
i.DocumentNo, i.C_Invoice_ID, i.C_Order_ID, i.C_BPartner_ID, i.IsSOTrx,
i.DateInvoiced, i.DateAcct,
daysBetween(ips.DueDate,i.DateInvoiced) AS NetDays,
ips.DueDate,
daysBetween(getdate(),ips.DueDate) AS DaysDue,
ips.DiscountDate,
ips.DiscountAmt,
ips.DueAmt AS GrandTotal,
--invoicePaid(i.C_Invoice_ID, i.C_Currency_ID, 1) AS PaidAmt,
--invoiceOpen(i.C_Invoice_ID, ips.C_InvoicePaySchedule_ID) AS OpenAmt,
i.C_Currency_ID, i.C_ConversionType_ID,
i.C_PaymentTerm_ID,
i.IsPayScheduleValid, ips.C_InvoicePaySchedule_ID, i.InvoiceCollectionType,
i.C_Campaign_ID, i.C_Project_ID, i.C_Activity_ID
FROM RV_C_Invoice i
INNER JOIN C_InvoicePaySchedule ips ON (i.C_Invoice_ID=ips.C_Invoice_ID)
WHERE -- i.IsPaid='N'
--invoiceOpen(i.C_Invoice_ID,ips.C_InvoicePaySchedule_ID) <> 0 AND
i.IsPayScheduleValid='Y'
AND i.DocStatus<>'DR'
AND ips.IsValid='Y';
-- Apr 8, 2008 12:21:30 AM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55245,263,0,20,631,'DateAcct',TO_DATE('2008-04-08 00:21:28','YYYY-MM-DD HH24:MI:SS'),0,'N','Accounting Date','D',1,'The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.','Y','N','N','N','N','N','N','N','N','N','Y','Account Date',0,TO_DATE('2008-04-08 00:21:28','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Apr 8, 2008 12:21:30 AM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55245 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Apr 8, 2008 12:21:35 AM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
ALTER TABLE T_Aging ADD DateAcct CHAR(1) DEFAULT 'N' CHECK (DateAcct IN ('Y','N'))
;

View File

@ -0,0 +1,210 @@
-- Apr 8, 2008 10:26:21 PM CDT
-- Libero HR & Payroll
UPDATE AD_Window SET Description='Payroll Process', Name='Payroll Process',Updated=TO_DATE('2008-04-08 22:26:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Window_ID=53037
;
-- Apr 8, 2008 10:26:22 PM CDT
-- Libero HR & Payroll
UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=53037
;
-- Apr 8, 2008 10:26:22 PM CDT
-- Libero HR & Payroll
UPDATE AD_Menu SET AD_Window_ID=NULL, Description='Payroll Process', IsActive='Y', Name='Payroll Process',Updated=TO_DATE('2008-04-08 22:26:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=53116
;
-- Apr 8, 2008 10:26:22 PM CDT
-- Libero HR & Payroll
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53116
;
-- Apr 8, 2008 10:27:25 PM CDT
-- Libero HR & Payroll
INSERT INTO AD_Menu (AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Action,Created,CreatedBy,Description,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (0,53127,0,53037,'W',TO_DATE('2008-04-08 22:27:21','YYYY-MM-DD HH24:MI:SS'),0,'The Payroll Processing is used to processing a Payroll, you can calculate for a Employee or All Employees','EE02','Y','N','N','N','Payroll Process',TO_DATE('2008-04-08 22:27:21','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Apr 8, 2008 10:27:25 PM CDT
-- Libero HR & Payroll
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=53127 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID)
;
-- Apr 8, 2008 10:27:25 PM CDT
-- Libero HR & Payroll
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', SysDate, 0, SysDate, 0,t.AD_Tree_ID, 53127, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=53127)
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53083
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53118
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53115
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53119
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53120
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53117
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53123
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53127
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53116
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53121
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53122
;
-- Apr 8, 2008 10:45:03 PM CDT
-- Libero HR & Payroll
INSERT INTO AD_Val_Rule (AD_Client_ID,AD_Org_ID,AD_Val_Rule_ID,Code,Created,CreatedBy,Description,EntityType,IsActive,Name,Type,Updated,UpdatedBy) VALUES (0,0,52021,'C_DocType.DocBaseType=''HRP''',TO_DATE('2008-04-08 22:45:01','YYYY-MM-DD HH24:MI:SS'),0,'Document Type for Payroll','EE02','Y','C_DocType Payroll','S',TO_DATE('2008-04-08 22:45:01','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Apr 8, 2008 10:45:39 PM CDT
-- Libero HR & Payroll
UPDATE AD_Column SET AD_Val_Rule_ID=52021,Updated=TO_DATE('2008-04-08 22:45:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54863
;
-- Apr 8, 2008 10:45:39 PM CDT
-- Libero HR & Payroll
UPDATE AD_Field SET Name='Target Document Type', Description='Target document type for conversing documents', Help='You can convert document types (e.g. from Offer to Order or Invoice). The conversion is then reflected in the current type. This processing is initiated by selecting the appropriate Document Action.' WHERE AD_Column_ID=54863 AND IsCentrallyMaintained='Y'
;
-- Apr 8, 2008 10:45:51 PM CDT
-- Libero HR & Payroll
UPDATE AD_Column SET AD_Val_Rule_ID=52021,Updated=TO_DATE('2008-04-08 22:45:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54858
;
-- Apr 8, 2008 10:45:51 PM CDT
-- Libero HR & Payroll
UPDATE AD_Field SET Name='Document Type', Description='Document type or rules', Help='The Document Type determines document sequence and processing rules' WHERE AD_Column_ID=54858 AND IsCentrallyMaintained='Y'
;
-- Apr 8, 2008 10:50:36 PM CDT
-- Libero HR & Payroll
INSERT INTO GL_Category (AD_Client_ID,AD_Org_ID,CategoryType,Created,CreatedBy,GL_Category_ID,IsActive,IsDefault,Name,Updated,UpdatedBy) VALUES (11,0,'D',TO_DATE('2008-04-08 22:50:35','YYYY-MM-DD HH24:MI:SS'),100,50000,'Y','N','Payroll',TO_DATE('2008-04-08 22:50:35','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Apr 8, 2008 10:51:38 PM CDT
-- Libero HR & Payroll
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (11,0,53130,TO_DATE('2008-04-08 22:51:37','YYYY-MM-DD HH24:MI:SS'),100,100000,300000,1,'Y','N','Y','N','Payroll','N',300000,TO_DATE('2008-04-08 22:51:37','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Apr 8, 2008 10:51:57 PM CDT
-- Libero HR & Payroll
INSERT INTO C_DocType (AD_Client_ID,AD_Org_ID,C_DocType_ID,Created,CreatedBy,DocBaseType,DocNoSequence_ID,DocumentCopies,GL_Category_ID,HasCharges,HasProforma,IsActive,IsCreateCounter,IsDefault,IsDefaultCounterDoc,IsDocNoControlled,IsInTransit,IsIndexed,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,IsPickQAConfirm,IsSOTrx,IsShipConfirm,IsSplitWhenDifference,Name,PrintName,Updated,UpdatedBy) VALUES (11,0,50000,TO_DATE('2008-04-08 22:51:57','YYYY-MM-DD HH24:MI:SS'),100,'HRP',53130,1,50000,'N','N','Y','Y','N','N','Y','N','Y','N','N','N','N','N','N','Payroll','Payroll',TO_DATE('2008-04-08 22:51:57','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Apr 8, 2008 10:51:58 PM CDT
-- Libero HR & Payroll
INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, DocumentNote,Name,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.C_DocType_ID, t.DocumentNote,t.Name,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=50000 AND EXISTS (SELECT * FROM C_DocType_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.C_DocType_ID!=t.C_DocType_ID)
;
-- Apr 8, 2008 10:51:58 PM CDT
-- Libero HR & Payroll
INSERT INTO AD_Document_Action_Access (AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,C_DocType_ID , AD_Ref_List_ID, AD_Role_ID) (SELECT 11,0,'Y', SysDate,100, SysDate,100, doctype.C_DocType_ID, action.AD_Ref_List_ID, rol.AD_Role_ID FROM AD_Client client INNER JOIN C_DocType doctype ON (doctype.AD_Client_ID=client.AD_Client_ID) INNER JOIN AD_Ref_List action ON (action.AD_Reference_ID=135) INNER JOIN AD_Role rol ON (rol.AD_Client_ID=client.AD_Client_ID) WHERE client.AD_Client_ID=11 AND doctype.C_DocType_ID=50000 AND rol.IsManual='N')
;
-- Apr 8, 2008 10:52:46 PM CDT
-- Libero HR & Payroll
UPDATE AD_Ref_List SET Name='Payroll',Updated=TO_DATE('2008-04-08 22:52:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Ref_List_ID=53240
;
-- Apr 8, 2008 10:52:46 PM CDT
-- Libero HR & Payroll
UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53240
;

View File

@ -0,0 +1,302 @@
SET define OFF
-- Apr 9, 2008 1:22:02 AM CDT
-- e-Evolution Libero Manufacturing Management
INSERT INTO AD_Menu (AD_Client_ID,AD_Form_ID,AD_Menu_ID,AD_Org_ID,Action,Created,CreatedBy,Description,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,NAME,Updated,UpdatedBy) VALUES (0,116,53128,0,'X',TO_DATE('2008-04-09 01:22:01','YYYY-MM-DD HH24:MI:SS'),0,'Edit Workflows','EE01','Y','N','N','N','Manufacturing Workflow Editor',TO_DATE('2008-04-09 01:22:01','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Apr 9, 2008 1:22:02 AM CDT
-- e-Evolution Libero Manufacturing Management
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,NAME, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.NAME, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=53128 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID)
;
-- Apr 9, 2008 1:22:02 AM CDT
-- e-Evolution Libero Manufacturing Management
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', SYSDATE, 0, SYSDATE, 0,t.AD_Tree_ID, 53128, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=53128)
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53083
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53019, SeqNo=0, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53021
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53019, SeqNo=1, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53020
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53019, SeqNo=2, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=469
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53019, SeqNo=3, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53128
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53019, SeqNo=0, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53021
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53019, SeqNo=1, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53020
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53019, SeqNo=2, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53128
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=501, SeqNo=0, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=427
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=501, SeqNo=1, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=152
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=501, SeqNo=2, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=469
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=501, SeqNo=3, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=500
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=501, SeqNo=4, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=429
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=501, SeqNo=5, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=470
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=501, SeqNo=6, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=428
;
-- Apr 9, 2008 1:23:57 AM CDT
-- e-Evolution Libero Manufacturing Management
INSERT INTO AD_Menu (AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,Action,Created,CreatedBy,Description,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,NAME,Updated,UpdatedBy) VALUES (0,53129,0,53006,'W',TO_DATE('2008-04-09 01:23:56','YYYY-MM-DD HH24:MI:SS'),0,'Maintain Product Bill of Materials & Formula ','EE01','Y','N','N','N','Quality Bill of Materials & Formula ',TO_DATE('2008-04-09 01:23:56','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Apr 9, 2008 1:23:57 AM CDT
-- e-Evolution Libero Manufacturing Management
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,NAME, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.NAME, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=53129 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID)
;
-- Apr 9, 2008 1:23:57 AM CDT
-- e-Evolution Libero Manufacturing Management
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', SYSDATE, 0, SYSDATE, 0,t.AD_Tree_ID, 53129, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=53129)
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53083
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53071, SeqNo=0, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53072
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53071, SeqNo=1, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53129
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53071, SeqNo=2, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53024
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53071, SeqNo=3, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53073
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53071, SeqNo=0, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53072
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53071, SeqNo=1, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53129
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53071, SeqNo=2, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53073
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53022, SeqNo=0, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53023
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53022, SeqNo=1, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53024
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53022, SeqNo=2, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53025
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53022, SeqNo=3, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53026
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53022, SeqNo=4, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53027
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53022, SeqNo=5, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=53028
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53022, SeqNo=6, Updated=SYSDATE WHERE AD_Tree_ID=10 AND Node_ID=426
;

View File

@ -0,0 +1,123 @@
-- 13-abr-2008 19:49:25 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Tab (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,HasTree,ImportFields,IsActive,IsAdvancedTab,IsInfoTab,IsInsertRecord,IsReadOnly,IsSingleRow,IsSortTab,IsTranslationTab,Name,Processing,SeqNo,TabLevel,Updated,UpdatedBy) VALUES (0,0,53134,763,341,TO_DATE('2008-04-13 19:49:18','YYYY-MM-DD HH24:MI:SS'),0,'D','N','N','Y','N','N','N','Y','N','N','N','Attributes','N',30,2,TO_DATE('2008-04-13 19:49:18','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 13-abr-2008 19:49:25 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, CommitWarning,Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Tab_ID, t.CommitWarning,t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=53134 AND EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Tab_ID!=t.AD_Tab_ID)
;
-- 13-abr-2008 19:49:33 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,13358,55363,0,53134,TO_DATE('2008-04-13 19:49:32','YYYY-MM-DD HH24:MI:SS'),0,'The record is active in the system',1,'D','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Y','Y','Y','N','N','N','N','N','Active',TO_DATE('2008-04-13 19:49:32','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 13-abr-2008 19:49:33 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55363 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- 13-abr-2008 19:49:34 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,13355,55364,0,53134,TO_DATE('2008-04-13 19:49:33','YYYY-MM-DD HH24:MI:SS'),0,'Product Attribute Set Instance',22,'D','The values of the actual Product Attribute Instances. The product level attributes are defined on Product level.','Y','Y','Y','N','N','N','N','N','Attribute Set Instance',TO_DATE('2008-04-13 19:49:33','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 13-abr-2008 19:49:34 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55364 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- 13-abr-2008 19:49:35 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,13356,55365,0,53134,TO_DATE('2008-04-13 19:49:34','YYYY-MM-DD HH24:MI:SS'),0,'Client/Tenant for this installation.',22,'D','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','Y','Y','N','N','N','N','N','Client',TO_DATE('2008-04-13 19:49:34','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 13-abr-2008 19:49:35 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55365 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- 13-abr-2008 19:49:36 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,13363,55366,0,53134,TO_DATE('2008-04-13 19:49:35','YYYY-MM-DD HH24:MI:SS'),0,'Quantity of a product moved.',22,'D','The Movement Quantity indicates the quantity of a product that has been moved.','Y','Y','Y','N','N','N','N','N','Movement Quantity',TO_DATE('2008-04-13 19:49:35','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 13-abr-2008 19:49:36 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55366 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- 13-abr-2008 19:49:37 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,13357,55367,0,53134,TO_DATE('2008-04-13 19:49:36','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client',22,'D','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','Y','Y','N','N','N','N','N','Organization',TO_DATE('2008-04-13 19:49:36','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 13-abr-2008 19:49:37 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55367 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- 13-abr-2008 19:49:39 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,13354,55368,0,53134,TO_DATE('2008-04-13 19:49:37','YYYY-MM-DD HH24:MI:SS'),0,'Unique line in an Inventory document',22,'D','The Physical Inventory Line indicates the inventory document line (if applicable) for this transaction','Y','Y','Y','N','N','N','N','N','Phys.Inventory Line',TO_DATE('2008-04-13 19:49:37','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 13-abr-2008 19:49:39 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55368 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- 13-abr-2008 19:50:46 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=55368
;
-- 13-abr-2008 19:50:46 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=55365
;
-- 13-abr-2008 19:50:46 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=55367
;
-- 13-abr-2008 19:50:46 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=55363
;
-- 13-abr-2008 19:50:46 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=55364
;
-- 13-abr-2008 19:50:46 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=55366
;
-- 13-abr-2008 19:50:55 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-04-13 19:50:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55367
;
-- 13-abr-2008 19:51:03 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-04-13 19:51:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55366
;
-- 13-abr-2008 19:56:14 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=55363
;
-- 13-abr-2008 19:56:14 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=55368
;

View File

@ -0,0 +1,245 @@
-- 22-abr-2008 17:27:27 CDT
-- Implementing Reversal ID
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53457,0,'Reversal_ID',TO_DATE('2008-04-22 17:27:18','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D','Y','Reversal ID','Reversal ID',TO_DATE('2008-04-22 17:27:18','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 22-abr-2008 17:27:27 CDT
-- Implementing Reversal ID
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53457 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- 22-abr-2008 17:28:37 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55303,53457,0,18,337,319,'Reversal_ID',TO_DATE('2008-04-22 17:28:33','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_DATE('2008-04-22 17:28:33','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 17:28:37 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55303 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 17:30:13 CDT
-- Implementing Reversal ID
ALTER TABLE M_InOut ADD Reversal_ID NUMBER(10)
;
-- 22-abr-2008 17:32:10 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53249,TO_DATE('2008-04-22 17:32:08','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N','M_Inventory',TO_DATE('2008-04-22 17:32:08','YYYY-MM-DD HH24:MI:SS'),0,'T')
;
-- 22-abr-2008 17:32:10 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53249 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
;
-- 22-abr-2008 17:33:22 CDT
-- Implementing Reversal ID
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,3550,3542,0,53249,321,TO_DATE('2008-04-22 17:33:22','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N',TO_DATE('2008-04-22 17:33:22','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 22-abr-2008 17:33:44 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55304,53457,0,18,53249,321,'Reversal_ID',TO_DATE('2008-04-22 17:33:43','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_DATE('2008-04-22 17:33:43','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 17:33:45 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55304 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 17:33:50 CDT
-- Implementing Reversal ID
ALTER TABLE M_Inventory ADD Reversal_ID NUMBER(10)
;
-- 22-abr-2008 17:37:48 CDT
-- Implementing Reversal ID
ALTER TABLE M_Inventory MODIFY Reversal_ID NUMBER(10) DEFAULT NULL
;
-- 22-abr-2008 17:38:42 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55305,53457,0,18,336,318,'Reversal_ID',TO_DATE('2008-04-22 17:38:41','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_DATE('2008-04-22 17:38:41','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 17:38:42 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55305 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 17:38:45 CDT
-- Implementing Reversal ID
ALTER TABLE C_Invoice ADD Reversal_ID NUMBER(10)
;
-- 22-abr-2008 17:42:57 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53250,TO_DATE('2008-04-22 17:42:55','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N','GL_Journal',TO_DATE('2008-04-22 17:42:55','YYYY-MM-DD HH24:MI:SS'),0,'T')
;
-- 22-abr-2008 17:42:57 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53250 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
;
-- 22-abr-2008 17:43:35 CDT
-- Implementing Reversal ID
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,1626,1617,0,53250,224,TO_DATE('2008-04-22 17:43:35','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N',TO_DATE('2008-04-22 17:43:35','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 22-abr-2008 17:43:58 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55306,53457,0,18,53250,224,'Reversal_ID',TO_DATE('2008-04-22 17:43:57','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_DATE('2008-04-22 17:43:57','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 17:43:58 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55306 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 17:44:01 CDT
-- Implementing Reversal ID
ALTER TABLE GL_Journal ADD Reversal_ID NUMBER(10)
;
-- 22-abr-2008 17:47:15 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53251,TO_DATE('2008-04-22 17:47:11','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N','GL_JournalBatch',TO_DATE('2008-04-22 17:47:11','YYYY-MM-DD HH24:MI:SS'),0,'T')
;
-- 22-abr-2008 17:47:15 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53251 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
;
-- 22-abr-2008 17:47:42 CDT
-- Implementing Reversal ID
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,1650,1641,0,53251,225,TO_DATE('2008-04-22 17:47:42','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N',TO_DATE('2008-04-22 17:47:42','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 22-abr-2008 17:48:01 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55307,53457,0,18,53251,225,'Reversal_ID',TO_DATE('2008-04-22 17:48:00','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_DATE('2008-04-22 17:48:00','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 17:48:01 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55307 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 17:48:04 CDT
-- Implementing Reversal ID
ALTER TABLE GL_JournalBatch ADD Reversal_ID NUMBER(10)
;
-- 22-abr-2008 17:49:14 CDT
-- Implementing Reversal ID
ALTER TABLE GL_JournalBatch MODIFY Reversal_ID NUMBER(10) DEFAULT NULL
;
-- 22-abr-2008 17:50:43 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53252,TO_DATE('2008-04-22 17:50:41','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N','M_Movement',TO_DATE('2008-04-22 17:50:41','YYYY-MM-DD HH24:MI:SS'),0,'T')
;
-- 22-abr-2008 17:50:43 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53252 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
;
-- 22-abr-2008 17:51:11 CDT
-- Implementing Reversal ID
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,3577,3569,0,53252,323,TO_DATE('2008-04-22 17:51:11','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N',TO_DATE('2008-04-22 17:51:11','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 22-abr-2008 17:51:29 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55308,53457,0,18,53252,323,'Reversal_ID',TO_DATE('2008-04-22 17:51:28','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_DATE('2008-04-22 17:51:28','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 17:51:29 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55308 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 17:51:32 CDT
-- Implementing Reversal ID
ALTER TABLE M_Movement ADD Reversal_ID NUMBER(10)
;
-- 22-abr-2008 18:59:49 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55309,53457,0,18,343,335,'Reversal_ID',TO_DATE('2008-04-22 18:59:43','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_DATE('2008-04-22 18:59:43','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 18:59:49 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55309 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 19:03:28 CDT
-- Implementing Reversal ID
ALTER TABLE C_Payment ADD Reversal_ID NUMBER(10)
;
-- 22-abr-2008 19:07:04 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53253,TO_DATE('2008-04-22 19:06:58','YYYY-MM-DD HH24:MI:SS'),0,'EE02','Y','N','HR_Process',TO_DATE('2008-04-22 19:06:58','YYYY-MM-DD HH24:MI:SS'),0,'T')
;
-- 22-abr-2008 19:07:04 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53253 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
;
-- 22-abr-2008 19:08:11 CDT
-- Implementing Reversal ID
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,54870,54860,0,53253,53092,TO_DATE('2008-04-22 19:08:11','YYYY-MM-DD HH24:MI:SS'),0,'EE02','Y','N',TO_DATE('2008-04-22 19:08:11','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 22-abr-2008 19:08:33 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55310,53457,0,18,53253,53092,'Reversal_ID',TO_DATE('2008-04-22 19:08:32','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','EE02',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_DATE('2008-04-22 19:08:32','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 19:08:33 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55310 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 19:08:37 CDT
-- Implementing Reversal ID
ALTER TABLE HR_Process ADD Reversal_ID NUMBER(10)
;
-- 22-abr-2008 19:11:48 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53254,TO_DATE('2008-04-22 19:11:47','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N','PP_Cost_Collector',TO_DATE('2008-04-22 19:11:47','YYYY-MM-DD HH24:MI:SS'),0,'T')
;
-- 22-abr-2008 19:11:48 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53254 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
;
-- 22-abr-2008 19:12:26 CDT
-- Implementing Reversal ID
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,53830,53828,0,53254,53035,TO_DATE('2008-04-22 19:12:26','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N',TO_DATE('2008-04-22 19:12:26','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 22-abr-2008 19:12:45 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55311,53457,0,18,53254,53035,'Reversal_ID',TO_DATE('2008-04-22 19:12:44','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','EE01',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_DATE('2008-04-22 19:12:44','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 19:12:45 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55311 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 19:12:48 CDT
-- Implementing Reversal ID
ALTER TABLE PP_Cost_Collector ADD Reversal_ID NUMBER(10)
;

View File

@ -0,0 +1,6 @@
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgTip,MsgType,Updated,UpdatedBy,Value) VALUES (0,53029,0,TO_DATE('2008-05-08 11:13:10','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Choose the date of the most recent payment that you plan to allocate, but it must be in an open accounting period or it will not post.','Prefer most recent payment date, within open period.','I',TO_DATE('2008-05-08 11:13:10','YYYY-MM-DD HH24:MI:SS'),100,'AllocDate')
;
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53029 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
;

View File

@ -0,0 +1,50 @@
-- 8/05/2008 16:30:23
-- Generated_Order_ID
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53462,0,'Link_Order_ID',TO_DATE('2008-05-08 16:30:19','YYYY-MM-DD HH24:MI:SS'),100,'This field links a sales order to the purchase order that is generated from it.','D','Y','Linked Order','Linked Order',TO_DATE('2008-05-08 16:30:19','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 8/05/2008 16:30:23
-- Generated_Order_ID
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53462 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- 8/05/2008 16:31:41
-- Generated_Order_ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55322,53462,0,18,290,259,'Link_Order_ID',TO_DATE('2008-05-08 16:31:38','YYYY-MM-DD HH24:MI:SS'),100,'This field links a sales order to the purchase order that is generated from it.','D',22,'Y','N','N','N','N','N','N','N','N','N','N','Linked Order',0,TO_DATE('2008-05-08 16:31:38','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 8/05/2008 16:31:41
-- Generated_Order_ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55322 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 8/05/2008 16:31:53
-- Generated_Order_ID
ALTER TABLE C_Order ADD Link_Order_ID NUMBER(10)
;
-- 8/05/2008 16:58:30
-- Generated_Order_ID
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53463,0,'Link_OrderLine_ID',TO_DATE('2008-05-08 16:58:29','YYYY-MM-DD HH24:MI:SS'),100,'This field links a sales order line to the purchase order line that is generated from it.','D','Y','Linked Order Line','Linked Order Line',TO_DATE('2008-05-08 16:58:29','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 8/05/2008 16:58:30
-- Generated_Order_ID
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53463 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- 8/05/2008 16:59:18
-- Generated_Order_ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55323,53463,0,18,271,260,'Link_OrderLine_ID',TO_DATE('2008-05-08 16:59:17','YYYY-MM-DD HH24:MI:SS'),100,'This field links a sales order line to the purchase order line that is generated from it.','D',22,'Y','N','N','N','N','N','N','N','N','N','N','Linked Order Line',0,TO_DATE('2008-05-08 16:59:17','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 8/05/2008 16:59:18
-- Generated_Order_ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55323 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 8/05/2008 16:59:21
-- Generated_Order_ID
ALTER TABLE C_OrderLine ADD Link_OrderLine_ID NUMBER(10)
;

View File

@ -0,0 +1,215 @@
-- May 11, 2008 1:57:39 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_Workflow SET AccessLevel='1', Author='e-Evolution', Duration=1, IsValid='Y',Updated=TO_DATE('2008-05-11 13:57:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Workflow_ID=50008
;
-- May 11, 2008 1:58:14 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-05-11 13:58:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50026
;
-- May 11, 2008 1:59:35 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Transition)',Updated=TO_DATE('2008-05-11 13:59:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50010
;
-- May 11, 2008 2:00:15 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Approval)', IsStdUserWorkflow='Y',Updated=TO_DATE('2008-05-11 14:00:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50011
;
-- May 11, 2008 2:01:11 PM CDT
-- Fixed workflow to Libero Document
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,Description,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50026,50063,50029,TO_DATE('2008-05-11 14:01:09','YYYY-MM-DD HH24:MI:SS'),0,'(Standard Transition)','EE01','Y','N',100,TO_DATE('2008-05-11 14:01:09','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 11, 2008 2:04:02 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_Workflow SET Description='(Standard Process Manufacturing Order)', IsValid='Y',Updated=TO_DATE('2008-05-11 14:04:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Workflow_ID=50008
;
-- May 11, 2008 2:04:02 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_Workflow_Trl SET IsTranslated='N' WHERE AD_Workflow_ID=50008
;
-- May 11, 2008 2:04:02 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET Description='(Standard Process Manufacturing Order)', Help=NULL, Name='Process_Manufacturing_Order',Updated=TO_DATE('2008-05-11 14:04:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50026
;
-- May 11, 2008 2:04:02 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=50026
;
-- May 11, 2008 2:04:19 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=182, YPosition=143,Updated=TO_DATE('2008-05-11 14:04:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50027
;
-- May 11, 2008 2:04:19 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=182, YPosition=7,Updated=TO_DATE('2008-05-11 14:04:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50028
;
-- May 11, 2008 2:04:19 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=4, YPosition=6,Updated=TO_DATE('2008-05-11 14:04:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50029
;
-- May 11, 2008 2:04:19 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=4, YPosition=147,Updated=TO_DATE('2008-05-11 14:04:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50026
;
-- May 11, 2008 2:06:59 PM CDT
-- Fixed workflow to Libero Document
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50071,50064,50070,TO_DATE('2008-05-11 14:06:54','YYYY-MM-DD HH24:MI:SS'),0,'EE02','Y','Y',10,TO_DATE('2008-05-11 14:06:54','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 11, 2008 2:08:54 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-05-11 14:08:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50073
;
-- May 11, 2008 2:09:20 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-05-11 14:09:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50072
;
-- May 11, 2008 2:09:49 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-05-11 14:09:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50071
;
-- May 11, 2008 2:10:04 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Transition)',Updated=TO_DATE('2008-05-11 14:10:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50058
;
-- May 11, 2008 2:10:28 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-05-11 14:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50070
;
-- May 11, 2008 2:10:43 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Approval)',Updated=TO_DATE('2008-05-11 14:10:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50064
;
-- May 11, 2008 2:10:54 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Transition)',Updated=TO_DATE('2008-05-11 14:10:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50057
;
-- May 11, 2008 2:11:40 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=1, YPosition=0,Updated=TO_DATE('2008-05-11 14:11:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50070
;
-- May 11, 2008 2:11:40 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=226, YPosition=0,Updated=TO_DATE('2008-05-11 14:11:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50071
;
-- May 11, 2008 2:11:40 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=223, YPosition=103,Updated=TO_DATE('2008-05-11 14:11:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50072
;
-- May 11, 2008 2:11:41 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=0, YPosition=99,Updated=TO_DATE('2008-05-11 14:11:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50073
;
-- May 11, 2008 2:13:06 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_Workflow SET AD_WF_Node_ID=50041, Author='e-Evolution', IsValid='Y',Updated=TO_DATE('2008-05-11 14:13:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Workflow_ID=50011
;
-- May 11, 2008 2:13:21 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-05-11 14:13:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50043
;
-- May 11, 2008 2:13:40 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-05-11 14:13:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50044
;
-- May 11, 2008 2:13:57 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-05-11 14:13:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50042
;
-- May 11, 2008 2:14:14 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Transition)',Updated=TO_DATE('2008-05-11 14:14:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50036
;
-- May 11, 2008 2:14:47 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-05-11 14:14:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50041
;
-- May 11, 2008 2:15:10 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Approval)', IsStdUserWorkflow='Y',Updated=TO_DATE('2008-05-11 14:15:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50035
;
-- May 11, 2008 2:15:46 PM CDT
-- Fixed workflow to Libero Document
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,Description,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50043,50065,50041,TO_DATE('2008-05-11 14:15:45','YYYY-MM-DD HH24:MI:SS'),0,'(Standard Transition)','EE01','Y','N',100,TO_DATE('2008-05-11 14:15:45','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 11, 2008 2:17:16 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_Workflow SET Description='(Standard Process Manufacturing Cost Collector)', Duration=1, IsValid='Y',Updated=TO_DATE('2008-05-11 14:17:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Workflow_ID=50009
;
-- May 11, 2008 2:17:16 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_Workflow_Trl SET IsTranslated='N' WHERE AD_Workflow_ID=50009
;
-- May 11, 2008 2:17:30 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-05-11 14:17:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50030
;
-- May 11, 2008 2:17:39 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-05-11 14:17:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50031
;
-- May 11, 2008 2:17:48 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-05-11 14:17:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50032
;
-- May 11, 2008 2:18:04 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Transition)',Updated=TO_DATE('2008-05-11 14:18:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50012
;
-- May 11, 2008 2:18:09 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET SeqNo=100,Updated=TO_DATE('2008-05-11 14:18:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50012
;
-- May 11, 2008 2:18:26 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_DATE('2008-05-11 14:18:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50033
;
-- May 11, 2008 2:18:40 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Approval)',Updated=TO_DATE('2008-05-11 14:18:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50013
;
-- May 11, 2008 2:19:11 PM CDT
-- Fixed workflow to Libero Document
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,Description,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50030,50066,50033,TO_DATE('2008-05-11 14:19:10','YYYY-MM-DD HH24:MI:SS'),0,'(Standard Transition)','EE01','Y','N',100,TO_DATE('2008-05-11 14:19:10','YYYY-MM-DD HH24:MI:SS'),0)
;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,5 @@
-- May 11, 2008 11:19:42 PM CDT
-- Fixed Libero Multi Print BOM
UPDATE AD_Process SET AD_PrintFormat_ID=NULL, AD_ReportView_ID=NULL,Updated=TO_DATE('2008-05-11 23:19:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53006
;

View File

@ -0,0 +1,9 @@
-- May 12, 2008 11:25:19 AM EST
-- BF1962125 entitytype incorrect for IsRegistered in table HR_Movement
UPDATE AD_Column SET EntityType='EE02',Updated=TO_DATE('2008-05-12 11:25:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55031
;
-- May 12, 2008 11:25:19 AM EST
-- BF1962125 entitytype incorrect for IsRegistered in table HR_Movement
UPDATE AD_Field SET EntityType='EE02',Updated=TO_DATE('2008-05-12 11:55:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=55186
;

View File

@ -0,0 +1,129 @@
-- May 13, 2008 10:18:11 AM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
ALTER TABLE T_BOMLine ADD Implotion CHAR(1) CHECK (Implotion IN ('Y','N'))
;
-- May 13, 2008 10:18:38 AM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
ALTER TABLE T_BOMLine ADD Sel_Product_ID NUMBER(10) NOT NULL
;
-- May 12, 2008 1:58:58 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
DROP VIEW "RV_PP_PRODUCT_BOMLINE";
CREATE VIEW "RV_PP_PRODUCT_BOMLINE" ("SEQNO", "LEVELNO", "LEVELS", "AD_CLIENT_ID", "AD_ORG_ID", "CREATEDBY", "UPDATEDBY", "UPDATED", "CREATED", "AD_PINSTANCE_ID", "IMPLOTION", "M_PRODUCT_ID", "ISACTIVE", "PP_PRODUCT_BOM_ID", "PP_PRODUCT_BOMLINE_ID", "DESCRIPTION", "ISCRITICAL", "COMPONENTTYPE", "TM_PRODUCT_ID", "C_UOM_ID", "ISSUEMETHOD", "LINE", "M_ATTRIBUTESETINSTANCE_ID", "SCRAP", "VALIDFROM", "VALIDTO", "QTYBOM", "QTYBATCH", "ISQTYPERCENTAGE") AS
SELECT t.seqno, t.levelno, t.levels, t.ad_client_id, t.ad_org_id, t.createdby, t.updatedby, t.updated, t.created, t.ad_pinstance_id, t.implotion, t.sel_product_id, bl.isactive, bl.pp_product_bom_id, bl.pp_product_bomline_id, bl.description, bl.iscritical, bl.componenttype, t.m_product_id, bl.c_uom_id, bl.issuemethod, bl.line, bl.m_attributesetinstance_id, bl.scrap, bl.validfrom, bl.validto, bl.qtybom, bl.qtybatch, bl.isqtypercentage
FROM t_bomline t
LEFT JOIN pp_product_bomline bl ON t.pp_product_bomline_id = bl.pp_product_bomline_id
ORDER BY t.seqno;
-- May 12, 2008 1:58:58 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
DELETE FROM AD_Element_Trl WHERE AD_Element_ID=1000003
;
-- May 12, 2008 1:58:58 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
DELETE FROM AD_Element WHERE AD_Element_ID=1000003
;
-- May 12, 2008 2:01:04 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53466,0,'Implotion',TO_DATE('2008-05-12 14:01:03','YYYY-MM-DD HH24:MI:SS'),100,'Implosion of a Bill of Materials refers to finding all the BOM''''s in which a component is used.','EE01','Commonly called a Where-Used report.','Y','Implotion','Implosion',TO_DATE('2008-05-12 14:01:03','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 12, 2008 2:01:04 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53466 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- May 12, 2008 1:32:38 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55324,53466,0,20,53045,'Implotion',TO_DATE('2008-05-12 13:32:36','YYYY-MM-DD HH24:MI:SS'),100,'N','Implosion of a Bill of Materials refers to finding all the BOM''s in which a component is used.','EE01',1,'Commonly called a Where-Used report.','Y','N','N','N','N','N','N','N','N','N','Y','Implotion',0,TO_DATE('2008-05-12 13:32:36','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- May 12, 2008 1:32:38 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55324 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- May 12, 2008 1:32:26 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
UPDATE AD_Field SET Name='Implotion', Description='Implosion of a Bill of Materials refers to finding all the BOM''s in which a component is used.', Help='Commonly called a Where-Used report.' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53466) AND IsCentrallyMaintained='Y'
;
-- May 12, 2008 1:32:26 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
UPDATE AD_Process_Para SET ColumnName='Implotion', Name='Implotion', Description='Implosion of a Bill of Materials refers to finding all the BOM''s in which a component is used.', Help='Commonly called a Where-Used report.', AD_Element_ID=53466 WHERE UPPER(ColumnName)='IMPLOTION' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- May 12, 2008 1:32:26 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
UPDATE AD_Process_Para SET ColumnName='Implotion', Name='Implotion', Description='Implosion of a Bill of Materials refers to finding all the BOM''s in which a component is used.', Help='Commonly called a Where-Used report.' WHERE AD_Element_ID=53466 AND IsCentrallyMaintained='Y'
;
-- May 12, 2008 1:32:26 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
UPDATE AD_PrintFormatItem pi SET PrintName='Implosion', Name='Implotion' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53466)
;
-- May 12, 2008 1:34:11 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53464,0,'Sel_Product_ID',TO_DATE('2008-05-12 13:34:10','YYYY-MM-DD HH24:MI:SS'),100,'EE01','Y','Sel_Product_ID','Selected Product',TO_DATE('2008-05-12 13:34:10','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 12, 2008 1:34:11 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53464 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- May 12, 2008 1:39:29 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55325,53464,0,13,53045,'Sel_Product_ID',TO_DATE('2008-05-12 13:39:28','YYYY-MM-DD HH24:MI:SS'),100,'EE01',10,'Y','N','N','N','N','Y','N','N','N','N','Y','Sel_Product_ID',0,TO_DATE('2008-05-12 13:39:28','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- May 12, 2008 1:39:29 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55325 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- May 12, 2008 1:42:52 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53465,0,'TM_Product_ID',TO_DATE('2008-05-12 13:42:51','YYYY-MM-DD HH24:MI:SS'),100,'T_Bomline M_Product_ID','EE01','Y','TM_Product_ID','TM_Product_ID',TO_DATE('2008-05-12 13:42:51','YYYY-MM-DD HH24:MI:SS'),100)
;
-- May 12, 2008 1:42:52 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53465 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- May 12, 2008 1:43:59 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55326,53465,0,13,53063,'TM_Product_ID',TO_DATE('2008-05-12 13:43:58','YYYY-MM-DD HH24:MI:SS'),100,'T_Bomline M_Product_ID','EE01',22,'Y','N','N','N','N','N','N','N','N','N','Y','TM_Product_ID',0,TO_DATE('2008-05-12 13:43:58','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- May 12, 2008 1:43:59 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55326 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- May 12, 2008 1:45:10 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55327,53466,0,20,53063,'Implotion',TO_DATE('2008-05-12 13:45:09','YYYY-MM-DD HH24:MI:SS'),100,'N','Implosion of a Bill of Materials refers to finding all the BOM''s in which a component is used.','EE01',1,'Commonly called a Where-Used report.','Y','N','N','N','N','N','N','N','N','N','Y','Implotion',0,TO_DATE('2008-05-12 13:45:09','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- May 12, 2008 1:45:10 PM EST
-- BF1949804 Broken Report - MultiLevel BOM & Formula Detail
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55327 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- May 13, 2008 12:06:52 PM EST
-- New Event Model Validator
UPDATE AD_PrintFormatItem SET AD_Column_ID=55326, IsGroupBy='N', IsPageBreak='N', SortNo=0, XPosition=0, YPosition=0,Updated=TO_DATE('2008-05-13 12:06:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_PrintFormatItem_ID=50470
;
-- May 13, 2008 12:31:28 PM EST
-- New Event Model Validator
UPDATE AD_Column SET AD_Reference_ID=30, AD_Reference_Value_ID=162,Updated=TO_DATE('2008-05-13 12:31:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55326
;

View File

@ -0,0 +1 @@
-- placeholder - script just affect postgres

View File

@ -0,0 +1,550 @@
-- May 11, 2008 11:19:42 PM CDT
-- Fixed Libero Multi Print BOM
UPDATE AD_Process SET AD_PrintFormat_ID=NULL, AD_ReportView_ID=NULL,Updated=TO_DATE('2008-05-11 23:19:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53006
;
-- May 13, 2008 7:14:59 PM CDT
-- New Process to Export Format
INSERT INTO AD_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AccessLevel,Classname,Created,CreatedBy,Description,EntityType,IsActive,IsBetaFunctionality,IsDirectPrint,IsReport,IsServerProcess,Name,ShowHelp,Statistic_Count,Statistic_Seconds,Updated,UpdatedBy,Value) VALUES (0,0,53089,'3','org.adempiere.server.rpl.imp.ModelExporter',TO_DATE('2008-05-13 19:14:56','YYYY-MM-DD HH24:MI:SS'),0,'Test Export of XML files','EE05','Y','N','N','N','N','Test Export Model','Y',6,8,TO_DATE('2008-05-13 19:14:56','YYYY-MM-DD HH24:MI:SS'),0,'TestExportModel')
;
-- May 13, 2008 7:14:59 PM CDT
-- New Process to Export Format
INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=53089 AND EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_ID!=t.AD_Process_ID)
;
-- May 13, 2008 7:15:00 PM CDT
-- New Process to Export Format
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53089,0,TO_DATE('2008-05-13 19:15:00','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2008-05-13 19:15:00','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 13, 2008 7:15:00 PM CDT
-- New Process to Export Format
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53089,102,TO_DATE('2008-05-13 19:15:00','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2008-05-13 19:15:00','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 13, 2008 7:15:00 PM CDT
-- New Process to Export Format
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53089,103,TO_DATE('2008-05-13 19:15:00','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2008-05-13 19:15:00','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 13, 2008 7:15:00 PM CDT
-- New Process to Export Format
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53089,50001,TO_DATE('2008-05-13 19:15:00','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_DATE('2008-05-13 19:15:00','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 13, 2008 7:15:54 PM CDT
-- New Process to Export Format
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53467,0,'TestExportModel',TO_DATE('2008-05-13 19:15:53','YYYY-MM-DD HH24:MI:SS'),0,'EE05','Y','Test Export Model','Test Export Model',TO_DATE('2008-05-13 19:15:53','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 13, 2008 7:15:55 PM CDT
-- New Process to Export Format
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53467 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- May 13, 2008 7:17:10 PM CDT
-- New Process to Export Format
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55328,53467,0,53089,28,53072,'TestExportModel',TO_DATE('2008-05-13 19:17:07','YYYY-MM-DD HH24:MI:SS'),0,'EE05',1,'Y','Y','N','N','N','N','N','N','Y','N','Y','Test Export Model',150,TO_DATE('2008-05-13 19:17:07','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- May 13, 2008 7:17:10 PM CDT
-- New Process to Export Format
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55328 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- May 13, 2008 7:17:14 PM CDT
-- New Process to Export Format
ALTER TABLE EXP_Format ADD TestExportModel CHAR(1)
;
-- May 13, 2008 7:17:28 PM CDT
-- New Process to Export Format
UPDATE AD_Process SET Value='EXP_Format TestImportModel',Updated=TO_DATE('2008-05-13 19:17:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53074
;
-- May 13, 2008 7:17:47 PM CDT
-- New Process to Export Format
UPDATE AD_Process SET Value='EXP_Format TestExportModel',Updated=TO_DATE('2008-05-13 19:17:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53089
;
-- May 13, 2008 7:20:25 PM CDT
-- New Process to Export Format
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,50022,0,53074,53145,39,'File_Directory',TO_DATE('2008-05-13 19:20:23','YYYY-MM-DD HH24:MI:SS'),0,'EE05',20,'Y','Y','N','N','File Directory',10,TO_DATE('2008-05-13 19:20:23','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 13, 2008 7:20:25 PM CDT
-- New Process to Export Format
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53145 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- May 13, 2008 7:22:40 PM CDT
-- New Process to Export Format
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,50022,0,53089,53146,38,'File_Directory',TO_DATE('2008-05-13 19:22:39','YYYY-MM-DD HH24:MI:SS'),0,'EE05',20,'Y','Y','N','N','File Directory',10,TO_DATE('2008-05-13 19:22:39','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 13, 2008 7:22:40 PM CDT
-- New Process to Export Format
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53146 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- May 13, 2008 7:23:10 PM CDT
-- New Process to Export Format
UPDATE AD_Process_Para SET AD_Element_ID=2295, ColumnName='FileName', Name='FileName',Updated=TO_DATE('2008-05-13 19:23:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53145
;
-- May 13, 2008 7:23:10 PM CDT
-- New Process to Export Format
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53145
;
-- May 13, 2008 7:23:36 PM CDT
-- New Process to Export Format
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,55328,55417,0,53085,TO_DATE('2008-05-13 19:23:34','YYYY-MM-DD HH24:MI:SS'),0,1,'EE05','Y','Y','Y','N','N','N','N','N','Test Export Model',TO_DATE('2008-05-13 19:23:34','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 13, 2008 7:23:36 PM CDT
-- New Process to Export Format
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55417 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- May 13, 2008 7:23:53 PM CDT
-- New Process to Export Format
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-05-13 19:23:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55417
;
-- May 13, 2008 7:25:13 PM CDT
-- New Process to Export Format
INSERT INTO AD_Menu (AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,Action,Created,CreatedBy,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (0,53130,0,53089,'P',TO_DATE('2008-05-13 19:25:11','YYYY-MM-DD HH24:MI:SS'),0,'EE05','Y','N','N','N','Export Record',TO_DATE('2008-05-13 19:25:11','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 13, 2008 7:25:13 PM CDT
-- New Process to Export Format
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=53130 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID)
;
-- May 13, 2008 7:25:13 PM CDT
-- New Process to Export Format
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', SysDate, 0, SysDate, 0,t.AD_Tree_ID, 53130, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=53130)
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53083
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53099
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=385
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=386
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53100
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53125
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53102
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53130
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53101
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53104
;
-- May 13, 2008 7:25:17 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53103
;
-- May 13, 2008 7:25:28 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53099
;
-- May 13, 2008 7:25:28 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=385
;
-- May 13, 2008 7:25:28 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=386
;
-- May 13, 2008 7:25:28 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53100
;
-- May 13, 2008 7:25:28 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53125
;
-- May 13, 2008 7:25:28 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53130
;
-- May 13, 2008 7:25:28 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53102
;
-- May 13, 2008 7:25:28 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53101
;
-- May 13, 2008 7:25:28 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53104
;
-- May 13, 2008 7:25:28 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53103
;
-- May 13, 2008 7:25:51 PM CDT
-- New Process to Export Format
INSERT INTO AD_Menu (AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,Action,Created,CreatedBy,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (0,53131,0,53074,'P',TO_DATE('2008-05-13 19:25:48','YYYY-MM-DD HH24:MI:SS'),0,'EE05','Y','N','N','N','Import Record',TO_DATE('2008-05-13 19:25:48','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 13, 2008 7:25:51 PM CDT
-- New Process to Export Format
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=53131 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID)
;
-- May 13, 2008 7:25:51 PM CDT
-- New Process to Export Format
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', SysDate, 0, SysDate, 0,t.AD_Tree_ID, 53131, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=53131)
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53083
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53099
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=385
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=386
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53100
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53125
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53130
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53131
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53102
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53101
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53104
;
-- May 13, 2008 7:25:56 PM CDT
-- New Process to Export Format
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53103
;
-- May 13, 2008 7:27:07 PM CDT
-- New Process to Export Format
UPDATE AD_Element SET Name='Export Format ID', PrintName='Export Format ID',Updated=TO_DATE('2008-05-13 19:27:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53368
;
-- May 13, 2008 7:27:08 PM CDT
-- New Process to Export Format
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53368
;
-- May 13, 2008 7:27:08 PM CDT
-- New Process to Export Format
UPDATE AD_Column SET ColumnName='EXP_Format_ID', Name='Export Format ID', Description=NULL, Help=NULL WHERE AD_Element_ID=53368
;
-- May 13, 2008 7:27:08 PM CDT
-- New Process to Export Format
UPDATE AD_Field SET Name='Export Format ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53368) AND IsCentrallyMaintained='Y'
;
-- May 13, 2008 7:27:08 PM CDT
-- New Process to Export Format
UPDATE AD_Process_Para SET ColumnName='EXP_Format_ID', Name='Export Format ID', Description=NULL, Help=NULL, AD_Element_ID=53368 WHERE UPPER(ColumnName)='EXP_FORMAT_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- May 13, 2008 7:27:08 PM CDT
-- New Process to Export Format
UPDATE AD_Process_Para SET ColumnName='EXP_Format_ID', Name='Export Format ID', Description=NULL, Help=NULL WHERE AD_Element_ID=53368 AND IsCentrallyMaintained='Y'
;
-- May 13, 2008 7:27:08 PM CDT
-- New Process to Export Format
UPDATE AD_PrintFormatItem pi SET PrintName='Export Format ID', Name='Export Format ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53368)
;
-- May 13, 2008 7:27:08 PM CDT
-- New Process to Export Format
UPDATE AD_PrintFormatItem pi SET PrintName='Export Format ID', Name='Export Format ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53368)
;
-- May 13, 2008 7:27:31 PM CDT
-- New Process to Export Format
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,53368,0,53074,53147,19,'EXP_Format_ID',TO_DATE('2008-05-13 19:27:30','YYYY-MM-DD HH24:MI:SS'),0,'EE05',10,'Y','Y','N','N','Export Format',5,TO_DATE('2008-05-13 19:27:30','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 13, 2008 7:27:31 PM CDT
-- New Process to Export Format
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53147 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- May 13, 2008 7:28:35 PM CDT
-- New Process to Export Format
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,53368,0,53089,53148,19,'EXP_Format_ID',TO_DATE('2008-05-13 19:28:34','YYYY-MM-DD HH24:MI:SS'),0,'EE05',10,'Y','Y','N','N','Export Format',5,TO_DATE('2008-05-13 19:28:34','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 13, 2008 7:28:35 PM CDT
-- New Process to Export Format
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53148 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- May 13, 2008 7:29:13 PM CDT
-- New Process to Export Format
UPDATE AD_Process_Para SET DefaultValue='@EXP_Format_ID@',Updated=TO_DATE('2008-05-13 19:29:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53148
;
-- May 13, 2008 7:29:22 PM CDT
-- New Process to Export Format
UPDATE AD_Process_Para SET DefaultValue='@EXP_Format_ID@',Updated=TO_DATE('2008-05-13 19:29:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53147
;
-- May 13, 2008 7:33:24 PM CDT
-- New Process to Export Format
UPDATE AD_Process_Para SET AD_Element_ID=2295, ColumnName='FileName', FieldLength=255, Name='File Name',Updated=TO_DATE('2008-05-13 19:33:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53146
;
-- May 13, 2008 7:33:24 PM CDT
-- New Process to Export Format
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53146
;
-- May 13, 2008 7:33:52 PM CDT
-- New Process to Export Format
UPDATE AD_Process_Para SET FieldLength=255, Name='File Name',Updated=TO_DATE('2008-05-13 19:33:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53145
;
-- May 13, 2008 7:33:52 PM CDT
-- New Process to Export Format
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53145
;
-- May 13, 2008 8:30:52 PM CDT
-- New Process to Export Format
UPDATE AD_Process SET Classname='org.adempiere.server.rpl.exp.ModelExporter',Updated=TO_DATE('2008-05-13 20:30:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53089
;
-- May 13, 2008 8:36:38 PM CDT
-- New Process to Export Format
UPDATE AD_Process SET Classname='org.adempiere.process.rpl.exp.ModelExporter',Updated=TO_DATE('2008-05-13 20:36:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53089
;
-- May 13, 2008 9:37:36 PM CDT
-- New Process to Export Format
UPDATE AD_Process SET Name='Export Format Generator',Updated=TO_DATE('2008-05-13 21:37:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53085
;
-- May 13, 2008 9:37:36 PM CDT
-- New Process to Export Format
UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=53085
;
-- May 13, 2008 9:37:36 PM CDT
-- New Process to Export Format
UPDATE AD_Menu SET Description='Create multiple Export Format based in a Window', IsActive='Y', Name='Export Format Generator',Updated=TO_DATE('2008-05-13 21:37:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=53125
;
-- May 13, 2008 9:37:36 PM CDT
-- New Process to Export Format
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53125
;

View File

@ -0,0 +1,13 @@
-- May 14, 2008 01:12:40 PM EST
-- Change P_String and P_String_To
UPDATE AD_Column SET FieldLength=255,Updated=TO_DATE('2008-03-06 18:40:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2791
;
UPDATE AD_Column SET FieldLength=255,Updated=TO_DATE('2008-03-06 18:41:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=2792
;
ALTER TABLE AD_PInstance_Para MODIFY P_String NVARCHAR2(255) DEFAULT NULL
;
ALTER TABLE AD_PInstance_Para MODIFY P_String_To NVARCHAR2(255) DEFAULT NULL
;

View File

@ -0,0 +1,45 @@
-- 16-may-2008 12:30:09 CDT
-- Fixed Dictionary Data Planning
UPDATE AD_Column SET AD_Val_Rule_ID=148,Updated=TO_DATE('2008-05-16 12:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53376
;
-- 16-may-2008 12:33:02 CDT
-- Fixed Dictionary Data Planning
UPDATE AD_Column SET AD_Val_Rule_ID=189,Updated=TO_DATE('2008-05-16 12:33:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53390
;
-- 16-may-2008 12:35:42 CDT
-- Fixed Dictionary Data Planning
UPDATE AD_Column SET IsMandatory='N',Updated=TO_DATE('2008-05-16 12:35:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53390
;
-- 16-may-2008 12:35:55 CDT
-- Fixed Dictionary Data Planning
ALTER TABLE PP_Product_Planning MODIFY M_Warehouse_ID NUMBER(10) DEFAULT NULL
;
-- 16-may-2008 12:35:56 CDT
-- Fixed Dictionary Data Planning
ALTER TABLE PP_Product_Planning MODIFY M_Warehouse_ID NULL
;
-- 16-may-2008 12:39:24 CDT
-- Fixed Dictionary Data Planning
UPDATE AD_Column SET IsMandatory='N',Updated=TO_DATE('2008-05-16 12:39:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53400
;
-- 16-may-2008 12:39:32 CDT
-- Fixed Dictionary Data Planning
ALTER TABLE PP_Product_Planning MODIFY S_Resource_ID NUMBER(10) DEFAULT NULL
;
-- 16-may-2008 12:39:32 CDT
-- Fixed Dictionary Data Planning
ALTER TABLE PP_Product_Planning MODIFY S_Resource_ID NULL
;
-- 16-may-2008 12:45:48 CDT
-- Fixed Dictionary Data Planning
UPDATE AD_Column SET AD_Val_Rule_ID=52002,Updated=TO_DATE('2008-05-16 12:45:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53400
;

View File

@ -0,0 +1,290 @@
-- May 17, 2008 8:46:15 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53468,0,'Allow_Info_MRP',TO_DATE('2008-05-17 20:46:13','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Allow Info MRP','Allow Info MRP',TO_DATE('2008-05-17 20:46:13','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 17, 2008 8:46:15 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53468 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- May 17, 2008 8:46:44 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53469,0,'Allow_Info_CRP',TO_DATE('2008-05-17 20:46:44','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Allow Info CRP','Allow Info CRP',TO_DATE('2008-05-17 20:46:44','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 17, 2008 8:46:44 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53469 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- May 17, 2008 8:47:14 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,55332,53468,0,20,156,'Allow_Info_MRP',TO_DATE('2008-05-17 20:47:12','YYYY-MM-DD HH24:MI:SS'),0,'EE01',1,'Y','N','N','N','N','N','N','N','N','N','Y','Allow Info MRP',TO_DATE('2008-05-17 20:47:12','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- May 17, 2008 8:47:14 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55332 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- May 17, 2008 8:47:21 PM CDT
-- Info MRP in Menu
ALTER TABLE AD_Role ADD Allow_Info_MRP CHAR(1) CHECK (Allow_Info_MRP IN ('Y','N'))
;
-- May 17, 2008 8:47:50 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,55333,53469,0,20,156,'Allow_Info_CRP',TO_DATE('2008-05-17 20:47:48','YYYY-MM-DD HH24:MI:SS'),0,'EE01',1,'Y','N','N','N','N','N','N','N','N','N','Y','Allow Info CRP',TO_DATE('2008-05-17 20:47:48','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- May 17, 2008 8:47:50 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55333 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- May 17, 2008 8:48:14 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,55333,55432,0,119,TO_DATE('2008-05-17 20:48:12','YYYY-MM-DD HH24:MI:SS'),0,1,'EE01','Y','Y','Y','N','N','N','N','N','Allow Info CRP',TO_DATE('2008-05-17 20:48:12','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 17, 2008 8:48:14 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55432 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- May 17, 2008 8:48:16 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,55332,55433,0,119,TO_DATE('2008-05-17 20:48:14','YYYY-MM-DD HH24:MI:SS'),0,1,'EE01','Y','Y','Y','N','N','N','N','N','Allow Info MRP',TO_DATE('2008-05-17 20:48:14','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 17, 2008 8:48:16 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55433 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=52018
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=8740
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=5227
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=11006
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=11003
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=11002
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=8311
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=10813
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=11256
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=11257
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=8313
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=8314
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=8312
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=8310
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=12367
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=12368
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=12641
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=50168
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=50169
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=50170
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=50171
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=50172
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=50173
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=50174
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=50175
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=50176
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=50177
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=380,IsDisplayed='Y' WHERE AD_Field_ID=50178
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=390,IsDisplayed='Y' WHERE AD_Field_ID=55432
;
-- May 17, 2008 8:48:45 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET SeqNo=400,IsDisplayed='Y' WHERE AD_Field_ID=55433
;
-- May 17, 2008 8:49:11 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-05-17 20:49:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55433
;
-- May 17, 2008 8:49:12 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-05-17 20:49:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55432
;
-- May 17, 2008 8:49:19 PM CDT
-- Info MRP in Menu
UPDATE AD_Field SET IsSameLine='N',Updated=TO_DATE('2008-05-17 20:49:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55433
;
-- May 17, 2008 9:05:38 PM CDT
-- Info MRP in Menu
UPDATE AD_Column SET DefaultValue='Y',Updated=TO_DATE('2008-05-17 21:05:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=55333
;
-- May 17, 2008 9:05:41 PM CDT
-- Info MRP in Menu
ALTER TABLE AD_Role ADD Allow_Info_CRP CHAR(1) DEFAULT 'Y' CHECK (Allow_Info_CRP IN ('Y','N'))
;
-- May 17, 2008 9:05:59 PM CDT
-- Info MRP in Menu
UPDATE AD_Column SET DefaultValue='Y',Updated=TO_DATE('2008-05-17 21:05:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=55332
;
-- May 17, 2008 9:06:00 PM CDT
-- Info MRP in Menu
ALTER TABLE AD_Role MODIFY Allow_Info_MRP CHAR(1) DEFAULT 'Y'
;
-- May 17, 2008 9:58:29 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53031,0,TO_DATE('2008-05-17 21:58:27','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','MRP Info','M',TO_DATE('2008-05-17 21:58:27','YYYY-MM-DD HH24:MI:SS'),0,'InfoMRP')
;
-- May 17, 2008 9:58:29 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53031 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
;
-- May 17, 2008 9:59:36 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgType,Updated,UpdatedBy,Value) VALUES (0,53033,0,TO_DATE('2008-05-17 21:59:35','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','CRP Info','M',TO_DATE('2008-05-17 21:59:35','YYYY-MM-DD HH24:MI:SS'),0,'InfoCRP')
;
-- May 17, 2008 9:59:36 PM CDT
-- Info MRP in Menu
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53033 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
;
-- May 17, 2008 11:59:14 PM CDT
-- Info MRP in Menu
UPDATE AD_Menu SET Description='It shows graphically of the required and available time for each manufacturing resource.nfo', Name='CRP Info',Updated=TO_DATE('2008-05-17 23:59:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=53044
;
-- May 17, 2008 11:59:14 PM CDT
-- Info MRP in Menu
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53044
;
-- May 18, 2008 12:01:08 AM CDT
-- Info MRP in Menu
UPDATE AD_Form SET Name='CRP Info',Updated=TO_DATE('2008-05-18 00:01:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Form_ID=53005
;
-- May 18, 2008 12:01:08 AM CDT
-- Info MRP in Menu
UPDATE AD_Form_Trl SET IsTranslated='N' WHERE AD_Form_ID=53005
;

View File

@ -0,0 +1,712 @@
-- May 18, 2008 3:09:07 AM CDT
-- DRP Implementation
UPDATE AD_Process_Para SET AD_Val_Rule_ID=189,Updated=TO_DATE('2008-05-18 03:09:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53133
;
-- May 18, 2008 3:09:43 AM CDT
-- DRP Implementation
UPDATE AD_Column SET DefaultValue='0',Updated=TO_DATE('2008-05-18 03:09:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53376
;
-- May 18, 2008 3:09:45 AM CDT
-- DRP Implementation
ALTER TABLE PP_Product_Planning MODIFY AD_Org_ID NUMBER(10) DEFAULT 0
;
-- May 18, 2008 3:12:22 AM CDT
-- DRP Implementation
UPDATE PP_Product_Planning SET AD_Org_ID=0 WHERE AD_Org_ID IS NULL
;
-- May 18, 2008 3:12:53 AM CDT
-- DRP Implementation
UPDATE AD_Column SET DefaultValue='0',Updated=TO_DATE('2008-05-18 03:12:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53390
;
-- May 18, 2008 3:12:56 AM CDT
-- DRP Implementation
ALTER TABLE PP_Product_Planning MODIFY M_Warehouse_ID NUMBER(10) DEFAULT 0
;
-- May 18, 2008 3:13:08 AM CDT
-- DRP Implementation
UPDATE AD_Column SET DefaultValue='0',Updated=TO_DATE('2008-05-18 03:13:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53400
;
-- May 18, 2008 3:13:11 AM CDT
-- DRP Implementation
ALTER TABLE PP_Product_Planning MODIFY S_Resource_ID NUMBER(10) DEFAULT 0
;
-- May 18, 2008 4:37:46 AM CDT
-- DRP Implementation
UPDATE AD_Field SET Included_Tab_ID=53050,Updated=TO_DATE('2008-05-18 04:37:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54218
;
-- May 18, 2008 8:52:52 PM CDT
-- DRP Implementation
UPDATE AD_Column SET DefaultValue=NULL,Updated=TO_DATE('2008-05-18 20:52:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53950
;
-- May 18, 2008 9:04:33 PM CDT
-- DRP Implementation
UPDATE AD_Column SET AD_Reference_Value_ID=130,Updated=TO_DATE('2008-05-18 21:04:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=9550
;
-- May 18, 2008 9:07:40 PM CDT
-- DRP Implementation
UPDATE AD_Element SET Name='Distribution Order', PrintName='Distribution Order',Updated=TO_DATE('2008-05-18 21:07:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53311
;
-- May 18, 2008 9:07:40 PM CDT
-- DRP Implementation
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53311
;
-- May 18, 2008 9:07:40 PM CDT
-- DRP Implementation
UPDATE AD_Column SET ColumnName='DD_Order_ID', Name='Distribution Order', Description=NULL, Help=NULL WHERE AD_Element_ID=53311
;
-- May 18, 2008 9:07:40 PM CDT
-- DRP Implementation
UPDATE AD_Field SET Name='Distribution Order', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53311) AND IsCentrallyMaintained='Y'
;
-- May 18, 2008 9:07:40 PM CDT
-- DRP Implementation
UPDATE AD_Process_Para SET ColumnName='DD_Order_ID', Name='Distribution Order', Description=NULL, Help=NULL, AD_Element_ID=53311 WHERE UPPER(ColumnName)='DD_ORDER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- May 18, 2008 9:07:40 PM CDT
-- DRP Implementation
UPDATE AD_Process_Para SET ColumnName='DD_Order_ID', Name='Distribution Order', Description=NULL, Help=NULL WHERE AD_Element_ID=53311 AND IsCentrallyMaintained='Y'
;
-- May 18, 2008 9:07:40 PM CDT
-- DRP Implementation
UPDATE AD_PrintFormatItem pi SET PrintName='Distribution Order', Name='Distribution Order' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53311)
;
-- May 18, 2008 9:07:41 PM CDT
-- DRP Implementation
UPDATE AD_PrintFormatItem pi SET PrintName='Distribution Order', Name='Distribution Order' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53311)
;
-- May 18, 2008 9:07:56 PM CDT
-- DRP Implementation
UPDATE AD_Column SET AD_Reference_ID=30,Updated=TO_DATE('2008-05-18 21:07:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53979
;
-- May 18, 2008 9:11:17 PM CDT
-- DRP Implementation
UPDATE AD_Element SET Name='Distribution Order Line', PrintName='Distribution Order Line',Updated=TO_DATE('2008-05-18 21:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53313
;
-- May 18, 2008 9:11:17 PM CDT
-- DRP Implementation
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53313
;
-- May 18, 2008 9:11:17 PM CDT
-- DRP Implementation
UPDATE AD_Column SET ColumnName='DD_OrderLine_ID', Name='Distribution Order Line', Description=NULL, Help=NULL WHERE AD_Element_ID=53313
;
-- May 18, 2008 9:11:17 PM CDT
-- DRP Implementation
UPDATE AD_Field SET Name='Distribution Order Line', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53313) AND IsCentrallyMaintained='Y'
;
-- May 18, 2008 9:11:17 PM CDT
-- DRP Implementation
UPDATE AD_Process_Para SET ColumnName='DD_OrderLine_ID', Name='Distribution Order Line', Description=NULL, Help=NULL, AD_Element_ID=53313 WHERE UPPER(ColumnName)='DD_ORDERLINE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- May 18, 2008 9:11:17 PM CDT
-- DRP Implementation
UPDATE AD_Process_Para SET ColumnName='DD_OrderLine_ID', Name='Distribution Order Line', Description=NULL, Help=NULL WHERE AD_Element_ID=53313 AND IsCentrallyMaintained='Y'
;
-- May 18, 2008 9:11:17 PM CDT
-- DRP Implementation
UPDATE AD_PrintFormatItem pi SET PrintName='Distribution Order Line', Name='Distribution Order Line' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53313)
;
-- May 18, 2008 9:11:17 PM CDT
-- DRP Implementation
UPDATE AD_PrintFormatItem pi SET PrintName='Distribution Order Line', Name='Distribution Order Line' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53313)
;
-- May 18, 2008 9:12:47 PM CDT
-- DRP Implementation
UPDATE AD_Column SET AD_Reference_ID=19, IsUpdateable='N',Updated=TO_DATE('2008-05-18 21:12:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53930
;
-- May 18, 2008 9:13:43 PM CDT
-- DRP Implementation
UPDATE AD_Column SET DefaultValue='@SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM DD_OrderLine WHERE DD_OrderLine_ID=@DD_OrderLine_ID@',Updated=TO_DATE('2008-05-18 21:13:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53926
;
-- May 18, 2008 9:15:03 PM CDT
-- DRP Implementation
UPDATE AD_Column SET IsMandatory='N',Updated=TO_DATE('2008-05-18 21:15:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=8551
;
-- May 18, 2008 9:15:06 PM CDT
-- DRP Implementation
ALTER TABLE M_MovementLine MODIFY M_AttributeSetInstance_ID NUMBER(10) DEFAULT NULL
;
-- May 18, 2008 9:15:28 PM CDT
-- DRP Implementation
UPDATE AD_Column SET IsMandatory='N',Updated=TO_DATE('2008-05-18 21:15:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53948
;
-- May 18, 2008 9:15:31 PM CDT
-- DRP Implementation
ALTER TABLE DD_OrderLine MODIFY M_AttributeSetInstance_ID NUMBER(10) DEFAULT NULL
;
-- May 18, 2008 9:15:31 PM CDT
-- DRP Implementation
ALTER TABLE DD_OrderLine MODIFY M_AttributeSetInstance_ID NULL
;
-- May 18, 2008 9:15:47 PM CDT
-- DRP Implementation
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_DATE('2008-05-18 21:15:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53949
;
-- May 18, 2008 9:15:50 PM CDT
-- DRP Implementation
ALTER TABLE DD_OrderLine MODIFY M_LocatorTo_ID NUMBER(10) DEFAULT NULL
;
-- May 18, 2008 9:15:50 PM CDT
-- DRP Implementation
ALTER TABLE DD_OrderLine MODIFY M_LocatorTo_ID NOT NULL
;
-- May 18, 2008 9:17:33 PM CDT
-- DRP Implementation
UPDATE AD_Column SET AD_Reference_Value_ID=171, AD_Val_Rule_ID=NULL,Updated=TO_DATE('2008-05-18 21:17:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53929
;
-- May 18, 2008 9:17:42 PM CDT
-- DRP Implementation
UPDATE AD_Column SET IsMandatory='Y',Updated=TO_DATE('2008-05-18 21:17:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53929
;
-- May 18, 2008 9:17:44 PM CDT
-- DRP Implementation
ALTER TABLE DD_OrderLine MODIFY M_Product_ID NUMBER(10) DEFAULT NULL
;
-- May 18, 2008 9:17:44 PM CDT
-- DRP Implementation
ALTER TABLE DD_OrderLine MODIFY M_Product_ID NOT NULL
;
-- May 18, 2008 9:25:13 PM CDT
-- DRP Implementation
UPDATE AD_Column SET DefaultValue='@#Date@',Updated=TO_DATE('2008-05-18 21:25:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53884
;
-- May 18, 2008 9:25:17 PM CDT
-- DRP Implementation
ALTER TABLE DD_Order MODIFY DateOrdered DATE DEFAULT NULL
;
-- May 18, 2008 9:25:37 PM CDT
-- DRP Implementation
UPDATE AD_Column SET DefaultValue='@#Date@',Updated=TO_DATE('2008-05-18 21:25:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53886
;
-- May 18, 2008 9:26:54 PM CDT
-- DRP Implementation
UPDATE AD_Column SET DefaultValue='A',Updated=TO_DATE('2008-05-18 21:26:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53888
;
-- May 18, 2008 9:26:56 PM CDT
-- DRP Implementation
ALTER TABLE DD_Order MODIFY DeliveryRule CHAR(1) DEFAULT 'A'
;
-- May 18, 2008 9:26:57 PM CDT
-- DRP Implementation
UPDATE DD_Order SET DeliveryRule='A' WHERE DeliveryRule IS NULL
;
-- May 18, 2008 9:32:52 PM CDT
-- DRP Implementation
UPDATE AD_Column SET DefaultValue='@#AD_User_ID@',Updated=TO_DATE('2008-05-18 21:32:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53915
;
-- May 18, 2008 9:36:09 PM CDT
-- DRP Implementation
INSERT INTO AD_Val_Rule (AD_Client_ID,AD_Org_ID,AD_Val_Rule_ID,Code,Created,CreatedBy,EntityType,IsActive,Name,Type,Updated,UpdatedBy) VALUES (0,0,52024,'M_Warehouse.AD_Org_ID=@AD_Org_ID@ AND M_Warehouse.IsInTransit=''Y''',TO_DATE('2008-05-18 21:36:07','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','M_Warehouse In Transit','S',TO_DATE('2008-05-18 21:36:07','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 18, 2008 9:36:36 PM CDT
-- DRP Implementation
UPDATE AD_Column SET AD_Val_Rule_ID=52024,Updated=TO_DATE('2008-05-18 21:36:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53906
;
-- May 18, 2008 9:40:54 PM CDT
-- DRP Implementation
UPDATE AD_Column SET DefaultValue='@DateOrdered@',Updated=TO_DATE('2008-05-18 21:40:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53939
;
-- May 18, 2008 9:41:19 PM CDT
-- DRP Implementation
UPDATE AD_Column SET DefaultValue=NULL,Updated=TO_DATE('2008-05-18 21:41:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53940
;
-- May 18, 2008 9:41:22 PM CDT
-- DRP Implementation
UPDATE AD_Column SET DefaultValue=NULL,Updated=TO_DATE('2008-05-18 21:41:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53939
;
-- May 18, 2008 9:42:05 PM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=54024
;
-- May 18, 2008 9:42:05 PM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=54033
;
-- May 18, 2008 9:42:05 PM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=54034
;
-- May 18, 2008 9:42:05 PM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54035
;
-- May 18, 2008 9:42:05 PM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54036
;
-- May 18, 2008 9:42:05 PM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54037
;
-- May 18, 2008 9:42:05 PM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54038
;
-- May 18, 2008 9:42:05 PM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54039
;
-- May 18, 2008 9:46:29 PM CDT
-- DRP Implementation
UPDATE AD_Column SET IsMandatory='N',Updated=TO_DATE('2008-05-18 21:46:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53929
;
-- May 18, 2008 9:46:32 PM CDT
-- DRP Implementation
ALTER TABLE DD_OrderLine MODIFY M_Product_ID NUMBER(10) DEFAULT NULL
;
-- May 18, 2008 9:46:32 PM CDT
-- DRP Implementation
ALTER TABLE DD_OrderLine MODIFY M_Product_ID NULL
;
-- May 18, 2008 10:07:29 PM CDT
-- DRP Implementation
UPDATE AD_Tab SET TabLevel=1,Updated=TO_DATE('2008-05-18 22:07:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=53050
;
-- May 18, 2008 10:17:59 PM CDT
-- DRP Implementation
UPDATE AD_Column SET DefaultValue=NULL,Updated=TO_DATE('2008-05-18 22:17:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53950
;
-- May 18, 2008 10:18:06 PM CDT
-- DRP Implementation
UPDATE AD_Column SET DefaultValue=NULL,Updated=TO_DATE('2008-05-18 22:18:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53949
;
-- May 18, 2008 11:53:25 PM CDT
-- DRP Implementation
UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=191,Updated=TO_DATE('2008-05-18 23:53:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53949
;
-- May 18, 2008 11:53:41 PM CDT
-- DRP Implementation
UPDATE AD_Column SET AD_Reference_ID=18, AD_Reference_Value_ID=191,Updated=TO_DATE('2008-05-18 23:53:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53950
;
-- May 19, 2008 12:57:53 AM CDT
-- DRP Implementation
UPDATE AD_Window SET Name='Distribution Order',Updated=TO_DATE('2008-05-19 00:57:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Window_ID=53012
;
-- May 19, 2008 12:57:53 AM CDT
-- DRP Implementation
UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=53012
;
-- May 19, 2008 12:57:53 AM CDT
-- DRP Implementation
UPDATE AD_Menu SET Description='Distribution Order allow create Order inter warehouse to supply a demand ', IsActive='Y', Name='Distribution Order',Updated=TO_DATE('2008-05-19 00:57:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=53068
;
-- May 19, 2008 12:57:53 AM CDT
-- DRP Implementation
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53068
;
-- May 19, 2008 1:00:49 AM CDT
-- DRP Implementation
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53470,0,'IsRequiredDRP',TO_DATE('2008-05-19 01:00:42','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Required DRP','Required DRP',TO_DATE('2008-05-19 01:00:42','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 19, 2008 1:00:49 AM CDT
-- DRP Implementation
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53470 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- May 19, 2008 1:01:06 AM CDT
-- DRP Implementation
UPDATE AD_Element SET Name='Required MRP', PrintName='Required MRP',Updated=TO_DATE('2008-05-19 01:01:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53262
;
-- May 19, 2008 1:01:06 AM CDT
-- DRP Implementation
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53262
;
-- May 19, 2008 1:01:06 AM CDT
-- DRP Implementation
UPDATE AD_Column SET ColumnName='IsRequiredMRP', Name='Required MRP', Description=NULL, Help=NULL WHERE AD_Element_ID=53262
;
-- May 19, 2008 1:01:06 AM CDT
-- DRP Implementation
UPDATE AD_Field SET Name='Required MRP', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53262) AND IsCentrallyMaintained='Y'
;
-- May 19, 2008 1:01:06 AM CDT
-- DRP Implementation
UPDATE AD_Process_Para SET ColumnName='IsRequiredMRP', Name='Required MRP', Description=NULL, Help=NULL, AD_Element_ID=53262 WHERE UPPER(ColumnName)='ISREQUIREDMRP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- May 19, 2008 1:01:06 AM CDT
-- DRP Implementation
UPDATE AD_Process_Para SET ColumnName='IsRequiredMRP', Name='Required MRP', Description=NULL, Help=NULL WHERE AD_Element_ID=53262 AND IsCentrallyMaintained='Y'
;
-- May 19, 2008 1:01:06 AM CDT
-- DRP Implementation
UPDATE AD_PrintFormatItem pi SET PrintName='Required MRP', Name='Required MRP' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53262)
;
-- May 19, 2008 1:01:06 AM CDT
-- DRP Implementation
UPDATE AD_PrintFormatItem pi SET PrintName='Required MRP', Name='Required MRP' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53262)
;
-- May 19, 2008 1:02:19 AM CDT
-- DRP Implementation
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,55334,53470,0,20,53020,'IsRequiredDRP',TO_DATE('2008-05-19 01:02:15','YYYY-MM-DD HH24:MI:SS'),0,'EE01',1,'Y','N','N','N','N','Y','N','N','Y','N','N','Required DRP',TO_DATE('2008-05-19 01:02:15','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- May 19, 2008 1:02:19 AM CDT
-- DRP Implementation
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55334 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- May 19, 2008 1:02:42 AM CDT
-- DRP Implementation
ALTER TABLE PP_Product_Planning ADD IsRequiredDRP CHAR(1) DEFAULT 'N' CHECK (IsRequiredDRP IN ('Y','N')) NOT NULL
;
-- May 19, 2008 1:03:10 AM CDT
-- DRP Implementation
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,55334,55434,0,53030,TO_DATE('2008-05-19 01:03:05','YYYY-MM-DD HH24:MI:SS'),0,1,'EE01','Y','Y','Y','N','N','N','N','N','Required DRP',TO_DATE('2008-05-19 01:03:05','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 19, 2008 1:03:10 AM CDT
-- DRP Implementation
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55434 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=53516
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=53517
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=53518
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54392
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=53519
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=53520
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=53521
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=55434
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=53522
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=53523
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=53524
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=53525
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=53526
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=53527
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=53528
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=53529
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=53530
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=53531
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=53532
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=54420
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=53533
;
-- May 19, 2008 1:03:31 AM CDT
-- DRP Implementation
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=53534
;
-- May 19, 2008 1:03:40 AM CDT
-- DRP Implementation
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2008-05-19 01:03:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55434
;
-- May 19, 2008 1:05:27 AM CDT
-- DRP Implementation
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,53470,0,53016,53149,20,'IsRequiredDRP',TO_DATE('2008-05-19 01:05:23','YYYY-MM-DD HH24:MI:SS'),0,'EE01',1,'Y','Y','N','N','Required Calculate DRP',35,TO_DATE('2008-05-19 01:05:23','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 19, 2008 1:05:27 AM CDT
-- DRP Implementation
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53149 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- May 19, 2008 1:05:46 AM CDT
-- DRP Implementation
UPDATE AD_Element SET Name='Required Calculate DRP', PrintName='Required Calculate DRP',Updated=TO_DATE('2008-05-19 01:05:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53470
;
-- May 19, 2008 1:05:46 AM CDT
-- DRP Implementation
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53470
;
-- May 19, 2008 1:05:46 AM CDT
-- DRP Implementation
UPDATE AD_Column SET ColumnName='IsRequiredDRP', Name='Required Calculate DRP', Description=NULL, Help=NULL WHERE AD_Element_ID=53470
;
-- May 19, 2008 1:05:46 AM CDT
-- DRP Implementation
UPDATE AD_Field SET Name='Required Calculate DRP', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53470) AND IsCentrallyMaintained='Y'
;
-- May 19, 2008 1:05:46 AM CDT
-- DRP Implementation
UPDATE AD_Process_Para SET ColumnName='IsRequiredDRP', Name='Required Calculate DRP', Description=NULL, Help=NULL, AD_Element_ID=53470 WHERE UPPER(ColumnName)='ISREQUIREDDRP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- May 19, 2008 1:05:46 AM CDT
-- DRP Implementation
UPDATE AD_Process_Para SET ColumnName='IsRequiredDRP', Name='Required Calculate DRP', Description=NULL, Help=NULL WHERE AD_Element_ID=53470 AND IsCentrallyMaintained='Y'
;
-- May 19, 2008 1:05:46 AM CDT
-- DRP Implementation
UPDATE AD_PrintFormatItem pi SET PrintName='Required Calculate DRP', Name='Required Calculate DRP' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53470)
;
-- May 19, 2008 1:05:46 AM CDT
-- DRP Implementation
UPDATE AD_PrintFormatItem pi SET PrintName='Required Calculate DRP', Name='Required Calculate DRP' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53470)
;
-- May 19, 2008 1:06:04 AM CDT
-- DRP Implementation
UPDATE AD_Element SET Name='Required Calculate MRP', PrintName='Required Calculate MRP',Updated=TO_DATE('2008-05-19 01:06:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53262
;
-- May 19, 2008 1:06:04 AM CDT
-- DRP Implementation
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53262
;
-- May 19, 2008 1:06:04 AM CDT
-- DRP Implementation
UPDATE AD_Column SET ColumnName='IsRequiredMRP', Name='Required Calculate MRP', Description=NULL, Help=NULL WHERE AD_Element_ID=53262
;
-- May 19, 2008 1:06:04 AM CDT
-- DRP Implementation
UPDATE AD_Field SET Name='Required Calculate MRP', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53262) AND IsCentrallyMaintained='Y'
;
-- May 19, 2008 1:06:04 AM CDT
-- DRP Implementation
UPDATE AD_Process_Para SET ColumnName='IsRequiredMRP', Name='Required Calculate MRP', Description=NULL, Help=NULL, AD_Element_ID=53262 WHERE UPPER(ColumnName)='ISREQUIREDMRP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- May 19, 2008 1:06:04 AM CDT
-- DRP Implementation
UPDATE AD_Process_Para SET ColumnName='IsRequiredMRP', Name='Required Calculate MRP', Description=NULL, Help=NULL WHERE AD_Element_ID=53262 AND IsCentrallyMaintained='Y'
;
-- May 19, 2008 1:06:04 AM CDT
-- DRP Implementation
UPDATE AD_PrintFormatItem pi SET PrintName='Required Calculate MRP', Name='Required Calculate MRP' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53262)
;
-- May 19, 2008 1:06:04 AM CDT
-- DRP Implementation
UPDATE AD_PrintFormatItem pi SET PrintName='Required Calculate MRP', Name='Required Calculate MRP' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=53262)
;
-- May 19, 2008 1:07:52 AM CDT
-- DRP Implementation
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,113,0,53022,53150,19,'AD_Org_ID',TO_DATE('2008-05-19 01:07:48','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client','EE01',22,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','Y','N','N','Organization',10,TO_DATE('2008-05-19 01:07:48','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 19, 2008 1:07:52 AM CDT
-- DRP Implementation
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53150 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- May 19, 2008 1:09:41 AM CDT
-- DRP Implementation
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,459,0,53022,53151,19,189,'M_Warehouse_ID',TO_DATE('2008-05-19 01:09:36','YYYY-MM-DD HH24:MI:SS'),0,'Storage Warehouse and Service Point','EE01',22,'The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','Y','N','N','Warehouse',20,TO_DATE('2008-05-19 01:09:36','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 19, 2008 1:09:41 AM CDT
-- DRP Implementation
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53151 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- May 19, 2008 1:11:27 AM CDT
-- DRP Implementation
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,0,53022,53152,10,'Version',TO_DATE('2008-05-19 01:11:17','YYYY-MM-DD HH24:MI:SS'),0,'Version of the table definition','EE01',20,'The Version indicates the version of this table definition.','Y','Y','N','N','Version',30,TO_DATE('2008-05-19 01:11:17','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 19, 2008 1:11:27 AM CDT
-- DRP Implementation
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53152 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- May 19, 2008 1:11:38 AM CDT
-- DRP Implementation
UPDATE AD_Process_Para SET IsMandatory='Y',Updated=TO_DATE('2008-05-19 01:11:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53150
;
-- May 19, 2008 1:12:03 AM CDT
-- DRP Implementation
UPDATE AD_Process SET Classname='org.eevolution.process.MRP',Updated=TO_DATE('2008-05-19 01:12:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53022
;
-- May 19, 2008 1:28:00 AM CDT
-- DRP Implementation
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgTip,MsgType,Updated,UpdatedBy,Value) VALUES (0,53035,0,TO_DATE('2008-05-19 01:27:57','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Do not exist Transit Warehouse to this Organization','Do not exist Transit Warehouse to this Organization','I',TO_DATE('2008-05-19 01:27:57','YYYY-MM-DD HH24:MI:SS'),0,'DRP-010')
;
-- May 19, 2008 1:28:00 AM CDT
-- DRP Implementation
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53035 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
;
-- May 19, 2008 1:28:51 AM CDT
-- DRP Implementation
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgTip,MsgType,Updated,UpdatedBy,Value) VALUES (0,53036,0,TO_DATE('2008-05-19 01:28:47','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Org targer do not linked to BPartner','Org targer do not linked to BPartner','I',TO_DATE('2008-05-19 01:28:47','YYYY-MM-DD HH24:MI:SS'),0,'DRP-020')
;
-- May 19, 2008 1:28:51 AM CDT
-- DRP Implementation
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53036 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
;

View File

@ -0,0 +1,29 @@
-- May 26, 2008 10:33:25 AM CEST
-- [1972559] Addition to Order Batch Process - kthiemann@adempiere.org
INSERT INTO AD_Process_Para (AD_Org_ID,AD_Reference_Value_ID,UpdatedBy,Updated,SeqNo,Name,IsRange,IsMandatory,IsCentrallyMaintained,IsActive,Help,FieldLength,EntityType,Description,CreatedBy,Created,ColumnName,AD_Reference_ID,AD_Process_Para_ID,AD_Process_ID,AD_Element_ID,AD_Client_ID) VALUES (0,319,100,TO_DATE('2008-05-26 10:33:14','YYYY-MM-DD HH24:MI:SS'),30,'Delivered','N','N','Y','Y',NULL,1,'D',NULL,100,TO_DATE('2008-05-26 10:33:14','YYYY-MM-DD HH24:MI:SS'),'IsDelivered',17,53153,315,367,0)
;
-- May 26, 2008 10:33:25 AM CEST
-- [1972559] Addition to Order Batch Process - kthiemann@adempiere.org
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Name,Help,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Name,t.Help,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53153 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- May 26, 2008 10:34:11 AM CEST
-- [1972559] Addition to Order Batch Process - kthiemann@adempiere.org
UPDATE AD_Process_Para SET Description='The order is delivered.',Updated=TO_DATE('2008-05-26 10:34:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_Para_ID=53153
;
-- May 26, 2008 10:34:11 AM CEST
-- [1972559] Addition to Order Batch Process - kthiemann@adempiere.org
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53153
;
-- May 26, 2008 10:34:57 AM CEST
-- [1972559] Addition to Order Batch Process - kthiemann@adempiere.org
INSERT INTO AD_Process_Para (AD_Org_ID,AD_Reference_Value_ID,UpdatedBy,Updated,SeqNo,Name,IsRange,IsMandatory,IsCentrallyMaintained,IsActive,FieldLength,EntityType,Description,CreatedBy,Created,ColumnName,AD_Reference_ID,AD_Process_Para_ID,AD_Process_ID,AD_Element_ID,AD_Client_ID) VALUES (0,319,100,TO_DATE('2008-05-26 10:34:57','YYYY-MM-DD HH24:MI:SS'),30,'Invoiced','N','N','Y','Y',1,'D','The order is invoiced.',100,TO_DATE('2008-05-26 10:34:57','YYYY-MM-DD HH24:MI:SS'),'IsInvoiced',17,53154,315,387,0)
;
-- May 26, 2008 10:34:57 AM CEST
-- [1972559] Addition to Order Batch Process - kthiemann@adempiere.org
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Name,Help,Description, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Name,t.Help,t.Description, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53154 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;

View File

@ -0,0 +1,2 @@
Please review the sequence in trunk to number the migration script files.
Please create a placeholder with the number also in trunk.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,47 @@
-- Jan 3, 2008 1:31:35 PM CST
-- Libero Manufacturing
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=54111
;
-- Jan 3, 2008 1:31:35 PM CST
-- Libero Manufacturing
DELETE FROM AD_Field WHERE AD_Field_ID=54111
;
-- Jan 3, 2008 1:31:40 PM CST
-- Libero Manufacturing
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=54112
;
-- Jan 3, 2008 1:31:40 PM CST
-- Libero Manufacturing
DELETE FROM AD_Field WHERE AD_Field_ID=54112
;
-- Jan 3, 2008 1:56:17 PM CST
-- Libero Manufacturing
UPDATE AD_Column SET SeqNo=0,Updated=TO_TIMESTAMP('2008-01-03 13:56:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=2304
;
-- Jan 3, 2008 2:01:42 PM CST
-- Libero Manufacturing
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=13704
;
-- Jan 3, 2008 2:01:42 PM CST
-- Libero Manufacturing
DELETE FROM AD_Column WHERE AD_Column_ID=13704
;
-- Jan 3, 2008 2:01:49 PM CST
-- Libero Manufacturing
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=53407
;
-- Jan 3, 2008 2:01:49 PM CST
-- Libero Manufacturing
DELETE FROM AD_Column WHERE AD_Column_ID=53407
;

View File

@ -0,0 +1,4 @@
-- Jan 3, 2008 2:14:48 PM CST
-- Libero Manufacturing
INSERT INTO AD_ModelValidator (AD_Client_ID,AD_ModelValidator_ID,AD_Org_ID,Created,CreatedBy,Updated,UpdatedBy,Name,ModelValidationClass,IsActive,EntityType) VALUES (0,50000,0,TO_TIMESTAMP('2008-01-03 14:14:48','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2008-01-03 14:14:48','YYYY-MM-DD HH24:MI:SS'),0,'Model Validator to Libero Manufacturing Management','org.eevolution.model.LiberoValidator','Y','EE01')
;

View File

@ -0,0 +1,2 @@
UPDATE AD_Table SET EntityType='EE01' WHERE AD_Table_ID=53041;
UPDATE AD_Column SET EntityType='EE01' WHERE AD_Table_ID=53041;

View File

@ -0,0 +1,625 @@
CREATE OR REPLACE VIEW C_INVOICE_LINETAX_V
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, C_INVOICE_ID, C_INVOICELINE_ID,
C_TAX_ID, TAXAMT, LINETOTALAMT, TAXINDICATOR, LINE,
M_PRODUCT_ID, QTYINVOICED, QTYENTERED, UOMSYMBOL, NAME,
DESCRIPTION, DOCUMENTNOTE, UPC, SKU, PRODUCTVALUE,
RESOURCEDESCRIPTION, PRICELIST, PRICEENTEREDLIST, DISCOUNT, PRICEACTUAL,
PRICEENTERED, LINENETAMT, M_ATTRIBUTESETINSTANCE_ID, M_ATTRIBUTESET_ID, SERNO,
LOT, M_LOT_ID, GUARANTEEDATE, PRODUCTDESCRIPTION, IMAGEURL,
C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, C_PROJECTPHASE_ID, C_PROJECTTASK_ID)
AS
SELECT il.AD_Client_ID, il.AD_Org_ID, il.IsActive, il.Created, il.CreatedBy, il.Updated, il.UpdatedBy,
'en_US' AS AD_Language,
il.C_Invoice_ID, il.C_InvoiceLine_ID,
il.C_Tax_ID, il.TaxAmt, il.LineTotalAmt, t.TaxIndicator,
il.Line, p.M_Product_ID,
CASE WHEN il.QtyInvoiced<>0 OR il.M_Product_ID IS NOT NULL THEN il.QtyInvoiced END AS QtyInvoiced,
CASE WHEN il.QtyEntered<>0 OR il.M_Product_ID IS NOT NULL THEN il.QtyEntered END AS QtyEntered,
CASE WHEN il.QtyEntered<>0 OR il.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
COALESCE(c.Name,p.Name||productAttribute(il.M_AttributeSetInstance_ID), il.Description) AS Name, -- main line
CASE WHEN COALESCE(c.Name,p.Name) IS NOT NULL THEN il.Description END AS Description, -- second line
p.DocumentNote, -- third line
p.UPC, p.SKU, COALESCE(pp.VendorProductNo,p.Value) AS ProductValue,
ra.Description AS ResourceDescription, -- forth line
CASE WHEN i.IsDiscountPrinted='Y' AND il.PriceList<>0
THEN il.PriceList END AS PriceList,
CASE WHEN i.IsDiscountPrinted='Y' AND il.PriceList<>0 AND il.QtyEntered<>0
THEN il.PriceList*il.QtyInvoiced/il.QtyEntered END AS PriceEnteredList,
CASE WHEN i.IsDiscountPrinted='Y' AND il.PriceList>il.PriceActual AND il.PriceList<>0
THEN (il.PriceList-il.PriceActual)/il.PriceList*100 END AS Discount,
CASE WHEN il.PriceActual<>0 OR il.M_Product_ID IS NOT NULL THEN il.PriceActual END AS PriceActual,
CASE WHEN il.PriceEntered<>0 OR il.M_Product_ID IS NOT NULL THEN il.PriceEntered END AS PriceEntered,
CASE WHEN il.LineNetAmt<>0 OR il.M_Product_ID IS NOT NULL THEN il.LineNetAmt END AS LineNetAmt,
il.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID,
asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
p.Description as ProductDescription, p.ImageURL,
il.C_Campaign_ID, il.C_Project_ID, il.C_Activity_ID, il.C_ProjectPhase_ID, il.C_ProjectTask_ID
FROM C_InvoiceLine il
INNER JOIN C_UOM uom ON (il.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN C_Invoice i ON (il.C_Invoice_ID=i.C_Invoice_ID)
LEFT OUTER JOIN C_Tax t ON (il.C_Tax_ID=t.C_Tax_ID)
LEFT OUTER JOIN M_Product p ON (il.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN C_Charge c ON (il.C_Charge_ID=c.C_Charge_ID)
LEFT OUTER JOIN C_BPartner_Product pp ON (il.M_Product_ID=pp.M_Product_ID AND i.C_BPartner_ID=pp.C_BPartner_ID)
LEFT OUTER JOIN S_ResourceAssignment ra ON (il.S_ResourceAssignment_ID=ra.S_ResourceAssignment_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (il.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
UNION -- bom lines
SELECT il.AD_Client_ID, il.AD_Org_ID, il.IsActive, il.Created, il.CreatedBy, il.Updated, il.UpdatedBy,
'en_US' AS AD_Language,
il.C_Invoice_ID, il.C_InvoiceLine_ID,
il.C_Tax_ID, il.TaxAmt, il.LineTotalAmt, t.TaxIndicator,
il.Line+(bl.Line/100) AS Line, p.M_Product_ID,
--il.QtyInvoiced*b.BOMQty AS QtyInvoiced,
CASE WHEN bl.IsQtyPercentage = 'N' THEN il.QtyInvoiced*bl.QtyBOM ELSE il.QtyInvoiced*(bl.QtyBatch / 100) END AS QtyInvoiced,
--il.QtyEntered*b.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN il.QtyEntered*bl.QtyBOM ELSE il.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
p.Name, -- main
b.Description,
p.DocumentNote, p.UPC, p.SKU, p.Value AS ProductValue,
null, null, null, null, null, null, null,
il.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
p.Description as ProductDescription, p.ImageURL,
il.C_Campaign_ID, il.C_Project_ID, il.C_Activity_ID, il.C_ProjectPhase_ID, il.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN C_InvoiceLine il ON (b.M_Product_ID=il.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=il.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)
LEFT OUTER JOIN C_Tax t ON (il.C_Tax_ID=t.C_Tax_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (il.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)*/
FROM PP_Product_BOM b -- BOM lines
INNER JOIN C_InvoiceLine il ON (b.M_Product_ID=il.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=il.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (bl.M_Product_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)
LEFT OUTER JOIN C_Tax t ON (il.C_Tax_ID=t.C_Tax_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (il.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
UNION -- comment lines
SELECT il.AD_Client_ID, il.AD_Org_ID, il.IsActive, il.Created, il.CreatedBy, il.Updated, il.UpdatedBy,
'en_US', il.C_Invoice_ID, il.C_InvoiceLine_ID,
null, null, null, null,
il.Line, null,
null, null, null,
il.Description,
null, null, null, null, null, null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null, null, null, null, null
FROM C_InvoiceLine il
WHERE il.C_UOM_ID IS NULL
UNION -- empty line
SELECT AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy,
'en_US', C_Invoice_ID, null,
null, null, null, null,
9998, null,
null, null, null,
null,
null, null, null, null, null, null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null, null, null, null, null
FROM C_Invoice
UNION -- tax lines
SELECT it.AD_Client_ID, it.AD_Org_ID, it.IsActive, it.Created, it.CreatedBy, it.Updated, it.UpdatedBy,
'en_US', it.C_Invoice_ID, null,
it.C_Tax_ID, null, null, t.TaxIndicator,
9999, null,
null, null, null,
t.Name,
null, null, null, null, null, null,
null, null, null,
CASE WHEN it.IsTaxIncluded='Y' THEN it.TaxAmt ELSE it.TaxBaseAmt END,
CASE WHEN it.IsTaxIncluded='Y' THEN it.TaxAmt ELSE it.TaxBaseAmt END,
CASE WHEN it.IsTaxIncluded='Y' THEN NULL ELSE it.TaxAmt END,
null, null, null, null, null, null, null, null,
null, null, null, null, null
FROM C_InvoiceTax it
INNER JOIN C_Tax t ON (it.C_Tax_ID=t.C_Tax_ID);
CREATE OR REPLACE VIEW C_INVOICE_LINETAX_VT
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, C_INVOICE_ID, C_INVOICELINE_ID,
C_TAX_ID, TAXAMT, LINETOTALAMT, TAXINDICATOR, LINE,
M_PRODUCT_ID, QTYINVOICED, QTYENTERED, UOMSYMBOL, NAME,
DESCRIPTION, DOCUMENTNOTE, UPC, SKU, PRODUCTVALUE,
RESOURCEDESCRIPTION, PRICELIST, PRICEENTEREDLIST, DISCOUNT, PRICEACTUAL,
PRICEENTERED, LINENETAMT, M_ATTRIBUTESETINSTANCE_ID, M_ATTRIBUTESET_ID, SERNO,
LOT, M_LOT_ID, GUARANTEEDATE, PRODUCTDESCRIPTION, IMAGEURL,
C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, C_PROJECTPHASE_ID, C_PROJECTTASK_ID)
AS
SELECT il.AD_Client_ID, il.AD_Org_ID, il.IsActive, il.Created, il.CreatedBy, il.Updated, il.UpdatedBy,
uom.AD_Language,
il.C_Invoice_ID, il.C_InvoiceLine_ID,
il.C_Tax_ID, il.TaxAmt, il.LineTotalAmt, t.TaxIndicator,
il.Line, p.M_Product_ID,
CASE WHEN il.QtyInvoiced<>0 OR il.M_Product_ID IS NOT NULL THEN il.QtyInvoiced END AS QtyInvoiced,
CASE WHEN il.QtyEntered<>0 OR il.M_Product_ID IS NOT NULL THEN il.QtyEntered END AS QtyEntered,
CASE WHEN il.QtyEntered<>0 OR il.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
COALESCE(c.Name,COALESCE(pt.Name,p.Name)||productAttribute(il.M_AttributeSetInstance_ID), il.Description) AS Name, -- main line
CASE WHEN COALESCE(c.Name,pt.Name,p.Name) IS NOT NULL THEN il.Description END AS Description, -- second line
COALESCE(pt.DocumentNote,p.DocumentNote) AS DocumentNote, -- third line
p.UPC, p.SKU, COALESCE(pp.VendorProductNo,p.Value) AS ProductValue,
ra.Description AS ResourceDescription, -- forth line
CASE WHEN i.IsDiscountPrinted='Y' AND il.PriceList<>0
THEN il.PriceList END AS PriceList,
CASE WHEN i.IsDiscountPrinted='Y' AND il.PriceList<>0 AND il.QtyEntered<>0
THEN il.PriceList*il.QtyInvoiced/il.QtyEntered END AS PriceEnteredList,
CASE WHEN i.IsDiscountPrinted='Y' AND il.PriceList>il.PriceActual AND il.PriceList<>0
THEN (il.PriceList-il.PriceActual)/il.PriceList*100 END AS Discount,
CASE WHEN il.PriceActual<>0 OR il.M_Product_ID IS NOT NULL THEN il.PriceActual END AS PriceActual,
CASE WHEN il.PriceEntered<>0 OR il.M_Product_ID IS NOT NULL THEN il.PriceEntered END AS PriceEntered,
CASE WHEN il.LineNetAmt<>0 OR il.M_Product_ID IS NOT NULL THEN il.LineNetAmt END AS LineNetAmt,
il.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
pt.Description as ProductDescription, p.ImageURL,
il.C_Campaign_ID, il.C_Project_ID, il.C_Activity_ID, il.C_ProjectPhase_ID, il.C_ProjectTask_ID
FROM C_InvoiceLine il
INNER JOIN C_UOM_Trl uom ON (il.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN C_Invoice i ON (il.C_Invoice_ID=i.C_Invoice_ID)
LEFT OUTER JOIN C_Tax_Trl t ON (il.C_Tax_ID=t.C_Tax_ID AND uom.AD_Language=t.AD_Language)
LEFT OUTER JOIN M_Product p ON (il.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN C_Charge c ON (il.C_Charge_ID=c.C_Charge_ID)
LEFT OUTER JOIN C_BPartner_Product pp ON (il.M_Product_ID=pp.M_Product_ID AND i.C_BPartner_ID=pp.C_BPartner_ID)
LEFT OUTER JOIN M_Product_Trl pt ON (il.M_Product_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN S_ResourceAssignment ra ON (il.S_ResourceAssignment_ID=ra.S_ResourceAssignment_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (il.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
UNION -- bom lines
SELECT il.AD_Client_ID, il.AD_Org_ID, il.IsActive, il.Created, il.CreatedBy, il.Updated, il.UpdatedBy,
uom.AD_Language,
il.C_Invoice_ID, il.C_InvoiceLine_ID,
il.C_Tax_ID, il.TaxAmt, il.LineTotalAmt, t.TaxIndicator,
il.Line+(bl.Line/100) AS Line, p.M_Product_ID,
--il.QtyInvoiced*b.BOMQty AS QtyInvoiced,
CASE WHEN bl.IsQtyPercentage = 'N' THEN il.QtyInvoiced*bl.QtyBOM ELSE il.QtyInvoiced*(bl.QtyBatch / 100) END AS QtyInvoiced,
--il.QtyEntered*b.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN il.QtyEntered*bl.QtyBOM ELSE il.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
COALESCE(pt.Name,p.Name) AS Name, -- main
b.Description,
COALESCE(pt.DocumentNote,p.DocumentNote) AS DocumentNote, p.UPC, p.SKU, p.Value AS ProductValue,
null, null, null, null, null, null, null,
il.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
pt.Description as ProductDescription, p.ImageURL,
il.C_Campaign_ID, il.C_Project_ID, il.C_Activity_ID, il.C_ProjectPhase_ID, il.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN C_InvoiceLine il ON (b.M_Product_ID=il.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=il.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (b.M_ProductBOM_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN C_Tax t ON (il.C_Tax_ID=t.C_Tax_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (il.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)*/
FROM PP_Product_BOM b -- BOM lines
INNER JOIN C_InvoiceLine il ON (b.M_Product_ID=il.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=il.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (bl.M_Product_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (bl.M_Product_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN C_Tax t ON (il.C_Tax_ID=t.C_Tax_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (il.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
UNION -- comment line
SELECT il.AD_Client_ID, il.AD_Org_ID, il.IsActive, il.Created, il.CreatedBy, il.Updated, il.UpdatedBy,
l.AD_Language, il.C_Invoice_ID, il.C_InvoiceLine_ID,
null, null, null, null,
il.Line, null,
null, null, null,
il.Description,
null, null, null, null, null, null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null,null,null,null,null
FROM C_InvoiceLine il, AD_Language l
WHERE il.C_UOM_ID IS NULL
AND l.IsBaseLanguage='N' AND l.IsSystemLanguage='Y'
UNION -- empty line
SELECT i.AD_Client_ID, i.AD_Org_ID, i.IsActive, i.Created, i.CreatedBy, i.Updated, i.UpdatedBy,
AD_Language, i.C_Invoice_ID, null,
null, null, null, null,
9998, null,
null, null, null,
null,
null, null, null, null, null, null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null,null,null,null,null
FROM C_Invoice i, AD_Language l
WHERE l.IsBaseLanguage='N' AND l.IsSystemLanguage='Y'
UNION -- tax lines
SELECT it.AD_Client_ID, it.AD_Org_ID, it.IsActive, it.Created, it.CreatedBy, it.Updated, it.UpdatedBy,
t.AD_Language, it.C_Invoice_ID, null,
it.C_Tax_ID, null, null, t.TaxIndicator,
9999, null,
null, null, null,
t.Name,
null, null, null, null, null, null,
null, null, null,
CASE WHEN it.IsTaxIncluded='Y' THEN it.TaxAmt ELSE it.TaxBaseAmt END,
CASE WHEN it.IsTaxIncluded='Y' THEN it.TaxAmt ELSE it.TaxBaseAmt END,
CASE WHEN it.IsTaxIncluded='Y' THEN NULL ELSE it.TaxAmt END,
null, null, null, null, null, null, null, null,
null,null,null,null,null
FROM C_InvoiceTax it
INNER JOIN C_Tax_Trl t ON (it.C_Tax_ID=t.C_Tax_ID);
CREATE OR REPLACE VIEW C_ORDER_LINETAX_V
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, C_ORDER_ID, C_ORDERLINE_ID,
C_TAX_ID, TAXINDICATOR, C_BPARTNER_ID, C_BPARTNER_LOCATION_ID, BPNAME,
C_LOCATION_ID, LINE, M_PRODUCT_ID, QTYORDERED, QTYENTERED,
UOMSYMBOL, NAME, DESCRIPTION, DOCUMENTNOTE, UPC,
SKU, PRODUCTVALUE, RESOURCEDESCRIPTION, PRICELIST, PRICEENTEREDLIST,
DISCOUNT, PRICEACTUAL, PRICEENTERED, LINENETAMT, PRODUCTDESCRIPTION,
IMAGEURL, C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, C_PROJECTPHASE_ID,
C_PROJECTTASK_ID)
AS
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
'en_US' AS AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, t.TaxIndicator,
ol.C_BPartner_ID, ol.C_BPartner_Location_ID, bp.Name AS BPName, bpl.C_Location_ID,
ol.Line, p.M_Product_ID,
CASE WHEN ol.QtyOrdered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyOrdered END AS QtyOrdered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyEntered END AS QtyEntered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
COALESCE(c.Name,p.Name||productAttribute(ol.M_AttributeSetInstance_ID), ol.Description) AS Name, -- main line
CASE WHEN COALESCE(c.Name,p.Name) IS NOT NULL THEN ol.Description END AS Description, -- second line
p.DocumentNote, -- third line
p.UPC, p.SKU, COALESCE(pp.VendorProductNo,p.Value) AS ProductValue,
ra.Description AS ResourceDescription, -- forth line
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0
THEN ol.PriceList END AS PriceList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0 AND ol.QtyEntered<>0
THEN ol.PriceList*ol.QtyOrdered/ol.QtyEntered END AS PriceEnteredList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList>ol.PriceActual AND ol.PriceList<>0
THEN (ol.PriceList-ol.PriceActual)/ol.PriceList*100 END AS Discount,
CASE WHEN ol.PriceActual<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceActual END AS PriceActual,
CASE WHEN ol.PriceEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceEntered END AS PriceEntered,
CASE WHEN ol.LineNetAmt<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.LineNetAmt END AS LineNetAmt,
p.Description as ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
FROM C_OrderLine ol
INNER JOIN C_UOM uom ON (ol.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN C_Order i ON (ol.C_Order_ID=i.C_Order_ID)
LEFT OUTER JOIN M_Product p ON (ol.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN S_ResourceAssignment ra ON (ol.S_ResourceAssignment_ID=ra.S_ResourceAssignment_ID)
LEFT OUTER JOIN C_Charge c ON (ol.C_Charge_ID=c.C_Charge_ID)
LEFT OUTER JOIN C_BPartner_Product pp ON (ol.M_Product_ID=pp.M_Product_ID AND i.C_BPartner_ID=pp.C_BPartner_ID)
INNER JOIN C_BPartner bp ON (ol.C_BPartner_ID=bp.C_BPartner_ID)
INNER JOIN C_BPartner_Location bpl ON (ol.C_BPartner_Location_ID=bpl.C_BPartner_Location_ID)
LEFT OUTER JOIN C_Tax t ON (ol.C_Tax_ID=t.C_Tax_ID)
UNION
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
'en_US' AS AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, null,
null, null, null, null,
ol.Line+(bl.Line/100) AS Line, p.M_Product_ID,
--ol.QtyOrdered*bl.BOMQty AS QtyInvoiced
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyOrdered*bl.QtyBOM ELSE ol.QtyOrdered*(bl.QtyBatch / 100) END AS QtyInvoiced,
--ol.QtyEntered*bl.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyEntered*bl.QtyBOM ELSE ol.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
p.Name, -- main
bl.Description,
p.DocumentNote, p.UPC, p.SKU, p.Value AS ProductValue,
null, null, null, null, null, null, null, p.Description as ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN C_OrderLine ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)*/
FROM PP_Product_BOM b
INNER JOIN C_OrderLine ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (p.M_Product_ID=bl.M_Product_ID) -- BOM line product
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)
UNION
SELECT AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy,
'en_US', C_Order_ID, null, null, null,
null,
null, null, null,
null, null, null, null,
null, null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null,null,null,null,null
FROM C_Order
UNION
SELECT ot.AD_Client_ID, ot.AD_Org_ID, ot.IsActive, ot.Created, ot.CreatedBy, ot.Updated, ot.UpdatedBy,
'en_US', ot.C_Order_ID, null, ot.C_Tax_ID, t.TaxIndicator,
null, null, null, null,
null, null,
null, null, null,
t.Name,
null, null, null, null, null, null,
null, null, null,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN NULL ELSE ot.TaxAmt END,
null, null,
null,null,null,null,null
FROM C_OrderTax ot
INNER JOIN C_Tax t ON (ot.C_Tax_ID=t.C_Tax_ID);
CREATE OR REPLACE VIEW C_ORDER_LINETAX_VT
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, C_ORDER_ID, C_ORDERLINE_ID,
C_TAX_ID, TAXINDICATOR, C_BPARTNER_ID, C_BPARTNER_LOCATION_ID, BPNAME,
C_LOCATION_ID, LINE, M_PRODUCT_ID, QTYORDERED, QTYENTERED,
UOMSYMBOL, NAME, DESCRIPTION, DOCUMENTNOTE, UPC,
SKU, PRODUCTVALUE, RESOURCEDESCRIPTION, PRICELIST, PRICEENTEREDLIST,
DISCOUNT, PRICEACTUAL, PRICEENTERED, LINENETAMT, PRODUCTDESCRIPTION,
IMAGEURL, C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, C_PROJECTPHASE_ID,
C_PROJECTTASK_ID)
AS
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
uom.AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, t.TaxIndicator,
ol.C_BPartner_ID, ol.C_BPartner_Location_ID, bp.Name AS BPName, bpl.C_Location_ID,
ol.Line, p.M_Product_ID,
CASE WHEN ol.QtyOrdered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyOrdered END AS QtyOrdered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyEntered END AS QtyEntered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
COALESCE(c.Name,p.Name||productAttribute(ol.M_AttributeSetInstance_ID), ol.Description) AS Name, -- main line
CASE WHEN COALESCE(c.Name,pt.Name, p.Name) IS NOT NULL THEN ol.Description END AS Description, -- second line
COALESCE(pt.DocumentNote, p.DocumentNote) AS DocumentNote, -- third line
p.UPC, p.SKU, COALESCE(pp.VendorProductNo,p.Value) AS ProductValue,
ra.Description AS ResourceDescription, -- forth line
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0
THEN ol.PriceList END AS PriceList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0 AND ol.QtyEntered<>0
THEN ol.PriceList*ol.QtyOrdered/ol.QtyEntered END AS PriceEnteredList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList>ol.PriceActual AND ol.PriceList<>0
THEN (ol.PriceList-ol.PriceActual)/ol.PriceList*100 END AS Discount,
CASE WHEN ol.PriceActual<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceActual END AS PriceActual,
CASE WHEN ol.PriceEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceEntered END AS PriceEntered,
CASE WHEN ol.LineNetAmt<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.LineNetAmt END AS LineNetAmt,
pt.Description as ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
FROM C_OrderLine ol
INNER JOIN C_UOM_Trl uom ON (ol.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN C_Order i ON (ol.C_Order_ID=i.C_Order_ID)
LEFT OUTER JOIN M_Product p ON (ol.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN M_Product_Trl pt ON (ol.M_Product_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN S_ResourceAssignment ra ON (ol.S_ResourceAssignment_ID=ra.S_ResourceAssignment_ID)
LEFT OUTER JOIN C_Charge c ON (ol.C_Charge_ID=c.C_Charge_ID)
LEFT OUTER JOIN C_BPartner_Product pp ON (ol.M_Product_ID=pp.M_Product_ID AND i.C_BPartner_ID=pp.C_BPartner_ID)
INNER JOIN C_BPartner bp ON (ol.C_BPartner_ID=bp.C_BPartner_ID)
INNER JOIN C_BPartner_Location bpl ON (ol.C_BPartner_Location_ID=bpl.C_BPartner_Location_ID)
LEFT OUTER JOIN C_Tax_Trl t ON (ol.C_Tax_ID=t.C_Tax_ID AND uom.AD_Language=t.AD_Language)
UNION
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
uom.AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, null,
null, null, null, null,
ol.Line+(bl.Line/100) AS Line, p.M_Product_ID,
--ol.QtyOrdered*b.BOMQty AS QtyInvoiced,
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyOrdered*bl.QtyBOM ELSE ol.QtyOrdered*(bl.QtyBatch / 100) END AS QtyInvoiced,
--ol.QtyEntered*b.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyEntered*bl.QtyBOM ELSE ol.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
COALESCE(pt.Name, p.Name) AS Name, -- main
b.Description,
COALESCE(pt.DocumentNote, p.DocumentNote) AS DocumentNote, p.UPC, p.SKU, p.Value AS ProductValue,
null, null, null, null, null, null, null, pt.Description AS ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN C_OrderLine ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (b.M_ProductBOM_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)*/
FROM PP_Product_BOM b
INNER JOIN C_OrderLine ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (p.M_Product_ID=bl.M_Product_ID) -- BOM line product
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (pt.M_Product_ID=bl.M_Product_ID AND uom.AD_Language=pt.AD_Language)
UNION
SELECT o.AD_Client_ID, o.AD_Org_ID, o.IsActive, o.Created, o.CreatedBy, o.Updated, o.UpdatedBy,
l.AD_Language, o.C_Order_ID, null, null, null,
null,
null, null, null,
null, null, null, null,
null, null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null,null,null,null,null
FROM C_Order o, AD_Language l
WHERE l.IsBaseLanguage='N' AND l.IsSystemLanguage='Y'
UNION
SELECT ot.AD_Client_ID, ot.AD_Org_ID, ot.IsActive, ot.Created, ot.CreatedBy, ot.Updated, ot.UpdatedBy,
t.AD_Language, ot.C_Order_ID, null, ot.C_Tax_ID, t.TaxIndicator,
null, null, null, null,
null, null,
null, null, null,
t.Name,
null, null, null, null, null, null,
null, null, null,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN NULL ELSE ot.TaxAmt END,
null, null,
null,null,null,null,null
FROM C_OrderTax ot
INNER JOIN C_Tax_Trl t ON (ot.C_Tax_ID=t.C_Tax_ID);
CREATE OR REPLACE VIEW M_INOUT_LINE_V
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, M_INOUT_ID, M_INOUTLINE_ID,
LINE, M_PRODUCT_ID, MOVEMENTQTY, QTYENTERED, UOMSYMBOL,
QTYORDERED, QTYDELIVERED, QTYBACKORDERED, NAME, DESCRIPTION,
DOCUMENTNOTE, UPC, SKU, PRODUCTVALUE, M_LOCATOR_ID,
M_WAREHOUSE_ID, X, Y, Z, M_ATTRIBUTESETINSTANCE_ID,
M_ATTRIBUTESET_ID, SERNO, LOT, M_LOT_ID, GUARANTEEDATE,
PRODUCTDESCRIPTION, IMAGEURL, C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID,
C_PROJECTPHASE_ID, C_PROJECTTASK_ID)
AS
SELECT iol.AD_Client_ID, iol.AD_Org_ID, iol.IsActive, iol.Created, iol.CreatedBy, iol.Updated, iol.UpdatedBy,
'en_US' AS AD_Language,
iol.M_InOut_ID, iol.M_InOutLine_ID,
iol.Line, p.M_Product_ID,
CASE WHEN iol.MovementQty<>0 OR iol.M_Product_ID IS NOT NULL THEN iol.MovementQty END AS MovementQty,
CASE WHEN iol.QtyEntered<>0 OR iol.M_Product_ID IS NOT NULL THEN iol.QtyEntered END AS QtyEntered,
CASE WHEN iol.MovementQty<>0 OR iol.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
ol.QtyOrdered, ol.QtyDelivered,
CASE WHEN iol.MovementQty<>0 OR iol.M_Product_ID IS NOT NULL THEN ol.QtyOrdered-ol.QtyDelivered END AS QtyBackOrdered,
COALESCE(p.Name||productAttribute(iol.M_AttributeSetInstance_ID), c.Name, iol.Description) AS Name, -- main line
CASE WHEN COALESCE(c.Name,p.Name) IS NOT NULL THEN iol.Description END AS Description, -- second line
p.DocumentNote, -- third line
p.UPC, p.SKU, p.Value AS ProductValue,
iol.M_Locator_ID, l.M_Warehouse_ID, l.X, l.Y, l.Z,
iol.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
p.Description AS ProductDescription, p.ImageURL,
iol.C_Campaign_ID, iol.C_Project_ID, iol.C_Activity_ID, iol.C_ProjectPhase_ID, iol.C_ProjectTask_ID
FROM M_InOutLine iol
INNER JOIN C_UOM uom ON (iol.C_UOM_ID=uom.C_UOM_ID)
LEFT OUTER JOIN M_Product p ON (iol.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (iol.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
LEFT OUTER JOIN M_Locator l ON (iol.M_Locator_ID=l.M_Locator_ID)
LEFT OUTER JOIN C_OrderLine ol ON (iol.C_OrderLine_ID=ol.C_OrderLine_ID)
LEFT OUTER JOIN C_Charge c ON (iol.C_Charge_ID=c.C_Charge_ID)
UNION -- BOM lines
SELECT iol.AD_Client_ID, iol.AD_Org_ID, iol.IsActive, iol.Created, iol.CreatedBy, iol.Updated, iol.UpdatedBy,
'en_US' AS AD_Language,
iol.M_InOut_ID, iol.M_InOutLine_ID,
iol.Line+(bl.Line/100) AS Line, p.M_Product_ID,
--iol.MovementQty*b.BOMQty AS QtyInvoiced,
CASE WHEN bl.IsQtyPercentage = 'N' THEN iol.MovementQty*bl.QtyBOM ELSE iol.MovementQty*(bl.QtyBatch / 100) END AS QtyInvoiced,
--iol.QtyEntered*b.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN iol.QtyEntered*bl.QtyBOM ELSE iol.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
null, null, null,
p.Name, -- main line
b.Description, -- second line
p.DocumentNote, -- third line
p.UPC, p.SKU, p.Value AS ProductValue,
iol.M_Locator_ID, l.M_Warehouse_ID, l.X, l.Y, l.Z,
iol.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
p.Description AS ProductDescription, p.ImageURL,
iol.C_Campaign_ID, iol.C_Project_ID, iol.C_Activity_ID, iol.C_ProjectPhase_ID, iol.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN M_InOutLine iol ON (b.M_Product_ID=iol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=iol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsPickListPrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (iol.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
LEFT OUTER JOIN M_Locator l ON (iol.M_Locator_ID=l.M_Locator_ID);
*/
FROM PP_Product_BOM b -- BOM lines
INNER JOIN M_InOutLine iol ON (b.M_Product_ID=iol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=iol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsPickListPrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (bl.M_Product_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (iol.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
LEFT OUTER JOIN M_Locator l ON (iol.M_Locator_ID=l.M_Locator_ID);
CREATE OR REPLACE VIEW M_INOUT_LINE_VT
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, M_INOUT_ID, M_INOUTLINE_ID,
LINE, M_PRODUCT_ID, MOVEMENTQTY, QTYENTERED, UOMSYMBOL,
QTYORDERED, QTYDELIVERED, QTYBACKORDERED, NAME, DESCRIPTION,
DOCUMENTNOTE, UPC, SKU, PRODUCTVALUE, M_LOCATOR_ID,
M_WAREHOUSE_ID, X, Y, Z, M_ATTRIBUTESETINSTANCE_ID,
M_ATTRIBUTESET_ID, SERNO, LOT, M_LOT_ID, GUARANTEEDATE,
PRODUCTDESCRIPTION, IMAGEURL, C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID,
C_PROJECTPHASE_ID, C_PROJECTTASK_ID)
AS
SELECT iol.AD_Client_ID, iol.AD_Org_ID, iol.IsActive, iol.Created, iol.CreatedBy, iol.Updated, iol.UpdatedBy,
uom.AD_Language,
iol.M_InOut_ID, iol.M_InOutLine_ID,
iol.Line, p.M_Product_ID,
CASE WHEN iol.MovementQty<>0 OR iol.M_Product_ID IS NOT NULL THEN iol.MovementQty END AS MovementQty,
CASE WHEN iol.QtyEntered<>0 OR iol.M_Product_ID IS NOT NULL THEN iol.QtyEntered END AS QtyEntered,
CASE WHEN iol.MovementQty<>0 OR iol.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
ol.QtyOrdered, ol.QtyDelivered,
CASE WHEN iol.MovementQty<>0 OR iol.M_Product_ID IS NOT NULL THEN ol.QtyOrdered-ol.QtyDelivered END AS QtyBackOrdered,
COALESCE(COALESCE(pt.Name,p.Name)||productAttribute(iol.M_AttributeSetInstance_ID), c.Name, iol.Description) AS Name, -- main line
CASE WHEN COALESCE(pt.Name,p.Name,c.Name) IS NOT NULL THEN iol.Description END AS Description, -- second line
COALESCE(pt.DocumentNote, p.DocumentNote) AS DocumentNote, -- third line
p.UPC, p.SKU, p.Value AS ProductValue,
iol.M_Locator_ID, l.M_Warehouse_ID, l.X, l.Y, l.Z,
iol.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
pt.Description AS ProductDescription, p.ImageURL,
iol.C_Campaign_ID, iol.C_Project_ID, iol.C_Activity_ID, iol.C_ProjectPhase_ID, iol.C_ProjectTask_ID
FROM M_InOutLine iol
INNER JOIN C_UOM_Trl uom ON (iol.C_UOM_ID=uom.C_UOM_ID)
LEFT OUTER JOIN M_Product p ON (iol.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN M_Product_Trl pt ON (iol.M_Product_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (iol.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
LEFT OUTER JOIN M_Locator l ON (iol.M_Locator_ID=l.M_Locator_ID)
LEFT OUTER JOIN C_OrderLine ol ON (iol.C_OrderLine_ID=ol.C_OrderLine_ID)
LEFT OUTER JOIN C_Charge c ON (iol.C_Charge_ID=c.C_Charge_ID)
UNION
SELECT iol.AD_Client_ID, iol.AD_Org_ID, iol.IsActive, iol.Created, iol.CreatedBy, iol.Updated, iol.UpdatedBy,
uom.AD_Language,
iol.M_InOut_ID, iol.M_InOutLine_ID,
iol.Line+(bl.Line/100) AS Line, p.M_Product_ID,
--iol.MovementQty*b.BOMQty AS QtyInvoiced,
CASE WHEN bl.IsQtyPercentage = 'N' THEN iol.MovementQty*bl.QtyBOM ELSE iol.MovementQty*(bl.QtyBatch / 100) END AS QtyInvoiced,
--iol.QtyEntered*b.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN iol.QtyEntered*bl.QtyBOM ELSE iol.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
null, null, null,
COALESCE (pt.Name, p.Name) AS Name, -- main line
b.Description, -- second line
COALESCE (pt.DocumentNote, p.DocumentNote) AS DocumentNote, -- third line
p.UPC, p.SKU, p.Value AS ProductValue,
iol.M_Locator_ID, l.M_Warehouse_ID, l.X, l.Y, l.Z,
iol.M_AttributeSetInstance_ID, asi.M_AttributeSet_ID, asi.SerNo, asi.Lot, asi.M_Lot_ID,asi.GuaranteeDate,
pt.Description AS ProductDescription, p.ImageURL,
iol.C_Campaign_ID, iol.C_Project_ID, iol.C_Activity_ID, iol.C_ProjectPhase_ID, iol.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN M_InOutLine iol ON (b.M_Product_ID=iol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=iol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsPickListPrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (iol.M_Product_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (iol.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
LEFT OUTER JOIN M_Locator l ON (iol.M_Locator_ID=l.M_Locator_ID);*/
FROM PP_Product_BOM b -- BOM lines
INNER JOIN M_InOutLine iol ON (b.M_Product_ID=iol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=iol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsPickListPrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (bl.M_Product_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (iol.M_Product_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN M_AttributeSetInstance asi ON (iol.M_AttributeSetInstance_ID=asi.M_AttributeSetInstance_ID)
LEFT OUTER JOIN M_Locator l ON (iol.M_Locator_ID=l.M_Locator_ID);
DROP FUNCTION bomqtyavailable(integer, integer, integer, integer);
DROP FUNCTION bomqtyavailable(numeric, numeric, numeric, numeric);
DROP FUNCTION bomqtyonhand(integer, integer, integer, integer);
DROP FUNCTION bomqtyonhand(numeric, numeric, numeric, numeric);
DROP FUNCTION bomqtyordered(integer, integer, integer, integer);
DROP FUNCTION bomqtyordered(numeric, numeric, numeric, numeric);
DROP FUNCTION bomqtyreserved(integer, integer, integer, integer);
DROP FUNCTION bomqtyreserved(numeric, numeric, numeric, numeric);

View File

@ -0,0 +1,26 @@
-- Dec 19, 2007 4:07:05 PM EST
-- fix entitytype column for PP_Order_Node, PP_Order_NodeNext & PP_Order_Workflow
UPDATE AD_Column SET AD_Reference_ID=18, DefaultValue='U', FieldLength=40, ReadOnlyLogic='@EntityType@=D',Updated=TO_TIMESTAMP('2007-12-19 16:07:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53474
;
UPDATE AD_Field SET Name='Entity Type', Description='Dictionary Entity Type; Determines ownership and synchronization', Help='The Entity Types "Dictionary", "Adempiere" and "Application" might be automatically synchronized and customizations deleted or overwritten.
FOR customizations, copy THE entity AND SELECT "User"!' WHERE AD_Column_ID=53474 AND IsCentrallyMaintained='Y'
;
UPDATE AD_Column SET AD_Reference_ID=18, DefaultValue='U', FieldLength=40, ReadOnlyLogic='@EntityType@=D',Updated=TO_TIMESTAMP('2007-12-19 16:07:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53520
;
UPDATE AD_Field SET Name='Entity Type', Description='Dictionary Entity Type; Determines ownership and synchronization', Help='The Entity Types "Dictionary", "Adempiere" and "Application" might be automatically synchronized and customizations deleted or overwritten.
FOR customizations, copy THE entity AND SELECT "User"!' WHERE AD_Column_ID=53520 AND IsCentrallyMaintained='Y'
;
UPDATE AD_Column SET AD_Reference_ID=18, DefaultValue='U', FieldLength=40, ReadOnlyLogic='@EntityType@=D',Updated=TO_TIMESTAMP('2007-12-19 16:08:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53701
;
UPDATE AD_Field SET Name='Entity Type', Description='Dictionary Entity Type; Determines ownership and synchronization', Help='The Entity Types "Dictionary", "Adempiere" and "Application" might be automatically synchronized and customizations deleted or overwritten.
FOR customizations, copy THE entity AND SELECT "User"!' WHERE AD_Column_ID=53701 AND IsCentrallyMaintained='Y'
;

View File

@ -0,0 +1,4 @@
-- Jan 5, 2008 11:15:30 AM EST
-- Fix column PP_Product_BOMLine.Line default value
UPDATE AD_Column SET DefaultValue='@SQL=SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM PP_Product_BOMLine WHERE PP_Product_BOM_ID=@PP_Product_BOM_ID@',Updated=TO_TIMESTAMP('2008-01-05 11:15:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53361
;

View File

@ -0,0 +1,15 @@
-- Jan 7, 2008 7:03:41 PM CST
-- Void Journal Cash
INSERT INTO AD_Column (Name,IsMandatory,IsTranslated,Description,IsIdentifier,SeqNo,Help,Version,IsActive,AD_Table_ID,AD_Column_ID,ColumnName,AD_Client_ID,AD_Org_ID,FieldLength,IsParent,Created,IsSyncDatabase,AD_Reference_ID,CreatedBy,Updated,AD_Element_ID,IsUpdateable,IsKey,IsSelectionColumn,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,EntityType) VALUES ('Payment','N','N','Payment identifier','N',0,'The Payment is a unique identifier of this payment.',0,'Y',410,54090,'C_Payment_ID',0,0,10,'N',TO_TIMESTAMP('2008-01-07 19:03:34','YYYY-MM-DD HH24:MI:SS'),'N',19,0,TO_TIMESTAMP('2008-01-07 19:03:34','YYYY-MM-DD HH24:MI:SS'),1384,'Y','N','N',0,'N','N','D')
;
-- Jan 7, 2008 7:03:42 PM CST
-- Void Journal Cash
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54090 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Jan 7, 2008 7:04:25 PM CST
-- Void Journal Cash
ALTER TABLE C_CashLine ADD COLUMN C_Payment_ID NUMERIC(10)
;

View File

@ -0,0 +1,63 @@
-- Jan 16, 2008 8:33:22 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
INSERT INTO AD_Column (Name,IsMandatory,IsTranslated,Description,IsIdentifier,SeqNo,Help,Version,IsActive,AD_Table_ID,AD_Column_ID,ColumnName,AD_Client_ID,AD_Org_ID,FieldLength,IsParent,Created,IsSyncDatabase,AD_Reference_ID,CreatedBy,Updated,AD_Element_ID,IsUpdateable,IsKey,IsSelectionColumn,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,EntityType) VALUES ('Bank Account','N','N','Account at the Bank','N',0,'The Bank Account identifies an account at this Bank.',0,'Y',748,54236,'C_BankAccount_ID',0,0,22,'N',TO_TIMESTAMP('2008-01-16 20:33:21','YYYY-MM-DD HH24:MI:SS'),'N',19,0,TO_TIMESTAMP('2008-01-16 20:33:21','YYYY-MM-DD HH24:MI:SS'),836,'Y','N','N',0,'N','N','D')
;
-- Jan 16, 2008 8:33:22 PM CST
--[+1871641+]+Account+Bank+into+POS+Terminal
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54236 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Jan 16, 2008 8:33:52 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
INSERT INTO AD_Field (IsEncrypted,AD_Org_ID,UpdatedBy,IsDisplayed,IsCentrallyMaintained,IsActive,Created,AD_Client_ID,AD_Field_ID,Description,DisplayLength,AD_Column_ID,IsFieldOnly,CreatedBy,Help,Updated,Name,AD_Tab_ID,IsSameLine,IsHeading,IsReadOnly,EntityType) VALUES ('N',0,0,'Y','Y','Y',TO_TIMESTAMP('2008-01-16 20:33:52','YYYY-MM-DD HH24:MI:SS'),0,54330,'Account at the Bank',22,54236,'N',0,'The Bank Account identifies an account at this Bank.',TO_TIMESTAMP('2008-01-16 20:33:52','YYYY-MM-DD HH24:MI:SS'),'Bank Account',676,'N','N','N','D')
;
-- Jan 16, 2008 8:33:52 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54330 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Jan 16, 2008 8:34:08 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54330
;
-- Jan 16, 2008 8:34:08 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=10811
;
-- Jan 16, 2008 8:34:08 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=10810
;
-- Jan 16, 2008 8:34:08 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=10798
;
-- Jan 16, 2008 8:34:08 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=10803
;
-- Jan 16, 2008 8:34:08 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=52017
;
-- Jan 16, 2008 8:34:16 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-01-16 20:34:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54330
;
-- Jan 16, 2008 9:23:14 PM CST
-- [+1871641+]+Account+Bank+into+POS+Terminal
ALTER TABLE C_POS ADD COLUMN C_BankAccount_ID NUMERIC(10) DEFAULT NULL
;

View File

@ -0,0 +1,281 @@
-- Jan 16, 2008 8:58:57 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Column (Name,IsMandatory,IsTranslated,IsIdentifier,SeqNo,Version,IsActive,AD_Table_ID,AD_Column_ID,ColumnName,AD_Client_ID,AD_Org_ID,FieldLength,IsParent,Created,IsSyncDatabase,AD_Reference_ID,CreatedBy,Updated,AD_Element_ID,IsUpdateable,IsKey,IsSelectionColumn,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,EntityType) VALUES ('Group1','N','N','N',0,0,'Y',477,54237,'Group1',0,0,255,'N',TO_TIMESTAMP('2008-01-16 20:58:54','YYYY-MM-DD HH24:MI:SS'),'N',10,0,TO_TIMESTAMP('2008-01-16 20:58:54','YYYY-MM-DD HH24:MI:SS'),52018,'Y','N','N',0,'N','N','D')
;
-- Jan 16, 2008 8:58:57 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54237 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Jan 16, 2008 8:59:29 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Column (Name,IsMandatory,IsTranslated,IsIdentifier,SeqNo,Version,IsActive,AD_Table_ID,AD_Column_ID,ColumnName,AD_Client_ID,AD_Org_ID,FieldLength,IsParent,Created,IsSyncDatabase,AD_Reference_ID,CreatedBy,Updated,AD_Element_ID,IsUpdateable,IsKey,IsSelectionColumn,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,EntityType) VALUES ('Group2','N','N','N',0,0,'Y',477,54238,'Group2',0,0,255,'N',TO_TIMESTAMP('2008-01-16 20:59:26','YYYY-MM-DD HH24:MI:SS'),'N',10,0,TO_TIMESTAMP('2008-01-16 20:59:26','YYYY-MM-DD HH24:MI:SS'),52019,'Y','N','N',0,'N','N','D')
;
-- Jan 16, 2008 8:59:29 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54238 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Jan 16, 2008 9:00:22 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Column (Name,IsMandatory,IsTranslated,Description,IsIdentifier,SeqNo,Help,Version,IsActive,AD_Table_ID,AD_Column_ID,ColumnName,AD_Client_ID,AD_Org_ID,FieldLength,IsParent,Created,IsSyncDatabase,AD_Reference_ID,CreatedBy,Updated,AD_Element_ID,IsUpdateable,IsKey,IsSelectionColumn,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,EntityType) VALUES ('Classification','N','N','Classification for grouping','N',0,'The Classification can be used to optionally group products.',0,'Y',477,54239,'Classification',0,0,12,'N',TO_TIMESTAMP('2008-01-16 21:00:19','YYYY-MM-DD HH24:MI:SS'),'N',10,0,TO_TIMESTAMP('2008-01-16 21:00:19','YYYY-MM-DD HH24:MI:SS'),852,'Y','N','N',0,'N','N','D')
;
-- Jan 16, 2008 9:00:22 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54239 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Jan 16, 2008 9:00:28 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
ALTER TABLE M_DiscountSchemaLine ADD COLUMN Classification VARCHAR(12)
;
-- Jan 16, 2008 9:00:34 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
ALTER TABLE M_DiscountSchemaLine ADD COLUMN Group2 VARCHAR(255)
;
-- Jan 16, 2008 9:00:39 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
ALTER TABLE M_DiscountSchemaLine ADD COLUMN Group1 VARCHAR(255)
;
-- Jan 16, 2008 9:02:42 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Field (IsEncrypted,AD_Org_ID,UpdatedBy,IsDisplayed,IsCentrallyMaintained,IsActive,Created,AD_Client_ID,AD_Field_ID,Description,DisplayLength,AD_Column_ID,IsFieldOnly,CreatedBy,Help,Updated,Name,AD_Tab_ID,IsSameLine,IsHeading,IsReadOnly,EntityType) VALUES ('N',0,0,'Y','Y','Y',TO_TIMESTAMP('2008-01-16 21:02:39','YYYY-MM-DD HH24:MI:SS'),0,54331,'Classification for grouping',12,54239,'N',0,'The Classification can be used to optionally group products.',TO_TIMESTAMP('2008-01-16 21:02:39','YYYY-MM-DD HH24:MI:SS'),'Classification',405,'N','N','N','D')
;
-- Jan 16, 2008 9:02:42 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54331 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Jan 16, 2008 9:02:45 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Field (IsEncrypted,AD_Org_ID,UpdatedBy,IsDisplayed,IsCentrallyMaintained,IsActive,Created,AD_Client_ID,AD_Field_ID,DisplayLength,AD_Column_ID,IsFieldOnly,CreatedBy,Updated,Name,AD_Tab_ID,IsSameLine,IsHeading,IsReadOnly,EntityType) VALUES ('N',0,0,'Y','Y','Y',TO_TIMESTAMP('2008-01-16 21:02:42','YYYY-MM-DD HH24:MI:SS'),0,54332,255,54237,'N',0,TO_TIMESTAMP('2008-01-16 21:02:42','YYYY-MM-DD HH24:MI:SS'),'Group1',405,'N','N','N','D')
;
-- Jan 16, 2008 9:02:45 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54332 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Jan 16, 2008 9:02:48 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Field (IsEncrypted,AD_Org_ID,UpdatedBy,IsDisplayed,IsCentrallyMaintained,IsActive,Created,AD_Client_ID,AD_Field_ID,DisplayLength,AD_Column_ID,IsFieldOnly,CreatedBy,Updated,Name,AD_Tab_ID,IsSameLine,IsHeading,IsReadOnly,EntityType) VALUES ('N',0,0,'Y','Y','Y',TO_TIMESTAMP('2008-01-16 21:02:45','YYYY-MM-DD HH24:MI:SS'),0,54333,255,54238,'N',0,TO_TIMESTAMP('2008-01-16 21:02:45','YYYY-MM-DD HH24:MI:SS'),'Group2',405,'N','N','N','D')
;
-- Jan 16, 2008 9:02:48 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54333 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=5243
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=5244
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=5245
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=5247
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=5246
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=5248
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=8642
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=5253
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=5250
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=5251
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54331
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54332
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=54333
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=5254
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=5258
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=5255
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=5259
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=5256
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=5257
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=5349
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=5260
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=5264
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=5261
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=5265
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=5262
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=5263
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=5350
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=5266
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=5270
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=5267
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=5271
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=5268
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=5269
;
-- Jan 16, 2008 9:04:13 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=5348
;
-- Jan 16, 2008 9:04:22 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2008-01-16 21:04:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5251
;
-- Jan 16, 2008 9:04:25 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-01-16 21:04:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5249
;
-- Jan 16, 2008 9:04:36 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET IsSameLine='N',Updated=TO_TIMESTAMP('2008-01-16 21:04:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=5249
;
-- Jan 16, 2008 9:04:42 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-01-16 21:04:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54331
;
-- Jan 16, 2008 9:04:45 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-01-16 21:04:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54333
;
-- Jan 16, 2008 9:09:32 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET DisplayLength=20,Updated=TO_TIMESTAMP('2008-01-16 21:09:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54332
;
-- Jan 16, 2008 9:09:36 PM CST
-- [ 1871403 ] Adding new field of product into Price List Schema
UPDATE AD_Field SET DisplayLength=20,Updated=TO_TIMESTAMP('2008-01-16 21:09:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54333
;

View File

@ -0,0 +1,20 @@
-- Jan 19, 2008 10:44:04 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Ref_List SET Name='Distribution Order',Updated=TO_TIMESTAMP('2008-01-19 22:44:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Ref_List_ID=53241
;
-- Jan 19, 2008 10:44:04 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53241
;
-- Jan 19, 2008 10:45:02 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
INSERT INTO AD_Ref_List (Created,CreatedBy,Updated,UpdatedBy,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Value,Name,IsActive,AD_Client_ID,EntityType) VALUES (TO_TIMESTAMP('2008-01-19 22:45:00','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2008-01-19 22:45:00','YYYY-MM-DD HH24:MI:SS'),0,0,53287,329,'DOO','Distribution Order','Y',0,'EE01')
;
-- Jan 19, 2008 10:45:02 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53287 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID)
;

View File

@ -0,0 +1,10 @@
-- Jan 20, 2008 7:12:48 PM EST
-- Default comment for updating dictionary
UPDATE AD_Column SET IsUpdateable='Y',Updated=TO_TIMESTAMP('2008-01-20 19:12:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=53408
;
-- Jan 20, 2008 7:12:48 PM EST
-- Default comment for updating dictionary
UPDATE AD_Field SET Name='LowLevel', Description=NULL, Help=NULL WHERE AD_Column_ID=53408 AND IsCentrallyMaintained='Y'
;

View File

@ -0,0 +1,67 @@
-- Jan 20, 2008 8:25:27 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-01-20 20:25:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54221
;
-- Jan 20, 2008 8:28:39 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
INSERT INTO AD_Column (Name,IsMandatory,IsTranslated,Description,IsIdentifier,SeqNo,DefaultValue,Help,Version,IsActive,AD_Table_ID,AD_Column_ID,ColumnName,AD_Client_ID,AD_Org_ID,FieldLength,IsParent,Created,IsSyncDatabase,AD_Reference_ID,CreatedBy,Updated,AD_Element_ID,IsUpdateable,IsKey,IsSelectionColumn,UpdatedBy,IsAlwaysUpdateable,IsEncrypted,EntityType) VALUES ('In Transit','N','N','Movement is in transit','N',0,'N','Material Movement is in transit - shipped, but not received.
The transaction is completed, if confirmed.',0,'Y',190,54240,'IsInTransit',0,0,1,'N',TO_TIMESTAMP('2008-01-20 20:28:37','YYYY-MM-DD HH24:MI:SS'),'N',20,0,TO_TIMESTAMP('2008-01-20 20:28:37','YYYY-MM-DD HH24:MI:SS'),2397,'Y','N','N',0,'N','N','EE01')
;
-- Jan 20, 2008 8:28:39 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54240 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Jan 20, 2008 8:28:44 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
ALTER TABLE M_Warehouse ADD COLUMN IsInTransit CHAR(1) DEFAULT 'N' CHECK (IsInTransit IN ('Y','N'))
;
-- Jan 20, 2008 8:29:13 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
INSERT INTO AD_Field (IsEncrypted,AD_Org_ID,UpdatedBy,IsDisplayed,IsCentrallyMaintained,IsActive,Created,AD_Client_ID,AD_Field_ID,Description,DisplayLength,AD_Column_ID,IsFieldOnly,CreatedBy,Help,Updated,Name,AD_Tab_ID,IsSameLine,IsHeading,IsReadOnly,EntityType) VALUES ('N',0,0,'Y','Y','Y',TO_TIMESTAMP('2008-01-20 20:29:10','YYYY-MM-DD HH24:MI:SS'),0,54334,'Movement is in transit',1,54240,'N',0,'Material Movement is in transit - shipped, but not received.
The transaction is completed, if confirmed.',TO_TIMESTAMP('2008-01-20 20:29:10','YYYY-MM-DD HH24:MI:SS'),'In Transit',177,'N','N','N','EE01')
;
-- Jan 20, 2008 8:29:13 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54334 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Jan 20, 2008 8:30:44 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54334
;
-- Jan 20, 2008 8:30:44 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=12132
;
-- Jan 20, 2008 8:30:44 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=12131
;
-- Jan 20, 2008 8:30:57 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-01-20 20:30:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54334
;
-- Jan 20, 2008 8:33:07 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54334
;
-- Jan 20, 2008 8:33:07 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=995
;
-- Jan 20, 2008 8:33:07 PM CST
-- [ 1875623 ] Add the reference in Replenish Report to Distribution Order
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=3781
;

View File

@ -0,0 +1,174 @@
-- Jan 24, 2008 6:33:14 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50048
;
-- Jan 24, 2008 6:33:14 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50048
;
-- Jan 24, 2008 6:33:28 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50047
;
-- Jan 24, 2008 6:33:28 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50047
;
-- Jan 24, 2008 6:33:40 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50046
;
-- Jan 24, 2008 6:33:41 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50046
;
-- Jan 24, 2008 6:33:53 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50045
;
-- Jan 24, 2008 6:33:53 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50045
;
-- Jan 24, 2008 6:34:07 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(DocAuto)',Updated=TO_TIMESTAMP('2008-01-24 18:34:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=233
;
-- Jan 24, 2008 6:34:07 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=233
;
-- Jan 24, 2008 6:34:15 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(DocComplete)',Updated=TO_TIMESTAMP('2008-01-24 18:34:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=235
;
-- Jan 24, 2008 6:34:15 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=235
;
-- Jan 24, 2008 6:34:22 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(DocPrepare)',Updated=TO_TIMESTAMP('2008-01-24 18:34:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=234
;
-- Jan 24, 2008 6:34:22 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=234
;
-- Jan 24, 2008 6:34:29 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(Start)',Updated=TO_TIMESTAMP('2008-01-24 18:34:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=232
;
-- Jan 24, 2008 6:34:29 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=232
;
-- Jan 24, 2008 6:34:39 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_Workflow SET IsValid='Y', AD_WF_Node_ID=232,Updated=TO_TIMESTAMP('2008-01-24 18:34:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Workflow_ID=128
;
-- Jan 24, 2008 6:35:50 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50037
;
-- Jan 24, 2008 6:35:50 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50037
;
-- Jan 24, 2008 6:36:00 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50038
;
-- Jan 24, 2008 6:36:01 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50038
;
-- Jan 24, 2008 6:36:14 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50039
;
-- Jan 24, 2008 6:36:14 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50039
;
-- Jan 24, 2008 6:36:37 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node_Trl WHERE AD_WF_Node_ID=50040
;
-- Jan 24, 2008 6:36:37 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
DELETE FROM AD_WF_Node WHERE AD_WF_Node_ID=50040
;
-- Jan 24, 2008 6:36:53 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(DocAuto)',Updated=TO_TIMESTAMP('2008-01-24 18:36:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=188
;
-- Jan 24, 2008 6:36:53 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=188
;
-- Jan 24, 2008 6:36:58 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(DocComplete)',Updated=TO_TIMESTAMP('2008-01-24 18:36:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=190
;
-- Jan 24, 2008 6:36:58 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=190
;
-- Jan 24, 2008 6:37:02 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(DocPrepare)',Updated=TO_TIMESTAMP('2008-01-24 18:37:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=189
;
-- Jan 24, 2008 6:37:02 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=189
;
-- Jan 24, 2008 6:37:07 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node SET Name='(Start)',Updated=TO_TIMESTAMP('2008-01-24 18:37:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=187
;
-- Jan 24, 2008 6:37:07 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=187
;
-- Jan 24, 2008 6:37:14 PM CST
-- Fixed issue with Workflow MInOut process and Movement Process
UPDATE AD_Workflow SET IsValid='Y', AD_WF_Node_ID=187,Updated=TO_TIMESTAMP('2008-01-24 18:37:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Workflow_ID=117
;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,685 @@
-- Feb 11, 2008 12:44:51 PM CST
-- Implementing Distribution Network
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,54310,53340,0,19,53020,'DD_NetworkDistribution_ID',TO_TIMESTAMP('2008-02-11 12:44:48','YYYY-MM-DD HH24:MI:SS'),0,'EE01',22,'Y','N','N','N','N','N','N','N','N','N','Y','Network Distribution',0,TO_TIMESTAMP('2008-02-11 12:44:48','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 11, 2008 12:44:51 PM CST
-- Implementing Distribution Network
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54310 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 11, 2008 12:44:58 PM CST
-- Implementing Distribution Network
ALTER TABLE PP_Product_Planning ADD COLUMN DD_NetworkDistribution_ID NUMERIC(10)
;
-- Feb 11, 2008 12:45:22 PM CST
-- Implementing Distribution Network
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54310,54392,0,53030,TO_TIMESTAMP('2008-02-11 12:45:18','YYYY-MM-DD HH24:MI:SS'),0,22,'EE01','Y','Y','Y','N','N','N','N','N','Network Distribution',TO_TIMESTAMP('2008-02-11 12:45:18','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 11, 2008 12:45:22 PM CST
-- Implementing Distribution Network
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54392 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54392
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=53519
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=53520
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=53521
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=53522
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=53523
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=53524
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=53525
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=53526
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=53527
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=53528
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=53529
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=53530
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=53531
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=53532
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=53533
;
-- Feb 11, 2008 12:45:43 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=53534
;
-- Feb 11, 2008 12:46:17 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Is Create Plan', PrintName='Is Create Plan',Updated=TO_TIMESTAMP('2008-02-11 12:46:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53258
;
-- Feb 11, 2008 12:46:18 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53258
;
-- Feb 11, 2008 12:46:18 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='IsCreatePlan', Name='Is Create Plan', Description=NULL, Help=NULL WHERE AD_Element_ID=53258
;
-- Feb 11, 2008 12:46:18 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Is Create Plan', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53258) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:46:18 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsCreatePlan', Name='Is Create Plan', Description=NULL, Help=NULL, AD_Element_ID=53258 WHERE UPPER(ColumnName)='ISCREATEPLAN' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:46:18 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsCreatePlan', Name='Is Create Plan', Description=NULL, Help=NULL WHERE AD_Element_ID=53258 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:46:18 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Is Create Plan', Name='Is Create Plan' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53258)
;
-- Feb 11, 2008 12:46:18 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Is Create Plan', Name='Is Create Plan' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53258)
;
-- Feb 11, 2008 12:46:40 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Is Demand', PrintName='Is Demand',Updated=TO_TIMESTAMP('2008-02-11 12:46:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53259
;
-- Feb 11, 2008 12:46:40 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53259
;
-- Feb 11, 2008 12:46:40 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='IsDemand', Name='Is Demand', Description=NULL, Help=NULL WHERE AD_Element_ID=53259
;
-- Feb 11, 2008 12:46:40 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Is Demand', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53259) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:46:41 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsDemand', Name='Is Demand', Description=NULL, Help=NULL, AD_Element_ID=53259 WHERE UPPER(ColumnName)='ISDEMAND' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:46:41 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsDemand', Name='Is Demand', Description=NULL, Help=NULL WHERE AD_Element_ID=53259 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:46:41 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Is Demand', Name='Is Demand' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53259)
;
-- Feb 11, 2008 12:46:41 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Is Demand', Name='Is Demand' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53259)
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Is Issue', PrintName='Is Issue',Updated=TO_TIMESTAMP('2008-02-11 12:47:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53260
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53260
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='IsIssue', Name='Is Issue', Description=NULL, Help=NULL WHERE AD_Element_ID=53260
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Is Issue', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53260) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsIssue', Name='Is Issue', Description=NULL, Help=NULL, AD_Element_ID=53260 WHERE UPPER(ColumnName)='ISISSUE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsIssue', Name='Is Issue', Description=NULL, Help=NULL WHERE AD_Element_ID=53260 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Is Issue', Name='Is Issue' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53260)
;
-- Feb 11, 2008 12:47:02 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Is Issue', Name='Is Issue' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53260)
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Is MPS', PrintName='Is MPS',Updated=TO_TIMESTAMP('2008-02-11 12:47:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53261
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53261
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='IsMPS', Name='Is MPS', Description=NULL, Help=NULL WHERE AD_Element_ID=53261
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Is MPS', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53261) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsMPS', Name='Is MPS', Description=NULL, Help=NULL, AD_Element_ID=53261 WHERE UPPER(ColumnName)='ISMPS' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsMPS', Name='Is MPS', Description=NULL, Help=NULL WHERE AD_Element_ID=53261 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Is MPS', Name='Is MPS' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53261)
;
-- Feb 11, 2008 12:47:27 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Is MPS', Name='Is MPS' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53261)
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Is Required MRP', PrintName='Is Required MRP',Updated=TO_TIMESTAMP('2008-02-11 12:47:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53262
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53262
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='IsRequiredMRP', Name='Is Required MRP', Description=NULL, Help=NULL WHERE AD_Element_ID=53262
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Is Required MRP', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53262) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsRequiredMRP', Name='Is Required MRP', Description=NULL, Help=NULL, AD_Element_ID=53262 WHERE UPPER(ColumnName)='ISREQUIREDMRP' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsRequiredMRP', Name='Is Required MRP', Description=NULL, Help=NULL WHERE AD_Element_ID=53262 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Is Required MRP', Name='Is Required MRP' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53262)
;
-- Feb 11, 2008 12:47:50 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Is Required MRP', Name='Is Required MRP' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53262)
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Is Supply', PrintName='Is Supply',Updated=TO_TIMESTAMP('2008-02-11 12:48:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53263
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53263
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='IsSupply', Name='Is Supply', Description=NULL, Help=NULL WHERE AD_Element_ID=53263
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Is Supply', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53263) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsSupply', Name='Is Supply', Description=NULL, Help=NULL, AD_Element_ID=53263 WHERE UPPER(ColumnName)='ISSUPPLY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='IsSupply', Name='Is Supply', Description=NULL, Help=NULL WHERE AD_Element_ID=53263 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Is Supply', Name='Is Supply' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53263)
;
-- Feb 11, 2008 12:48:11 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Is Supply', Name='Is Supply' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53263)
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET PrintName='Order Max',Updated=TO_TIMESTAMP('2008-02-11 12:48:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53264
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53264
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='Order_Max', Name='Order_Max', Description=NULL, Help=NULL WHERE AD_Element_ID=53264
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Order_Max', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53264) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Max', Name='Order_Max', Description=NULL, Help=NULL, AD_Element_ID=53264 WHERE UPPER(ColumnName)='ORDER_MAX' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Max', Name='Order_Max', Description=NULL, Help=NULL WHERE AD_Element_ID=53264 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Order Max', Name='Order_Max' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53264)
;
-- Feb 11, 2008 12:48:33 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Order Max', Name='Order_Max' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53264)
;
-- Feb 11, 2008 12:48:39 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET Name='Order Max',Updated=TO_TIMESTAMP('2008-02-11 12:48:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53391
;
-- Feb 11, 2008 12:48:39 PM CST
-- Implementing Distribution Network
UPDATE AD_Column_Trl SET IsTranslated='N' WHERE AD_Column_ID=53391
;
-- Feb 11, 2008 12:48:39 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Order Max', Description=NULL, Help=NULL WHERE AD_Column_ID=53391 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Order Period', PrintName='Order Period',Updated=TO_TIMESTAMP('2008-02-11 12:48:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53265
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53265
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='Order_Period', Name='Order Period', Description=NULL, Help=NULL WHERE AD_Element_ID=53265
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Order Period', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53265) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Period', Name='Order Period', Description=NULL, Help=NULL, AD_Element_ID=53265 WHERE UPPER(ColumnName)='ORDER_PERIOD' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Period', Name='Order Period', Description=NULL, Help=NULL WHERE AD_Element_ID=53265 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Order Period', Name='Order Period' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53265)
;
-- Feb 11, 2008 12:48:57 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Order Period', Name='Order Period' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53265)
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Order Policy', PrintName='Order Policy',Updated=TO_TIMESTAMP('2008-02-11 12:49:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53266
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53266
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='Order_Policy', Name='Order Policy', Description=NULL, Help=NULL WHERE AD_Element_ID=53266
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Order Policy', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53266) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Policy', Name='Order Policy', Description=NULL, Help=NULL, AD_Element_ID=53266 WHERE UPPER(ColumnName)='ORDER_POLICY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Policy', Name='Order Policy', Description=NULL, Help=NULL WHERE AD_Element_ID=53266 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Order Policy', Name='Order Policy' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53266)
;
-- Feb 11, 2008 12:49:17 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Order Policy', Name='Order Policy' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53266)
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Order Qty', PrintName='Order Qty',Updated=TO_TIMESTAMP('2008-02-11 12:49:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53267
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53267
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='Order_Qty', Name='Order Qty', Description=NULL, Help=NULL WHERE AD_Element_ID=53267
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Order Qty', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53267) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Qty', Name='Order Qty', Description=NULL, Help=NULL, AD_Element_ID=53267 WHERE UPPER(ColumnName)='ORDER_QTY' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Order_Qty', Name='Order Qty', Description=NULL, Help=NULL WHERE AD_Element_ID=53267 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Order Qty', Name='Order Qty' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53267)
;
-- Feb 11, 2008 12:49:37 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Order Qty', Name='Order Qty' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53267)
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Planner ID', PrintName='Planner ID',Updated=TO_TIMESTAMP('2008-02-11 12:49:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53269
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53269
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='Planner_ID', Name='Planner ID', Description=NULL, Help=NULL WHERE AD_Element_ID=53269
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Planner ID', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53269) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Planner_ID', Name='Planner ID', Description=NULL, Help=NULL, AD_Element_ID=53269 WHERE UPPER(ColumnName)='PLANNER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Planner_ID', Name='Planner ID', Description=NULL, Help=NULL WHERE AD_Element_ID=53269 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Planner ID', Name='Planner ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53269)
;
-- Feb 11, 2008 12:49:58 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Planner ID', Name='Planner ID' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53269)
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Planner', PrintName='Planner',Updated=TO_TIMESTAMP('2008-02-11 12:50:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53269
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53269
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='Planner_ID', Name='Planner', Description=NULL, Help=NULL WHERE AD_Element_ID=53269
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Planner', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53269) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Planner_ID', Name='Planner', Description=NULL, Help=NULL, AD_Element_ID=53269 WHERE UPPER(ColumnName)='PLANNER_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='Planner_ID', Name='Planner', Description=NULL, Help=NULL WHERE AD_Element_ID=53269 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Planner', Name='Planner' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53269)
;
-- Feb 11, 2008 12:50:07 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Planner', Name='Planner' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53269)
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Time Fence', PrintName='Time Fence',Updated=TO_TIMESTAMP('2008-02-11 12:50:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53270
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53270
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='TimeFence', Name='Time Fence', Description=NULL, Help=NULL WHERE AD_Element_ID=53270
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Time Fence', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53270) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='TimeFence', Name='Time Fence', Description=NULL, Help=NULL, AD_Element_ID=53270 WHERE UPPER(ColumnName)='TIMEFENCE' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='TimeFence', Name='Time Fence', Description=NULL, Help=NULL WHERE AD_Element_ID=53270 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Time Fence', Name='Time Fence' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53270)
;
-- Feb 11, 2008 12:50:22 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Time Fence', Name='Time Fence' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53270)
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Element SET Name='Transfert Time', PrintName='Transfert Time',Updated=TO_TIMESTAMP('2008-02-11 12:50:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53271
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53271
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Column SET ColumnName='TransfertTime', Name='Transfert Time', Description=NULL, Help=NULL WHERE AD_Element_ID=53271
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Field SET Name='Transfert Time', Description=NULL, Help=NULL WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53271) AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='TransfertTime', Name='Transfert Time', Description=NULL, Help=NULL, AD_Element_ID=53271 WHERE UPPER(ColumnName)='TRANSFERTTIME' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_Process_Para SET ColumnName='TransfertTime', Name='Transfert Time', Description=NULL, Help=NULL WHERE AD_Element_ID=53271 AND IsCentrallyMaintained='Y'
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Transfert Time', Name='Transfert Time' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53271)
;
-- Feb 11, 2008 12:50:37 PM CST
-- Implementing Distribution Network
UPDATE AD_PrintFormatItem SET PrintName='Transfert Time', Name='Transfert Time' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53271)
;

View File

@ -0,0 +1,283 @@
-- Feb 12, 2008 12:59:56 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Table (AD_Client_ID,AD_Org_ID,AD_Table_ID,AccessLevel,Created,CreatedBy,EntityType,ImportTable,IsActive,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEnabled,IsView,Name,ReplicationType,TableName,Updated,UpdatedBy) VALUES (0,0,53062,'3',TO_TIMESTAMP('2008-02-12 12:59:54','YYYY-MM-DD HH24:MI:SS'),0,'EE01','N','Y','N','Y','N','N','N','Order BOM MA','L','PP_Order_BOMLineMA',TO_TIMESTAMP('2008-02-12 12:59:54','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 12, 2008 12:59:56 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Table_Trl (AD_Language,AD_Table_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Table_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Table t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Table_ID=53062 AND EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Table_ID!=t.AD_Table_ID)
;
-- Feb 12, 2008 12:59:57 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (0,0,53079,TO_TIMESTAMP('2008-02-12 12:59:56','YYYY-MM-DD HH24:MI:SS'),0,1000000,50000,'Table PP_Order_BOMLineMA',1,'Y','N','Y','Y','PP_Order_BOMLineMA','N',1000000,TO_TIMESTAMP('2008-02-12 12:59:56','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 12, 2008 12:59:58 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='Direct Table Access', EntityType='D', Help=NULL, IsActive='Y', Name='Table Direct', ValidationType='D',Updated=TO_TIMESTAMP('2008-02-12 12:59:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=19
;
-- Feb 12, 2008 12:59:58 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=19
;
-- Feb 12, 2008 12:59:59 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54311,102,0,19,53062,'AD_Client_ID',TO_TIMESTAMP('2008-02-12 12:59:58','YYYY-MM-DD HH24:MI:SS'),0,'Client/Tenant for this installation.','EE01',10,'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','N','N','N','N','Y','N','N','Y','N','N','Client',TO_TIMESTAMP('2008-02-12 12:59:58','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 12:59:59 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54311 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 12:59:59 PM CST
-- Include table PP_Order_BOMLineMA
CREATE TABLE PP_Order_BOMLineMA (AD_Client_ID NUMERIC(10) NOT NULL)
;
-- Feb 12, 2008 1:00:01 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54312,113,0,19,53062,'AD_Org_ID',TO_TIMESTAMP('2008-02-12 13:00:00','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client','EE01',10,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','N','N','N','N','Y','N','N','Y','N','N','Organization',TO_TIMESTAMP('2008-02-12 13:00:00','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:01 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54312 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:01 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD COLUMN AD_Org_ID NUMERIC(10) NOT NULL
;
-- Feb 12, 2008 1:00:01 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='Date with time', EntityType='D', Help=NULL, IsActive='Y', Name='Date+Time', ValidationType='D',Updated=TO_TIMESTAMP('2008-02-12 13:00:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=16
;
-- Feb 12, 2008 1:00:01 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=16
;
-- Feb 12, 2008 1:00:02 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54313,245,0,16,53062,'Created',TO_TIMESTAMP('2008-02-12 13:00:01','YYYY-MM-DD HH24:MI:SS'),0,'Date this record was created','EE01',7,'The Created field indicates the date that this record was created.','Y','N','N','N','N','Y','N','N','Y','N','N','Created',TO_TIMESTAMP('2008-02-12 13:00:01','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:02 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54313 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:02 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD COLUMN Created TIMESTAMP NOT NULL
;
-- Feb 12, 2008 1:00:02 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='Table List', EntityType='D', Help=NULL, IsActive='Y', Name='Table', ValidationType='D',Updated=TO_TIMESTAMP('2008-02-12 13:00:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=18
;
-- Feb 12, 2008 1:00:02 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=18
;
-- Feb 12, 2008 1:00:03 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='User selection', EntityType='D', Help=NULL, IsActive='Y', Name='AD_User', ValidationType='T',Updated=TO_TIMESTAMP('2008-02-12 13:00:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=110
;
-- Feb 12, 2008 1:00:03 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=110
;
-- Feb 12, 2008 1:00:03 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Ref_Table SET AD_Table_ID = 114, AD_Display = 213, AD_Key = 212, isValueDisplayed = 'N', OrderByClause = 'AD_User.Name', EntityType ='D', WhereClause = '' WHERE AD_Reference_ID = 110
;
-- Feb 12, 2008 1:00:04 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54314,246,0,18,110,53062,'CreatedBy',TO_TIMESTAMP('2008-02-12 13:00:03','YYYY-MM-DD HH24:MI:SS'),0,'User who created this records','EE01',10,'The Created By field indicates the user who created this record.','Y','N','N','N','N','Y','N','N','Y','N','N','Created By',TO_TIMESTAMP('2008-02-12 13:00:03','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:04 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54314 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:04 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD COLUMN CreatedBy NUMERIC(10) NOT NULL
;
-- Feb 12, 2008 1:00:04 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='CheckBox', EntityType='D', Help=NULL, IsActive='Y', Name='Yes-No', ValidationType='D',Updated=TO_TIMESTAMP('2008-02-12 13:00:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=20
;
-- Feb 12, 2008 1:00:04 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=20
;
-- Feb 12, 2008 1:00:05 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54315,348,0,20,53062,'IsActive',TO_TIMESTAMP('2008-02-12 13:00:04','YYYY-MM-DD HH24:MI:SS'),0,'The record is active in the system','EE01',1,'There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Y','N','N','N','N','Y','N','N','Y','N','Y','Active',TO_TIMESTAMP('2008-02-12 13:00:04','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:05 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54315 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:05 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD COLUMN IsActive CHAR(1) CHECK (IsActive IN ('Y','N')) NOT NULL
;
-- Feb 12, 2008 1:00:05 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='Product Attribute', EntityType='D', Help=NULL, IsActive='Y', Name='Product Attribute', ValidationType='D',Updated=TO_TIMESTAMP('2008-02-12 13:00:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=35
;
-- Feb 12, 2008 1:00:05 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=35
;
-- Feb 12, 2008 1:00:06 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54316,2019,0,35,53062,'M_AttributeSetInstance_ID',TO_TIMESTAMP('2008-02-12 13:00:05','YYYY-MM-DD HH24:MI:SS'),0,'Product Attribute Set Instance','EE01',10,'The values of the actual Product Attribute Instances. The product level attributes are defined on Product level.','Y','N','N','N','N','Y','N','N','Y','N','Y','Attribute Set Instance',TO_TIMESTAMP('2008-02-12 13:00:05','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:06 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54316 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:06 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD COLUMN M_AttributeSetInstance_ID NUMERIC(10) NOT NULL
;
-- Feb 12, 2008 1:00:06 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='Quantity data type', EntityType='D', Help=NULL, IsActive='Y', Name='Quantity', ValidationType='D',Updated=TO_TIMESTAMP('2008-02-12 13:00:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=29
;
-- Feb 12, 2008 1:00:06 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=29
;
-- Feb 12, 2008 1:00:08 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54317,1038,0,29,53062,'MovementQty',TO_TIMESTAMP('2008-02-12 13:00:06','YYYY-MM-DD HH24:MI:SS'),0,'Quantity of a product moved.','EE01',22,'The Movement Quantity indicates the quantity of a product that has been moved.','Y','N','N','N','N','Y','N','N','Y','N','Y','Movement Quantity',TO_TIMESTAMP('2008-02-12 13:00:06','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:08 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54317 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:08 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD COLUMN MovementQty NUMERIC NOT NULL
;
-- Feb 12, 2008 1:00:08 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference SET Description='10 Digit Identifier', EntityType='D', Help=NULL, IsActive='Y', Name='ID', ValidationType='D',Updated=TO_TIMESTAMP('2008-02-12 13:00:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Reference_ID=13
;
-- Feb 12, 2008 1:00:08 PM CST
-- Include table PP_Order_BOMLineMA
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=13
;
-- Feb 12, 2008 1:00:09 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53343,0,'PP_Order_BOMLineMA_ID',TO_TIMESTAMP('2008-02-12 13:00:08','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','PP_Order_BOMLineMA_ID','PP_Order_BOMLineMA_ID',TO_TIMESTAMP('2008-02-12 13:00:08','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Feb 12, 2008 1:00:09 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53343 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- Feb 12, 2008 1:00:10 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54318,53343,0,13,53062,'PP_Order_BOMLineMA_ID',TO_TIMESTAMP('2008-02-12 13:00:08','YYYY-MM-DD HH24:MI:SS'),0,'EE01',10,'Y','N','N','N','Y','Y','N','N','Y','N','N','PP_Order_BOMLineMA_ID',TO_TIMESTAMP('2008-02-12 13:00:08','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:10 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54318 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:10 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD COLUMN PP_Order_BOMLineMA_ID NUMERIC(10) NOT NULL
;
-- Feb 12, 2008 1:00:10 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD CONSTRAINT PP_Order_BOMLineMA_Key PRIMARY KEY (PP_Order_BOMLineMA_ID)
;
-- Feb 12, 2008 1:00:11 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54319,53275,0,19,53062,'PP_Order_BOMLine_ID',TO_TIMESTAMP('2008-02-12 13:00:10','YYYY-MM-DD HH24:MI:SS'),0,'EE01',10,'Y','N','N','N','N','Y','N','N','Y','N','Y','PP_Order_BOMLine_ID',TO_TIMESTAMP('2008-02-12 13:00:10','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:11 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54319 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:11 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD COLUMN PP_Order_BOMLine_ID NUMERIC(10) NOT NULL
;
-- Feb 12, 2008 1:00:14 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54320,607,0,16,53062,'Updated',TO_TIMESTAMP('2008-02-12 13:00:11','YYYY-MM-DD HH24:MI:SS'),0,'Date this record was updated','EE01',7,'The Updated field indicates the date that this record was updated.','Y','N','N','N','N','Y','N','N','Y','N','N','Updated',TO_TIMESTAMP('2008-02-12 13:00:11','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:14 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54320 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:14 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD COLUMN Updated TIMESTAMP NOT NULL
;
-- Feb 12, 2008 1:00:14 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,Updated,UpdatedBy,Version) VALUES (0,54321,608,0,18,110,53062,'UpdatedBy',TO_TIMESTAMP('2008-02-12 13:00:14','YYYY-MM-DD HH24:MI:SS'),0,'User who updated this records','EE01',10,'The Updated By field indicates the user who updated this record.','Y','N','N','N','N','Y','N','N','Y','N','N','Updated By',TO_TIMESTAMP('2008-02-12 13:00:14','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Feb 12, 2008 1:00:14 PM CST
-- Include table PP_Order_BOMLineMA
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54321 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Feb 12, 2008 1:00:15 PM CST
-- Include table PP_Order_BOMLineMA
ALTER TABLE PP_Order_BOMLineMA ADD COLUMN UpdatedBy NUMERIC(10) NOT NULL
;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,111 @@
-- Mar 1, 2008 10:25:14 PM CST
-- Qty Safety stock
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,Help,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53354,0,'SafetyStock',TO_TIMESTAMP('2008-03-01 22:25:08','YYYY-MM-DD HH24:MI:SS'),0,'Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs','EE01','Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.
Rereference:
http://en.wikipedia.org/wiki/Safety_stock','Y','Qty Safety Stock','Qty Safety Stock',TO_TIMESTAMP('2008-03-01 22:25:08','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 1, 2008 10:25:14 PM CST
-- Qty Safety stock
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53354 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- Mar 1, 2008 10:26:36 PM CST
-- Qty Safety stock
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,54380,53354,0,29,53020,'SafetyStock',TO_TIMESTAMP('2008-03-01 22:26:35','YYYY-MM-DD HH24:MI:SS'),0,'Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs','EE01',22,'Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.
Rereference:
http://en.wikipedia.org/wiki/Safety_stock','Y','N','N','N','N','N','N','N','N','N','Y','Qty Safety Stock',0,TO_TIMESTAMP('2008-03-01 22:26:35','YYYY-MM-DD HH24:MI:SS'),0,1.000000000000)
;
-- Mar 1, 2008 10:26:36 PM CST
-- Qty Safety stock
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=54380 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Mar 1, 2008 10:26:40 PM CST
-- Qty Safety stock
ALTER TABLE PP_Product_Planning ADD COLUMN SafetyStock NUMERIC
;
-- Mar 1, 2008 10:27:09 PM CST
-- Qty Safety stock
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,54380,54420,0,53030,TO_TIMESTAMP('2008-03-01 22:27:08','YYYY-MM-DD HH24:MI:SS'),0,'Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs',22,'EE01','Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.
Rereference:
http://en.wikipedia.org/wiki/Safety_stock','Y','Y','Y','N','N','N','N','N','Qty Safety Stock',TO_TIMESTAMP('2008-03-01 22:27:08','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 1, 2008 10:27:09 PM CST
-- Qty Safety stock
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54420 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Mar 1, 2008 10:28:00 PM CST
-- Qty Safety stock
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=54420
;
-- Mar 1, 2008 10:28:00 PM CST
-- Qty Safety stock
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=53533
;
-- Mar 1, 2008 10:28:00 PM CST
-- Qty Safety stock
UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=53534
;
-- Mar 1, 2008 10:28:29 PM CST
-- Qty Safety stock
UPDATE AD_Element SET Name='Safety Stock Qty', PrintName='Safety Stock Qty',Updated=TO_TIMESTAMP('2008-03-01 22:28:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Element_ID=53354
;
-- Mar 1, 2008 10:28:29 PM CST
-- Qty Safety stock
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=53354
;
-- Mar 1, 2008 10:28:29 PM CST
-- Qty Safety stock
UPDATE AD_Column SET ColumnName='SafetyStock', Name='Safety Stock Qty', Description='Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs', Help='Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.
Rereference:
http://en.wikipedia.org/wiki/Safety_stock' WHERE AD_Element_ID=53354
;
-- Mar 1, 2008 10:28:30 PM CST
-- Qty Safety stock
UPDATE AD_Field SET Name='Safety Stock Qty', Description='Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs', Help='Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.
Rereference:
http://en.wikipedia.org/wiki/Safety_stock' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=53354) AND IsCentrallyMaintained='Y'
;
-- Mar 1, 2008 10:28:30 PM CST
-- Qty Safety stock
UPDATE AD_Process_Para SET ColumnName='SafetyStock', Name='Safety Stock Qty', Description='Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs', Help='Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.
Rereference:
http://en.wikipedia.org/wiki/Safety_stock', AD_Element_ID=53354 WHERE UPPER(ColumnName)='SafetyStock' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- Mar 1, 2008 10:28:30 PM CST
-- Qty Safety stock
UPDATE AD_Process_Para SET ColumnName='SafetyStock', Name='Safety Stock Qty', Description='Safety stock is a term used to describe a level of stock that is maintained below the cycle stock to buffer against stock-outs', Help='Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.
Rereference:
http://en.wikipedia.org/wiki/Safety_stock' WHERE AD_Element_ID=53354 AND IsCentrallyMaintained='Y'
;
-- Mar 1, 2008 10:28:30 PM CST
-- Qty Safety stock
UPDATE AD_PrintFormatItem SET PrintName='Safety Stock Qty', Name='Safety Stock Qty' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53354)
;
-- Mar 1, 2008 10:28:30 PM CST
-- Qty Safety stock
UPDATE AD_PrintFormatItem SET PrintName='Safety Stock Qty', Name='Safety Stock Qty' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=53354)
;

View File

@ -0,0 +1,133 @@
-- Mar 2, 2008 10:27:20 PM CST
-- Fixed MRP
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=53514
;
-- Mar 2, 2008 10:27:20 PM CST
-- Fixed MRP
DELETE FROM AD_Field WHERE AD_Field_ID=53514
;
-- Mar 2, 2008 10:27:24 PM CST
-- Fixed MRP
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=53515
;
-- Mar 2, 2008 10:27:24 PM CST
-- Fixed MRP
DELETE FROM AD_Field WHERE AD_Field_ID=53515
;
-- Mar 2, 2008 10:27:58 PM CST
-- Fixed MRP
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=53383
;
-- Mar 2, 2008 10:27:58 PM CST
-- Fixed MRP
DELETE FROM AD_Column WHERE AD_Column_ID=53383
;
-- Mar 2, 2008 10:28:18 PM CST
-- Fixed MRP
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=53388
;
-- Mar 2, 2008 10:28:18 PM CST
-- Fixed MRP
DELETE FROM AD_Column WHERE AD_Column_ID=53388
;
-- Mar 2, 2008 10:32:01 PM CST
-- Fixed MRP
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1777,0,53016,53132,19,52002,'S_Resource_ID',TO_TIMESTAMP('2008-03-02 22:31:55','YYYY-MM-DD HH24:MI:SS'),0,'EE01',22,'Y','Y','Y','N','S_Resource_ID',12,TO_TIMESTAMP('2008-03-02 22:31:55','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 2, 2008 10:32:01 PM CST
-- Fixed MRP
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53132 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Mar 2, 2008 10:32:22 PM CST
-- Fixed MRP
UPDATE AD_Process_Para SET Name='Resource',Updated=TO_TIMESTAMP('2008-03-02 22:32:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53132
;
-- Mar 2, 2008 10:32:22 PM CST
-- Fixed MRP
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53132
;
-- Mar 2, 2008 10:34:50 PM CST
-- Fixed MRP
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,459,0,53016,53133,19,'M_Warehouse_ID',TO_TIMESTAMP('2008-03-02 22:34:50','YYYY-MM-DD HH24:MI:SS'),0,'Storage Warehouse and Service Point','EE01',22,'The Warehouse identifies a unique Warehouse where products are stored or Services are provided.','Y','Y','N','N','Warehouse',40,TO_TIMESTAMP('2008-03-02 22:34:50','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 2, 2008 10:34:50 PM CST
-- Fixed MRP
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53133 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Mar 2, 2008 10:35:29 PM CST
-- Fixed MRP
UPDATE AD_Process_Para SET AD_Val_Rule_ID=202,Updated=TO_TIMESTAMP('2008-03-02 22:35:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53054
;
-- Mar 2, 2008 10:35:37 PM CST
-- Fixed MRP
UPDATE AD_Process_Para SET SeqNo=20,Updated=TO_TIMESTAMP('2008-03-02 22:35:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53132
;
-- Mar 2, 2008 10:35:43 PM CST
-- Fixed MRP
UPDATE AD_Process_Para SET SeqNo=30,Updated=TO_TIMESTAMP('2008-03-02 22:35:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53133
;
-- Mar 2, 2008 10:35:49 PM CST
-- Fixed MRP
UPDATE AD_Process_Para SET SeqNo=40,Updated=TO_TIMESTAMP('2008-03-02 22:35:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53053
;
-- Mar 2, 2008 10:40:57 PM CST
-- Fixed MRP
DELETE FROM AD_Process_Para_Trl WHERE AD_Process_Para_ID=53040
;
-- Mar 2, 2008 10:40:57 PM CST
-- Fixed MRP
DELETE FROM AD_Process_Para WHERE AD_Process_Para_ID=53040
;
-- Mar 2, 2008 10:41:02 PM CST
-- Fixed MRP
DELETE FROM AD_Process_Para_Trl WHERE AD_Process_Para_ID=53041
;
-- Mar 2, 2008 10:41:02 PM CST
-- Fixed MRP
DELETE FROM AD_Process_Para WHERE AD_Process_Para_ID=53041
;
-- Mar 2, 2008 10:41:13 PM CST
-- Fixed MRP
DELETE FROM AD_Element_Trl WHERE AD_Element_ID=53259
;
-- Mar 2, 2008 10:41:13 PM CST
-- Fixed MRP
DELETE FROM AD_Element WHERE AD_Element_ID=53259
;
-- Mar 2, 2008 10:41:25 PM CST
-- Fixed MRP
DELETE FROM AD_Element_Trl WHERE AD_Element_ID=53263
;
-- Mar 2, 2008 10:41:25 PM CST
-- Fixed MRP
DELETE FROM AD_Element WHERE AD_Element_ID=53263
;
ALTER TABLE PP_Product_Planning DROP COLUMN IsSupply;
ALTER TABLE PP_Product_Planning DROP COLUMN IsDemand;

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,45 @@
-- Mar 5, 2008 3:39:11 AM CST
-- Default comment for updating dictionary
UPDATE AD_SysConfig SET Value='New Event Model Validator',Updated=TO_TIMESTAMP('2008-03-05 03:39:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_SysConfig_ID=50003
;
-- Mar 5, 2008 3:39:42 AM CST
-- New Event Model Validator
UPDATE AD_SysConfig SET Value='user',Updated=TO_TIMESTAMP('2008-03-05 03:39:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_SysConfig_ID=50001
;
-- Mar 5, 2008 3:39:46 AM CST
-- New Event Model Validator
UPDATE AD_SysConfig SET Value='password',Updated=TO_TIMESTAMP('2008-03-05 03:39:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_SysConfig_ID=50002
;
-- Mar 5, 2008 3:39:53 AM CST
-- New Event Model Validator
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53337,53237,TO_TIMESTAMP('2008-03-05 03:39:52','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Table After New Replication',TO_TIMESTAMP('2008-03-05 03:39:52','YYYY-MM-DD HH24:MI:SS'),0,'TANR')
;
-- Mar 5, 2008 3:39:53 AM CST
-- New Event Model Validator
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53337 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID)
;
-- Mar 5, 2008 3:40:44 AM CST
-- New Event Model Validator
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53338,53237,TO_TIMESTAMP('2008-03-05 03:40:43','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Table After Change Replication',TO_TIMESTAMP('2008-03-05 03:40:43','YYYY-MM-DD HH24:MI:SS'),0,'TACR')
;
-- Mar 5, 2008 3:40:44 AM CST
-- New Event Model Validator
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53338 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID)
;
-- Mar 5, 2008 3:41:37 AM CST
-- New Event Model Validator
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53339,53237,TO_TIMESTAMP('2008-03-05 03:41:36','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','Table Before Delete Replication',TO_TIMESTAMP('2008-03-05 03:41:36','YYYY-MM-DD HH24:MI:SS'),0,'TBDR')
;
-- Mar 5, 2008 3:41:37 AM CST
-- New Event Model Validator
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53339 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID)
;

View File

@ -0,0 +1,2 @@
UPDATE AD_Table SET EntityType='D' WHERE AD_Table_ID=53071;
UPDATE AD_Column SET EntityType='D' WHERE AD_Table_ID=53071;

View File

@ -0,0 +1,95 @@
-- Mar 5, 2008 9:50:28 PM CST
-- Workflow Replication
UPDATE AD_WF_Node SET Description='Import Proccesor', Name='Import Proccesor',Updated=TO_TIMESTAMP('2008-03-05 21:50:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_WF_Node_ID=50064
;
-- Mar 5, 2008 9:50:28 PM CST
-- Workflow Replication
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=50064
;
-- Mar 5, 2008 9:51:28 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node (AD_Client_ID,AD_Org_ID,AD_WF_Node_ID,AD_Window_ID,AD_Workflow_ID,"action",Cost,Created,CreatedBy,Description,DocAction,Duration,DynPriorityChange,EntityType,IsActive,IsCentrallyMaintained,JoinElement,"limit",Name,Priority,SplitElement,Updated,UpdatedBy,Value,WaitTime,WaitingTime,WorkingTime,XPosition,YPosition) VALUES (0,0,50065,53029,50012,'W',0,TO_TIMESTAMP('2008-03-05 21:51:21','YYYY-MM-DD HH24:MI:SS'),100,'Import Processor Type','CO',0,0,'EE05','Y','N','X',0,'Import Processor Type',0,'X',TO_TIMESTAMP('2008-03-05 21:51:21','YYYY-MM-DD HH24:MI:SS'),100,'Import Processor Type',0,0,0,0,0)
;
-- Mar 5, 2008 9:51:28 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node_Trl (AD_Language,AD_WF_Node_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_WF_Node_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_WF_Node t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_WF_Node_ID=50065 AND EXISTS (SELECT * FROM AD_WF_Node_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_WF_Node_ID!=t.AD_WF_Node_ID)
;
-- Mar 5, 2008 9:52:12 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node (AD_Client_ID,AD_Org_ID,AD_WF_Node_ID,AD_Window_ID,AD_Workflow_ID,"action",Cost,Created,CreatedBy,Description,DocAction,Duration,DynPriorityChange,EntityType,IsActive,IsCentrallyMaintained,JoinElement,"limit",Name,Priority,SplitElement,Updated,UpdatedBy,Value,WaitTime,WaitingTime,WorkingTime,XPosition,YPosition) VALUES (0,0,50066,53025,50012,'W',0,TO_TIMESTAMP('2008-03-05 21:52:11','YYYY-MM-DD HH24:MI:SS'),100,'Export Format','CO',0,0,'EE05','Y','N','X',0,'Export Format',0,'X',TO_TIMESTAMP('2008-03-05 21:52:11','YYYY-MM-DD HH24:MI:SS'),100,'Export Format',0,0,0,0,0)
;
-- Mar 5, 2008 9:52:12 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node_Trl (AD_Language,AD_WF_Node_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_WF_Node_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_WF_Node t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_WF_Node_ID=50066 AND EXISTS (SELECT * FROM AD_WF_Node_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_WF_Node_ID!=t.AD_WF_Node_ID)
;
-- Mar 5, 2008 9:53:10 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node (AD_Client_ID,AD_Org_ID,AD_WF_Node_ID,AD_Window_ID,AD_Workflow_ID,"action",Cost,Created,CreatedBy,Description,DocAction,Duration,DynPriorityChange,EntityType,IsActive,IsCentrallyMaintained,JoinElement,"limit",Name,Priority,SplitElement,Updated,UpdatedBy,Value,WaitTime,WaitingTime,WorkingTime,XPosition,YPosition) VALUES (0,0,50067,53026,50012,'W',0,TO_TIMESTAMP('2008-03-05 21:53:09','YYYY-MM-DD HH24:MI:SS'),100,'Export Processor','CO',0,0,'EE05','Y','N','X',0,'Export Processor',0,'X',TO_TIMESTAMP('2008-03-05 21:53:09','YYYY-MM-DD HH24:MI:SS'),100,'Export Processor',0,0,0,0,0)
;
-- Mar 5, 2008 9:53:10 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node_Trl (AD_Language,AD_WF_Node_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_WF_Node_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_WF_Node t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_WF_Node_ID=50067 AND EXISTS (SELECT * FROM AD_WF_Node_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_WF_Node_ID!=t.AD_WF_Node_ID)
;
-- Mar 5, 2008 9:53:47 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node (AD_Client_ID,AD_Org_ID,AD_WF_Node_ID,AD_Window_ID,AD_Workflow_ID,"action",Cost,Created,CreatedBy,Description,DocAction,Duration,DynPriorityChange,EntityType,IsActive,IsCentrallyMaintained,JoinElement,"limit",Name,Priority,SplitElement,Updated,UpdatedBy,Value,WaitTime,WaitingTime,WorkingTime,XPosition,YPosition) VALUES (0,0,50068,53027,50012,'W',0,TO_TIMESTAMP('2008-03-05 21:53:46','YYYY-MM-DD HH24:MI:SS'),100,'Export Processor Type','CO',0,0,'EE05','Y','N','X',0,'Export Processor Type',0,'X',TO_TIMESTAMP('2008-03-05 21:53:46','YYYY-MM-DD HH24:MI:SS'),100,'Export Processor Type',0,0,0,0,0)
;
-- Mar 5, 2008 9:53:47 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node_Trl (AD_Language,AD_WF_Node_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_WF_Node_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_WF_Node t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_WF_Node_ID=50068 AND EXISTS (SELECT * FROM AD_WF_Node_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_WF_Node_ID!=t.AD_WF_Node_ID)
;
-- Mar 5, 2008 9:55:00 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node (AD_Client_ID,AD_Org_ID,AD_WF_Node_ID,AD_Window_ID,AD_Workflow_ID,"action",Cost,Created,CreatedBy,Description,DocAction,Duration,DynPriorityChange,EntityType,IsActive,IsCentrallyMaintained,JoinElement,"limit",Name,Priority,SplitElement,Updated,UpdatedBy,Value,WaitTime,WaitingTime,WorkingTime,XPosition,YPosition) VALUES (0,0,50069,285,50012,'W',0,TO_TIMESTAMP('2008-03-05 21:54:59','YYYY-MM-DD HH24:MI:SS'),100,'Replication Strategy','CO',0,0,'EE05','Y','N','X',0,'Replication Strategy',0,'X',TO_TIMESTAMP('2008-03-05 21:54:59','YYYY-MM-DD HH24:MI:SS'),100,'Replication Strategy',0,0,0,0,0)
;
-- Mar 5, 2008 9:55:00 PM CST
-- Workflow Replication
INSERT INTO AD_WF_Node_Trl (AD_Language,AD_WF_Node_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_WF_Node_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_WF_Node t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_WF_Node_ID=50069 AND EXISTS (SELECT * FROM AD_WF_Node_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_WF_Node_ID!=t.AD_WF_Node_ID)
;
-- Mar 5, 2008 9:55:31 PM CST
-- Workflow Replication
UPDATE AD_Workflow SET AD_WF_Node_ID=50069, IsValid='Y',Updated=TO_TIMESTAMP('2008-03-05 21:55:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Workflow_ID=50012
;
-- Mar 5, 2008 9:55:56 PM CST
-- Workflow Replication
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50066,50046,50069,TO_TIMESTAMP('2008-03-05 21:55:55','YYYY-MM-DD HH24:MI:SS'),100,'EE05','Y','N',10,TO_TIMESTAMP('2008-03-05 21:55:55','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 5, 2008 9:56:12 PM CST
-- Workflow Replication
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50068,50047,50066,TO_TIMESTAMP('2008-03-05 21:56:12','YYYY-MM-DD HH24:MI:SS'),100,'EE05','Y','N',10,TO_TIMESTAMP('2008-03-05 21:56:12','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 5, 2008 9:56:41 PM CST
-- Workflow Replication
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50067,50048,50068,TO_TIMESTAMP('2008-03-05 21:56:35','YYYY-MM-DD HH24:MI:SS'),100,'EE05','Y','N',10,TO_TIMESTAMP('2008-03-05 21:56:35','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 5, 2008 9:57:00 PM CST
-- Workflow Replication
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50065,50049,50067,TO_TIMESTAMP('2008-03-05 21:56:59','YYYY-MM-DD HH24:MI:SS'),100,'EE05','Y','N',10,TO_TIMESTAMP('2008-03-05 21:56:59','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 5, 2008 9:57:18 PM CST
-- Workflow Replication
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50064,50050,50065,TO_TIMESTAMP('2008-03-05 21:57:17','YYYY-MM-DD HH24:MI:SS'),100,'EE05','Y','N',10,TO_TIMESTAMP('2008-03-05 21:57:17','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 5, 2008 10:00:19 PM CST
-- Workflow Replication
DELETE FROM AD_WF_NodeNext WHERE AD_WF_NodeNext_ID=50045
;

View File

@ -0,0 +1,4 @@
-- Mar 7, 2008 1:23:28 PM CST
-- Set Tax Children as Grid
UPDATE AD_Field SET Included_Tab_ID=53078,Updated=TO_TIMESTAMP('2008-03-07 13:23:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54520
;

View File

@ -0,0 +1,15 @@
-- 07-mar-2008 20:37:34 ECT
-- New Event Model Validator
UPDATE AD_Column SET FieldLength=2000,Updated=TO_DATE('2008-03-07 20:37:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=54257
;
-- 07-mar-2008 20:37:34 ECT
-- New Event Model Validator
UPDATE AD_Field SET Name='Script', Description='Dynamic Java Language Script to calculate result', Help='Use Java language constructs to define the result of the calculation' WHERE AD_Column_ID=54257 AND IsCentrallyMaintained='Y'
;
-- 07-mar-2008 20:37:38 ECT
-- New Event Model Validator
insert into t_alter_column values('ad_rule','Script','VARCHAR(2000)',null,'NULL')
;

View File

@ -0,0 +1,450 @@
-- Mar 10, 2008 8:51:52 AM CST
-- Improve RMA Functionality
UPDATE AD_Tab SET WhereClause='MovementType IN (''C-'', ''C+'')',Updated=TO_TIMESTAMP('2008-03-10 08:51:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=257
;
-- Mar 10, 2008 8:52:19 AM CST
-- Improve RMA Functionality
UPDATE AD_Tab SET WhereClause='MovementType IN (''V+'', ''V-'')',Updated=TO_TIMESTAMP('2008-03-10 08:52:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Tab_ID=296
;
-- 10-mar-2008 16:52:00 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@DocBaseType@=''SOO'' | ( @DocBaseType@=''POO'' & (DocSubTypeSO_Sub=null OR DocSubTypeSO_Sub=''RM'') )',Updated=TO_TIMESTAMP('2008-03-10 16:52:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=2581
;
-- 10-mar-2008 16:54:36 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@DocBaseType@=''SOO'' | ( @DocBaseType@=''POO'' & @DocSubTypeSO@=''RM'' )',Updated=TO_TIMESTAMP('2008-03-10 16:54:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=3071
;
-- 10-mar-2008 16:54:44 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@DocBaseType@=''SOO'' | ( @DocBaseType@=''POO'' & @DocSubTypeSO@=''RM'' )',Updated=TO_TIMESTAMP('2008-03-10 16:54:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=3073
;
-- 10-mar-2008 17:02:53 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@DocBaseType@=''SOO'' ^ @DocBaseType@=''POO'' & @DocSubTypeSO@=''RM''',Updated=TO_TIMESTAMP('2008-03-10 17:02:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=3073
;
-- 10-mar-2008 17:04:31 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@DocBaseType@=''SOO'' | @DocBaseType@=''POO''',Updated=TO_TIMESTAMP('2008-03-10 17:04:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=3071
;
-- 10-mar-2008 17:04:38 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@DocBaseType@=''SOO'' | @DocBaseType@=''POO''',Updated=TO_TIMESTAMP('2008-03-10 17:04:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=3073
;
-- 10-mar-2008 17:06:09 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@DocBaseType@=''SOO'' | @DocBaseType@=''POO''',Updated=TO_TIMESTAMP('2008-03-10 17:06:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=2581
;
-- 10-mar-2008 17:22:30 CST
-- Improve RMA Functionality
UPDATE C_DocType SET GL_Category_ID=0,Updated=TO_TIMESTAMP('2008-03-10 17:22:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=150
;
-- 10-mar-2008 17:43:32 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=4242
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=4243
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=2930
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=2933
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=7831
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=7829
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=7830
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=7832
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=7828
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=7827
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=2707
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=380,IsDisplayed='Y' WHERE AD_Field_ID=10369
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=390,IsDisplayed='Y' WHERE AD_Field_ID=9463
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=400,IsDisplayed='Y' WHERE AD_Field_ID=9462
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=3280
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=420,IsDisplayed='Y' WHERE AD_Field_ID=3281
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=430,IsDisplayed='Y' WHERE AD_Field_ID=10568
;
-- 10-mar-2008 17:43:33 CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=440,IsDisplayed='Y' WHERE AD_Field_ID=5143
;
-- 10-mar-2008 17:48:10 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@MovementType@=''C+''',Updated=TO_TIMESTAMP('2008-03-10 17:48:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=4242
;
-- 10-mar-2008 17:48:14 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@MovementType@=''C+''',Updated=TO_TIMESTAMP('2008-03-10 17:48:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=4243
;
-- 10-mar-2008 17:58:26 CST
-- Improve RMA Functionality
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-03-10 17:58:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=4243
;
-- 10-mar-2008 18:04:37 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@MovementType@=''C+''',Updated=TO_TIMESTAMP('2008-03-10 18:04:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=2932
;
-- 10-mar-2008 18:04:42 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@MovementType@!''C+''',Updated=TO_TIMESTAMP('2008-03-10 18:04:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=2932
;
-- 10-mar-2008 18:05:46 CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2008-03-10 18:05:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=2932
;
-- Mar 11, 2008 8:29:43 AM CST
-- Improve RMA Functionality
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,52009,54714,0,257,TO_TIMESTAMP('2008-03-11 08:29:36','YYYY-MM-DD HH24:MI:SS'),0,'Return Material Authorization',22,'D','A Return Material Authorization may be required to accept returns and to create Credit Memos','Y','Y','Y','N','N','N','N','N','RMA',TO_TIMESTAMP('2008-03-11 08:29:36','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 11, 2008 8:29:43 AM CST
-- Improve RMA Functionality
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54714 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Mar 11, 2008 8:29:43 AM CST
-- Improve RMA Functionality
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,15903,54715,0,257,TO_TIMESTAMP('2008-03-11 08:29:43','YYYY-MM-DD HH24:MI:SS'),0,'Volume of a product',22,'D','The Volume indicates the volume of the product in the Volume UOM of the Client','Y','Y','Y','N','N','N','N','N','Volume',TO_TIMESTAMP('2008-03-11 08:29:43','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 11, 2008 8:29:43 AM CST
-- Improve RMA Functionality
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54715 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Mar 11, 2008 8:29:46 AM CST
-- Improve RMA Functionality
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,15904,54716,0,257,TO_TIMESTAMP('2008-03-11 08:29:43','YYYY-MM-DD HH24:MI:SS'),0,'Weight of a product',22,'D','The Weight indicates the weight of the product in the Weight UOM of the Client','Y','Y','Y','N','N','N','N','N','Weight',TO_TIMESTAMP('2008-03-11 08:29:43','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 11, 2008 8:29:46 AM CST
-- Improve RMA Functionality
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=54716 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=54715
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=54716
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54714
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=2938
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=2945
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=2703
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=2931
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=2706
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=2935
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=2928
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=2929
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=140,IsDisplayed='Y' WHERE AD_Field_ID=2927
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=150,IsDisplayed='Y' WHERE AD_Field_ID=2944
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=160,IsDisplayed='Y' WHERE AD_Field_ID=2946
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=170,IsDisplayed='Y' WHERE AD_Field_ID=2936
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=180,IsDisplayed='Y' WHERE AD_Field_ID=6877
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=190,IsDisplayed='Y' WHERE AD_Field_ID=6541
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=200,IsDisplayed='Y' WHERE AD_Field_ID=2937
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=210,IsDisplayed='Y' WHERE AD_Field_ID=2943
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=220,IsDisplayed='Y' WHERE AD_Field_ID=10379
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=230,IsDisplayed='Y' WHERE AD_Field_ID=6880
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=240,IsDisplayed='Y' WHERE AD_Field_ID=6879
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=250,IsDisplayed='Y' WHERE AD_Field_ID=6878
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=260,IsDisplayed='Y' WHERE AD_Field_ID=2940
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=270,IsDisplayed='Y' WHERE AD_Field_ID=2939
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=280,IsDisplayed='Y' WHERE AD_Field_ID=4242
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=290,IsDisplayed='Y' WHERE AD_Field_ID=4243
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=300,IsDisplayed='Y' WHERE AD_Field_ID=2930
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=310,IsDisplayed='Y' WHERE AD_Field_ID=2933
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=320,IsDisplayed='Y' WHERE AD_Field_ID=7831
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=330,IsDisplayed='Y' WHERE AD_Field_ID=7829
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=340,IsDisplayed='Y' WHERE AD_Field_ID=7830
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=350,IsDisplayed='Y' WHERE AD_Field_ID=7832
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=360,IsDisplayed='Y' WHERE AD_Field_ID=7828
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=370,IsDisplayed='Y' WHERE AD_Field_ID=7827
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=380,IsDisplayed='Y' WHERE AD_Field_ID=2707
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=390,IsDisplayed='Y' WHERE AD_Field_ID=10369
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=400,IsDisplayed='Y' WHERE AD_Field_ID=9463
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=410,IsDisplayed='Y' WHERE AD_Field_ID=9462
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=420,IsDisplayed='Y' WHERE AD_Field_ID=3280
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=430,IsDisplayed='Y' WHERE AD_Field_ID=3281
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=440,IsDisplayed='Y' WHERE AD_Field_ID=10568
;
-- Mar 11, 2008 8:30:31 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET SeqNo=450,IsDisplayed='Y' WHERE AD_Field_ID=5143
;
-- Mar 11, 2008 8:31:07 AM CST
-- Improve RMA Functionality
UPDATE AD_Field SET DisplayLogic='@M_RMA_ID@!0',Updated=TO_TIMESTAMP('2008-03-11 08:31:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54714
;
-- Mar 11, 2008 8:33:45 AM CST
-- Improve RMA Functionality
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,Description,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (11,0,53100,TO_TIMESTAMP('2008-03-11 08:33:44','YYYY-MM-DD HH24:MI:SS'),100,590001,59000,'MM Customer Return',1,'Y','N','Y','N','MM Customer Return','N',590000,TO_TIMESTAMP('2008-03-11 08:33:44','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Mar 11, 2008 8:34:12 AM CST
-- Improve RMA Functionality
UPDATE C_DocType SET DocNoSequence_ID=53100,Updated=TO_TIMESTAMP('2008-03-11 08:34:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=149
;
-- Mar 11, 2008 8:34:48 AM CST
-- Improve RMA Functionality
UPDATE C_DocType SET DocBaseType='MMR',Updated=TO_TIMESTAMP('2008-03-11 08:34:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=149
;
-- Mar 11, 2008 8:35:16 AM CST
-- Improve RMA Functionality
UPDATE C_DocType SET DocBaseType='MMS',Updated=TO_TIMESTAMP('2008-03-11 08:35:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=151
;
-- Mar 11, 2008 9:39:08 AM CST
-- Improve RMA Functionality
UPDATE C_DocType SET IsDocNoControlled='Y', IsSOTrx='Y',Updated=TO_DATE('2008-03-11 09:39:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=149
;
-- Mar 11, 2008 9:39:28 AM CST
-- Improve RMA Functionality
UPDATE C_DocType SET C_DocTypeInvoice_ID=124,Updated=TO_DATE('2008-03-11 09:39:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=150
;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,260 @@
-- Mar 24, 2008 9:02:52 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53099
;
-- Mar 24, 2008 9:02:52 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=385
;
-- Mar 24, 2008 9:02:52 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=386
;
-- Mar 24, 2008 9:02:52 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53100
;
-- Mar 24, 2008 9:02:52 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53102
;
-- Mar 24, 2008 9:02:52 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53101
;
-- Mar 24, 2008 9:02:52 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53104
;
-- Mar 24, 2008 9:02:52 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53103
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53099
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=385
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53100
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=386
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53102
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53101
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53104
;
-- Mar 24, 2008 9:02:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53103
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53099
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=385
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=386
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53100
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53102
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53101
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53104
;
-- Mar 24, 2008 9:02:56 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53103
;
-- Mar 24, 2008 9:09:35 AM CST
-- Fix Permission to Replication
UPDATE AD_Window SET IsBetaFunctionality='N',Updated=TO_TIMESTAMP('2008-03-24 09:09:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=285
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53105
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53083
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53099
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=385
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=386
;
-- Mar 24, 2008 9:09:54 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53100
;
-- Mar 24, 2008 9:09:55 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53102
;
-- Mar 24, 2008 9:09:55 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53101
;
-- Mar 24, 2008 9:09:55 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53104
;
-- Mar 24, 2008 9:09:55 AM CST
-- Fix Permission to Replication
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53103
;
-- Mar 24, 2008 9:11:44 AM CST
-- Fix Permission to Replication
UPDATE AD_Menu SET Description=NULL,Updated=TO_TIMESTAMP('2008-03-24 09:11:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=53105
;
-- Mar 24, 2008 9:11:44 AM CST
-- Fix Permission to Replication
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53105
;
-- Mar 24, 2008 9:12:52 AM CST
-- Fix Permission to Replication
UPDATE AD_Table SET AccessLevel='6',Updated=TO_TIMESTAMP('2008-03-24 09:12:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53072
;
-- Mar 24, 2008 9:13:11 AM CST
-- Fix Permission to Replication
UPDATE AD_Table SET AccessLevel='6',Updated=TO_TIMESTAMP('2008-03-24 09:13:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53073
;
-- Mar 24, 2008 9:13:45 AM CST
-- Fixed Permission to Replication
UPDATE AD_Table SET AccessLevel='6',Updated=TO_TIMESTAMP('2008-03-24 09:13:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_ID=53077
;

View File

@ -0,0 +1,76 @@
-- Mar 24, 2008 11:18:28 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process (AD_Client_ID,AD_Org_ID,AD_Process_ID,AccessLevel,Created,CreatedBy,EntityType,IsActive,IsBetaFunctionality,IsDirectPrint,IsReport,IsServerProcess,Name,ShowHelp,Statistic_Count,Statistic_Seconds,Updated,UpdatedBy,Value) VALUES (0,0,53085,'6',TO_TIMESTAMP('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0,'EE05','Y','N','N','N','N','EXP_Format Generator','Y',0,0,TO_TIMESTAMP('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0,'EXP_Format Generator')
;
-- Mar 24, 2008 11:18:28 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_ID=53085 AND EXISTS (SELECT * FROM AD_Process_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_ID!=t.AD_Process_ID)
;
-- Mar 24, 2008 11:18:28 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53085,0,TO_TIMESTAMP('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 11:18:28 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53085,102,TO_TIMESTAMP('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 11:18:28 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53085,103,TO_TIMESTAMP('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 11:18:28 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process_Access (AD_Client_ID,AD_Org_ID,AD_Process_ID,AD_Role_ID,Created,CreatedBy,IsActive,Updated,UpdatedBy) VALUES (0,0,53085,50001,TO_TIMESTAMP('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0,'Y',TO_TIMESTAMP('2008-03-24 11:18:28','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 11:19:27 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,143,0,53085,53141,19,'AD_Window_ID',TO_TIMESTAMP('2008-03-24 11:19:27','YYYY-MM-DD HH24:MI:SS'),0,'EE05',22,'Y','Y','N','N','Window',10,TO_TIMESTAMP('2008-03-24 11:19:27','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 11:19:27 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53141 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Mar 24, 2008 11:19:41 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55059,524,0,53085,28,53072,'Processing',TO_TIMESTAMP('2008-03-24 11:19:40','YYYY-MM-DD HH24:MI:SS'),0,'EE05',1,'Y','N','N','N','N','N','N','N','N','N','Y','Process Now',0,TO_TIMESTAMP('2008-03-24 11:19:40','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Mar 24, 2008 11:19:41 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55059 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Mar 24, 2008 11:20:04 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,DisplayLength,EntityType,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,55059,55187,0,53085,TO_TIMESTAMP('2008-03-24 11:20:04','YYYY-MM-DD HH24:MI:SS'),0,1,'EE05','Y','Y','Y','N','N','N','N','N','Process Now',TO_TIMESTAMP('2008-03-24 11:20:04','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 11:20:04 AM CST
-- Generate a Export Format from a Window
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55187 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- Mar 24, 2008 11:20:32 AM CST
-- Generate a Export Format from a Window
UPDATE AD_Field SET IsCentrallyMaintained='N', IsSameLine='Y', Name='Create from a Window',Updated=TO_TIMESTAMP('2008-03-24 11:20:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55187
;
-- Mar 24, 2008 11:20:32 AM CST
-- Generate a Export Format from a Window
UPDATE AD_Field_Trl SET IsTranslated='N' WHERE AD_Field_ID=55187
;
UPDATE AD_Process SET Classname='org.eevolution.process.ExportFormatGenerator',Updated=TO_TIMESTAMP('2008-03-24 11:42:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53085
;
ALTER TABLE EXP_Format ADD COLUMN Processing CHAR(1)
;

View File

@ -0,0 +1,260 @@
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=55187
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=54574
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54575
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54576
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54577
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54578
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54579
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54580
;
-- Mar 24, 2008 9:08:43 PM CST
-- Replication Functionality
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54581
;
-- Mar 24, 2008 9:10:26 PM CST
-- Replication Functionality
INSERT INTO AD_Menu (AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,"action",Created,CreatedBy,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (0,53125,0,53085,'P',TO_TIMESTAMP('2008-03-24 21:09:42','YYYY-MM-DD HH24:MI:SS'),0,'EE05','Y','N','N','N','Create Export Format from Window',TO_TIMESTAMP('2008-03-24 21:09:42','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 9:10:26 PM CST
-- Replication Functionality
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=53125 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID)
;
-- Mar 24, 2008 9:10:26 PM CST
-- Replication Functionality
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0,t.AD_Tree_ID, 53125, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=53125)
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53105
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=13, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53083
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53099
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=385
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=386
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53100
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53125
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53102
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53101
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53104
;
-- Mar 24, 2008 9:10:51 PM CST
-- Replication Functionality
UPDATE AD_TreeNodeMM SET Parent_ID=53098, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53103
;
-- Mar 24, 2008 9:11:15 PM CST
-- Replication Functionality
UPDATE AD_Menu SET Name='Create Export Format from a Window',Updated=TO_TIMESTAMP('2008-03-24 21:11:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=53125
;
-- Mar 24, 2008 9:11:15 PM CST
-- Replication Functionality
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53125
;
-- Mar 24, 2008 9:16:33 PM CST
-- Replication Functionality
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,2792,0,53085,53142,20,'IsInsertRecord',TO_TIMESTAMP('2008-03-24 21:16:32','YYYY-MM-DD HH24:MI:SS'),0,'Generated Export Format for the Tabs with Insert Record is Yes','EE05',1,'Y','N','N','N','IsInsertRecord',20,TO_TIMESTAMP('2008-03-24 21:16:32','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 9:16:33 PM CST
-- Replication Functionality
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53142 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Mar 24, 2008 9:23:04 PM CST
-- Replication Functionality
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,392,0,53085,53143,20,'IsMandatory',TO_TIMESTAMP('2008-03-24 21:23:03','YYYY-MM-DD HH24:MI:SS'),0,'Generated an Export Format Line if the column is mandatory ','EE05',1,'Y','N','N','N','IsMandatory',30,TO_TIMESTAMP('2008-03-24 21:23:03','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Mar 24, 2008 9:23:04 PM CST
-- Replication Functionality
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53143 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Mar 24, 2008 9:25:13 PM CST
-- Replication Functionality
UPDATE AD_Process_Para SET IsMandatory='Y',Updated=TO_TIMESTAMP('2008-03-24 21:25:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53141
;
-- Mar 24, 2008 9:30:09 PM CST
-- Replication Functionality
UPDATE AD_Process SET Description='Create multiple Export Format based in a Window',Updated=TO_TIMESTAMP('2008-03-24 21:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53085
;
-- Mar 24, 2008 9:30:09 PM CST
-- Replication Functionality
UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=53085
;
-- Mar 24, 2008 9:30:09 PM CST
-- Replication Functionality
UPDATE AD_Menu SET Description='Create multiple Export Format based in a Window', IsActive='Y', Name='EXP_Format Generator',Updated=TO_TIMESTAMP('2008-03-24 21:30:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=53125
;
-- Mar 24, 2008 9:30:09 PM CST
-- Replication Functionality
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53125
;
-- Mar 24, 2008 9:31:18 PM CST
-- Replication Functionality
UPDATE AD_Process_Para SET Name='Insert Record',Updated=TO_TIMESTAMP('2008-03-24 21:31:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53142
;
-- Mar 24, 2008 9:31:18 PM CST
-- Replication Functionality
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53142
;
-- Mar 24, 2008 9:34:56 PM CST
-- Replication Functionality
UPDATE AD_Process_Para SET Name='Includes only the Tabs that Insert records',Updated=TO_TIMESTAMP('2008-03-24 21:34:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53142
;
-- Mar 24, 2008 9:34:56 PM CST
-- Replication Functionality
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53142
;
-- Mar 24, 2008 9:35:52 PM CST
-- Replication Functionality
UPDATE AD_Process_Para SET Name='Includes only the mandatory columns',Updated=TO_TIMESTAMP('2008-03-24 21:35:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53143
;
-- Mar 24, 2008 9:35:52 PM CST
-- Replication Functionality
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53143
;

View File

@ -0,0 +1,6 @@
UPDATE AD_SYSTEM
SET releaseno = '350',
VERSION = '2008-03-26'
WHERE ad_system_id = 0 AND ad_client_id = 0;
COMMIT ;

View File

@ -0,0 +1,248 @@
DROP VIEW C_ORDER_LINETAX_V;
CREATE OR REPLACE VIEW C_ORDER_LINETAX_V
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, C_ORDER_ID, C_ORDERLINE_ID,
C_TAX_ID, TAXINDICATOR, C_BPARTNER_ID, C_BPARTNER_LOCATION_ID, BPNAME,
C_LOCATION_ID, LINE, M_PRODUCT_ID,VendorProductNo, QTYORDERED, QTYENTERED,
UOMSYMBOL, NAME, DESCRIPTION, DOCUMENTNOTE, UPC,
SKU, PRODUCTVALUE, RESOURCEDESCRIPTION, PRICELIST, PRICEENTEREDLIST,
DISCOUNT, PRICEACTUAL, PRICEENTERED, LINENETAMT, PRODUCTDESCRIPTION,
IMAGEURL, C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, C_PROJECTPHASE_ID,
C_PROJECTTASK_ID)
AS
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
'en_US' AS AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, t.TaxIndicator,
ol.C_BPartner_ID, ol.C_BPartner_Location_ID, bp.Name AS BPName, bpl.C_Location_ID,
ol.Line, p.M_Product_ID, po.VendorProductNo,
CASE WHEN ol.QtyOrdered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyOrdered END AS QtyOrdered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyEntered END AS QtyEntered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
COALESCE(c.Name,p.Name||productAttribute(ol.M_AttributeSetInstance_ID), ol.Description) AS Name, -- main line
CASE WHEN COALESCE(c.Name,p.Name) IS NOT NULL THEN ol.Description END AS Description, -- second line
p.DocumentNote, -- third line
p.UPC, p.SKU, COALESCE(pp.VendorProductNo,p.Value) AS ProductValue,
ra.Description AS ResourceDescription, -- forth line
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0
THEN ol.PriceList END AS PriceList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0 AND ol.QtyEntered<>0
THEN ol.PriceList*ol.QtyOrdered/ol.QtyEntered END AS PriceEnteredList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList>ol.PriceActual AND ol.PriceList<>0
THEN (ol.PriceList-ol.PriceActual)/ol.PriceList*100 END AS Discount,
CASE WHEN ol.PriceActual<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceActual END AS PriceActual,
CASE WHEN ol.PriceEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceEntered END AS PriceEntered,
CASE WHEN ol.LineNetAmt<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.LineNetAmt END AS LineNetAmt,
p.Description as ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
FROM C_OrderLine ol
INNER JOIN C_UOM uom ON (ol.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN C_Order i ON (ol.C_Order_ID=i.C_Order_ID)
LEFT OUTER JOIN M_Product p ON (ol.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN M_Product_PO po ON (p.M_Product_ID=po.M_Product_ID)
LEFT OUTER JOIN S_ResourceAssignment ra ON (ol.S_ResourceAssignment_ID=ra.S_ResourceAssignment_ID)
LEFT OUTER JOIN C_Charge c ON (ol.C_Charge_ID=c.C_Charge_ID)
LEFT OUTER JOIN C_BPartner_Product pp ON (ol.M_Product_ID=pp.M_Product_ID AND i.C_BPartner_ID=pp.C_BPartner_ID)
INNER JOIN C_BPartner bp ON (ol.C_BPartner_ID=bp.C_BPartner_ID)
INNER JOIN C_BPartner_Location bpl ON (ol.C_BPartner_Location_ID=bpl.C_BPartner_Location_ID)
LEFT OUTER JOIN C_Tax t ON (ol.C_Tax_ID=t.C_Tax_ID)
UNION
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
'en_US' AS AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, null,
null, null, null, null,
ol.Line+(bl.Line/100) AS Line, p.M_Product_ID,po.VendorProductNo,
--ol.QtyOrdered*bl.BOMQty AS QtyInvoiced
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyOrdered*bl.QtyBOM ELSE ol.QtyOrdered*(bl.QtyBatch / 100) END AS QtyInvoiced,
--ol.QtyEntered*bl.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyEntered*bl.QtyBOM ELSE ol.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
p.Name, -- main
bl.Description,
p.DocumentNote, p.UPC, p.SKU, p.Value AS ProductValue,
null, null, null, null, null, null, null, p.Description as ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN C_OrderLine ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)*/
FROM PP_Product_BOM b
INNER JOIN C_OrderLine ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (p.M_Product_ID=bl.M_Product_ID) -- BOM line product
LEFT OUTER JOIN M_Product_PO po ON (p.M_Product_ID=po.M_Product_ID)
INNER JOIN C_UOM uom ON (p.C_UOM_ID=uom.C_UOM_ID)
UNION
SELECT AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy,
'en_US', C_Order_ID, null, null, null,
null,
null, null, null,
null, null, null, null,
null, null,null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null,null,null,null,null
FROM C_Order
UNION
SELECT ot.AD_Client_ID, ot.AD_Org_ID, ot.IsActive, ot.Created, ot.CreatedBy, ot.Updated, ot.UpdatedBy,
'en_US', ot.C_Order_ID, null, ot.C_Tax_ID, t.TaxIndicator,
null, null, null, null,
null, null,null,
null, null, null,
t.Name,
null, null, null, null, null, null,
null, null, null,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN NULL ELSE ot.TaxAmt END,
null, null,
null,null,null,null,null
FROM C_OrderTax ot
INNER JOIN C_Tax t ON (ot.C_Tax_ID=t.C_Tax_ID);
DROP VIEW C_ORDER_LINETAX_VT;
CREATE OR REPLACE VIEW C_ORDER_LINETAX_VT
(AD_CLIENT_ID, AD_ORG_ID, ISACTIVE, CREATED, CREATEDBY,
UPDATED, UPDATEDBY, AD_LANGUAGE, C_ORDER_ID, C_ORDERLINE_ID,
C_TAX_ID, TAXINDICATOR, C_BPARTNER_ID, C_BPARTNER_LOCATION_ID, BPNAME,
C_LOCATION_ID, LINE, M_PRODUCT_ID,VendorProductNo, QTYORDERED, QTYENTERED,
UOMSYMBOL, NAME, DESCRIPTION, DOCUMENTNOTE, UPC,
SKU, PRODUCTVALUE, RESOURCEDESCRIPTION, PRICELIST, PRICEENTEREDLIST,
DISCOUNT, PRICEACTUAL, PRICEENTERED, LINENETAMT, PRODUCTDESCRIPTION,
IMAGEURL, C_CAMPAIGN_ID, C_PROJECT_ID, C_ACTIVITY_ID, C_PROJECTPHASE_ID,
C_PROJECTTASK_ID)
AS
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
uom.AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, t.TaxIndicator,
ol.C_BPartner_ID, ol.C_BPartner_Location_ID, bp.Name AS BPName, bpl.C_Location_ID,
ol.Line, p.M_Product_ID,po.VendorProductNo,
CASE WHEN ol.QtyOrdered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyOrdered END AS QtyOrdered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.QtyEntered END AS QtyEntered,
CASE WHEN ol.QtyEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN uom.UOMSymbol END AS UOMSymbol,
COALESCE(pt.Name, c.Name,p.Name||productAttribute(ol.M_AttributeSetInstance_ID), ol.Description) AS Name, -- main line
CASE WHEN COALESCE(c.Name,pt.Name, p.Name) IS NOT NULL THEN ol.Description END AS Description, -- second line
COALESCE(pt.DocumentNote, p.DocumentNote) AS DocumentNote, -- third line
p.UPC, p.SKU, COALESCE(pp.VendorProductNo,p.Value) AS ProductValue,
ra.Description AS ResourceDescription, -- forth line
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0
THEN ol.PriceList END AS PriceList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList<>0 AND ol.QtyEntered<>0
THEN ol.PriceList*ol.QtyOrdered/ol.QtyEntered END AS PriceEnteredList,
CASE WHEN i.IsDiscountPrinted='Y' AND ol.PriceList>ol.PriceActual AND ol.PriceList<>0
THEN (ol.PriceList-ol.PriceActual)/ol.PriceList*100 END AS Discount,
CASE WHEN ol.PriceActual<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceActual END AS PriceActual,
CASE WHEN ol.PriceEntered<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.PriceEntered END AS PriceEntered,
CASE WHEN ol.LineNetAmt<>0 OR ol.M_Product_ID IS NOT NULL THEN ol.LineNetAmt END AS LineNetAmt,
pt.Description as ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
FROM C_OrderLine ol
INNER JOIN C_UOM_Trl uom ON (ol.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN C_Order i ON (ol.C_Order_ID=i.C_Order_ID)
LEFT OUTER JOIN M_Product p ON (ol.M_Product_ID=p.M_Product_ID)
LEFT OUTER JOIN M_Product_PO po ON (p.M_Product_ID=po.M_Product_ID)
LEFT OUTER JOIN M_Product_Trl pt ON (ol.M_Product_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)
LEFT OUTER JOIN S_ResourceAssignment ra ON (ol.S_ResourceAssignment_ID=ra.S_ResourceAssignment_ID)
LEFT OUTER JOIN C_Charge c ON (ol.C_Charge_ID=c.C_Charge_ID)
LEFT OUTER JOIN C_BPartner_Product pp ON (ol.M_Product_ID=pp.M_Product_ID AND i.C_BPartner_ID=pp.C_BPartner_ID)
INNER JOIN C_BPartner bp ON (ol.C_BPartner_ID=bp.C_BPartner_ID)
INNER JOIN C_BPartner_Location bpl ON (ol.C_BPartner_Location_ID=bpl.C_BPartner_Location_ID)
LEFT OUTER JOIN C_Tax_Trl t ON (ol.C_Tax_ID=t.C_Tax_ID AND uom.AD_Language=t.AD_Language)
UNION
SELECT ol.AD_Client_ID, ol.AD_Org_ID, ol.IsActive, ol.Created, ol.CreatedBy, ol.Updated, ol.UpdatedBy,
uom.AD_Language,
ol.C_Order_ID, ol.C_OrderLine_ID, ol.C_Tax_ID, null,
null, null, null, null,
ol.Line+(bl.Line/100) AS Line, p.M_Product_ID,po.VendorProductNo,
--ol.QtyOrdered*b.BOMQty AS QtyInvoiced,
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyOrdered*bl.QtyBOM ELSE ol.QtyOrdered*(bl.QtyBatch / 100) END AS QtyInvoiced,
--ol.QtyEntered*b.BOMQty AS QtyEntered,
CASE WHEN bl.IsQtyPercentage = 'N' THEN ol.QtyEntered*bl.QtyBOM ELSE ol.QtyEntered*(bl.QtyBatch / 100) END AS QtyEntered,
uom.UOMSymbol,
COALESCE(pt.Name, p.Name) AS Name, -- main
b.Description,
COALESCE(pt.DocumentNote, p.DocumentNote) AS DocumentNote, p.UPC, p.SKU, p.Value AS ProductValue,
null, null, null, null, null, null, null, pt.Description AS ProductDescription, p.ImageURL,
ol.C_Campaign_ID, ol.C_Project_ID, ol.C_Activity_ID, ol.C_ProjectPhase_ID, ol.C_ProjectTask_ID
/*FROM M_Product_BOM b -- BOM lines
INNER JOIN C_OrderLine ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN M_Product p ON (b.M_ProductBOM_ID=p.M_Product_ID) -- BOM line product
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (b.M_ProductBOM_ID=pt.M_Product_ID AND uom.AD_Language=pt.AD_Language)*/
FROM PP_Product_BOM b
INNER JOIN C_OrderLine ol ON (b.M_Product_ID=ol.M_Product_ID)
INNER JOIN M_Product bp ON (bp.M_Product_ID=ol.M_Product_ID -- BOM Product
AND bp.IsBOM='Y' AND bp.IsVerified='Y' AND bp.IsInvoicePrintDetails='Y')
INNER JOIN PP_Product_BOMLine bl ON (bl.PP_Product_BOM_ID=b.PP_Product_BOM_ID)
INNER JOIN M_Product p ON (p.M_Product_ID=bl.M_Product_ID) -- BOM line product
LEFT OUTER JOIN M_Product_PO po ON (p.M_Product_ID=po.M_Product_ID)
INNER JOIN C_UOM_Trl uom ON (p.C_UOM_ID=uom.C_UOM_ID)
INNER JOIN M_Product_Trl pt ON (pt.M_Product_ID=bl.M_Product_ID AND uom.AD_Language=pt.AD_Language)
UNION
SELECT o.AD_Client_ID, o.AD_Org_ID, o.IsActive, o.Created, o.CreatedBy, o.Updated, o.UpdatedBy,
l.AD_Language, o.C_Order_ID, null, null, null,
null,
null, null, null,
null, null, null, null,
null, null,null,
null, null, null, null, null, null,
null, null, null, null, null, null, null, null,
null,null,null,null,null
FROM C_Order o, AD_Language l
WHERE l.IsBaseLanguage='N' AND l.IsSystemLanguage='Y'
UNION
SELECT ot.AD_Client_ID, ot.AD_Org_ID, ot.IsActive, ot.Created, ot.CreatedBy, ot.Updated, ot.UpdatedBy,
t.AD_Language, ot.C_Order_ID, null, ot.C_Tax_ID, t.TaxIndicator,
null, null, null, null,
null, null,null,
null, null, null,
t.Name,
null, null, null, null, null, null,
null, null, null,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN ot.TaxAmt ELSE ot.TaxBaseAmt END,
CASE WHEN ot.IsTaxIncluded='Y' THEN NULL ELSE ot.TaxAmt END,
null, null,
null,null,null,null,null
FROM C_OrderTax ot
INNER JOIN C_Tax_Trl t ON (ot.C_Tax_ID=t.C_Tax_ID);
-- 02-abr-2008 16:08:50 CST
-- FR 1932692 http://sourceforge.net/tracker/index.php?func=detail&aid=1932692&group_id=176962&atid=879335
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55199,623,0,10,497,'VendorProductNo',TO_TIMESTAMP('2008-04-02 16:08:49','YYYY-MM-DD HH24:MI:SS'),0,'Product Key of the Business Partner','D',30,'The Business Partner Product Key identifies the number used by the Business Partner for this product. It can be printed on orders and invoices when you include the Product Key in the print format.','Y','N','N','N','N','N','N','N','N','N','Y','Partner Product Key',0,TO_TIMESTAMP('2008-04-02 16:08:49','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 02-abr-2008 16:08:50 CST
-- FR 1932692 http://sourceforge.net/tracker/index.php?func=detail&aid=1932692&group_id=176962&atid=879335
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55199 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 02-abr-2008 16:10:34 CST
-- FR 1932692 http://sourceforge.net/tracker/index.php?func=detail&aid=1932692&group_id=176962&atid=879335
INSERT INTO AD_PrintFormatItem (AD_Client_ID,AD_Column_ID,AD_Org_ID,AD_PrintColor_ID,AD_PrintFont_ID,AD_PrintFormatItem_ID,AD_PrintFormat_ID,ArcDiameter,BelowColumn,Created,CreatedBy,FieldAlignmentType,ImageIsAttached,IsActive,IsAveraged,IsCentrallyMaintained,IsCounted,IsDeviationCalc,IsFilledRectangle,IsFixedWidth,IsGroupBy,IsHeightOneLine,IsImageField,IsMaxCalc,IsMinCalc,IsNextLine,IsNextPage,IsOrderBy,IsPageBreak,IsPrinted,IsRelativePosition,IsRunningTotal,IsSetNLPosition,IsSummarized,IsSuppressNull,IsVarianceCalc,LineAlignmentType,LineWidth,MaxHeight,MaxWidth,Name,PrintAreaType,PrintFormatType,PrintName,RunningTotalLines,SeqNo,ShapeType,SortNo,Updated,UpdatedBy,XPosition,XSpace,YPosition,YSpace) VALUES (0,55199,0,100,130,50477,101,0,0,TO_TIMESTAMP('2008-04-02 16:10:34','YYYY-MM-DD HH24:MI:SS'),0,'D','N','Y','N','N','N','N','N','N','N','Y','N','N','N','Y','N','N','N','Y','Y','N','N','N','N','N','X',1,0,0,'VendorProductNo','C','F','VendorProductNo',20,110,'N',0,TO_TIMESTAMP('2008-04-02 16:10:34','YYYY-MM-DD HH24:MI:SS'),0,0,0,0,0)
;
-- 02-abr-2008 16:10:34 CST
-- FR 1932692 http://sourceforge.net/tracker/index.php?func=detail&aid=1932692&group_id=176962&atid=879335
INSERT INTO AD_PrintFormatItem_Trl (AD_Language,AD_PrintFormatItem_ID, PrintName,PrintNameSuffix, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_PrintFormatItem_ID, t.PrintName,t.PrintNameSuffix, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_PrintFormatItem t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_PrintFormatItem_ID=50477 AND EXISTS (SELECT * FROM AD_PrintFormatItem_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_PrintFormatItem_ID!=t.AD_PrintFormatItem_ID)
;
-- 02-abr-2008 16:10:35 CST
-- FR 1932692 http://sourceforge.net/tracker/index.php?func=detail&aid=1932692&group_id=176962&atid=879335
UPDATE AD_PrintFormatItem_Trl SET PrintName = (SELECT e.PrintName FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=55199) WHERE AD_PrintFormatItem_ID = 50477 AND EXISTS (SELECT * FROM AD_Element_Trl e, AD_Column c WHERE e.AD_Language=AD_PrintFormatItem_Trl.AD_Language AND e.AD_Element_ID=c.AD_Element_ID AND c.AD_Column_ID=55199 AND AD_PrintFormatItem_Trl.AD_PrintFormatItem_ID = 50477) AND EXISTS (SELECT * FROM AD_Client WHERE AD_Client_ID=AD_PrintFormatItem_Trl.AD_Client_ID AND IsMultiLingualDocument='Y')
;
-- 02-abr-2008 16:10:45 CST
-- FR 1932692 http://sourceforge.net/tracker/index.php?func=detail&aid=1932692&group_id=176962&atid=879335
UPDATE AD_PrintFormatItem SET SeqNo=0,IsPrinted='N' WHERE AD_PrintFormatItem_ID=50477
;

View File

@ -0,0 +1,125 @@
-- Apr 7, 2008 11:10:44 PM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,DefaultValue,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,263,0,238,53144,20,'DateAcct',TO_TIMESTAMP('2008-04-07 23:10:39','YYYY-MM-DD HH24:MI:SS'),0,'N','D',1,'Y','Y','N','N','DateAcct',15,TO_TIMESTAMP('2008-04-07 23:10:39','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Apr 7, 2008 11:10:44 PM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53144 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID)
;
-- Apr 7, 2008 11:11:17 PM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
UPDATE AD_Process_Para SET Description='Accounting Date', Help='The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.',Updated=TO_TIMESTAMP('2008-04-07 23:11:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53144
;
-- Apr 7, 2008 11:11:17 PM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53144
;
-- Apr 7, 2008 11:11:53 PM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=238
;
-- Apr 7, 2008 11:12:00 PM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
UPDATE AD_Process_Para SET Name='Account Date',Updated=TO_TIMESTAMP('2008-04-07 23:12:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53144
;
-- Apr 7, 2008 11:12:00 PM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
UPDATE AD_Process_Para_Trl SET IsTranslated='N' WHERE AD_Process_Para_ID=53144
;
-- Apr 7, 2008 11:47:58 PM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=238
;
-- Apr 8, 2008 12:05:33 AM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
UPDATE AD_Process SET Help='The aging report allows you to report on Open Items (Invoices). Select the aging buckets, you want to have in your report. If you select a currency, you get only invoices of that currency, otherwise the amounts are converted to your primary accounting currency. If you do not select a Statement Date, the system date is used to calculate the buckets. If you do not list the individual invoices, the Due Date is the earliest due date for the business partner and the Due Days are the average due days of all invoices.<br>
<br>
If you select an Account Date the report will generate the Aging as of that date. The report will exclude documents after the selected date.<br>
<br>
For example: A customer has one invoice for $100 with the Account Date of 03/31/08 and one payment for $100 with the Account Date of 05/01/08. The report will show the following balances based on the Account Date selected: 03/15/08= 0; 04/15/08=100; 05/15/08 = 0.
',Updated=TO_TIMESTAMP('2008-04-08 00:05:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=238
;
-- Apr 8, 2008 12:05:33 AM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=238
;
CREATE OR REPLACE VIEW RV_OPENITEMTODATE
(AD_ORG_ID, AD_CLIENT_ID, DOCUMENTNO, C_INVOICE_ID, C_ORDER_ID,
C_BPARTNER_ID, ISSOTRX, DATEINVOICED, DATEACCT, NETDAYS,
DUEDATE, DAYSDUE, DISCOUNTDATE, DISCOUNTAMT, GRANDTOTAL,
--PAIDAMT, OPENAMT,
C_CURRENCY_ID, C_CONVERSIONTYPE_ID, C_PAYMENTTERM_ID,
ISPAYSCHEDULEVALID, C_INVOICEPAYSCHEDULE_ID, INVOICECOLLECTIONTYPE, C_CAMPAIGN_ID, C_PROJECT_ID,
C_ACTIVITY_ID)
AS
SELECT i.AD_Org_ID, i.AD_Client_ID,
i.DocumentNo, i.C_Invoice_ID, i.C_Order_ID, i.C_BPartner_ID, i.IsSOTrx,
i.DateInvoiced, i.DateAcct,
p.NetDays,
paymentTermDueDate(i.C_PaymentTerm_ID, i.DateInvoiced) AS DueDate,
paymentTermDueDays(i.C_PaymentTerm_ID, i.DateInvoiced, getdate()) AS DaysDue,
addDays(i.DateInvoiced,p.DiscountDays) AS DiscountDate,
ROUND(i.GrandTotal*p.Discount/100,2) AS DiscountAmt,
i.GrandTotal,
--invoicePaid(i.C_Invoice_ID, i.C_Currency_ID, 1) AS PaidAmt,
--invoiceOpen(i.C_Invoice_ID,0) AS OpenAmt,
i.C_Currency_ID, i.C_ConversionType_ID,
i.C_PaymentTerm_ID,
i.IsPayScheduleValid, cast(null as numeric) AS C_InvoicePaySchedule_ID, i.InvoiceCollectionType,
i.C_Campaign_ID, i.C_Project_ID, i.C_Activity_ID
FROM RV_C_Invoice i
INNER JOIN C_PaymentTerm p ON (i.C_PaymentTerm_ID=p.C_PaymentTerm_ID)
WHERE -- i.IsPaid='N'
--invoiceOpen(i.C_Invoice_ID,0) <> 0 AND
i.IsPayScheduleValid<>'Y'
AND i.DocStatus<>'DR'
UNION
SELECT i.AD_Org_ID, i.AD_Client_ID,
i.DocumentNo, i.C_Invoice_ID, i.C_Order_ID, i.C_BPartner_ID, i.IsSOTrx,
i.DateInvoiced, i.DateAcct,
daysBetween(ips.DueDate,i.DateInvoiced) AS NetDays,
ips.DueDate,
daysBetween(getdate(),ips.DueDate) AS DaysDue,
ips.DiscountDate,
ips.DiscountAmt,
ips.DueAmt AS GrandTotal,
--invoicePaid(i.C_Invoice_ID, i.C_Currency_ID, 1) AS PaidAmt,
--invoiceOpen(i.C_Invoice_ID, ips.C_InvoicePaySchedule_ID) AS OpenAmt,
i.C_Currency_ID, i.C_ConversionType_ID,
i.C_PaymentTerm_ID,
i.IsPayScheduleValid, ips.C_InvoicePaySchedule_ID, i.InvoiceCollectionType,
i.C_Campaign_ID, i.C_Project_ID, i.C_Activity_ID
FROM RV_C_Invoice i
INNER JOIN C_InvoicePaySchedule ips ON (i.C_Invoice_ID=ips.C_Invoice_ID)
WHERE -- i.IsPaid='N'
--invoiceOpen(i.C_Invoice_ID,ips.C_InvoicePaySchedule_ID) <> 0 AND
i.IsPayScheduleValid='Y'
AND i.DocStatus<>'DR'
AND ips.IsValid='Y';
-- Apr 8, 2008 12:21:30 AM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55245,263,0,20,631,'DateAcct',TO_TIMESTAMP('2008-04-08 00:21:28','YYYY-MM-DD HH24:MI:SS'),0,'N','Accounting Date','D',1,'The Accounting Date indicates the date to be used on the General Ledger account entries generated from this document. It is also used for any currency conversion.','Y','N','N','N','N','N','N','N','N','N','Y','Account Date',0,TO_TIMESTAMP('2008-04-08 00:21:28','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- Apr 8, 2008 12:21:30 AM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55245 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- Apr 8, 2008 12:21:35 AM CDT
-- [ 1933937 ] Is necessary a new Aging with effective date.
ALTER TABLE T_Aging ADD COLUMN DateAcct CHAR(1) DEFAULT 'N' CHECK (DateAcct IN ('Y','N'))
;

View File

@ -0,0 +1,210 @@
-- Apr 8, 2008 10:26:21 PM CDT
-- Libero HR & Payroll
UPDATE AD_Window SET Description='Payroll Process', Name='Payroll Process',Updated=TO_TIMESTAMP('2008-04-08 22:26:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Window_ID=53037
;
-- Apr 8, 2008 10:26:22 PM CDT
-- Libero HR & Payroll
UPDATE AD_Window_Trl SET IsTranslated='N' WHERE AD_Window_ID=53037
;
-- Apr 8, 2008 10:26:22 PM CDT
-- Libero HR & Payroll
UPDATE AD_Menu SET AD_Window_ID=NULL, Description='Payroll Process', IsActive='Y', Name='Payroll Process',Updated=TO_TIMESTAMP('2008-04-08 22:26:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=53116
;
-- Apr 8, 2008 10:26:22 PM CDT
-- Libero HR & Payroll
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=53116
;
-- Apr 8, 2008 10:27:25 PM CDT
-- Libero HR & Payroll
INSERT INTO AD_Menu (AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,"action",Created,CreatedBy,Description,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (0,53127,0,53037,'W',TO_TIMESTAMP('2008-04-08 22:27:21','YYYY-MM-DD HH24:MI:SS'),0,'The Payroll Processing is used to processing a Payroll, you can calculate for a Employee or All Employees','EE02','Y','N','N','N','Payroll Process',TO_TIMESTAMP('2008-04-08 22:27:21','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Apr 8, 2008 10:27:25 PM CDT
-- Libero HR & Payroll
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=53127 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID)
;
-- Apr 8, 2008 10:27:25 PM CDT
-- Libero HR & Payroll
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0,t.AD_Tree_ID, 53127, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=53127)
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53083
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53118
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53115
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53119
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53120
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53117
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53123
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53127
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53116
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53121
;
-- Apr 8, 2008 10:27:32 PM CDT
-- Libero HR & Payroll
UPDATE AD_TreeNodeMM SET Parent_ID=53114, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53122
;
-- Apr 8, 2008 10:45:03 PM CDT
-- Libero HR & Payroll
INSERT INTO AD_Val_Rule (AD_Client_ID,AD_Org_ID,AD_Val_Rule_ID,Code,Created,CreatedBy,Description,EntityType,IsActive,Name,Type,Updated,UpdatedBy) VALUES (0,0,52021,'C_DocType.DocBaseType=''HRP''',TO_TIMESTAMP('2008-04-08 22:45:01','YYYY-MM-DD HH24:MI:SS'),0,'Document Type for Payroll','EE02','Y','C_DocType Payroll','S',TO_TIMESTAMP('2008-04-08 22:45:01','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Apr 8, 2008 10:45:39 PM CDT
-- Libero HR & Payroll
UPDATE AD_Column SET AD_Val_Rule_ID=52021,Updated=TO_TIMESTAMP('2008-04-08 22:45:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54863
;
-- Apr 8, 2008 10:45:40 PM CDT
-- Libero HR & Payroll
UPDATE AD_Field SET Name='Target Document Type', Description='Target document type for conversing documents', Help='You can convert document types (e.g. from Offer to Order or Invoice). The conversion is then reflected in the current type. This processing is initiated by selecting the appropriate Document Action.' WHERE AD_Column_ID=54863 AND IsCentrallyMaintained='Y'
;
-- Apr 8, 2008 10:45:51 PM CDT
-- Libero HR & Payroll
UPDATE AD_Column SET AD_Val_Rule_ID=52021,Updated=TO_TIMESTAMP('2008-04-08 22:45:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54858
;
-- Apr 8, 2008 10:45:51 PM CDT
-- Libero HR & Payroll
UPDATE AD_Field SET Name='Document Type', Description='Document type or rules', Help='The Document Type determines document sequence and processing rules' WHERE AD_Column_ID=54858 AND IsCentrallyMaintained='Y'
;
-- Apr 8, 2008 10:50:36 PM CDT
-- Libero HR & Payroll
INSERT INTO GL_Category (AD_Client_ID,AD_Org_ID,CategoryType,Created,CreatedBy,GL_Category_ID,IsActive,IsDefault,Name,Updated,UpdatedBy) VALUES (11,0,'D',TO_TIMESTAMP('2008-04-08 22:50:35','YYYY-MM-DD HH24:MI:SS'),100,50000,'Y','N','Payroll',TO_TIMESTAMP('2008-04-08 22:50:35','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Apr 8, 2008 10:51:38 PM CDT
-- Libero HR & Payroll
INSERT INTO AD_Sequence (AD_Client_ID,AD_Org_ID,AD_Sequence_ID,Created,CreatedBy,CurrentNext,CurrentNextSys,IncrementNo,IsActive,IsAudited,IsAutoSequence,IsTableID,Name,StartNewYear,StartNo,Updated,UpdatedBy) VALUES (11,0,53130,TO_TIMESTAMP('2008-04-08 22:51:37','YYYY-MM-DD HH24:MI:SS'),100,100000,300000,1,'Y','N','Y','N','Payroll','N',300000,TO_TIMESTAMP('2008-04-08 22:51:37','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Apr 8, 2008 10:51:57 PM CDT
-- Libero HR & Payroll
INSERT INTO C_DocType (AD_Client_ID,AD_Org_ID,C_DocType_ID,Created,CreatedBy,DocBaseType,DocNoSequence_ID,DocumentCopies,GL_Category_ID,HasCharges,HasProforma,IsActive,IsCreateCounter,IsDefault,IsDefaultCounterDoc,IsDocNoControlled,IsInTransit,IsIndexed,IsOverwriteDateOnComplete,IsOverwriteSeqOnComplete,IsPickQAConfirm,IsSOTrx,IsShipConfirm,IsSplitWhenDifference,Name,PrintName,Updated,UpdatedBy) VALUES (11,0,50000,TO_TIMESTAMP('2008-04-08 22:51:57','YYYY-MM-DD HH24:MI:SS'),100,'HRP',53130,1,50000,'N','N','Y','Y','N','N','Y','N','Y','N','N','N','N','N','N','Payroll','Payroll',TO_TIMESTAMP('2008-04-08 22:51:57','YYYY-MM-DD HH24:MI:SS'),100)
;
-- Apr 8, 2008 10:51:58 PM CDT
-- Libero HR & Payroll
INSERT INTO C_DocType_Trl (AD_Language,C_DocType_ID, DocumentNote,Name,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.C_DocType_ID, t.DocumentNote,t.Name,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, C_DocType t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.C_DocType_ID=50000 AND EXISTS (SELECT * FROM C_DocType_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.C_DocType_ID!=t.C_DocType_ID)
;
-- Apr 8, 2008 10:51:58 PM CDT
-- Libero HR & Payroll
INSERT INTO AD_Document_Action_Access (AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,C_DocType_ID , AD_Ref_List_ID, AD_Role_ID) (SELECT 11,0,'Y', CURRENT_TIMESTAMP,100, CURRENT_TIMESTAMP,100, doctype.C_DocType_ID, "action".AD_Ref_List_ID, rol.AD_Role_ID FROM AD_Client client INNER JOIN C_DocType doctype ON (doctype.AD_Client_ID=client.AD_Client_ID) INNER JOIN AD_Ref_List "action" ON ("action".AD_Reference_ID=135) INNER JOIN AD_Role rol ON (rol.AD_Client_ID=client.AD_Client_ID) WHERE client.AD_Client_ID=11 AND doctype.C_DocType_ID=50000 AND rol.IsManual='N')
;
-- Apr 8, 2008 10:52:46 PM CDT
-- Libero HR & Payroll
UPDATE AD_Ref_List SET Name='Payroll',Updated=TO_TIMESTAMP('2008-04-08 22:52:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Ref_List_ID=53240
;
-- Apr 8, 2008 10:52:46 PM CDT
-- Libero HR & Payroll
UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53240
;

View File

@ -0,0 +1,300 @@
-- Apr 9, 2008 1:22:02 AM CDT
-- e-Evolution Libero Manufacturing Management
INSERT INTO AD_Menu (AD_Client_ID,AD_Form_ID,AD_Menu_ID,AD_Org_ID,"action",Created,CreatedBy,Description,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (0,116,53128,0,'X',TO_TIMESTAMP('2008-04-09 01:22:01','YYYY-MM-DD HH24:MI:SS'),0,'Edit Workflows','EE01','Y','N','N','N','Manufacturing Workflow Editor',TO_TIMESTAMP('2008-04-09 01:22:01','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Apr 9, 2008 1:22:02 AM CDT
-- e-Evolution Libero Manufacturing Management
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=53128 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID)
;
-- Apr 9, 2008 1:22:02 AM CDT
-- e-Evolution Libero Manufacturing Management
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0,t.AD_Tree_ID, 53128, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=53128)
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53083
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53019, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53021
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53019, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53020
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53019, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=469
;
-- Apr 9, 2008 1:22:09 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53019, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53128
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53019, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53021
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53019, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53020
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53019, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53128
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=501, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=427
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=501, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=152
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=501, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=469
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=501, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=500
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=501, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=429
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=501, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=470
;
-- Apr 9, 2008 1:22:39 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=501, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=428
;
-- Apr 9, 2008 1:23:57 AM CDT
-- e-Evolution Libero Manufacturing Management
INSERT INTO AD_Menu (AD_Client_ID,AD_Menu_ID,AD_Org_ID,AD_Window_ID,"action",Created,CreatedBy,Description,EntityType,IsActive,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (0,53129,0,53006,'W',TO_TIMESTAMP('2008-04-09 01:23:56','YYYY-MM-DD HH24:MI:SS'),0,'Maintain Product Bill of Materials & Formula ','EE01','Y','N','N','N','Quality Bill of Materials & Formula ',TO_TIMESTAMP('2008-04-09 01:23:56','YYYY-MM-DD HH24:MI:SS'),0)
;
-- Apr 9, 2008 1:23:57 AM CDT
-- e-Evolution Libero Manufacturing Management
INSERT INTO AD_Menu_Trl (AD_Language,AD_Menu_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Menu_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Menu t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Menu_ID=53129 AND EXISTS (SELECT * FROM AD_Menu_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Menu_ID!=t.AD_Menu_ID)
;
-- Apr 9, 2008 1:23:57 AM CDT
-- e-Evolution Libero Manufacturing Management
INSERT INTO AD_TreeNodeMM (AD_Client_ID,AD_Org_ID, IsActive,Created,CreatedBy,Updated,UpdatedBy, AD_Tree_ID, Node_ID, Parent_ID, SeqNo) SELECT t.AD_Client_ID,0, 'Y', CURRENT_TIMESTAMP, 0, CURRENT_TIMESTAMP, 0,t.AD_Tree_ID, 53129, 0, 999 FROM AD_Tree t WHERE t.AD_Client_ID=0 AND t.IsActive='Y' AND t.IsAllNodes='Y' AND t.TreeType='MM' AND NOT EXISTS (SELECT * FROM AD_TreeNodeMM e WHERE e.AD_Tree_ID=t.AD_Tree_ID AND Node_ID=53129)
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=218
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=153
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=263
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=166
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=203
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=236
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=183
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=160
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=278
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=345
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53014
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53108
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=0, SeqNo=12, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53083
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53071, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53072
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53071, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53129
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53071, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53024
;
-- Apr 9, 2008 1:24:02 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53071, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53073
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53071, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53072
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53071, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53129
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53071, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53073
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53022, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53023
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53022, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53024
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53022, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53025
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53022, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53026
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53022, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53027
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53022, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53028
;
-- Apr 9, 2008 1:24:21 AM CDT
-- e-Evolution Libero Manufacturing Management
UPDATE AD_TreeNodeMM SET Parent_ID=53022, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=426
;

View File

@ -0,0 +1,123 @@
-- 13-abr-2008 19:49:25 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Tab (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,EntityType,HasTree,ImportFields,IsActive,IsAdvancedTab,IsInfoTab,IsInsertRecord,IsReadOnly,IsSingleRow,IsSortTab,IsTranslationTab,Name,Processing,SeqNo,TabLevel,Updated,UpdatedBy) VALUES (0,0,53134,763,341,TO_TIMESTAMP('2008-04-13 19:49:18','YYYY-MM-DD HH24:MI:SS'),0,'D','N','N','Y','N','N','N','Y','N','N','N','Attributes','N',30,2,TO_TIMESTAMP('2008-04-13 19:49:18','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 13-abr-2008 19:49:25 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Tab_Trl (AD_Language,AD_Tab_ID, CommitWarning,Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Tab_ID, t.CommitWarning,t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Tab t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Tab_ID=53134 AND EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Tab_ID!=t.AD_Tab_ID)
;
-- 13-abr-2008 19:49:33 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,13358,55363,0,53134,TO_TIMESTAMP('2008-04-13 19:49:32','YYYY-MM-DD HH24:MI:SS'),0,'The record is active in the system',1,'D','There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
There are two reasons for de-activating and not deleting records:
(1) The system requires the record for audit purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Y','Y','Y','N','N','N','N','N','Active',TO_TIMESTAMP('2008-04-13 19:49:32','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 13-abr-2008 19:49:33 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55363 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- 13-abr-2008 19:49:34 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,13355,55364,0,53134,TO_TIMESTAMP('2008-04-13 19:49:33','YYYY-MM-DD HH24:MI:SS'),0,'Product Attribute Set Instance',22,'D','The values of the actual Product Attribute Instances. The product level attributes are defined on Product level.','Y','Y','Y','N','N','N','N','N','Attribute Set Instance',TO_TIMESTAMP('2008-04-13 19:49:33','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 13-abr-2008 19:49:34 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55364 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- 13-abr-2008 19:49:35 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,13356,55365,0,53134,TO_TIMESTAMP('2008-04-13 19:49:34','YYYY-MM-DD HH24:MI:SS'),0,'Client/Tenant for this installation.',22,'D','A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','Y','Y','N','N','N','N','N','Client',TO_TIMESTAMP('2008-04-13 19:49:34','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 13-abr-2008 19:49:35 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55365 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- 13-abr-2008 19:49:36 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,13363,55366,0,53134,TO_TIMESTAMP('2008-04-13 19:49:35','YYYY-MM-DD HH24:MI:SS'),0,'Quantity of a product moved.',22,'D','The Movement Quantity indicates the quantity of a product that has been moved.','Y','Y','Y','N','N','N','N','N','Movement Quantity',TO_TIMESTAMP('2008-04-13 19:49:35','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 13-abr-2008 19:49:36 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55366 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- 13-abr-2008 19:49:37 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,13357,55367,0,53134,TO_TIMESTAMP('2008-04-13 19:49:36','YYYY-MM-DD HH24:MI:SS'),0,'Organizational entity within client',22,'D','An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','Y','Y','N','N','N','N','N','Organization',TO_TIMESTAMP('2008-04-13 19:49:36','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 13-abr-2008 19:49:37 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55367 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- 13-abr-2008 19:49:39 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,Created,CreatedBy,Description,DisplayLength,EntityType,Help,IsActive,IsCentrallyMaintained,IsDisplayed,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,Updated,UpdatedBy) VALUES (0,13354,55368,0,53134,TO_TIMESTAMP('2008-04-13 19:49:37','YYYY-MM-DD HH24:MI:SS'),0,'Unique line in an Inventory document',22,'D','The Physical Inventory Line indicates the inventory document line (if applicable) for this transaction','Y','Y','Y','N','N','N','N','N','Phys.Inventory Line',TO_TIMESTAMP('2008-04-13 19:49:37','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 13-abr-2008 19:49:39 CDT
-- FIFO/FIFO Management
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Field t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Field_ID=55368 AND EXISTS (SELECT * FROM AD_Field_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Field_ID!=t.AD_Field_ID)
;
-- 13-abr-2008 19:50:46 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=55368
;
-- 13-abr-2008 19:50:46 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=55365
;
-- 13-abr-2008 19:50:46 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=55367
;
-- 13-abr-2008 19:50:46 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=55363
;
-- 13-abr-2008 19:50:46 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=55364
;
-- 13-abr-2008 19:50:46 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=55366
;
-- 13-abr-2008 19:50:55 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-04-13 19:50:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55367
;
-- 13-abr-2008 19:51:03 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2008-04-13 19:51:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=55366
;
-- 13-abr-2008 19:56:14 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=55363
;
-- 13-abr-2008 19:56:14 CDT
-- FIFO/FIFO Management
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=55368
;

View File

@ -0,0 +1,245 @@
-- 22-abr-2008 17:27:27 CDT
-- Implementing Reversal ID
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53457,0,'Reversal_ID',TO_TIMESTAMP('2008-04-22 17:27:18','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D','Y','Reversal ID','Reversal ID',TO_TIMESTAMP('2008-04-22 17:27:18','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 22-abr-2008 17:27:27 CDT
-- Implementing Reversal ID
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53457 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- 22-abr-2008 17:28:37 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55303,53457,0,18,337,319,'Reversal_ID',TO_TIMESTAMP('2008-04-22 17:28:33','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_TIMESTAMP('2008-04-22 17:28:33','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 17:28:37 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55303 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 17:30:13 CDT
-- Implementing Reversal ID
ALTER TABLE M_InOut ADD COLUMN Reversal_ID NUMERIC(10)
;
-- 22-abr-2008 17:32:10 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53249,TO_TIMESTAMP('2008-04-22 17:32:08','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N','M_Inventory',TO_TIMESTAMP('2008-04-22 17:32:08','YYYY-MM-DD HH24:MI:SS'),0,'T')
;
-- 22-abr-2008 17:32:10 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53249 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
;
-- 22-abr-2008 17:33:22 CDT
-- Implementing Reversal ID
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,3550,3542,0,53249,321,TO_TIMESTAMP('2008-04-22 17:33:22','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N',TO_TIMESTAMP('2008-04-22 17:33:22','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 22-abr-2008 17:33:44 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55304,53457,0,18,53249,321,'Reversal_ID',TO_TIMESTAMP('2008-04-22 17:33:43','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_TIMESTAMP('2008-04-22 17:33:43','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 17:33:45 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55304 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 17:33:50 CDT
-- Implementing Reversal ID
ALTER TABLE M_Inventory ADD COLUMN Reversal_ID NUMERIC(10)
;
-- 22-abr-2008 17:37:48 CDT
-- Implementing Reversal ID
insert into t_alter_column values('m_inventory','Reversal_ID','NUMERIC(10)',null,'NULL')
;
-- 22-abr-2008 17:38:42 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55305,53457,0,18,336,318,'Reversal_ID',TO_TIMESTAMP('2008-04-22 17:38:41','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_TIMESTAMP('2008-04-22 17:38:41','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 17:38:42 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55305 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 17:38:45 CDT
-- Implementing Reversal ID
ALTER TABLE C_Invoice ADD COLUMN Reversal_ID NUMERIC(10)
;
-- 22-abr-2008 17:42:57 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53250,TO_TIMESTAMP('2008-04-22 17:42:55','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N','GL_Journal',TO_TIMESTAMP('2008-04-22 17:42:55','YYYY-MM-DD HH24:MI:SS'),0,'T')
;
-- 22-abr-2008 17:42:57 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53250 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
;
-- 22-abr-2008 17:43:35 CDT
-- Implementing Reversal ID
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,1626,1617,0,53250,224,TO_TIMESTAMP('2008-04-22 17:43:35','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N',TO_TIMESTAMP('2008-04-22 17:43:35','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 22-abr-2008 17:43:58 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55306,53457,0,18,53250,224,'Reversal_ID',TO_TIMESTAMP('2008-04-22 17:43:57','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_TIMESTAMP('2008-04-22 17:43:57','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 17:43:58 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55306 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 17:44:01 CDT
-- Implementing Reversal ID
ALTER TABLE GL_Journal ADD COLUMN Reversal_ID NUMERIC(10)
;
-- 22-abr-2008 17:47:15 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53251,TO_TIMESTAMP('2008-04-22 17:47:11','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N','GL_JournalBatch',TO_TIMESTAMP('2008-04-22 17:47:11','YYYY-MM-DD HH24:MI:SS'),0,'T')
;
-- 22-abr-2008 17:47:15 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53251 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
;
-- 22-abr-2008 17:47:42 CDT
-- Implementing Reversal ID
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,1650,1641,0,53251,225,TO_TIMESTAMP('2008-04-22 17:47:42','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N',TO_TIMESTAMP('2008-04-22 17:47:42','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 22-abr-2008 17:48:01 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55307,53457,0,18,53251,225,'Reversal_ID',TO_TIMESTAMP('2008-04-22 17:48:00','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_TIMESTAMP('2008-04-22 17:48:00','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 17:48:01 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55307 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 17:48:04 CDT
-- Implementing Reversal ID
ALTER TABLE GL_JournalBatch ADD COLUMN Reversal_ID NUMERIC(10)
;
-- 22-abr-2008 17:49:14 CDT
-- Implementing Reversal ID
insert into t_alter_column values('gl_journalbatch','Reversal_ID','NUMERIC(10)',null,'NULL')
;
-- 22-abr-2008 17:50:43 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53252,TO_TIMESTAMP('2008-04-22 17:50:41','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N','M_Movement',TO_TIMESTAMP('2008-04-22 17:50:41','YYYY-MM-DD HH24:MI:SS'),0,'T')
;
-- 22-abr-2008 17:50:43 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53252 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
;
-- 22-abr-2008 17:51:11 CDT
-- Implementing Reversal ID
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,3577,3569,0,53252,323,TO_TIMESTAMP('2008-04-22 17:51:11','YYYY-MM-DD HH24:MI:SS'),0,'D','Y','N',TO_TIMESTAMP('2008-04-22 17:51:11','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 22-abr-2008 17:51:29 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55308,53457,0,18,53252,323,'Reversal_ID',TO_TIMESTAMP('2008-04-22 17:51:28','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_TIMESTAMP('2008-04-22 17:51:28','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 17:51:29 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55308 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 17:51:32 CDT
-- Implementing Reversal ID
ALTER TABLE M_Movement ADD COLUMN Reversal_ID NUMERIC(10)
;
-- 22-abr-2008 18:59:49 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55309,53457,0,18,343,335,'Reversal_ID',TO_TIMESTAMP('2008-04-22 18:59:43','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','D',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_TIMESTAMP('2008-04-22 18:59:43','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 18:59:49 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55309 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 19:03:28 CDT
-- Implementing Reversal ID
ALTER TABLE C_Payment ADD COLUMN Reversal_ID NUMERIC(10)
;
-- 22-abr-2008 19:07:04 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53253,TO_TIMESTAMP('2008-04-22 19:06:58','YYYY-MM-DD HH24:MI:SS'),0,'EE02','Y','N','HR_Process',TO_TIMESTAMP('2008-04-22 19:06:58','YYYY-MM-DD HH24:MI:SS'),0,'T')
;
-- 22-abr-2008 19:07:04 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53253 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
;
-- 22-abr-2008 19:08:11 CDT
-- Implementing Reversal ID
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,54870,54860,0,53253,53092,TO_TIMESTAMP('2008-04-22 19:08:11','YYYY-MM-DD HH24:MI:SS'),0,'EE02','Y','N',TO_TIMESTAMP('2008-04-22 19:08:11','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 22-abr-2008 19:08:33 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55310,53457,0,18,53253,53092,'Reversal_ID',TO_TIMESTAMP('2008-04-22 19:08:32','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','EE02',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_TIMESTAMP('2008-04-22 19:08:32','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 19:08:33 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55310 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 19:08:37 CDT
-- Implementing Reversal ID
ALTER TABLE HR_Process ADD COLUMN Reversal_ID NUMERIC(10)
;
-- 22-abr-2008 19:11:48 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,53254,TO_TIMESTAMP('2008-04-22 19:11:47','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N','PP_Cost_Collector',TO_TIMESTAMP('2008-04-22 19:11:47','YYYY-MM-DD HH24:MI:SS'),0,'T')
;
-- 22-abr-2008 19:11:48 CDT
-- Implementing Reversal ID
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53254 AND EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Reference_ID!=t.AD_Reference_ID)
;
-- 22-abr-2008 19:12:26 CDT
-- Implementing Reversal ID
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy) VALUES (0,53830,53828,0,53254,53035,TO_TIMESTAMP('2008-04-22 19:12:26','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','N',TO_TIMESTAMP('2008-04-22 19:12:26','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 22-abr-2008 19:12:45 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55311,53457,0,18,53254,53035,'Reversal_ID',TO_TIMESTAMP('2008-04-22 19:12:44','YYYY-MM-DD HH24:MI:SS'),0,'ID of document reversal','EE01',22,'Y','N','N','N','N','N','N','N','N','N','Y','Reversal ID',0,TO_TIMESTAMP('2008-04-22 19:12:44','YYYY-MM-DD HH24:MI:SS'),0,0)
;
-- 22-abr-2008 19:12:45 CDT
-- Implementing Reversal ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55311 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 22-abr-2008 19:12:48 CDT
-- Implementing Reversal ID
ALTER TABLE PP_Cost_Collector ADD COLUMN Reversal_ID NUMERIC(10)
;

View File

@ -0,0 +1,7 @@
INSERT INTO AD_Message (AD_Client_ID,AD_Message_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,MsgText,MsgTip,MsgType,Updated,UpdatedBy,Value) VALUES (0,53029,0,TO_TIMESTAMP('2008-05-08 11:13:10','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Choose the date of the most recent payment that you plan to allocate, but it must be in an open accounting period or it will not post.','Prefer most recent payment date, within open period.','I',TO_TIMESTAMP('2008-05-08 11:13:10','YYYY-MM-DD HH24:MI:SS'),100,'AllocDate')
;
INSERT INTO AD_Message_Trl (AD_Language,AD_Message_ID, MsgText,MsgTip, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Message_ID, t.MsgText,t.MsgTip, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Message t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Message_ID=53029 AND EXISTS (SELECT * FROM AD_Message_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Message_ID!=t.AD_Message_ID)
;

View File

@ -0,0 +1,50 @@
-- 8/05/2008 16:30:23
-- Generated_Order_ID
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53462,0,'Link_Order_ID',TO_TIMESTAMP('2008-05-08 16:30:19','YYYY-MM-DD HH24:MI:SS'),100,'This field links a sales order to the purchase order that is generated from it.','D','Y','Linked Order','Linked Order',TO_TIMESTAMP('2008-05-08 16:30:19','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 8/05/2008 16:30:23
-- Generated_Order_ID
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53462 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- 8/05/2008 16:31:41
-- Generated_Order_ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55322,53462,0,18,290,259,'Link_Order_ID',TO_TIMESTAMP('2008-05-08 16:31:38','YYYY-MM-DD HH24:MI:SS'),100,'This field links a sales order to the purchase order that is generated from it.','D',22,'Y','N','N','N','N','N','N','N','N','N','N','Linked Order',0,TO_TIMESTAMP('2008-05-08 16:31:38','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 8/05/2008 16:31:41
-- Generated_Order_ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55322 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 8/05/2008 16:31:53
-- Generated_Order_ID
ALTER TABLE C_Order ADD COLUMN Link_Order_ID NUMERIC(10)
;
-- 8/05/2008 16:58:30
-- Generated_Order_ID
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,Description,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53463,0,'Link_OrderLine_ID',TO_TIMESTAMP('2008-05-08 16:58:29','YYYY-MM-DD HH24:MI:SS'),100,'This field links a sales order line to the purchase order line that is generated from it.','D','Y','Linked Order Line','Linked Order Line',TO_TIMESTAMP('2008-05-08 16:58:29','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 8/05/2008 16:58:30
-- Generated_Order_ID
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Element_ID, t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Element_ID=53463 AND EXISTS (SELECT * FROM AD_Element_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Element_ID!=t.AD_Element_ID)
;
-- 8/05/2008 16:59:18
-- Generated_Order_ID
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,55323,53463,0,18,271,260,'Link_OrderLine_ID',TO_TIMESTAMP('2008-05-08 16:59:17','YYYY-MM-DD HH24:MI:SS'),100,'This field links a sales order line to the purchase order line that is generated from it.','D',22,'Y','N','N','N','N','N','N','N','N','N','N','Linked Order Line',0,TO_TIMESTAMP('2008-05-08 16:59:17','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 8/05/2008 16:59:18
-- Generated_Order_ID
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=55323 AND EXISTS (SELECT * FROM AD_Column_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Column_ID!=t.AD_Column_ID)
;
-- 8/05/2008 16:59:21
-- Generated_Order_ID
ALTER TABLE C_OrderLine ADD COLUMN Link_OrderLine_ID NUMERIC(10)
;

View File

@ -0,0 +1,215 @@
-- May 11, 2008 1:57:39 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_Workflow SET AccessLevel='1', Author='e-Evolution', Duration=1, IsValid='Y',Updated=TO_TIMESTAMP('2008-05-11 13:57:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Workflow_ID=50008
;
-- May 11, 2008 1:58:14 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-05-11 13:58:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50026
;
-- May 11, 2008 1:59:35 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Transition)',Updated=TO_TIMESTAMP('2008-05-11 13:59:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50010
;
-- May 11, 2008 2:00:15 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Approval)', IsStdUserWorkflow='Y',Updated=TO_TIMESTAMP('2008-05-11 14:00:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50011
;
-- May 11, 2008 2:01:11 PM CDT
-- Fixed workflow to Libero Document
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,Description,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50026,50063,50029,TO_TIMESTAMP('2008-05-11 14:01:09','YYYY-MM-DD HH24:MI:SS'),0,'(Standard Transition)','EE01','Y','N',100,TO_TIMESTAMP('2008-05-11 14:01:09','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 11, 2008 2:04:02 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_Workflow SET Description='(Standard Process Manufacturing Order)', IsValid='Y',Updated=TO_TIMESTAMP('2008-05-11 14:04:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Workflow_ID=50008
;
-- May 11, 2008 2:04:02 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_Workflow_Trl SET IsTranslated='N' WHERE AD_Workflow_ID=50008
;
-- May 11, 2008 2:04:02 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET Description='(Standard Process Manufacturing Order)', Help=NULL, Name='Process_Manufacturing_Order',Updated=TO_TIMESTAMP('2008-05-11 14:04:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50026
;
-- May 11, 2008 2:04:02 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node_Trl SET IsTranslated='N' WHERE AD_WF_Node_ID=50026
;
-- May 11, 2008 2:04:19 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=182, YPosition=143,Updated=TO_TIMESTAMP('2008-05-11 14:04:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50027
;
-- May 11, 2008 2:04:19 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=182, YPosition=7,Updated=TO_TIMESTAMP('2008-05-11 14:04:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50028
;
-- May 11, 2008 2:04:19 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=4, YPosition=6,Updated=TO_TIMESTAMP('2008-05-11 14:04:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50029
;
-- May 11, 2008 2:04:19 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=4, YPosition=147,Updated=TO_TIMESTAMP('2008-05-11 14:04:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50026
;
-- May 11, 2008 2:06:59 PM CDT
-- Fixed workflow to Libero Document
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50071,50064,50070,TO_TIMESTAMP('2008-05-11 14:06:54','YYYY-MM-DD HH24:MI:SS'),0,'EE02','Y','Y',10,TO_TIMESTAMP('2008-05-11 14:06:54','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 11, 2008 2:08:54 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-05-11 14:08:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50073
;
-- May 11, 2008 2:09:20 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-05-11 14:09:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50072
;
-- May 11, 2008 2:09:49 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-05-11 14:09:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50071
;
-- May 11, 2008 2:10:04 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Transition)',Updated=TO_TIMESTAMP('2008-05-11 14:10:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50058
;
-- May 11, 2008 2:10:28 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-05-11 14:10:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50070
;
-- May 11, 2008 2:10:43 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Approval)',Updated=TO_TIMESTAMP('2008-05-11 14:10:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50064
;
-- May 11, 2008 2:10:54 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Transition)',Updated=TO_TIMESTAMP('2008-05-11 14:10:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50057
;
-- May 11, 2008 2:11:40 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=1, YPosition=0,Updated=TO_TIMESTAMP('2008-05-11 14:11:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50070
;
-- May 11, 2008 2:11:40 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=226, YPosition=0,Updated=TO_TIMESTAMP('2008-05-11 14:11:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50071
;
-- May 11, 2008 2:11:40 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=223, YPosition=103,Updated=TO_TIMESTAMP('2008-05-11 14:11:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50072
;
-- May 11, 2008 2:11:41 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET XPosition=0, YPosition=99,Updated=TO_TIMESTAMP('2008-05-11 14:11:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50073
;
-- May 11, 2008 2:13:06 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_Workflow SET AD_WF_Node_ID=50041, Author='e-Evolution', IsValid='Y',Updated=TO_TIMESTAMP('2008-05-11 14:13:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Workflow_ID=50011
;
-- May 11, 2008 2:13:21 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-05-11 14:13:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50043
;
-- May 11, 2008 2:13:40 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-05-11 14:13:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50044
;
-- May 11, 2008 2:13:57 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-05-11 14:13:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50042
;
-- May 11, 2008 2:14:14 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Transition)',Updated=TO_TIMESTAMP('2008-05-11 14:14:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50036
;
-- May 11, 2008 2:14:47 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-05-11 14:14:47','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50041
;
-- May 11, 2008 2:15:10 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Approval)', IsStdUserWorkflow='Y',Updated=TO_TIMESTAMP('2008-05-11 14:15:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50035
;
-- May 11, 2008 2:15:46 PM CDT
-- Fixed workflow to Libero Document
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,Description,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50043,50065,50041,TO_TIMESTAMP('2008-05-11 14:15:45','YYYY-MM-DD HH24:MI:SS'),0,'(Standard Transition)','EE01','Y','N',100,TO_TIMESTAMP('2008-05-11 14:15:45','YYYY-MM-DD HH24:MI:SS'),0)
;
-- May 11, 2008 2:17:16 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_Workflow SET Description='(Standard Process Manufacturing Cost Collector)', Duration=1, IsValid='Y',Updated=TO_TIMESTAMP('2008-05-11 14:17:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Workflow_ID=50009
;
-- May 11, 2008 2:17:16 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_Workflow_Trl SET IsTranslated='N' WHERE AD_Workflow_ID=50009
;
-- May 11, 2008 2:17:30 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-05-11 14:17:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50030
;
-- May 11, 2008 2:17:39 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-05-11 14:17:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50031
;
-- May 11, 2008 2:17:48 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-05-11 14:17:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50032
;
-- May 11, 2008 2:18:04 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Transition)',Updated=TO_TIMESTAMP('2008-05-11 14:18:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50012
;
-- May 11, 2008 2:18:09 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET SeqNo=100,Updated=TO_TIMESTAMP('2008-05-11 14:18:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50012
;
-- May 11, 2008 2:18:26 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_Node SET IsCentrallyMaintained='Y',Updated=TO_TIMESTAMP('2008-05-11 14:18:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_Node_ID=50033
;
-- May 11, 2008 2:18:40 PM CDT
-- Fixed workflow to Libero Document
UPDATE AD_WF_NodeNext SET Description='(Standard Approval)',Updated=TO_TIMESTAMP('2008-05-11 14:18:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_WF_NodeNext_ID=50013
;
-- May 11, 2008 2:19:11 PM CDT
-- Fixed workflow to Libero Document
INSERT INTO AD_WF_NodeNext (AD_Client_ID,AD_Org_ID,AD_WF_Next_ID,AD_WF_NodeNext_ID,AD_WF_Node_ID,Created,CreatedBy,Description,EntityType,IsActive,IsStdUserWorkflow,SeqNo,Updated,UpdatedBy) VALUES (0,0,50030,50066,50033,TO_TIMESTAMP('2008-05-11 14:19:10','YYYY-MM-DD HH24:MI:SS'),0,'(Standard Transition)','EE01','Y','N',100,TO_TIMESTAMP('2008-05-11 14:19:10','YYYY-MM-DD HH24:MI:SS'),0)
;

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,5 @@
-- May 11, 2008 11:19:42 PM CDT
-- Fixed Libero Multi Print BOM
UPDATE AD_Process SET AD_PrintFormat_ID=NULL, AD_ReportView_ID=NULL,Updated=TO_TIMESTAMP('2008-05-11 23:19:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53006
;

View File

@ -0,0 +1,9 @@
-- May 12, 2008 11:25:19 AM EST
-- BF1962125 entitytype incorrect for IsRegistered in table HR_Movement
UPDATE AD_Column SET EntityType='EE02',Updated=TO_TIMESTAMP('2008-05-12 11:25:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=55031
;
-- May 12, 2008 11:25:19 AM EST
-- BF1962125 entitytype incorrect for IsRegistered in table HR_Movement
UPDATE AD_Field SET EntityType='EE02',Updated=TO_TIMESTAMP('2008-05-12 11:55:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=55186
;

Some files were not shown because too many files have changed in this diff Show More