BF [ 2530171 ] Cost BOM Multilevel report is wrong if more than two levels

https://sourceforge.net/tracker/index.php?func=detail&aid=2530171&group_id=176962&atid=879332

BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
https://sourceforge.net/tracker/index.php?func=detail&aid=2539976&group_id=176962&atid=879332
This commit is contained in:
teo_sarca 2009-01-27 14:45:21 +00:00
parent 1dd83ecbb2
commit 5db00b1386
6 changed files with 956 additions and 388 deletions

View File

@ -12,6 +12,7 @@
* For the text or an alternative of this public license, you may reach us * * For the text or an alternative of this public license, you may reach us *
* Copyright (C) 2003-2007 e-Evolution,SC. All Rights Reserved. * * Copyright (C) 2003-2007 e-Evolution,SC. All Rights Reserved. *
* Contributor(s): Victor Perez www.e-evolution.com * * Contributor(s): Victor Perez www.e-evolution.com *
* Teo Sarca, http://www.arhipac.ro *
*****************************************************************************/ *****************************************************************************/
//package org.compiere.mfg.model; //package org.compiere.mfg.model;
package org.eevolution.model; package org.eevolution.model;
@ -92,7 +93,7 @@ public class MPPProductBOM extends X_PP_Product_BOM
return new Query(product.getCtx(), Table_Name, "M_Product_ID=? AND Value=?", trxName) return new Query(product.getCtx(), Table_Name, "M_Product_ID=? AND Value=?", trxName)
.setParameters(new Object[]{product.getM_Product_ID(), product.getValue()}) .setParameters(new Object[]{product.getM_Product_ID(), product.getValue()})
.setClient_ID() .setClient_ID()
.first(); .firstOnly();
} }
/** /**
@ -239,7 +240,7 @@ public class MPPProductBOM extends X_PP_Product_BOM
@Override @Override
public String toString () public String toString ()
{ {
StringBuffer sb = new StringBuffer ("MPP_ProductBOM[") StringBuffer sb = new StringBuffer ("MPPProductBOM[")
.append(get_ID()).append("-").append(getDocumentNo()) .append(get_ID()).append("-").append(getDocumentNo())
.append ("]"); .append ("]");
return sb.toString (); return sb.toString ();

View File

@ -16,6 +16,8 @@
*****************************************************************************/ *****************************************************************************/
package org.eevolution.model; package org.eevolution.model;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.sql.PreparedStatement; import java.sql.PreparedStatement;
import java.sql.ResultSet; import java.sql.ResultSet;
import java.sql.SQLException; import java.sql.SQLException;
@ -139,6 +141,22 @@ public class MPPProductBOMLine extends X_PP_Product_BOMLine
return false; return false;
return true; return true;
} }
/**
* Return absolute (unified) quantity value.
* If QtyBOM is filled, QtyBOM will be returned.
* If QtyBatch is filled, QtyBatch / 100 will be returned
* @return qty
*/
public BigDecimal getQty()
{
if(getQtyBOM().signum() != 0)
return getQtyBOM();
else if(getQtyBatch().signum() != 0)
return getQtyBatch().divide(Env.ONEHUNDRED, 12, RoundingMode.HALF_UP);
else
return Env.ZERO;
}
} }
class ProductLowLevelCalculator class ProductLowLevelCalculator

View File

@ -0,0 +1,243 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* Copyright (C) 2003-2007 e-Evolution,SC. All Rights Reserved. *
* Contributor(s): Victor Perez www.e-evolution.com *
* Teo Sarca, www.arhipac.ro *
*****************************************************************************/
package org.eevolution.report;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.logging.Level;
import org.adempiere.exceptions.AdempiereException;
import org.adempiere.exceptions.FillMandatoryException;
import org.compiere.model.MAcctSchema;
import org.compiere.model.MCost;
import org.compiere.model.MCostElement;
import org.compiere.model.MProduct;
import org.compiere.model.Query;
import org.compiere.process.ProcessInfoParameter;
import org.compiere.process.SvrProcess;
import org.compiere.util.Env;
import org.eevolution.model.MPPProductBOM;
import org.eevolution.model.MPPProductBOMLine;
import org.eevolution.model.X_T_BOMLine;
/**
* Cost Multi-Level BOM & Formula Review
*
* @author victor.perez@e-evolution.com
* @author Teo Sarca, www.arhipac.ro
*
*/
public class CostBillOfMaterial extends SvrProcess
{
private static final String LEVELS = "....................";
//
private int p_AD_Org_ID = 0;
private int p_C_AcctSchema_ID = 0;
private int p_M_Product_ID = 0;
private boolean p_implosion = false;
//
private int m_LevelNo = 0;
private int m_SeqNo = 0;
private MAcctSchema m_as = null;
private Collection <MCostElement> m_costElements = null;
protected void prepare()
{
for (ProcessInfoParameter para : getParameter())
{
String name = para.getParameterName();
if (para.getParameter() == null)
;
else if (name.equals("AD_Org_ID"))
{
p_AD_Org_ID = para.getParameterAsInt();
}
else if (name.equals("C_AcctSchema_ID"))
{
p_C_AcctSchema_ID= para.getParameterAsInt();
m_as = MAcctSchema.get(getCtx(), p_C_AcctSchema_ID);
}
else if (name.equals("M_Product_ID"))
{
p_M_Product_ID = para.getParameterAsInt();
}
else
{
log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name);
}
}
} // prepare
/**
* Perform process.
*
* @return Message (clear text)
* @throws Exception
* if not successful
*/
protected String doIt() throws Exception
{
if (p_M_Product_ID == 0)
{
throw new FillMandatoryException("M_Product_ID");
}
m_costElements = MCostElement.getByCostingMethod(getCtx(), MCostElement.COSTINGMETHOD_StandardCosting);
explodeProduct(p_M_Product_ID, false);
//
return "";
} // doIt
/**
* Generate an Explosion for this product
* @param product
* @param isComponent component / header
*/
private void explodeProduct(int M_Product_ID, boolean isComponent)
{
MProduct product = MProduct.get(getCtx(), M_Product_ID);
List<MPPProductBOM> list = getBOMs(product, isComponent);
if (!isComponent && list.size() == 0)
{
throw new AdempiereException("@Error@ Product is not a BOM");
}
//
for (MPPProductBOM bom : list)
{
// Create header
if (!isComponent)
{
createLines(bom, null);
}
m_LevelNo++;
// Create Lines:
for (MPPProductBOMLine bomLine : bom.getLines())
{
if (!bomLine.isActive())
{
continue;
}
createLines(bom, bomLine);
explodeProduct(bomLine.getM_Product_ID(), true);
}
m_LevelNo--;
}
}
/**
* Get BOMs for given product
* @param product
* @param isComponent
* @return list of MPPProductBOM
*/
private List<MPPProductBOM> getBOMs(MProduct product, boolean includeAlternativeBOMs)
{
ArrayList<Object> params = new ArrayList<Object>();
StringBuffer whereClause = new StringBuffer();
whereClause.append(MPPProductBOM.COLUMNNAME_M_Product_ID).append("=?");
params.add(product.get_ID());
// Allow alternative BOMs
if (includeAlternativeBOMs)
{
whereClause.append(" AND ").append(MPPProductBOM.COLUMNNAME_Value).append("=?");
params.add(product.getValue());
}
List<MPPProductBOM> list = new Query(getCtx(), MPPProductBOM.Table_Name, whereClause.toString(), null)
.setParameters(params)
.setOnlyActiveRecords(true)
.setOrderBy(MPPProductBOM.COLUMNNAME_Value)
.list();
return list;
}
/**
* Create T_BOMLine
* @param product
* @param costElement
* @param qty
* @param bomLine
* @return
*/
private void createLines(MPPProductBOM bom, MPPProductBOMLine bomLine)
{
MProduct product;
BigDecimal qty;
if (bomLine != null)
{
product = MProduct.get(getCtx(), bomLine.getM_Product_ID());
qty = bomLine.getQty();
}
else if (bom != null)
{
product = MProduct.get(getCtx(), bom.getM_Product_ID());
qty = Env.ONE;
}
else
{
throw new AdempiereException("@NotFound@ @PP_Product_BOM_ID@");
}
for (MCostElement costElement : m_costElements)
{
X_T_BOMLine tboml = new X_T_BOMLine(getCtx(), 0, get_TrxName());
tboml.setAD_Org_ID(p_AD_Org_ID);
tboml.setSel_Product_ID(p_M_Product_ID);
tboml.setImplosion(p_implosion);
tboml.setC_AcctSchema_ID(p_C_AcctSchema_ID);
tboml.setAD_PInstance_ID(getAD_PInstance_ID());
tboml.setM_CostElement_ID(costElement.get_ID());
tboml.setM_Product_ID(product.get_ID());
tboml.setQtyBOM(qty);
//
tboml.setSeqNo(m_SeqNo);
tboml.setLevelNo(m_LevelNo);
tboml.setLevels(LEVELS.substring(0, m_LevelNo) + m_LevelNo);
//
// Set Costs:
Collection <MCost> costs = MCost.getByCostingMethod(
product,
m_as,
p_AD_Org_ID,
0, // ASI
MCostElement.COSTINGMETHOD_StandardCosting,
costElement.getCostElementType());
BigDecimal currentCostPrice = Env.ZERO;
BigDecimal currentCostPriceLL = Env.ZERO;
for (MCost cost : costs)
{
currentCostPrice = currentCostPrice.add(cost.getCurrentCostPrice());
currentCostPriceLL = currentCostPriceLL.add(cost.getCurrentCostPriceLL());
}
tboml.setCurrentCostPrice(currentCostPrice);
tboml.setCurrentCostPriceLL(currentCostPriceLL);
//
// Reference
if (bomLine != null)
{
tboml.setPP_Product_BOM_ID(bomLine.getPP_Product_BOM_ID());
tboml.setPP_Product_BOMLine_ID(bomLine.getPP_Product_BOMLine_ID());
}
else if (bom != null)
{
tboml.setPP_Product_BOM_ID(bom.getPP_Product_BOM_ID());
}
//
tboml.saveEx();
m_SeqNo++;
}
}
}

View File

@ -1,386 +0,0 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* Copyright (C) 2003-2007 e-Evolution,SC. All Rights Reserved. *
* Contributor(s): Victor Perez www.e-evolution.com *
*****************************************************************************/
package org.eevolution.process;
import java.math.BigDecimal;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Collection;
import java.util.Properties;
import java.util.logging.Level;
import javax.sql.RowSet;
import org.compiere.model.MAcctSchema;
import org.compiere.model.MCost;
import org.compiere.model.MCostElement;
import org.compiere.model.MProduct;
import org.compiere.model.MQuery;
import org.compiere.model.MTable;
import org.compiere.model.PrintInfo;
import org.compiere.print.MPrintFormat;
import org.compiere.print.ReportCtl;
import org.compiere.print.ReportEngine;
import org.compiere.process.ProcessInfoParameter;
import org.compiere.process.SvrProcess;
import org.compiere.util.CLogger;
import org.compiere.util.DB;
import org.compiere.util.Env;
import org.compiere.util.Language;
import org.compiere.util.ValueNamePair;
import org.eevolution.model.X_T_BOMLine;
/**
* Cost Multi-Level BOM & Formula Review
*
* @author victor.perez@e-evolution.com
*
*/
public class CostBillOfMaterial extends SvrProcess
{
private static final Properties ctx = Env.getCtx();
private int p_AD_Org_ID = 0 ;
private int p_C_AcctSchema_ID = 0 ;
private MAcctSchema as = null;
private int p_M_Product_ID = 0;
private boolean p_implosion = false;
private int LevelNo = 1;
private int SeqNo = 0;
private String levels = new String("....................");
private int AD_PInstance_ID = 0;
private Collection <MCostElement> elements = null;
/**
* Prepare - e.g., get Parameters.
*/
protected void prepare()
{
for (ProcessInfoParameter para : getParameter())
{
String name = para.getParameterName();
if (para.getParameter() == null)
;
else if (name.equals("AD_Org_ID"))
{
p_AD_Org_ID = ((BigDecimal) para.getParameter()).intValue();
}
else if (name.equals("C_AcctSchema_ID"))
{
p_C_AcctSchema_ID= ((BigDecimal) para.getParameter()).intValue();
as = MAcctSchema.get(getCtx(), p_C_AcctSchema_ID);
}
else if (name.equals("M_Product_ID"))
{
p_M_Product_ID = ((BigDecimal) para.getParameter()).intValue();
}
else if (name.equals("Implosion"))
{
p_implosion = ((String) para.getParameter()).equals("N") ? false : true;
}
else
log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name);
}
} // prepare
/**
* Perform process.
*
* @return Message (clear text)
* @throws Exception
* if not successful
*/
protected String doIt() throws Exception
{
AD_PInstance_ID = getAD_PInstance_ID();
try
{
loadBOM();
print();
}
catch (Exception e)
{
log.log(Level.SEVERE, "PrintBOM", e.toString());
throw new Exception(e.getLocalizedMessage());
}
finally
{
String sql = "DELETE FROM T_BomLine WHERE AD_PInstance_ID = " + AD_PInstance_ID;
DB.executeUpdate(sql, null);
}
return "@OK@";
} // doIt
/**
* Print result generate for this report
*/
void print() throws Exception
{
Language language = Language.getLoginLanguage(); // Base Language
MPrintFormat pf = null;
int pfid = 0;
int vid = MTable.getTable_ID("RV_PP_Cost_BOMLine");
// get print format for client, else copy system to client
RowSet pfrs = MPrintFormat.getAccessiblePrintFormats(vid, -1, null);
pfrs.next();
pfid = pfrs.getInt("AD_PrintFormat_ID");
if(pfrs.getInt("AD_Client_ID") != 0) pf = MPrintFormat.get(getCtx(), pfid, false);
else pf = MPrintFormat.copyToClient(getCtx(), pfid, getAD_Client_ID());
pfrs.close();
if (pf == null) raiseError("Error: ","No Print Format");
pf.setLanguage(language);
pf.setTranslationLanguage(language);
// query
MQuery query = MQuery.get(getCtx(), AD_PInstance_ID, "RV_PP_Cost_BOMLine");
query.addRestriction("AD_PInstance_ID", MQuery.EQUAL, AD_PInstance_ID);
PrintInfo info = new PrintInfo("RV_PP_Cost_BOMLine", vid , getRecord_ID());
ReportEngine re = new ReportEngine(getCtx(), pf, query, info);
ReportCtl.preview(re);
// wait for report window to be closed as t_bomline
// records are deleted when process ends
while (re.getView().isDisplayable())
{
Env.sleep(1);
}
}
/**
* Action: Fill Tree with all nodes
*/
private void loadBOM() throws Exception
{
elements = MCostElement.getByCostingMethod(getCtx(), MCostElement.COSTINGMETHOD_StandardCosting);
int count = 0;
if (p_M_Product_ID == 0)
raiseError("Error: ","Product ID not found");
for(MCostElement element : elements)
{
MProduct product = MProduct.get(getCtx(), p_M_Product_ID);
Collection <MCost> costs = MCost.getByCostingMethod(
product,
as,
p_AD_Org_ID,
0,
MCostElement.COSTINGMETHOD_StandardCosting,
element.getCostElementType());
BigDecimal currentCostPrice = Env.ZERO;
BigDecimal currentCostPriceLL = Env.ZERO;
for (MCost cost : costs)
{
currentCostPrice = currentCostPrice.add(cost.getCurrentCostPrice());
currentCostPriceLL = currentCostPriceLL.add(cost.getCurrentCostPriceLL());
}
X_T_BOMLine tboml = new X_T_BOMLine(ctx, 0, null);
tboml.setPP_Product_BOM_ID(0);
tboml.setPP_Product_BOMLine_ID(0);
tboml.setM_Product_ID(p_M_Product_ID);
tboml.setSel_Product_ID(p_M_Product_ID);
tboml.setM_CostElement_ID(element.getM_CostElement_ID());
tboml.setCurrentCostPrice(currentCostPrice);
tboml.setCurrentCostPriceLL(currentCostPriceLL);
tboml.setQtyBOM(Env.ONE);
tboml.setImplosion(p_implosion);
tboml.setC_AcctSchema_ID(p_C_AcctSchema_ID);
tboml.setLevelNo(0);
tboml.setLevels("0");
tboml.setSeqNo(0);
tboml.setAD_PInstance_ID(AD_PInstance_ID);
tboml.save();
}
PreparedStatement stmt = null;
ResultSet rs = null;
String sql = "SELECT PP_Product_BOM_ID FROM PP_Product_BOM "
+ "WHERE IsActive = 'Y' AND M_Product_ID = ? ";
try
{
stmt = DB.prepareStatement(sql, get_TrxName());
stmt.setInt(1, p_M_Product_ID);
rs = stmt.executeQuery();
while (rs.next())
{
parentExplotion(rs.getInt(1));
++count;
}
if (count == 0)
raiseError("Error: ","Product is not a BOM");
}
catch (SQLException e)
{
log.log(Level.SEVERE, e.getLocalizedMessage() + sql, e);
throw new Exception("SQLException: "+e.getLocalizedMessage());
}
finally
{
DB.close(rs, stmt);
rs = null;
stmt = null;
}
}
/**
* Generate an Explotion for this BOM
*
* @param PP_Product_BOMLine_ID
* ID BOM Line
*/
public void parentExplotion(int PP_Product_BOM_ID) throws Exception
{
PreparedStatement stmt = null;
ResultSet rs = null;
final String sql = "SELECT PP_Product_BOMLine_ID, M_Product_ID, QtyBOM , QtyBatch FROM PP_Product_BOMLine boml "
+ "WHERE IsActive = 'Y' AND PP_Product_BOM_ID = ? ORDER BY Line ";
try
{
stmt = DB.prepareStatement(sql, get_TrxName());
stmt.setInt(1, PP_Product_BOM_ID);
rs = stmt.executeQuery();
while (rs.next())
{
SeqNo += 1;
for(MCostElement element : elements)
{
int M_Product_ID = rs.getInt(2);
BigDecimal qtyBOM = rs.getBigDecimal(3);
BigDecimal qtyBatch = rs.getBigDecimal(4);
BigDecimal qty = Env.ZERO;
if(qtyBOM.signum() > 0 )
qty = qtyBOM;
else if(qtyBatch.signum() > 0)
qty = qtyBatch.divide(Env.ONEHUNDRED,BigDecimal.ROUND_HALF_UP);
MProduct product = MProduct.get(getCtx(), M_Product_ID);
Collection <MCost> costs = MCost.getByCostingMethod(
product,
as,
p_AD_Org_ID,
0,
MCostElement.COSTINGMETHOD_StandardCosting,
element.getCostElementType());
BigDecimal currentCostPrice = Env.ZERO;
BigDecimal currentCostPriceLL = Env.ZERO;
for (MCost cost : costs)
{
currentCostPrice = currentCostPrice.add(cost.getCurrentCostPrice());
currentCostPriceLL = currentCostPriceLL.add(cost.getCurrentCostPriceLL());
}
X_T_BOMLine tboml = new X_T_BOMLine(ctx, 0, null);
tboml.setPP_Product_BOM_ID(PP_Product_BOM_ID);
tboml.setPP_Product_BOMLine_ID(rs.getInt(1));
tboml.setM_Product_ID(M_Product_ID);
tboml.setM_CostElement_ID(element.getM_CostElement_ID());
tboml.setCurrentCostPrice(currentCostPrice);
tboml.setCurrentCostPriceLL(currentCostPriceLL);
tboml.setQtyBOM(qty);
tboml.setLevelNo(LevelNo);
tboml.setLevels(levels.substring(0, LevelNo) + LevelNo);
tboml.setSeqNo(SeqNo);
tboml.setC_AcctSchema_ID(p_C_AcctSchema_ID);
tboml.setAD_PInstance_ID(AD_PInstance_ID);
tboml.setSel_Product_ID(p_M_Product_ID);
tboml.setImplosion(false);
tboml.save();
component(rs.getInt(2));
}
}
}
catch (SQLException e)
{
log.log(Level.SEVERE, e.getLocalizedMessage() + sql, e);
throw new Exception("SQLException: "+e.getLocalizedMessage());
}
finally
{
DB.close(rs, stmt);
rs = null;
stmt = null;
}
}
/**
* Find if this product as component
*
* @param M_Product_ID
* ID Component
*/
public void component(int M_Product_ID) throws Exception
{
String sql = "SELECT PP_Product_BOM_ID FROM PP_Product_BOM "
+ "WHERE IsActive = 'Y' AND Value = ? ";
PreparedStatement stmt = null;
ResultSet rs = null;
try
{
String Value = DB.getSQLValueString(get_TrxName(),
"SELECT Value FROM M_PRODUCT WHERE M_PRODUCT_ID=?", M_Product_ID);
if (Value == null)
{
throw new Exception(CLogger.retrieveErrorString("Error: PrintBOM.component()"));
}
stmt = DB.prepareStatement(sql, get_TrxName());
stmt.setString(1, Value);
rs = stmt.executeQuery();
boolean level = false;
while (rs.next())
{
if (!level) LevelNo += 1;
level = true;
parentExplotion(rs.getInt(1));
LevelNo -= 1;
}
}
catch (SQLException e)
{
log.log(Level.SEVERE, e.getLocalizedMessage() + sql, e);
throw new Exception("SQLException: "+e.getLocalizedMessage());
}
finally
{
DB.close(rs, stmt);
rs = null;
stmt = null;
}
return;
}
private void raiseError(String string, String hint) throws Exception
{
String msg = string;
ValueNamePair pp = CLogger.retrieveError();
if (pp != null) msg = pp.getName() + " - ";
msg += hint;
throw new Exception(msg);
}
}

View File

@ -0,0 +1,346 @@
DROP VIEW rv_pp_cost_bomline
;
CREATE OR REPLACE VIEW T_BOMLine_Costs
AS
SELECT t.seqno, t.levelno, t.levels, t.ad_client_id,t.C_AcctSchema_ID,
t.ad_org_id, t.createdby, t.updatedby, t.updated,
t.created, t.ad_pinstance_id, t.implosion, t.sel_product_id as m_product_id,t.m_costelement_id, t.currentcostprice,currentcostpricell,t.qtybom, t.currentcostprice + currentcostpricell as cost,
bl.isactive, bl.pp_product_bom_id, bl.pp_product_bomline_id, bl.description,
bl.iscritical, bl.componenttype, t.m_product_id as tm_product_id, bl.c_uom_id,
bl.issuemethod, bl.line, bl.m_attributesetinstance_id, bl.scrap,
bl.validfrom, bl.validto, bl.isqtypercentage
FROM t_bomline t LEFT OUTER JOIN pp_product_bomline bl
ON t.pp_product_bomline_id = bl.pp_product_bomline_id
;
delete from AD_Sequence where AD_Sequence_ID IN (53252, 53253);
-- 27.01.2009 12:41:16 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Table SET TableName='T_BOMLine_Costs',Updated=TO_DATE('2009-01-27 12:41:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Table_ID=53161
;
-- 27.01.2009 12:41:18 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
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,53255,TO_DATE('2009-01-27 12:41:16','YYYY-MM-DD HH24:MI:SS'),0,1500000,50000,'Table T_BOMLine_Costs',1,'Y','N','Y','Y','T_BOMLine_Costs','N',1500000,TO_DATE('2009-01-27 12:41:16','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 27.01.2009 12:42:49 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_ReportView SET Name='T_BOMLine_Costs',Updated=TO_DATE('2009-01-27 12:42:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ReportView_ID=53025
;
-- 27.01.2009 12:47:11 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Process SET AD_ReportView_ID=53025, IsReport='Y',Updated=TO_DATE('2009-01-27 12:47:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53159
;
-- 27.01.2009 13:00:22 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_PrintFormat SET IsDefault='Y',Updated=TO_DATE('2009-01-27 13:00:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormat_ID=50038
;
-- 27.01.2009 13:00:30 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_PrintFormat SET AD_PrintTableFormat_ID=NULL,Updated=TO_DATE('2009-01-27 13:00:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormat_ID=50038
;
-- 27.01.2009 14:52:31 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56633
;
-- 27.01.2009 14:52:34 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56634
;
-- 27.01.2009 14:52:35 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56639
;
-- 27.01.2009 14:52:36 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56662
;
-- 27.01.2009 14:52:36 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56652
;
-- 27.01.2009 14:52:38 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56646
;
-- 27.01.2009 14:52:39 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56638
;
-- 27.01.2009 14:52:39 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56635
;
-- 27.01.2009 14:52:40 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56654
;
-- 27.01.2009 14:52:41 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56643
;
-- 27.01.2009 14:52:41 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56644
;
-- 27.01.2009 14:52:42 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56650
;
-- 27.01.2009 14:52:43 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56640
;
-- 27.01.2009 14:52:44 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56647
;
-- 27.01.2009 14:52:44 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56651
;
-- 27.01.2009 14:52:52 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56661
;
-- 27.01.2009 14:52:53 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56655
;
-- 27.01.2009 14:52:53 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56631
;
-- 27.01.2009 14:52:54 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56632
;
-- 27.01.2009 14:52:54 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56656
;
-- 27.01.2009 14:52:55 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56657
;
-- 27.01.2009 14:52:55 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56642
;
-- 27.01.2009 14:52:56 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56641
;
-- 27.01.2009 14:52:57 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56648
;
-- 27.01.2009 14:52:57 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56649
;
-- 27.01.2009 14:52:58 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56645
;
-- 27.01.2009 14:52:58 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56658
;
-- 27.01.2009 14:52:59 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56630
;
-- 27.01.2009 14:52:59 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:52:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56653
;
-- 27.01.2009 14:53:00 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:53:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56637
;
-- 27.01.2009 14:53:01 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:53:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56659
;
-- 27.01.2009 14:53:02 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:53:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56636
;
-- 27.01.2009 14:53:06 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 14:53:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56660
;
-- 27.01.2009 15:02:56 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:02:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54072
;
-- 27.01.2009 15:03:01 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54073
;
-- 27.01.2009 15:03:03 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54074
;
-- 27.01.2009 15:03:05 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56663
;
-- 27.01.2009 15:03:07 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56629
;
-- 27.01.2009 15:03:08 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54075
;
-- 27.01.2009 15:03:09 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54076
;
-- 27.01.2009 15:03:11 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56626
;
-- 27.01.2009 15:03:16 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56627
;
-- 27.01.2009 15:03:18 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=55324
;
-- 27.01.2009 15:03:19 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54077
;
-- 27.01.2009 15:03:20 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54078
;
-- 27.01.2009 15:03:21 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54079
;
-- 27.01.2009 15:03:22 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56625
;
-- 27.01.2009 15:03:24 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54080
;
-- 27.01.2009 15:03:25 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54082
;
-- 27.01.2009 15:03:26 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54081
;
-- 27.01.2009 15:03:28 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56628
;
-- 27.01.2009 15:03:29 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=55325
;
-- 27.01.2009 15:03:31 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54083
;
-- 27.01.2009 15:03:34 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N', IsUpdateable='N',Updated=TO_DATE('2009-01-27 15:03:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54084
;
-- 27.01.2009 15:03:36 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54085
;
-- 27.01.2009 15:03:38 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_DATE('2009-01-27 15:03:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54086
;
-- 27.01.2009 15:06:29 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Table SET AccessLevel='3',Updated=TO_DATE('2009-01-27 15:06:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Table_ID=53045
;
-- 27.01.2009 15:18:34 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET AD_Reference_Value_ID=53225,Updated=TO_DATE('2009-01-27 15:18:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56652
;
-- 27.01.2009 16:15:15 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Process SET Classname='org.eevolution.report.CostBillOfMaterial', Value='PP_CostBillOfMaterial',Updated=TO_DATE('2009-01-27 16:15:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53159
;

View File

@ -0,0 +1,346 @@
DROP VIEW rv_pp_cost_bomline
;
CREATE OR REPLACE VIEW T_BOMLine_Costs
AS
SELECT t.seqno, t.levelno, t.levels, t.ad_client_id,t.C_AcctSchema_ID,
t.ad_org_id, t.createdby, t.updatedby, t.updated,
t.created, t.ad_pinstance_id, t.implosion, t.sel_product_id as m_product_id,t.m_costelement_id, t.currentcostprice,currentcostpricell,t.qtybom, t.currentcostprice + currentcostpricell as cost,
bl.isactive, bl.pp_product_bom_id, bl.pp_product_bomline_id, bl.description,
bl.iscritical, bl.componenttype, t.m_product_id as tm_product_id, bl.c_uom_id,
bl.issuemethod, bl.line, bl.m_attributesetinstance_id, bl.scrap,
bl.validfrom, bl.validto, bl.isqtypercentage
FROM t_bomline t LEFT OUTER JOIN pp_product_bomline bl
ON t.pp_product_bomline_id = bl.pp_product_bomline_id
;
delete from AD_Sequence where AD_Sequence_ID IN (53252, 53253);
-- 27.01.2009 12:41:16 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Table SET TableName='T_BOMLine_Costs',Updated=TO_TIMESTAMP('2009-01-27 12:41:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Table_ID=53161
;
-- 27.01.2009 12:41:18 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
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,53255,TO_TIMESTAMP('2009-01-27 12:41:16','YYYY-MM-DD HH24:MI:SS'),0,1500000,50000,'Table T_BOMLine_Costs',1,'Y','N','Y','Y','T_BOMLine_Costs','N',1500000,TO_TIMESTAMP('2009-01-27 12:41:16','YYYY-MM-DD HH24:MI:SS'),0)
;
-- 27.01.2009 12:42:49 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_ReportView SET Name='T_BOMLine_Costs',Updated=TO_TIMESTAMP('2009-01-27 12:42:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_ReportView_ID=53025
;
-- 27.01.2009 12:47:11 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Process SET AD_ReportView_ID=53025, IsReport='Y',Updated=TO_TIMESTAMP('2009-01-27 12:47:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53159
;
-- 27.01.2009 13:00:22 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_PrintFormat SET IsDefault='Y',Updated=TO_TIMESTAMP('2009-01-27 13:00:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormat_ID=50038
;
-- 27.01.2009 13:00:30 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_PrintFormat SET AD_PrintTableFormat_ID=NULL,Updated=TO_TIMESTAMP('2009-01-27 13:00:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_PrintFormat_ID=50038
;
-- 27.01.2009 14:52:31 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56633
;
-- 27.01.2009 14:52:34 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56634
;
-- 27.01.2009 14:52:35 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56639
;
-- 27.01.2009 14:52:36 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56662
;
-- 27.01.2009 14:52:36 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56652
;
-- 27.01.2009 14:52:38 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56646
;
-- 27.01.2009 14:52:39 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56638
;
-- 27.01.2009 14:52:39 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56635
;
-- 27.01.2009 14:52:40 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56654
;
-- 27.01.2009 14:52:41 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56643
;
-- 27.01.2009 14:52:41 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56644
;
-- 27.01.2009 14:52:42 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56650
;
-- 27.01.2009 14:52:43 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56640
;
-- 27.01.2009 14:52:44 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56647
;
-- 27.01.2009 14:52:44 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56651
;
-- 27.01.2009 14:52:52 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56661
;
-- 27.01.2009 14:52:53 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56655
;
-- 27.01.2009 14:52:53 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56631
;
-- 27.01.2009 14:52:54 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56632
;
-- 27.01.2009 14:52:54 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56656
;
-- 27.01.2009 14:52:55 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56657
;
-- 27.01.2009 14:52:55 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56642
;
-- 27.01.2009 14:52:56 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56641
;
-- 27.01.2009 14:52:57 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56648
;
-- 27.01.2009 14:52:57 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56649
;
-- 27.01.2009 14:52:58 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56645
;
-- 27.01.2009 14:52:58 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56658
;
-- 27.01.2009 14:52:59 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56630
;
-- 27.01.2009 14:52:59 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:52:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56653
;
-- 27.01.2009 14:53:00 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:53:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56637
;
-- 27.01.2009 14:53:01 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:53:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56659
;
-- 27.01.2009 14:53:02 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:53:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56636
;
-- 27.01.2009 14:53:06 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 14:53:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56660
;
-- 27.01.2009 15:02:56 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:02:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54072
;
-- 27.01.2009 15:03:01 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54073
;
-- 27.01.2009 15:03:03 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54074
;
-- 27.01.2009 15:03:05 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56663
;
-- 27.01.2009 15:03:07 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56629
;
-- 27.01.2009 15:03:08 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54075
;
-- 27.01.2009 15:03:09 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54076
;
-- 27.01.2009 15:03:11 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56626
;
-- 27.01.2009 15:03:16 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56627
;
-- 27.01.2009 15:03:18 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=55324
;
-- 27.01.2009 15:03:19 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54077
;
-- 27.01.2009 15:03:20 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54078
;
-- 27.01.2009 15:03:21 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54079
;
-- 27.01.2009 15:03:22 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56625
;
-- 27.01.2009 15:03:24 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54080
;
-- 27.01.2009 15:03:25 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54082
;
-- 27.01.2009 15:03:26 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54081
;
-- 27.01.2009 15:03:28 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56628
;
-- 27.01.2009 15:03:29 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=55325
;
-- 27.01.2009 15:03:31 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54083
;
-- 27.01.2009 15:03:34 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N', IsUpdateable='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54084
;
-- 27.01.2009 15:03:36 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54085
;
-- 27.01.2009 15:03:38 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET IsAllowLogging='N',Updated=TO_TIMESTAMP('2009-01-27 15:03:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=54086
;
-- 27.01.2009 15:06:29 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Table SET AccessLevel='3',Updated=TO_TIMESTAMP('2009-01-27 15:06:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Table_ID=53045
;
-- 27.01.2009 15:18:34 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Column SET AD_Reference_Value_ID=53225,Updated=TO_TIMESTAMP('2009-01-27 15:18:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=56652
;
-- 27.01.2009 16:15:15 EET
-- BF [ 2539976 ] Rename view RV_PP_Cost_BOMLine to T_BOMLine_Costs
UPDATE AD_Process SET Classname='org.eevolution.report.CostBillOfMaterial', Value='PP_CostBillOfMaterial',Updated=TO_TIMESTAMP('2009-01-27 16:15:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=53159
;