Implement [2651812] - Differential pricing
Price Lists with Product Price Vendor Break
This commit is contained in:
parent
1f0d78aba4
commit
6e4e70cc3d
|
@ -0,0 +1,213 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||||
|
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
|
||||||
|
* 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 *
|
||||||
|
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||||
|
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||||
|
*****************************************************************************/
|
||||||
|
package org.compiere.model;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.Timestamp;
|
||||||
|
import org.compiere.util.KeyNamePair;
|
||||||
|
|
||||||
|
/** Generated Interface for M_ProductPriceVendorBreak
|
||||||
|
* @author Adempiere (generated)
|
||||||
|
* @version Release 3.5.3a
|
||||||
|
*/
|
||||||
|
public interface I_M_ProductPriceVendorBreak
|
||||||
|
{
|
||||||
|
|
||||||
|
/** TableName=M_ProductPriceVendorBreak */
|
||||||
|
public static final String Table_Name = "M_ProductPriceVendorBreak";
|
||||||
|
|
||||||
|
/** AD_Table_ID=53172 */
|
||||||
|
public static final int Table_ID = MTable.getTable_ID(Table_Name);
|
||||||
|
|
||||||
|
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||||
|
|
||||||
|
/** AccessLevel = 3 - Client - Org
|
||||||
|
*/
|
||||||
|
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||||
|
|
||||||
|
/** Load Meta Data */
|
||||||
|
|
||||||
|
/** Column name AD_Client_ID */
|
||||||
|
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||||
|
|
||||||
|
/** Get Client.
|
||||||
|
* Client/Tenant for this installation.
|
||||||
|
*/
|
||||||
|
public int getAD_Client_ID();
|
||||||
|
|
||||||
|
/** Column name AD_Org_ID */
|
||||||
|
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||||
|
|
||||||
|
/** Set Organization.
|
||||||
|
* Organizational entity within client
|
||||||
|
*/
|
||||||
|
public void setAD_Org_ID (int AD_Org_ID);
|
||||||
|
|
||||||
|
/** Get Organization.
|
||||||
|
* Organizational entity within client
|
||||||
|
*/
|
||||||
|
public int getAD_Org_ID();
|
||||||
|
|
||||||
|
/** Column name BreakValue */
|
||||||
|
public static final String COLUMNNAME_BreakValue = "BreakValue";
|
||||||
|
|
||||||
|
/** Set Break Value.
|
||||||
|
* Low Value of trade discount break level
|
||||||
|
*/
|
||||||
|
public void setBreakValue (BigDecimal BreakValue);
|
||||||
|
|
||||||
|
/** Get Break Value.
|
||||||
|
* Low Value of trade discount break level
|
||||||
|
*/
|
||||||
|
public BigDecimal getBreakValue();
|
||||||
|
|
||||||
|
/** Column name C_BPartner_ID */
|
||||||
|
public static final String COLUMNNAME_C_BPartner_ID = "C_BPartner_ID";
|
||||||
|
|
||||||
|
/** Set Business Partner .
|
||||||
|
* Identifies a Business Partner
|
||||||
|
*/
|
||||||
|
public void setC_BPartner_ID (int C_BPartner_ID);
|
||||||
|
|
||||||
|
/** Get Business Partner .
|
||||||
|
* Identifies a Business Partner
|
||||||
|
*/
|
||||||
|
public int getC_BPartner_ID();
|
||||||
|
|
||||||
|
/** Column name Created */
|
||||||
|
public static final String COLUMNNAME_Created = "Created";
|
||||||
|
|
||||||
|
/** Get Created.
|
||||||
|
* Date this record was created
|
||||||
|
*/
|
||||||
|
public Timestamp getCreated();
|
||||||
|
|
||||||
|
/** Column name CreatedBy */
|
||||||
|
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||||
|
|
||||||
|
/** Get Created By.
|
||||||
|
* User who created this records
|
||||||
|
*/
|
||||||
|
public int getCreatedBy();
|
||||||
|
|
||||||
|
/** Column name IsActive */
|
||||||
|
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||||
|
|
||||||
|
/** Set Active.
|
||||||
|
* The record is active in the system
|
||||||
|
*/
|
||||||
|
public void setIsActive (boolean IsActive);
|
||||||
|
|
||||||
|
/** Get Active.
|
||||||
|
* The record is active in the system
|
||||||
|
*/
|
||||||
|
public boolean isActive();
|
||||||
|
|
||||||
|
/** Column name M_PriceList_Version_ID */
|
||||||
|
public static final String COLUMNNAME_M_PriceList_Version_ID = "M_PriceList_Version_ID";
|
||||||
|
|
||||||
|
/** Set Price List Version.
|
||||||
|
* Identifies a unique instance of a Price List
|
||||||
|
*/
|
||||||
|
public void setM_PriceList_Version_ID (int M_PriceList_Version_ID);
|
||||||
|
|
||||||
|
/** Get Price List Version.
|
||||||
|
* Identifies a unique instance of a Price List
|
||||||
|
*/
|
||||||
|
public int getM_PriceList_Version_ID();
|
||||||
|
|
||||||
|
public I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name M_Product_ID */
|
||||||
|
public static final String COLUMNNAME_M_Product_ID = "M_Product_ID";
|
||||||
|
|
||||||
|
/** Set Product.
|
||||||
|
* Product, Service, Item
|
||||||
|
*/
|
||||||
|
public void setM_Product_ID (int M_Product_ID);
|
||||||
|
|
||||||
|
/** Get Product.
|
||||||
|
* Product, Service, Item
|
||||||
|
*/
|
||||||
|
public int getM_Product_ID();
|
||||||
|
|
||||||
|
public I_M_Product getM_Product() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name M_ProductPriceVendorBreak_ID */
|
||||||
|
public static final String COLUMNNAME_M_ProductPriceVendorBreak_ID = "M_ProductPriceVendorBreak_ID";
|
||||||
|
|
||||||
|
/** Set Product Price Vendor Break */
|
||||||
|
public void setM_ProductPriceVendorBreak_ID (int M_ProductPriceVendorBreak_ID);
|
||||||
|
|
||||||
|
/** Get Product Price Vendor Break */
|
||||||
|
public int getM_ProductPriceVendorBreak_ID();
|
||||||
|
|
||||||
|
/** Column name PriceLimit */
|
||||||
|
public static final String COLUMNNAME_PriceLimit = "PriceLimit";
|
||||||
|
|
||||||
|
/** Set Limit Price.
|
||||||
|
* Lowest price for a product
|
||||||
|
*/
|
||||||
|
public void setPriceLimit (BigDecimal PriceLimit);
|
||||||
|
|
||||||
|
/** Get Limit Price.
|
||||||
|
* Lowest price for a product
|
||||||
|
*/
|
||||||
|
public BigDecimal getPriceLimit();
|
||||||
|
|
||||||
|
/** Column name PriceList */
|
||||||
|
public static final String COLUMNNAME_PriceList = "PriceList";
|
||||||
|
|
||||||
|
/** Set List Price.
|
||||||
|
* List Price
|
||||||
|
*/
|
||||||
|
public void setPriceList (BigDecimal PriceList);
|
||||||
|
|
||||||
|
/** Get List Price.
|
||||||
|
* List Price
|
||||||
|
*/
|
||||||
|
public BigDecimal getPriceList();
|
||||||
|
|
||||||
|
/** Column name PriceStd */
|
||||||
|
public static final String COLUMNNAME_PriceStd = "PriceStd";
|
||||||
|
|
||||||
|
/** Set Standard Price.
|
||||||
|
* Standard Price
|
||||||
|
*/
|
||||||
|
public void setPriceStd (BigDecimal PriceStd);
|
||||||
|
|
||||||
|
/** Get Standard Price.
|
||||||
|
* Standard Price
|
||||||
|
*/
|
||||||
|
public BigDecimal getPriceStd();
|
||||||
|
|
||||||
|
/** Column name Updated */
|
||||||
|
public static final String COLUMNNAME_Updated = "Updated";
|
||||||
|
|
||||||
|
/** Get Updated.
|
||||||
|
* Date this record was updated
|
||||||
|
*/
|
||||||
|
public Timestamp getUpdated();
|
||||||
|
|
||||||
|
/** Column name UpdatedBy */
|
||||||
|
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||||
|
|
||||||
|
/** Get Updated By.
|
||||||
|
* User who updated this records
|
||||||
|
*/
|
||||||
|
public int getUpdatedBy();
|
||||||
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
* Product: Adempiere ERP & CRM Smart Business Solution *
|
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||||
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
|
* Copyright (C) 1999-2006 ComPiere, Inc. All Rights Reserved. *
|
||||||
* This program is free software; you can redistribute it and/or modify it *
|
* 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 *
|
* under the terms version 2 of the GNU General Public License as published *
|
||||||
|
@ -35,6 +35,7 @@ import org.compiere.util.Trace;
|
||||||
*/
|
*/
|
||||||
public class MProductPricing
|
public class MProductPricing
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
* @param M_Product_ID product
|
* @param M_Product_ID product
|
||||||
|
@ -50,6 +51,10 @@ public class MProductPricing
|
||||||
if (Qty != null && Env.ZERO.compareTo(Qty) != 0)
|
if (Qty != null && Env.ZERO.compareTo(Qty) != 0)
|
||||||
m_Qty = Qty;
|
m_Qty = Qty;
|
||||||
m_isSOTrx = isSOTrx;
|
m_isSOTrx = isSOTrx;
|
||||||
|
int thereAreVendorBreakRecords = DB.getSQLValue(null,
|
||||||
|
"SELECT 1 FROM M_ProductPriceVendorBreak WHERE M_Product_ID=? AND C_BPartner_ID=?",
|
||||||
|
m_M_Product_ID, m_C_BPartner_ID);
|
||||||
|
m_useVendorBreak = thereAreVendorBreakRecords == 1;
|
||||||
} // MProductPricing
|
} // MProductPricing
|
||||||
|
|
||||||
private int m_M_Product_ID;
|
private int m_M_Product_ID;
|
||||||
|
@ -65,6 +70,8 @@ public class MProductPricing
|
||||||
|
|
||||||
|
|
||||||
private boolean m_calculated = false;
|
private boolean m_calculated = false;
|
||||||
|
private boolean m_vendorbreak = false;
|
||||||
|
private boolean m_useVendorBreak;
|
||||||
private Boolean m_found = null;
|
private Boolean m_found = null;
|
||||||
|
|
||||||
private BigDecimal m_PriceList = Env.ZERO;
|
private BigDecimal m_PriceList = Env.ZERO;
|
||||||
|
@ -90,6 +97,28 @@ public class MProductPricing
|
||||||
if (m_M_Product_ID == 0
|
if (m_M_Product_ID == 0
|
||||||
|| (m_found != null && !m_found.booleanValue())) // previously not found
|
|| (m_found != null && !m_found.booleanValue())) // previously not found
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (m_useVendorBreak) {
|
||||||
|
// Price List Version known - vendor break
|
||||||
|
if (!m_calculated && !m_isSOTrx) {
|
||||||
|
m_calculated = calculatePLV_VB ();
|
||||||
|
if (m_calculated)
|
||||||
|
m_vendorbreak = true;
|
||||||
|
}
|
||||||
|
// Price List known - vendor break
|
||||||
|
if (!m_calculated && !m_isSOTrx) {
|
||||||
|
m_calculated = calculatePL_VB();
|
||||||
|
if (m_calculated)
|
||||||
|
m_vendorbreak = true;
|
||||||
|
}
|
||||||
|
// Base Price List used - vendor break
|
||||||
|
if (!m_calculated && !m_isSOTrx) {
|
||||||
|
m_calculated = calculateBPL_VB();
|
||||||
|
if (m_calculated)
|
||||||
|
m_vendorbreak = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Price List Version known
|
// Price List Version known
|
||||||
if (!m_calculated)
|
if (!m_calculated)
|
||||||
m_calculated = calculatePLV ();
|
m_calculated = calculatePLV ();
|
||||||
|
@ -103,7 +132,7 @@ public class MProductPricing
|
||||||
if (!m_calculated)
|
if (!m_calculated)
|
||||||
setBaseInfo();
|
setBaseInfo();
|
||||||
// User based Discount
|
// User based Discount
|
||||||
if (m_calculated)
|
if (m_calculated && !m_vendorbreak)
|
||||||
calculateDiscount();
|
calculateDiscount();
|
||||||
setPrecision(); // from Price List
|
setPrecision(); // from Price List
|
||||||
//
|
//
|
||||||
|
@ -134,12 +163,14 @@ public class MProductPricing
|
||||||
+ " AND p.M_Product_ID=?" // #1
|
+ " AND p.M_Product_ID=?" // #1
|
||||||
+ " AND pv.M_PriceList_Version_ID=?"; // #2
|
+ " AND pv.M_PriceList_Version_ID=?"; // #2
|
||||||
m_calculated = false;
|
m_calculated = false;
|
||||||
|
PreparedStatement pstmt = null;
|
||||||
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
PreparedStatement pstmt = DB.prepareStatement(sql, null);
|
pstmt = DB.prepareStatement(sql, null);
|
||||||
pstmt.setInt(1, m_M_Product_ID);
|
pstmt.setInt(1, m_M_Product_ID);
|
||||||
pstmt.setInt(2, m_M_PriceList_Version_ID);
|
pstmt.setInt(2, m_M_PriceList_Version_ID);
|
||||||
ResultSet rs = pstmt.executeQuery();
|
rs = pstmt.executeQuery();
|
||||||
if (rs.next())
|
if (rs.next())
|
||||||
{
|
{
|
||||||
// Prices
|
// Prices
|
||||||
|
@ -162,14 +193,18 @@ public class MProductPricing
|
||||||
log.fine("M_PriceList_Version_ID=" + m_M_PriceList_Version_ID + " - " + m_PriceStd);
|
log.fine("M_PriceList_Version_ID=" + m_M_PriceList_Version_ID + " - " + m_PriceStd);
|
||||||
m_calculated = true;
|
m_calculated = true;
|
||||||
}
|
}
|
||||||
rs.close();
|
|
||||||
pstmt.close();
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, sql, e);
|
log.log(Level.SEVERE, sql, e);
|
||||||
m_calculated = false;
|
m_calculated = false;
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
DB.close(rs, pstmt);
|
||||||
|
rs = null;
|
||||||
|
pstmt = null;
|
||||||
|
}
|
||||||
return m_calculated;
|
return m_calculated;
|
||||||
} // calculatePLV
|
} // calculatePLV
|
||||||
|
|
||||||
|
@ -243,16 +278,18 @@ public class MProductPricing
|
||||||
+ " AND pp.IsActive='Y'"
|
+ " AND pp.IsActive='Y'"
|
||||||
+ " AND p.M_Product_ID=?" // #1
|
+ " AND p.M_Product_ID=?" // #1
|
||||||
+ " AND pv.M_PriceList_ID=?" // #2
|
+ " AND pv.M_PriceList_ID=?" // #2
|
||||||
+ "ORDER BY pv.ValidFrom DESC";
|
+ " ORDER BY pv.ValidFrom DESC";
|
||||||
m_calculated = false;
|
m_calculated = false;
|
||||||
if (m_PriceDate == null)
|
if (m_PriceDate == null)
|
||||||
m_PriceDate = new Timestamp (System.currentTimeMillis());
|
m_PriceDate = new Timestamp (System.currentTimeMillis());
|
||||||
|
PreparedStatement pstmt = null;
|
||||||
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
PreparedStatement pstmt = DB.prepareStatement(sql, null);
|
pstmt = DB.prepareStatement(sql, null);
|
||||||
pstmt.setInt(1, m_M_Product_ID);
|
pstmt.setInt(1, m_M_Product_ID);
|
||||||
pstmt.setInt(2, m_M_PriceList_ID);
|
pstmt.setInt(2, m_M_PriceList_ID);
|
||||||
ResultSet rs = pstmt.executeQuery();
|
rs = pstmt.executeQuery();
|
||||||
while (!m_calculated && rs.next())
|
while (!m_calculated && rs.next())
|
||||||
{
|
{
|
||||||
Timestamp plDate = rs.getTimestamp(5);
|
Timestamp plDate = rs.getTimestamp(5);
|
||||||
|
@ -282,14 +319,18 @@ public class MProductPricing
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rs.close();
|
|
||||||
pstmt.close();
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, sql, e);
|
log.log(Level.SEVERE, sql, e);
|
||||||
m_calculated = false;
|
m_calculated = false;
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
DB.close(rs, pstmt);
|
||||||
|
rs = null;
|
||||||
|
pstmt = null;
|
||||||
|
}
|
||||||
if (!m_calculated)
|
if (!m_calculated)
|
||||||
log.finer("Not found (PL)");
|
log.finer("Not found (PL)");
|
||||||
return m_calculated;
|
return m_calculated;
|
||||||
|
@ -318,16 +359,18 @@ public class MProductPricing
|
||||||
+ " AND pp.IsActive='Y'"
|
+ " AND pp.IsActive='Y'"
|
||||||
+ " AND p.M_Product_ID=?" // #1
|
+ " AND p.M_Product_ID=?" // #1
|
||||||
+ " AND pl.M_PriceList_ID=?" // #2
|
+ " AND pl.M_PriceList_ID=?" // #2
|
||||||
+ "ORDER BY pv.ValidFrom DESC";
|
+ " ORDER BY pv.ValidFrom DESC";
|
||||||
m_calculated = false;
|
m_calculated = false;
|
||||||
if (m_PriceDate == null)
|
if (m_PriceDate == null)
|
||||||
m_PriceDate = new Timestamp (System.currentTimeMillis());
|
m_PriceDate = new Timestamp (System.currentTimeMillis());
|
||||||
|
PreparedStatement pstmt = null;
|
||||||
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
PreparedStatement pstmt = DB.prepareStatement(sql, null);
|
pstmt = DB.prepareStatement(sql, null);
|
||||||
pstmt.setInt(1, m_M_Product_ID);
|
pstmt.setInt(1, m_M_Product_ID);
|
||||||
pstmt.setInt(2, m_M_PriceList_ID);
|
pstmt.setInt(2, m_M_PriceList_ID);
|
||||||
ResultSet rs = pstmt.executeQuery();
|
rs = pstmt.executeQuery();
|
||||||
while (!m_calculated && rs.next())
|
while (!m_calculated && rs.next())
|
||||||
{
|
{
|
||||||
Timestamp plDate = rs.getTimestamp(5);
|
Timestamp plDate = rs.getTimestamp(5);
|
||||||
|
@ -358,19 +401,314 @@ public class MProductPricing
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
rs.close();
|
|
||||||
pstmt.close();
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, sql, e);
|
log.log(Level.SEVERE, sql, e);
|
||||||
m_calculated = false;
|
m_calculated = false;
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
DB.close(rs, pstmt);
|
||||||
|
rs = null;
|
||||||
|
pstmt = null;
|
||||||
|
}
|
||||||
if (!m_calculated)
|
if (!m_calculated)
|
||||||
log.finer("Not found (BPL)");
|
log.finer("Not found (BPL)");
|
||||||
return m_calculated;
|
return m_calculated;
|
||||||
} // calculateBPL
|
} // calculateBPL
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Calculate Price based on Price List Version and Vendor Break
|
||||||
|
* @return true if calculated
|
||||||
|
*/
|
||||||
|
private boolean calculatePLV_VB()
|
||||||
|
{
|
||||||
|
if (m_M_Product_ID == 0 || m_M_PriceList_Version_ID == 0)
|
||||||
|
return false;
|
||||||
|
//
|
||||||
|
String sql = "SELECT pp.PriceStd," // 1
|
||||||
|
+ " pp.PriceList," // 2
|
||||||
|
+ " pp.PriceLimit," // 3
|
||||||
|
+ " p.C_UOM_ID,pv.ValidFrom,pl.C_Currency_ID,p.M_Product_Category_ID," // 4..7
|
||||||
|
+ " pl.EnforcePriceLimit, pl.IsTaxIncluded " // 8..9
|
||||||
|
+ "FROM M_Product p"
|
||||||
|
+ " INNER JOIN M_ProductPriceVendorBreak pp ON (p.M_Product_ID=pp.M_Product_ID)"
|
||||||
|
+ " INNER JOIN M_PriceList_Version pv ON (pp.M_PriceList_Version_ID=pv.M_PriceList_Version_ID)"
|
||||||
|
+ " INNER JOIN M_Pricelist pl ON (pv.M_PriceList_ID=pl.M_PriceList_ID) "
|
||||||
|
+ "WHERE pv.IsActive='Y'"
|
||||||
|
+ " AND pp.IsActive='Y'"
|
||||||
|
+ " AND p.M_Product_ID=?" // #1
|
||||||
|
+ " AND pv.M_PriceList_Version_ID=?" // #2
|
||||||
|
+ " AND pp.C_BPartner_ID=?" // #3
|
||||||
|
+ " AND ?>=pp.BreakValue" // #4
|
||||||
|
+ " ORDER BY BreakValue DESC";
|
||||||
|
m_calculated = false;
|
||||||
|
PreparedStatement pstmt = null;
|
||||||
|
ResultSet rs = null;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
pstmt = DB.prepareStatement(sql, null);
|
||||||
|
pstmt.setInt(1, m_M_Product_ID);
|
||||||
|
pstmt.setInt(2, m_M_PriceList_Version_ID);
|
||||||
|
pstmt.setInt(3, m_C_BPartner_ID);
|
||||||
|
pstmt.setBigDecimal(4, m_Qty);
|
||||||
|
rs = pstmt.executeQuery();
|
||||||
|
if (rs.next())
|
||||||
|
{
|
||||||
|
// Prices
|
||||||
|
m_PriceStd = rs.getBigDecimal(1);
|
||||||
|
if (rs.wasNull())
|
||||||
|
m_PriceStd = Env.ZERO;
|
||||||
|
m_PriceList = rs.getBigDecimal(2);
|
||||||
|
if (rs.wasNull())
|
||||||
|
m_PriceList = Env.ZERO;
|
||||||
|
m_PriceLimit = rs.getBigDecimal(3);
|
||||||
|
if (rs.wasNull())
|
||||||
|
m_PriceLimit = Env.ZERO;
|
||||||
|
//
|
||||||
|
m_C_UOM_ID = rs.getInt(4);
|
||||||
|
m_C_Currency_ID = rs.getInt(6);
|
||||||
|
m_M_Product_Category_ID = rs.getInt(7);
|
||||||
|
m_enforcePriceLimit = "Y".equals(rs.getString(8));
|
||||||
|
m_isTaxIncluded = "Y".equals(rs.getString(9));
|
||||||
|
//
|
||||||
|
log.fine("M_PriceList_Version_ID=" + m_M_PriceList_Version_ID + " - " + m_PriceStd);
|
||||||
|
m_calculated = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
log.log(Level.SEVERE, sql, e);
|
||||||
|
m_calculated = false;
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
DB.close(rs, pstmt);
|
||||||
|
rs = null;
|
||||||
|
pstmt = null;
|
||||||
|
}
|
||||||
|
return m_calculated;
|
||||||
|
} // calculatePLV_VB
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Calculate Price based on P rice List and Vendor break
|
||||||
|
* @return true if calculated
|
||||||
|
*/
|
||||||
|
private boolean calculatePL_VB()
|
||||||
|
{
|
||||||
|
if (m_M_Product_ID == 0)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
// Get Price List
|
||||||
|
/**
|
||||||
|
if (m_M_PriceList_ID == 0)
|
||||||
|
{
|
||||||
|
String sql = "SELECT M_PriceList_ID, IsTaxIncluded "
|
||||||
|
+ "FROM M_PriceList pl"
|
||||||
|
+ " INNER JOIN M_Product p ON (pl.AD_Client_ID=p.AD_Client_ID) "
|
||||||
|
+ "WHERE M_Product_ID=? "
|
||||||
|
+ "ORDER BY IsDefault DESC";
|
||||||
|
PreparedStatement pstmt = null;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
pstmt = DB.prepareStatement(sql);
|
||||||
|
pstmt.setInt(1, m_M_Product_ID);
|
||||||
|
ResultSet rs = pstmt.executeQuery();
|
||||||
|
if (rs.next())
|
||||||
|
{
|
||||||
|
m_M_PriceList_ID = rs.getInt(1);
|
||||||
|
m_isTaxIncluded = "Y".equals(rs.getString(2));
|
||||||
|
}
|
||||||
|
rs.close();
|
||||||
|
pstmt.close();
|
||||||
|
pstmt = null;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
log.log(Level.SEVERE, "calculatePL (PL)", e);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (pstmt != null)
|
||||||
|
pstmt.close ();
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{}
|
||||||
|
pstmt = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/** **/
|
||||||
|
if (m_M_PriceList_ID == 0)
|
||||||
|
{
|
||||||
|
log.log(Level.SEVERE, "No PriceList");
|
||||||
|
Trace.printStack();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get Prices for Price List
|
||||||
|
String sql = "SELECT pp.PriceStd," // 1
|
||||||
|
+ " pp.PriceList," // 2
|
||||||
|
+ " pp.PriceLimit," // 3
|
||||||
|
+ " p.C_UOM_ID,pv.ValidFrom,pl.C_Currency_ID,p.M_Product_Category_ID,pl.EnforcePriceLimit " // 4..8
|
||||||
|
+ "FROM M_Product p"
|
||||||
|
+ " INNER JOIN M_ProductPriceVendorBreak pp ON (p.M_Product_ID=pp.M_Product_ID)"
|
||||||
|
+ " INNER JOIN M_PriceList_Version pv ON (pp.M_PriceList_Version_ID=pv.M_PriceList_Version_ID)"
|
||||||
|
+ " INNER JOIN M_Pricelist pl ON (pv.M_PriceList_ID=pl.M_PriceList_ID) "
|
||||||
|
+ "WHERE pv.IsActive='Y'"
|
||||||
|
+ " AND pp.IsActive='Y'"
|
||||||
|
+ " AND p.M_Product_ID=?" // #1
|
||||||
|
+ " AND pv.M_PriceList_ID=?" // #2
|
||||||
|
+ " AND pp.C_BPartner_ID=?" // #3
|
||||||
|
+ " AND ?>=pp.BreakValue" // #4
|
||||||
|
+ " ORDER BY pv.ValidFrom DESC, BreakValue DESC";
|
||||||
|
m_calculated = false;
|
||||||
|
if (m_PriceDate == null)
|
||||||
|
m_PriceDate = new Timestamp (System.currentTimeMillis());
|
||||||
|
PreparedStatement pstmt = null;
|
||||||
|
ResultSet rs = null;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
pstmt = DB.prepareStatement(sql, null);
|
||||||
|
pstmt.setInt(1, m_M_Product_ID);
|
||||||
|
pstmt.setInt(2, m_M_PriceList_ID);
|
||||||
|
pstmt.setInt(3, m_C_BPartner_ID);
|
||||||
|
pstmt.setBigDecimal(4, m_Qty);
|
||||||
|
rs = pstmt.executeQuery();
|
||||||
|
while (!m_calculated && rs.next())
|
||||||
|
{
|
||||||
|
Timestamp plDate = rs.getTimestamp(5);
|
||||||
|
// we have the price list
|
||||||
|
// if order date is after or equal PriceList validFrom
|
||||||
|
if (plDate == null || !m_PriceDate.before(plDate))
|
||||||
|
{
|
||||||
|
// Prices
|
||||||
|
m_PriceStd = rs.getBigDecimal (1);
|
||||||
|
if (rs.wasNull ())
|
||||||
|
m_PriceStd = Env.ZERO;
|
||||||
|
m_PriceList = rs.getBigDecimal (2);
|
||||||
|
if (rs.wasNull ())
|
||||||
|
m_PriceList = Env.ZERO;
|
||||||
|
m_PriceLimit = rs.getBigDecimal (3);
|
||||||
|
if (rs.wasNull ())
|
||||||
|
m_PriceLimit = Env.ZERO;
|
||||||
|
//
|
||||||
|
m_C_UOM_ID = rs.getInt (4);
|
||||||
|
m_C_Currency_ID = rs.getInt (6);
|
||||||
|
m_M_Product_Category_ID = rs.getInt(7);
|
||||||
|
m_enforcePriceLimit = "Y".equals(rs.getString(8));
|
||||||
|
//
|
||||||
|
log.fine("M_PriceList_ID=" + m_M_PriceList_ID
|
||||||
|
+ "(" + plDate + ")" + " - " + m_PriceStd);
|
||||||
|
m_calculated = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
log.log(Level.SEVERE, sql, e);
|
||||||
|
m_calculated = false;
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
DB.close(rs, pstmt);
|
||||||
|
rs = null;
|
||||||
|
pstmt = null;
|
||||||
|
}
|
||||||
|
if (!m_calculated)
|
||||||
|
log.finer("Not found (PL)");
|
||||||
|
return m_calculated;
|
||||||
|
} // calculatePL_VB
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Calculate Price based on Base Price List and Vendor Break
|
||||||
|
* @return true if calculated
|
||||||
|
*/
|
||||||
|
private boolean calculateBPL_VB()
|
||||||
|
{
|
||||||
|
if (m_M_Product_ID == 0 || m_M_PriceList_ID == 0)
|
||||||
|
return false;
|
||||||
|
//
|
||||||
|
String sql = "SELECT pp.PriceStd," // 1
|
||||||
|
+ " pp.PriceList," // 2
|
||||||
|
+ " pp.PriceLimit," // 3
|
||||||
|
+ " p.C_UOM_ID,pv.ValidFrom,pl.C_Currency_ID,p.M_Product_Category_ID," // 4..7
|
||||||
|
+ " pl.EnforcePriceLimit, pl.IsTaxIncluded " // 8..9
|
||||||
|
+ "FROM M_Product p"
|
||||||
|
+ " INNER JOIN M_ProductPriceVendorBreak pp ON (p.M_Product_ID=pp.M_Product_ID)"
|
||||||
|
+ " INNER JOIN M_PriceList_Version pv ON (pp.M_PriceList_Version_ID=pv.M_PriceList_Version_ID)"
|
||||||
|
+ " INNER JOIN M_Pricelist bpl ON (pv.M_PriceList_ID=bpl.M_PriceList_ID)"
|
||||||
|
+ " INNER JOIN M_Pricelist pl ON (bpl.M_PriceList_ID=pl.BasePriceList_ID) "
|
||||||
|
+ "WHERE pv.IsActive='Y'"
|
||||||
|
+ " AND pp.IsActive='Y'"
|
||||||
|
+ " AND p.M_Product_ID=?" // #1
|
||||||
|
+ " AND pl.M_PriceList_ID=?" // #2
|
||||||
|
+ " AND pp.C_BPartner_ID=?" // #3
|
||||||
|
+ " AND ?>=pp.BreakValue" // #4
|
||||||
|
+ " ORDER BY pv.ValidFrom DESC, BreakValue DESC";
|
||||||
|
m_calculated = false;
|
||||||
|
if (m_PriceDate == null)
|
||||||
|
m_PriceDate = new Timestamp (System.currentTimeMillis());
|
||||||
|
PreparedStatement pstmt = null;
|
||||||
|
ResultSet rs = null;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
pstmt = DB.prepareStatement(sql, null);
|
||||||
|
pstmt.setInt(1, m_M_Product_ID);
|
||||||
|
pstmt.setInt(2, m_M_PriceList_ID);
|
||||||
|
pstmt.setInt(3, m_C_BPartner_ID);
|
||||||
|
pstmt.setBigDecimal(4, m_Qty);
|
||||||
|
rs = pstmt.executeQuery();
|
||||||
|
while (!m_calculated && rs.next())
|
||||||
|
{
|
||||||
|
Timestamp plDate = rs.getTimestamp(5);
|
||||||
|
// we have the price list
|
||||||
|
// if order date is after or equal PriceList validFrom
|
||||||
|
if (plDate == null || !m_PriceDate.before(plDate))
|
||||||
|
{
|
||||||
|
// Prices
|
||||||
|
m_PriceStd = rs.getBigDecimal (1);
|
||||||
|
if (rs.wasNull ())
|
||||||
|
m_PriceStd = Env.ZERO;
|
||||||
|
m_PriceList = rs.getBigDecimal (2);
|
||||||
|
if (rs.wasNull ())
|
||||||
|
m_PriceList = Env.ZERO;
|
||||||
|
m_PriceLimit = rs.getBigDecimal (3);
|
||||||
|
if (rs.wasNull ())
|
||||||
|
m_PriceLimit = Env.ZERO;
|
||||||
|
//
|
||||||
|
m_C_UOM_ID = rs.getInt (4);
|
||||||
|
m_C_Currency_ID = rs.getInt (6);
|
||||||
|
m_M_Product_Category_ID = rs.getInt(7);
|
||||||
|
m_enforcePriceLimit = "Y".equals(rs.getString(8));
|
||||||
|
m_isTaxIncluded = "Y".equals(rs.getString(9));
|
||||||
|
//
|
||||||
|
log.fine("M_PriceList_ID=" + m_M_PriceList_ID
|
||||||
|
+ "(" + plDate + ")" + " - " + m_PriceStd);
|
||||||
|
m_calculated = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
log.log(Level.SEVERE, sql, e);
|
||||||
|
m_calculated = false;
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
DB.close(rs, pstmt);
|
||||||
|
rs = null;
|
||||||
|
pstmt = null;
|
||||||
|
}
|
||||||
|
if (!m_calculated)
|
||||||
|
log.finer("Not found (BPL)");
|
||||||
|
return m_calculated;
|
||||||
|
} // calculateBPL_VB
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set Base Info (UOM)
|
* Set Base Info (UOM)
|
||||||
*/
|
*/
|
||||||
|
@ -380,23 +718,29 @@ public class MProductPricing
|
||||||
return;
|
return;
|
||||||
//
|
//
|
||||||
String sql = "SELECT C_UOM_ID, M_Product_Category_ID FROM M_Product WHERE M_Product_ID=?";
|
String sql = "SELECT C_UOM_ID, M_Product_Category_ID FROM M_Product WHERE M_Product_ID=?";
|
||||||
|
PreparedStatement pstmt = null;
|
||||||
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
PreparedStatement pstmt = DB.prepareStatement(sql, null);
|
pstmt = DB.prepareStatement(sql, null);
|
||||||
pstmt.setInt(1, m_M_Product_ID);
|
pstmt.setInt(1, m_M_Product_ID);
|
||||||
ResultSet rs = pstmt.executeQuery();
|
rs = pstmt.executeQuery();
|
||||||
if (rs.next())
|
if (rs.next())
|
||||||
{
|
{
|
||||||
m_C_UOM_ID = rs.getInt (1);
|
m_C_UOM_ID = rs.getInt (1);
|
||||||
m_M_Product_Category_ID = rs.getInt(2);
|
m_M_Product_Category_ID = rs.getInt(2);
|
||||||
}
|
}
|
||||||
rs.close();
|
|
||||||
pstmt.close();
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, sql, e);
|
log.log(Level.SEVERE, sql, e);
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
DB.close(rs, pstmt);
|
||||||
|
rs = null;
|
||||||
|
pstmt = null;
|
||||||
|
}
|
||||||
} // setBaseInfo
|
} // setBaseInfo
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -426,11 +770,12 @@ public class MProductPricing
|
||||||
+ " INNER JOIN C_BP_Group g ON (p.C_BP_Group_ID=g.C_BP_Group_ID) "
|
+ " INNER JOIN C_BP_Group g ON (p.C_BP_Group_ID=g.C_BP_Group_ID) "
|
||||||
+ "WHERE p.C_BPartner_ID=?";
|
+ "WHERE p.C_BPartner_ID=?";
|
||||||
PreparedStatement pstmt = null;
|
PreparedStatement pstmt = null;
|
||||||
|
ResultSet rs = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
pstmt = DB.prepareStatement (sql, null);
|
pstmt = DB.prepareStatement (sql, null);
|
||||||
pstmt.setInt (1, m_C_BPartner_ID);
|
pstmt.setInt (1, m_C_BPartner_ID);
|
||||||
ResultSet rs = pstmt.executeQuery ();
|
rs = pstmt.executeQuery ();
|
||||||
if (rs.next ())
|
if (rs.next ())
|
||||||
{
|
{
|
||||||
M_DiscountSchema_ID = rs.getInt(m_isSOTrx ? 1 : 2);
|
M_DiscountSchema_ID = rs.getInt(m_isSOTrx ? 1 : 2);
|
||||||
|
@ -438,22 +783,15 @@ public class MProductPricing
|
||||||
if (FlatDiscount == null)
|
if (FlatDiscount == null)
|
||||||
FlatDiscount = Env.ZERO;
|
FlatDiscount = Env.ZERO;
|
||||||
}
|
}
|
||||||
rs.close ();
|
|
||||||
pstmt.close ();
|
|
||||||
pstmt = null;
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, sql, e);
|
log.log(Level.SEVERE, sql, e);
|
||||||
}
|
}
|
||||||
try
|
finally
|
||||||
{
|
|
||||||
if (pstmt != null)
|
|
||||||
pstmt.close ();
|
|
||||||
pstmt = null;
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
{
|
||||||
|
DB.close(rs, pstmt);
|
||||||
|
rs = null;
|
||||||
pstmt = null;
|
pstmt = null;
|
||||||
}
|
}
|
||||||
// No Discount Schema
|
// No Discount Schema
|
||||||
|
@ -654,7 +992,7 @@ public class MProductPricing
|
||||||
*/
|
*/
|
||||||
public boolean isDiscountSchema()
|
public boolean isDiscountSchema()
|
||||||
{
|
{
|
||||||
return m_discountSchema;
|
return m_discountSchema || m_useVendorBreak;
|
||||||
} // isDiscountSchema
|
} // isDiscountSchema
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -0,0 +1,287 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* Product: Adempiere ERP & CRM Smart Business Solution *
|
||||||
|
* Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved. *
|
||||||
|
* 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 *
|
||||||
|
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||||
|
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||||
|
*****************************************************************************/
|
||||||
|
/** Generated Model - DO NOT CHANGE */
|
||||||
|
package org.compiere.model;
|
||||||
|
|
||||||
|
import java.lang.reflect.Constructor;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.util.Properties;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import org.compiere.util.Env;
|
||||||
|
|
||||||
|
/** Generated Model for M_ProductPriceVendorBreak
|
||||||
|
* @author Adempiere (generated)
|
||||||
|
* @version Release 3.5.3a - $Id$ */
|
||||||
|
public class X_M_ProductPriceVendorBreak extends PO implements I_M_ProductPriceVendorBreak, I_Persistent
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 20081221L;
|
||||||
|
|
||||||
|
/** Standard Constructor */
|
||||||
|
public X_M_ProductPriceVendorBreak (Properties ctx, int M_ProductPriceVendorBreak_ID, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, M_ProductPriceVendorBreak_ID, trxName);
|
||||||
|
/** if (M_ProductPriceVendorBreak_ID == 0)
|
||||||
|
{
|
||||||
|
setBreakValue (Env.ZERO);
|
||||||
|
setC_BPartner_ID (0);
|
||||||
|
setM_PriceList_Version_ID (0);
|
||||||
|
setM_Product_ID (0);
|
||||||
|
setM_ProductPriceVendorBreak_ID (0);
|
||||||
|
setPriceLimit (Env.ZERO);
|
||||||
|
setPriceList (Env.ZERO);
|
||||||
|
setPriceStd (Env.ZERO);
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Constructor */
|
||||||
|
public X_M_ProductPriceVendorBreak (Properties ctx, ResultSet rs, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, rs, trxName);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** AccessLevel
|
||||||
|
* @return 3 - Client - Org
|
||||||
|
*/
|
||||||
|
protected int get_AccessLevel()
|
||||||
|
{
|
||||||
|
return accessLevel.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Meta Data */
|
||||||
|
protected POInfo initPO (Properties ctx)
|
||||||
|
{
|
||||||
|
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
||||||
|
return poi;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String toString()
|
||||||
|
{
|
||||||
|
StringBuffer sb = new StringBuffer ("X_M_ProductPriceVendorBreak[")
|
||||||
|
.append(get_ID()).append("]");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Break Value.
|
||||||
|
@param BreakValue
|
||||||
|
Low Value of trade discount break level
|
||||||
|
*/
|
||||||
|
public void setBreakValue (BigDecimal BreakValue)
|
||||||
|
{
|
||||||
|
if (BreakValue == null)
|
||||||
|
throw new IllegalArgumentException ("BreakValue is mandatory.");
|
||||||
|
set_ValueNoCheck (COLUMNNAME_BreakValue, BreakValue);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Break Value.
|
||||||
|
@return Low Value of trade discount break level
|
||||||
|
*/
|
||||||
|
public BigDecimal getBreakValue ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_BreakValue);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Business Partner .
|
||||||
|
@param C_BPartner_ID
|
||||||
|
Identifies a Business Partner
|
||||||
|
*/
|
||||||
|
public void setC_BPartner_ID (int C_BPartner_ID)
|
||||||
|
{
|
||||||
|
if (C_BPartner_ID < 1)
|
||||||
|
throw new IllegalArgumentException ("C_BPartner_ID is mandatory.");
|
||||||
|
set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Business Partner .
|
||||||
|
@return Identifies a Business Partner
|
||||||
|
*/
|
||||||
|
public int getC_BPartner_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
public I_M_PriceList_Version getM_PriceList_Version() throws RuntimeException
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_M_PriceList_Version.Table_Name);
|
||||||
|
I_M_PriceList_Version result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_M_PriceList_Version)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_PriceList_Version_ID()), get_TrxName()});
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
||||||
|
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
||||||
|
throw new RuntimeException( e );
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Price List Version.
|
||||||
|
@param M_PriceList_Version_ID
|
||||||
|
Identifies a unique instance of a Price List
|
||||||
|
*/
|
||||||
|
public void setM_PriceList_Version_ID (int M_PriceList_Version_ID)
|
||||||
|
{
|
||||||
|
if (M_PriceList_Version_ID < 1)
|
||||||
|
throw new IllegalArgumentException ("M_PriceList_Version_ID is mandatory.");
|
||||||
|
set_ValueNoCheck (COLUMNNAME_M_PriceList_Version_ID, Integer.valueOf(M_PriceList_Version_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Price List Version.
|
||||||
|
@return Identifies a unique instance of a Price List
|
||||||
|
*/
|
||||||
|
public int getM_PriceList_Version_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_M_PriceList_Version_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
public I_M_Product getM_Product() throws RuntimeException
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_M_Product.Table_Name);
|
||||||
|
I_M_Product result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_M_Product)constructor.newInstance(new Object[] {getCtx(), new Integer(getM_Product_ID()), get_TrxName()});
|
||||||
|
} catch (Exception e) {
|
||||||
|
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
|
||||||
|
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
|
||||||
|
throw new RuntimeException( e );
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Product.
|
||||||
|
@param M_Product_ID
|
||||||
|
Product, Service, Item
|
||||||
|
*/
|
||||||
|
public void setM_Product_ID (int M_Product_ID)
|
||||||
|
{
|
||||||
|
if (M_Product_ID < 1)
|
||||||
|
throw new IllegalArgumentException ("M_Product_ID is mandatory.");
|
||||||
|
set_ValueNoCheck (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Product.
|
||||||
|
@return Product, Service, Item
|
||||||
|
*/
|
||||||
|
public int getM_Product_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Product Price Vendor Break.
|
||||||
|
@param M_ProductPriceVendorBreak_ID Product Price Vendor Break */
|
||||||
|
public void setM_ProductPriceVendorBreak_ID (int M_ProductPriceVendorBreak_ID)
|
||||||
|
{
|
||||||
|
if (M_ProductPriceVendorBreak_ID < 1)
|
||||||
|
throw new IllegalArgumentException ("M_ProductPriceVendorBreak_ID is mandatory.");
|
||||||
|
set_ValueNoCheck (COLUMNNAME_M_ProductPriceVendorBreak_ID, Integer.valueOf(M_ProductPriceVendorBreak_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Product Price Vendor Break.
|
||||||
|
@return Product Price Vendor Break */
|
||||||
|
public int getM_ProductPriceVendorBreak_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_M_ProductPriceVendorBreak_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Limit Price.
|
||||||
|
@param PriceLimit
|
||||||
|
Lowest price for a product
|
||||||
|
*/
|
||||||
|
public void setPriceLimit (BigDecimal PriceLimit)
|
||||||
|
{
|
||||||
|
if (PriceLimit == null)
|
||||||
|
throw new IllegalArgumentException ("PriceLimit is mandatory.");
|
||||||
|
set_Value (COLUMNNAME_PriceLimit, PriceLimit);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Limit Price.
|
||||||
|
@return Lowest price for a product
|
||||||
|
*/
|
||||||
|
public BigDecimal getPriceLimit ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceLimit);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set List Price.
|
||||||
|
@param PriceList
|
||||||
|
List Price
|
||||||
|
*/
|
||||||
|
public void setPriceList (BigDecimal PriceList)
|
||||||
|
{
|
||||||
|
if (PriceList == null)
|
||||||
|
throw new IllegalArgumentException ("PriceList is mandatory.");
|
||||||
|
set_Value (COLUMNNAME_PriceList, PriceList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get List Price.
|
||||||
|
@return List Price
|
||||||
|
*/
|
||||||
|
public BigDecimal getPriceList ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceList);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Standard Price.
|
||||||
|
@param PriceStd
|
||||||
|
Standard Price
|
||||||
|
*/
|
||||||
|
public void setPriceStd (BigDecimal PriceStd)
|
||||||
|
{
|
||||||
|
if (PriceStd == null)
|
||||||
|
throw new IllegalArgumentException ("PriceStd is mandatory.");
|
||||||
|
set_Value (COLUMNNAME_PriceStd, PriceStd);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Standard Price.
|
||||||
|
@return Standard Price
|
||||||
|
*/
|
||||||
|
public BigDecimal getPriceStd ()
|
||||||
|
{
|
||||||
|
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceStd);
|
||||||
|
if (bd == null)
|
||||||
|
return Env.ZERO;
|
||||||
|
return bd;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,319 @@
|
||||||
|
-- Mar 17, 2009 10:34:37 PM COT
|
||||||
|
-- FR [2651812] - Differential pricing
|
||||||
|
INSERT INTO AD_Table (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Table_ID,AD_Window_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEnabled,IsView,LoadSeq,Name,ReplicationType,TableName,Updated,UpdatedBy) VALUES ('3',0,0,53172,146,'N',TO_DATE('2009-03-17 22:34:19','YYYY-MM-DD HH24:MI:SS'),100,'D','N','Y','N','Y','N','N','N',0,'Product Price with Vendor Break','L','M_ProductPriceVendorBreak',TO_DATE('2009-03-17 22:34:19','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:34:38 PM COT
|
||||||
|
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=53172 AND EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Table_ID!=t.AD_Table_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:34:45 PM COT
|
||||||
|
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,53273,TO_DATE('2009-03-17 22:34:38','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table M_ProductPriceVendorBreak',1,'Y','N','Y','Y','M_ProductPriceVendorBreak','N',1000000,TO_DATE('2009-03-17 22:34:38','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:08 PM COT
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56916,102,0,19,53172,129,'AD_Client_ID',TO_DATE('2009-03-17 22:35:02','YYYY-MM-DD HH24:MI:SS'),100,'@AD_Client_ID@','Client/Tenant for this installation.','D',22,'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','N','N','N','N','Y','N','N','N','N','N','Client',0,TO_DATE('2009-03-17 22:35:02','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:08 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56916 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 17, 2009 10:35:14 PM COT
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56917,113,0,19,53172,104,'AD_Org_ID',TO_DATE('2009-03-17 22:35:08','YYYY-MM-DD HH24:MI:SS'),100,'@AD_Org_ID@','Organizational entity within client','D',22,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','N','N','N','N','Y','N','N','N','N','N','Organization',0,TO_DATE('2009-03-17 22:35:08','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:14 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56917 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 17, 2009 10:35:22 PM COT
|
||||||
|
INSERT 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,56918,245,0,16,53172,'Created',TO_DATE('2009-03-17 22:35:14','YYYY-MM-DD HH24:MI:SS'),100,'Date this record was created','D',7,'The Created field indicates the date that this record was created.','Y','N','N','N','N','Y','N','N','N','N','N','Created',0,TO_DATE('2009-03-17 22:35:14','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:23 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56918 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 17, 2009 10:35:28 PM COT
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56919,246,0,18,110,53172,'CreatedBy',TO_DATE('2009-03-17 22:35:23','YYYY-MM-DD HH24:MI:SS'),100,'User who created this records','D',22,'The Created By field indicates the user who created this record.','Y','N','N','N','N','Y','N','N','N','N','N','Created By',0,TO_DATE('2009-03-17 22:35:23','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:28 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56919 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 17, 2009 10:35:32 PM COT
|
||||||
|
INSERT 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,56920,348,0,20,53172,'IsActive',TO_DATE('2009-03-17 22:35:28','YYYY-MM-DD HH24:MI:SS'),100,'Y','The record is active in the system','D',1,'There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||||
|
There are two reasons for de-activating and not deleting records:
|
||||||
|
(1) The system requires the record for audit purposes.
|
||||||
|
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Y','N','N','N','N','Y','N','N','N','N','Y','Active',0,TO_DATE('2009-03-17 22:35:28','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:32 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56920 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 17, 2009 10:35:33 PM COT
|
||||||
|
INSERT 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,56921,450,0,19,53172,'M_PriceList_Version_ID',TO_DATE('2009-03-17 22:35:32','YYYY-MM-DD HH24:MI:SS'),100,'Identifies a unique instance of a Price List','D',22,'Each Price List can have multiple versions. The most common use is to indicate the dates that a Price List is valid for.','Y','N','N','N','N','Y','Y','N','N','N','N','Price List Version',0,TO_DATE('2009-03-17 22:35:32','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:33 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56921 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 17, 2009 10:35:33 PM COT
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56922,454,0,30,53172,231,'M_Product_ID',TO_DATE('2009-03-17 22:35:33','YYYY-MM-DD HH24:MI:SS'),100,'Product, Service, Item','D',22,'Identifies an item which is either purchased or sold in this organization.','Y','N','N','N','N','Y','Y','N','N','N','N','Product',0,TO_DATE('2009-03-17 22:35:33','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:33 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56922 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 17, 2009 10:35:34 PM COT
|
||||||
|
INSERT 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,56923,955,0,37,53172,'PriceLimit',TO_DATE('2009-03-17 22:35:33','YYYY-MM-DD HH24:MI:SS'),100,'Lowest price for a product','D',22,'The Price Limit indicates the lowest price for a product stated in the Price List Currency.','Y','N','N','N','N','Y','N','N','N','N','Y','Limit Price',0,TO_DATE('2009-03-17 22:35:33','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:34 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56923 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 17, 2009 10:35:35 PM COT
|
||||||
|
INSERT 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,56924,520,0,37,53172,'PriceList',TO_DATE('2009-03-17 22:35:34','YYYY-MM-DD HH24:MI:SS'),100,'List Price','D',22,'The List Price is the official List Price in the document currency.','Y','N','N','N','N','Y','N','N','N','N','Y','List Price',0,TO_DATE('2009-03-17 22:35:34','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:35 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56924 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 17, 2009 10:35:35 PM COT
|
||||||
|
INSERT 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,56925,957,0,37,53172,'PriceStd',TO_DATE('2009-03-17 22:35:35','YYYY-MM-DD HH24:MI:SS'),100,'Standard Price','D',22,'The Standard Price indicates the standard or normal price for a product on this price list','Y','N','N','N','N','Y','N','N','N','N','Y','Standard Price',0,TO_DATE('2009-03-17 22:35:35','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:35 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56925 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 17, 2009 10:35:36 PM COT
|
||||||
|
INSERT 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,56926,607,0,16,53172,'Updated',TO_DATE('2009-03-17 22:35:35','YYYY-MM-DD HH24:MI:SS'),100,'Date this record was updated','D',7,'The Updated field indicates the date that this record was updated.','Y','N','N','N','N','Y','N','N','N','N','N','Updated',0,TO_DATE('2009-03-17 22:35:35','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:36 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56926 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 17, 2009 10:35:37 PM COT
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56927,608,0,18,110,53172,'UpdatedBy',TO_DATE('2009-03-17 22:35:36','YYYY-MM-DD HH24:MI:SS'),100,'User who updated this records','D',22,'The Updated By field indicates the user who updated this record.','Y','N','N','N','N','Y','N','N','N','N','N','Updated By',0,TO_DATE('2009-03-17 22:35:36','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:37 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56927 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 17, 2009 10:40:18 PM COT
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56928,187,0,30,192,53172,'C_BPartner_ID',TO_DATE('2009-03-17 22:40:10','YYYY-MM-DD HH24:MI:SS'),100,'Identifies a Business Partner','D',10,'A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','Y','N','N','N','N','Y','Y','N','N','N','N','Business Partner ',0,TO_DATE('2009-03-17 22:40:10','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:40:18 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56928 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 17, 2009 10:41:24 PM COT
|
||||||
|
INSERT 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,56929,1708,0,22,53172,'BreakValue',TO_DATE('2009-03-17 22:41:19','YYYY-MM-DD HH24:MI:SS'),100,'Low Value of trade discount break level','D',22,'Starting Quantity or Amount Value for break level','Y','N','N','N','N','Y','Y','N','N','N','N','Break Value',0,TO_DATE('2009-03-17 22:41:19','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:41:24 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56929 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 17, 2009 10:41:43 PM COT
|
||||||
|
CREATE TABLE M_ProductPriceVendorBreak (AD_Client_ID NUMBER(10) NOT NULL, AD_Org_ID NUMBER(10) NOT NULL, BreakValue NUMBER NOT NULL, C_BPartner_ID NUMBER(10) NOT NULL, Created DATE NOT NULL, CreatedBy NUMBER(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, M_PriceList_Version_ID NUMBER(10) NOT NULL, M_Product_ID NUMBER(10) NOT NULL, PriceLimit NUMBER NOT NULL, PriceList NUMBER NOT NULL, PriceStd NUMBER NOT NULL, Updated DATE NOT NULL, UpdatedBy NUMBER(10) NOT NULL)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:07 PM COT
|
||||||
|
INSERT INTO AD_Tab (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,Description,EntityType,HasTree,Help,IsActive,IsAdvancedTab,IsInfoTab,IsInsertRecord,IsReadOnly,IsSingleRow,IsSortTab,IsTranslationTab,Name,Processing,SeqNo,TabLevel,Updated,UpdatedBy) VALUES (0,0,53197,53172,146,TO_DATE('2009-03-17 22:43:07','YYYY-MM-DD HH24:MI:SS'),100,NULL,'D','N',NULL,'Y','N','N','Y','N','N','N','N','Product Price Vendor Break','N',40,2,TO_DATE('2009-03-17 22:43:07','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:08 PM COT
|
||||||
|
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=53197 AND EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Tab_ID!=t.AD_Tab_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:12 PM COT
|
||||||
|
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,56920,56769,0,53197,TO_DATE('2009-03-17 22:43:12','YYYY-MM-DD HH24:MI:SS'),100,'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('2009-03-17 22:43:12','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:13 PM COT
|
||||||
|
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=56769 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 17, 2009 10:43:13 PM COT
|
||||||
|
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,56929,56770,0,53197,TO_DATE('2009-03-17 22:43:13','YYYY-MM-DD HH24:MI:SS'),100,'Low Value of trade discount break level',22,'D','Starting Quantity or Amount Value for break level','Y','Y','Y','N','N','N','N','N','Break Value',TO_DATE('2009-03-17 22:43:13','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:13 PM COT
|
||||||
|
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=56770 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 17, 2009 10:43:14 PM COT
|
||||||
|
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,56928,56771,0,53197,TO_DATE('2009-03-17 22:43:13','YYYY-MM-DD HH24:MI:SS'),100,'Identifies a Business Partner',10,'D','A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','Y','Y','Y','N','N','N','N','N','Business Partner ',TO_DATE('2009-03-17 22:43:13','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:14 PM COT
|
||||||
|
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=56771 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 17, 2009 10:43:15 PM COT
|
||||||
|
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,56916,56772,0,53197,TO_DATE('2009-03-17 22:43:14','YYYY-MM-DD HH24:MI:SS'),100,'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('2009-03-17 22:43:14','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:15 PM COT
|
||||||
|
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=56772 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 17, 2009 10:43:15 PM COT
|
||||||
|
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,56923,56773,0,53197,TO_DATE('2009-03-17 22:43:15','YYYY-MM-DD HH24:MI:SS'),100,'Lowest price for a product',22,'D','The Price Limit indicates the lowest price for a product stated in the Price List Currency.','Y','Y','Y','N','N','N','N','N','Limit Price',TO_DATE('2009-03-17 22:43:15','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:15 PM COT
|
||||||
|
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=56773 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 17, 2009 10:43:16 PM COT
|
||||||
|
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,56924,56774,0,53197,TO_DATE('2009-03-17 22:43:15','YYYY-MM-DD HH24:MI:SS'),100,'List Price',22,'D','The List Price is the official List Price in the document currency.','Y','Y','Y','N','N','N','N','N','List Price',TO_DATE('2009-03-17 22:43:15','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:16 PM COT
|
||||||
|
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=56774 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 17, 2009 10:43:16 PM COT
|
||||||
|
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,56917,56775,0,53197,TO_DATE('2009-03-17 22:43:16','YYYY-MM-DD HH24:MI:SS'),100,'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('2009-03-17 22:43:16','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:16 PM COT
|
||||||
|
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=56775 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 17, 2009 10:43:17 PM COT
|
||||||
|
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,56921,56776,0,53197,TO_DATE('2009-03-17 22:43:16','YYYY-MM-DD HH24:MI:SS'),100,'Identifies a unique instance of a Price List',22,'D','Each Price List can have multiple versions. The most common use is to indicate the dates that a Price List is valid for.','Y','Y','Y','N','N','N','N','N','Price List Version',TO_DATE('2009-03-17 22:43:16','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:17 PM COT
|
||||||
|
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=56776 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 17, 2009 10:43:17 PM COT
|
||||||
|
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,56922,56777,0,53197,TO_DATE('2009-03-17 22:43:17','YYYY-MM-DD HH24:MI:SS'),100,'Product, Service, Item',22,'D','Identifies an item which is either purchased or sold in this organization.','Y','Y','Y','N','N','N','N','N','Product',TO_DATE('2009-03-17 22:43:17','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:17 PM COT
|
||||||
|
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=56777 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 17, 2009 10:43:18 PM COT
|
||||||
|
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,56925,56778,0,53197,TO_DATE('2009-03-17 22:43:17','YYYY-MM-DD HH24:MI:SS'),100,'Standard Price',22,'D','The Standard Price indicates the standard or normal price for a product on this price list','Y','Y','Y','N','N','N','N','N','Standard Price',TO_DATE('2009-03-17 22:43:17','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:18 PM COT
|
||||||
|
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=56778 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 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=56772
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=56775
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=56776
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=56777
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=56771
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=56770
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=56769
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=56773
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=56778
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=56774
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:44:07 PM COT
|
||||||
|
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_DATE('2009-03-17 22:44:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56775
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:50:48 PM COT
|
||||||
|
UPDATE AD_Column SET IsParent='N',Updated=TO_DATE('2009-03-17 22:50:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56929
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:50:50 PM COT
|
||||||
|
UPDATE AD_Column SET IsParent='N',Updated=TO_DATE('2009-03-17 22:50:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56928
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:50:52 PM COT
|
||||||
|
UPDATE AD_Column SET IsParent='N',Updated=TO_DATE('2009-03-17 22:50:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56921
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:50:54 PM COT
|
||||||
|
UPDATE AD_Column SET IsParent='N',Updated=TO_DATE('2009-03-17 22:50:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56922
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:55:00 PM COT
|
||||||
|
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53796,0,'M_ProductPriceVendorBreak_ID',TO_DATE('2009-03-17 22:54:48','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Product Price Vendor Break','Product Price Vendor Break',TO_DATE('2009-03-17 22:54:48','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:55:00 PM COT
|
||||||
|
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=53796 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 17, 2009 10:55:50 PM COT
|
||||||
|
INSERT 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,56930,53796,0,13,53172,'M_ProductPriceVendorBreak_ID',TO_DATE('2009-03-17 22:55:50','YYYY-MM-DD HH24:MI:SS'),100,'D',22,'Y','N','N','N','Y','Y','N','N','N','N','N','Product Price Vendor Break',0,TO_DATE('2009-03-17 22:55:50','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:55:50 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56930 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 17, 2009 10:55:54 PM COT
|
||||||
|
ALTER TABLE M_ProductPriceVendorBreak ADD M_ProductPriceVendorBreak_ID NUMBER(10) NOT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:55:54 PM COT
|
||||||
|
ALTER TABLE M_ProductPriceVendorBreak ADD CONSTRAINT M_ProductPriceVendorBreak_Key PRIMARY KEY (M_ProductPriceVendorBreak_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:56:15 PM COT
|
||||||
|
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,56930,56779,0,53197,TO_DATE('2009-03-17 22:56:15','YYYY-MM-DD HH24:MI:SS'),100,22,'D','Y','Y','N','N','N','N','N','N','Product Price Vendor Break',TO_DATE('2009-03-17 22:56:15','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:56:15 PM COT
|
||||||
|
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=56779 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 17, 2009 10:56:25 PM COT
|
||||||
|
UPDATE AD_Tab SET AD_Column_ID=56921,Updated=TO_DATE('2009-03-17 22:56:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53197
|
||||||
|
;
|
||||||
|
|
|
@ -0,0 +1,319 @@
|
||||||
|
-- Mar 17, 2009 10:34:37 PM COT
|
||||||
|
-- FR [2651812] - Differential pricing
|
||||||
|
INSERT INTO AD_Table (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Table_ID,AD_Window_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEnabled,IsView,LoadSeq,Name,ReplicationType,TableName,Updated,UpdatedBy) VALUES ('3',0,0,53172,146,'N',TO_TIMESTAMP('2009-03-17 22:34:19','YYYY-MM-DD HH24:MI:SS'),100,'D','N','Y','N','Y','N','N','N',0,'Product Price with Vendor Break','L','M_ProductPriceVendorBreak',TO_TIMESTAMP('2009-03-17 22:34:19','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:34:38 PM COT
|
||||||
|
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=53172 AND EXISTS (SELECT * FROM AD_Table_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Table_ID!=t.AD_Table_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:34:45 PM COT
|
||||||
|
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,53273,TO_TIMESTAMP('2009-03-17 22:34:38','YYYY-MM-DD HH24:MI:SS'),100,1000000,50000,'Table M_ProductPriceVendorBreak',1,'Y','N','Y','Y','M_ProductPriceVendorBreak','N',1000000,TO_TIMESTAMP('2009-03-17 22:34:38','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:08 PM COT
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56916,102,0,19,53172,129,'AD_Client_ID',TO_TIMESTAMP('2009-03-17 22:35:02','YYYY-MM-DD HH24:MI:SS'),100,'@AD_Client_ID@','Client/Tenant for this installation.','D',22,'A Client is a company or a legal entity. You cannot share data between Clients. Tenant is a synonym for Client.','Y','N','N','N','N','Y','N','N','N','N','N','Client',0,TO_TIMESTAMP('2009-03-17 22:35:02','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:08 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56916 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 17, 2009 10:35:14 PM COT
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,DefaultValue,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56917,113,0,19,53172,104,'AD_Org_ID',TO_TIMESTAMP('2009-03-17 22:35:08','YYYY-MM-DD HH24:MI:SS'),100,'@AD_Org_ID@','Organizational entity within client','D',22,'An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations.','Y','N','N','N','N','Y','N','N','N','N','N','Organization',0,TO_TIMESTAMP('2009-03-17 22:35:08','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:14 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56917 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 17, 2009 10:35:22 PM COT
|
||||||
|
INSERT 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,56918,245,0,16,53172,'Created',TO_TIMESTAMP('2009-03-17 22:35:14','YYYY-MM-DD HH24:MI:SS'),100,'Date this record was created','D',7,'The Created field indicates the date that this record was created.','Y','N','N','N','N','Y','N','N','N','N','N','Created',0,TO_TIMESTAMP('2009-03-17 22:35:14','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:23 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56918 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 17, 2009 10:35:28 PM COT
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56919,246,0,18,110,53172,'CreatedBy',TO_TIMESTAMP('2009-03-17 22:35:23','YYYY-MM-DD HH24:MI:SS'),100,'User who created this records','D',22,'The Created By field indicates the user who created this record.','Y','N','N','N','N','Y','N','N','N','N','N','Created By',0,TO_TIMESTAMP('2009-03-17 22:35:23','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:28 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56919 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 17, 2009 10:35:32 PM COT
|
||||||
|
INSERT 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,56920,348,0,20,53172,'IsActive',TO_TIMESTAMP('2009-03-17 22:35:28','YYYY-MM-DD HH24:MI:SS'),100,'Y','The record is active in the system','D',1,'There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reports.
|
||||||
|
There are two reasons for de-activating and not deleting records:
|
||||||
|
(1) The system requires the record for audit purposes.
|
||||||
|
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are invoices for this partner record existing. You de-activate the Business Partner and prevent that this record is used for future entries.','Y','N','N','N','N','Y','N','N','N','N','Y','Active',0,TO_TIMESTAMP('2009-03-17 22:35:28','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:32 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56920 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 17, 2009 10:35:33 PM COT
|
||||||
|
INSERT 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,56921,450,0,19,53172,'M_PriceList_Version_ID',TO_TIMESTAMP('2009-03-17 22:35:32','YYYY-MM-DD HH24:MI:SS'),100,'Identifies a unique instance of a Price List','D',22,'Each Price List can have multiple versions. The most common use is to indicate the dates that a Price List is valid for.','Y','N','N','N','N','Y','Y','N','N','N','N','Price List Version',0,TO_TIMESTAMP('2009-03-17 22:35:32','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:33 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56921 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 17, 2009 10:35:33 PM COT
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,AD_Val_Rule_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56922,454,0,30,53172,231,'M_Product_ID',TO_TIMESTAMP('2009-03-17 22:35:33','YYYY-MM-DD HH24:MI:SS'),100,'Product, Service, Item','D',22,'Identifies an item which is either purchased or sold in this organization.','Y','N','N','N','N','Y','Y','N','N','N','N','Product',0,TO_TIMESTAMP('2009-03-17 22:35:33','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:33 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56922 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 17, 2009 10:35:34 PM COT
|
||||||
|
INSERT 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,56923,955,0,37,53172,'PriceLimit',TO_TIMESTAMP('2009-03-17 22:35:33','YYYY-MM-DD HH24:MI:SS'),100,'Lowest price for a product','D',22,'The Price Limit indicates the lowest price for a product stated in the Price List Currency.','Y','N','N','N','N','Y','N','N','N','N','Y','Limit Price',0,TO_TIMESTAMP('2009-03-17 22:35:33','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:34 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56923 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 17, 2009 10:35:35 PM COT
|
||||||
|
INSERT 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,56924,520,0,37,53172,'PriceList',TO_TIMESTAMP('2009-03-17 22:35:34','YYYY-MM-DD HH24:MI:SS'),100,'List Price','D',22,'The List Price is the official List Price in the document currency.','Y','N','N','N','N','Y','N','N','N','N','Y','List Price',0,TO_TIMESTAMP('2009-03-17 22:35:34','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:35 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56924 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 17, 2009 10:35:35 PM COT
|
||||||
|
INSERT 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,56925,957,0,37,53172,'PriceStd',TO_TIMESTAMP('2009-03-17 22:35:35','YYYY-MM-DD HH24:MI:SS'),100,'Standard Price','D',22,'The Standard Price indicates the standard or normal price for a product on this price list','Y','N','N','N','N','Y','N','N','N','N','Y','Standard Price',0,TO_TIMESTAMP('2009-03-17 22:35:35','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:35 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56925 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 17, 2009 10:35:36 PM COT
|
||||||
|
INSERT 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,56926,607,0,16,53172,'Updated',TO_TIMESTAMP('2009-03-17 22:35:35','YYYY-MM-DD HH24:MI:SS'),100,'Date this record was updated','D',7,'The Updated field indicates the date that this record was updated.','Y','N','N','N','N','Y','N','N','N','N','N','Updated',0,TO_TIMESTAMP('2009-03-17 22:35:35','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:36 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56926 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 17, 2009 10:35:37 PM COT
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56927,608,0,18,110,53172,'UpdatedBy',TO_TIMESTAMP('2009-03-17 22:35:36','YYYY-MM-DD HH24:MI:SS'),100,'User who updated this records','D',22,'The Updated By field indicates the user who updated this record.','Y','N','N','N','N','Y','N','N','N','N','N','Updated By',0,TO_TIMESTAMP('2009-03-17 22:35:36','YYYY-MM-DD HH24:MI:SS'),100,1)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:35:37 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56927 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 17, 2009 10:40:18 PM COT
|
||||||
|
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAlwaysUpdateable,IsEncrypted,IsIdentifier,IsKey,IsMandatory,IsParent,IsSelectionColumn,IsSyncDatabase,IsTranslated,IsUpdateable,Name,SeqNo,Updated,UpdatedBy,Version) VALUES (0,56928,187,0,30,192,53172,'C_BPartner_ID',TO_TIMESTAMP('2009-03-17 22:40:10','YYYY-MM-DD HH24:MI:SS'),100,'Identifies a Business Partner','D',10,'A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','Y','N','N','N','N','Y','Y','N','N','N','N','Business Partner ',0,TO_TIMESTAMP('2009-03-17 22:40:10','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:40:18 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56928 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 17, 2009 10:41:24 PM COT
|
||||||
|
INSERT 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,56929,1708,0,22,53172,'BreakValue',TO_TIMESTAMP('2009-03-17 22:41:19','YYYY-MM-DD HH24:MI:SS'),100,'Low Value of trade discount break level','D',22,'Starting Quantity or Amount Value for break level','Y','N','N','N','N','Y','Y','N','N','N','N','Break Value',0,TO_TIMESTAMP('2009-03-17 22:41:19','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:41:24 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56929 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 17, 2009 10:41:43 PM COT
|
||||||
|
CREATE TABLE M_ProductPriceVendorBreak (AD_Client_ID NUMERIC(10) NOT NULL, AD_Org_ID NUMERIC(10) NOT NULL, BreakValue NUMERIC NOT NULL, C_BPartner_ID NUMERIC(10) NOT NULL, Created TIMESTAMP NOT NULL, CreatedBy NUMERIC(10) NOT NULL, IsActive CHAR(1) DEFAULT 'Y' CHECK (IsActive IN ('Y','N')) NOT NULL, M_PriceList_Version_ID NUMERIC(10) NOT NULL, M_Product_ID NUMERIC(10) NOT NULL, PriceLimit NUMERIC NOT NULL, PriceList NUMERIC NOT NULL, PriceStd NUMERIC NOT NULL, Updated TIMESTAMP NOT NULL, UpdatedBy NUMERIC(10) NOT NULL)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:07 PM COT
|
||||||
|
INSERT INTO AD_Tab (AD_Client_ID,AD_Org_ID,AD_Tab_ID,AD_Table_ID,AD_Window_ID,Created,CreatedBy,Description,EntityType,HasTree,Help,IsActive,IsAdvancedTab,IsInfoTab,IsInsertRecord,IsReadOnly,IsSingleRow,IsSortTab,IsTranslationTab,Name,Processing,SeqNo,TabLevel,Updated,UpdatedBy) VALUES (0,0,53197,53172,146,TO_TIMESTAMP('2009-03-17 22:43:07','YYYY-MM-DD HH24:MI:SS'),100,NULL,'D','N',NULL,'Y','N','N','Y','N','N','N','N','Product Price Vendor Break','N',40,2,TO_TIMESTAMP('2009-03-17 22:43:07','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:08 PM COT
|
||||||
|
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=53197 AND EXISTS (SELECT * FROM AD_Tab_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Tab_ID!=t.AD_Tab_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:12 PM COT
|
||||||
|
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,56920,56769,0,53197,TO_TIMESTAMP('2009-03-17 22:43:12','YYYY-MM-DD HH24:MI:SS'),100,'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('2009-03-17 22:43:12','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:13 PM COT
|
||||||
|
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=56769 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 17, 2009 10:43:13 PM COT
|
||||||
|
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,56929,56770,0,53197,TO_TIMESTAMP('2009-03-17 22:43:13','YYYY-MM-DD HH24:MI:SS'),100,'Low Value of trade discount break level',22,'D','Starting Quantity or Amount Value for break level','Y','Y','Y','N','N','N','N','N','Break Value',TO_TIMESTAMP('2009-03-17 22:43:13','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:13 PM COT
|
||||||
|
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=56770 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 17, 2009 10:43:14 PM COT
|
||||||
|
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,56928,56771,0,53197,TO_TIMESTAMP('2009-03-17 22:43:13','YYYY-MM-DD HH24:MI:SS'),100,'Identifies a Business Partner',10,'D','A Business Partner is anyone with whom you transact. This can include Vendor, Customer, Employee or Salesperson','Y','Y','Y','N','N','N','N','N','Business Partner ',TO_TIMESTAMP('2009-03-17 22:43:13','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:14 PM COT
|
||||||
|
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=56771 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 17, 2009 10:43:15 PM COT
|
||||||
|
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,56916,56772,0,53197,TO_TIMESTAMP('2009-03-17 22:43:14','YYYY-MM-DD HH24:MI:SS'),100,'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('2009-03-17 22:43:14','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:15 PM COT
|
||||||
|
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=56772 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 17, 2009 10:43:15 PM COT
|
||||||
|
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,56923,56773,0,53197,TO_TIMESTAMP('2009-03-17 22:43:15','YYYY-MM-DD HH24:MI:SS'),100,'Lowest price for a product',22,'D','The Price Limit indicates the lowest price for a product stated in the Price List Currency.','Y','Y','Y','N','N','N','N','N','Limit Price',TO_TIMESTAMP('2009-03-17 22:43:15','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:15 PM COT
|
||||||
|
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=56773 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 17, 2009 10:43:16 PM COT
|
||||||
|
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,56924,56774,0,53197,TO_TIMESTAMP('2009-03-17 22:43:15','YYYY-MM-DD HH24:MI:SS'),100,'List Price',22,'D','The List Price is the official List Price in the document currency.','Y','Y','Y','N','N','N','N','N','List Price',TO_TIMESTAMP('2009-03-17 22:43:15','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:16 PM COT
|
||||||
|
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=56774 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 17, 2009 10:43:16 PM COT
|
||||||
|
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,56917,56775,0,53197,TO_TIMESTAMP('2009-03-17 22:43:16','YYYY-MM-DD HH24:MI:SS'),100,'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('2009-03-17 22:43:16','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:16 PM COT
|
||||||
|
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=56775 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 17, 2009 10:43:17 PM COT
|
||||||
|
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,56921,56776,0,53197,TO_TIMESTAMP('2009-03-17 22:43:16','YYYY-MM-DD HH24:MI:SS'),100,'Identifies a unique instance of a Price List',22,'D','Each Price List can have multiple versions. The most common use is to indicate the dates that a Price List is valid for.','Y','Y','Y','N','N','N','N','N','Price List Version',TO_TIMESTAMP('2009-03-17 22:43:16','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:17 PM COT
|
||||||
|
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=56776 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 17, 2009 10:43:17 PM COT
|
||||||
|
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,56922,56777,0,53197,TO_TIMESTAMP('2009-03-17 22:43:17','YYYY-MM-DD HH24:MI:SS'),100,'Product, Service, Item',22,'D','Identifies an item which is either purchased or sold in this organization.','Y','Y','Y','N','N','N','N','N','Product',TO_TIMESTAMP('2009-03-17 22:43:17','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:17 PM COT
|
||||||
|
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=56777 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 17, 2009 10:43:18 PM COT
|
||||||
|
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,56925,56778,0,53197,TO_TIMESTAMP('2009-03-17 22:43:17','YYYY-MM-DD HH24:MI:SS'),100,'Standard Price',22,'D','The Standard Price indicates the standard or normal price for a product on this price list','Y','Y','Y','N','N','N','N','N','Standard Price',TO_TIMESTAMP('2009-03-17 22:43:17','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:18 PM COT
|
||||||
|
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=56778 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 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=10,IsDisplayed='Y' WHERE AD_Field_ID=56772
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=56775
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=56776
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=56777
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=56771
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=56770
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=56769
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=56773
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=56778
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:43:59 PM COT
|
||||||
|
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=56774
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:44:07 PM COT
|
||||||
|
UPDATE AD_Field SET IsSameLine='Y',Updated=TO_TIMESTAMP('2009-03-17 22:44:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56775
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:50:48 PM COT
|
||||||
|
UPDATE AD_Column SET IsParent='N',Updated=TO_TIMESTAMP('2009-03-17 22:50:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56929
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:50:50 PM COT
|
||||||
|
UPDATE AD_Column SET IsParent='N',Updated=TO_TIMESTAMP('2009-03-17 22:50:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56928
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:50:52 PM COT
|
||||||
|
UPDATE AD_Column SET IsParent='N',Updated=TO_TIMESTAMP('2009-03-17 22:50:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56921
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:50:54 PM COT
|
||||||
|
UPDATE AD_Column SET IsParent='N',Updated=TO_TIMESTAMP('2009-03-17 22:50:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=56922
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:55:00 PM COT
|
||||||
|
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,53796,0,'M_ProductPriceVendorBreak_ID',TO_TIMESTAMP('2009-03-17 22:54:48','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Product Price Vendor Break','Product Price Vendor Break',TO_TIMESTAMP('2009-03-17 22:54:48','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:55:00 PM COT
|
||||||
|
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=53796 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 17, 2009 10:55:50 PM COT
|
||||||
|
INSERT 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,56930,53796,0,13,53172,'M_ProductPriceVendorBreak_ID',TO_TIMESTAMP('2009-03-17 22:55:50','YYYY-MM-DD HH24:MI:SS'),100,'D',22,'Y','N','N','N','Y','Y','N','N','N','N','N','Product Price Vendor Break',0,TO_TIMESTAMP('2009-03-17 22:55:50','YYYY-MM-DD HH24:MI:SS'),100,0)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:55:50 PM COT
|
||||||
|
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Column_ID=56930 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 17, 2009 10:55:54 PM COT
|
||||||
|
ALTER TABLE M_ProductPriceVendorBreak ADD COLUMN M_ProductPriceVendorBreak_ID NUMERIC(10) NOT NULL
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:55:54 PM COT
|
||||||
|
ALTER TABLE M_ProductPriceVendorBreak ADD CONSTRAINT M_ProductPriceVendorBreak_Key PRIMARY KEY (M_ProductPriceVendorBreak_ID)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:56:15 PM COT
|
||||||
|
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,56930,56779,0,53197,TO_TIMESTAMP('2009-03-17 22:56:15','YYYY-MM-DD HH24:MI:SS'),100,22,'D','Y','Y','N','N','N','N','N','N','Product Price Vendor Break',TO_TIMESTAMP('2009-03-17 22:56:15','YYYY-MM-DD HH24:MI:SS'),100)
|
||||||
|
;
|
||||||
|
|
||||||
|
-- Mar 17, 2009 10:56:15 PM COT
|
||||||
|
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=56779 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 17, 2009 10:56:25 PM COT
|
||||||
|
UPDATE AD_Tab SET AD_Column_ID=56921,Updated=TO_TIMESTAMP('2009-03-17 22:56:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53197
|
||||||
|
;
|
||||||
|
|
Loading…
Reference in New Issue