Compiere 3.1

org.compiere.model
Class X_M_Product_Category_Acct

java.lang.Object
  extended by org.compiere.framework.PO
      extended by org.compiere.model.X_M_Product_Category_Acct
All Implemented Interfaces:
Serializable, Cloneable, Comparator<PO>, Evaluatee
Direct Known Subclasses:
MProductCategoryAcct

public class X_M_Product_Category_Acct
extends PO

Generated Model for M_Product_Category_Acct

Version:
Release 3.1.0 - $Id$
Author:
Jorg Janke (generated)
See Also:
Serialized Form

Field Summary
protected  BigDecimal accessLevel
           
static int COSTINGLEVEL_AD_Reference_ID
          CostingLevel AD_Reference_ID=355
static String COSTINGLEVEL_BatchLot
          Batch/Lot = B
static String COSTINGLEVEL_Client
          Client = C
static String COSTINGLEVEL_Organization
          Organization = O
static String COSTINGMETHOD__
          _ = x
static int COSTINGMETHOD_AD_Reference_ID
          CostingMethod AD_Reference_ID=122
static String COSTINGMETHOD_AverageInvoice
          Average Invoice = I
static String COSTINGMETHOD_AveragePO
          Average PO = A
static String COSTINGMETHOD_FiFo
          FiFo = F
static String COSTINGMETHOD_LastInvoice
          Last Invoice = i
static String COSTINGMETHOD_LastPOPrice
          Last PO Price = p
static String COSTINGMETHOD_LiFo
          LiFo = L
static String COSTINGMETHOD_StandardCosting
          Standard Costing = S
static String COSTINGMETHOD_UserDefined
          User Defined = U
protected static KeyNamePair Model
           
static int Table_ID
          AD_Table_ID=401
static String Table_Name
          TableName=M_Product_Category_Acct
static long updatedMS
          Last Updated Timestamp 2008-06-10 15:12:06.0
 
Fields inherited from class org.compiere.framework.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, log, p_changeVO, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
 
Constructor Summary
X_M_Product_Category_Acct(Ctx ctx, int M_Product_Category_Acct_ID, String trxName)
          Standard Constructor
X_M_Product_Category_Acct(Ctx ctx, ResultSet rs, String trxName)
          Load Constructor
 
Method Summary
protected  int get_AccessLevel()
          AccessLevel
 int getC_AcctSchema_ID()
          Get Accounting Schema.
 String getCostingLevel()
          Get Costing Level.
 String getCostingMethod()
          Get Costing Method.
 KeyNamePair getKeyNamePair()
          Get Record ID/ColumnName
 int getM_Product_Category_ID()
          Get Product Category.
 int getP_Asset_Acct()
          Get Product Asset.
 int getP_COGS_Acct()
          Get Product COGS.
 int getP_CostAdjustment_Acct()
          Get Cost Adjustment.
 int getP_Expense_Acct()
          Get Product Expense.
 int getP_InventoryClearing_Acct()
          Get Inventory Clearing.
 int getP_InvoicePriceVariance_Acct()
          Get Invoice Price Variance.
 int getP_PurchasePriceVariance_Acct()
          Get Purchase Price Variance.
 int getP_Revenue_Acct()
          Get Product Revenue.
 int getP_TradeDiscountGrant_Acct()
          Get Trade Discount Granted.
 int getP_TradeDiscountRec_Acct()
          Get Trade Discount Received.
protected  POInfo initPO(Ctx ctx)
          Load Meta Data
 boolean isCostingLevelValid(String test)
          Is test a valid value.
 boolean isCostingMethodValid(String test)
          Is test a valid value.
 boolean isProcessing()
          Get Process Now.
 void setC_AcctSchema_ID(int C_AcctSchema_ID)
          Set Accounting Schema.
 void setCostingLevel(String CostingLevel)
          Set Costing Level.
 void setCostingMethod(String CostingMethod)
          Set Costing Method.
 void setM_Product_Category_ID(int M_Product_Category_ID)
          Set Product Category.
 void setP_Asset_Acct(int P_Asset_Acct)
          Set Product Asset.
 void setP_COGS_Acct(int P_COGS_Acct)
          Set Product COGS.
 void setP_CostAdjustment_Acct(int P_CostAdjustment_Acct)
          Set Cost Adjustment.
 void setP_Expense_Acct(int P_Expense_Acct)
          Set Product Expense.
 void setP_InventoryClearing_Acct(int P_InventoryClearing_Acct)
          Set Inventory Clearing.
 void setP_InvoicePriceVariance_Acct(int P_InvoicePriceVariance_Acct)
          Set Invoice Price Variance.
 void setP_PurchasePriceVariance_Acct(int P_PurchasePriceVariance_Acct)
          Set Purchase Price Variance.
 void setP_Revenue_Acct(int P_Revenue_Acct)
          Set Product Revenue.
 void setP_TradeDiscountGrant_Acct(int P_TradeDiscountGrant_Acct)
          Set Trade Discount Granted.
 void setP_TradeDiscountRec_Acct(int P_TradeDiscountRec_Acct)
          Set Trade Discount Received.
 void setProcessing(boolean Processing)
          Set Process Now.
 String toString()
          Info
 
Methods inherited from class org.compiere.framework.PO
addAttachment, addAttachment, addError, afterDelete, afterSave, beforeDelete, beforeSave, compare, convertToBigDecimal, convertToBoolean, convertToInt, convertToTimestamp, copy, copyValues, copyValues, createAttachment, delete_Accounting, delete, delete, dump, dump, equals, get_ChangeVO, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_EntityType, get_HashMap, get_ID, get_IDOld, get_Info, get_KeyColumns, get_Logger, get_Table_ID, get_Table_ID, get_TableName, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_ValuesAsString, get_WhereClause, get_xmlDocument, get_xmlString, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getVO, hashCode, insert_Accounting, is_Changed, is_KeyColumn, is_new, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, load, load, load, load, loadComplete, loadDefaults, loadSpecial, lock, save, save, saveNew_getID, saveNewInsertSQL, saveNewSpecial, saveUpdate, set_ChangeVO, set_ColumnUpdateable, set_CustomColumn, set_TrxName, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueString, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setContext, setCtx, setDocWorkflowMgr, setIsActive, setStandardDefaults, setUpdateable, setUpdatedBy, toStringX, unlock, update
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

updatedMS

public static final long updatedMS
Last Updated Timestamp 2008-06-10 15:12:06.0

See Also:
Constant Field Values

Table_ID

public static final int Table_ID
AD_Table_ID=401

See Also:
Constant Field Values

Table_Name

public static final String Table_Name
TableName=M_Product_Category_Acct

See Also:
Constant Field Values

Model

protected static KeyNamePair Model

accessLevel

protected BigDecimal accessLevel

COSTINGLEVEL_AD_Reference_ID

public static final int COSTINGLEVEL_AD_Reference_ID
CostingLevel AD_Reference_ID=355

See Also:
Constant Field Values

COSTINGLEVEL_BatchLot

public static final String COSTINGLEVEL_BatchLot
Batch/Lot = B

See Also:
Constant Field Values

COSTINGLEVEL_Client

public static final String COSTINGLEVEL_Client
Client = C

See Also:
Constant Field Values

COSTINGLEVEL_Organization

public static final String COSTINGLEVEL_Organization
Organization = O

See Also:
Constant Field Values

COSTINGMETHOD_AD_Reference_ID

public static final int COSTINGMETHOD_AD_Reference_ID
CostingMethod AD_Reference_ID=122

See Also:
Constant Field Values

COSTINGMETHOD_AveragePO

public static final String COSTINGMETHOD_AveragePO
Average PO = A

See Also:
Constant Field Values

COSTINGMETHOD_FiFo

public static final String COSTINGMETHOD_FiFo
FiFo = F

See Also:
Constant Field Values

COSTINGMETHOD_AverageInvoice

public static final String COSTINGMETHOD_AverageInvoice
Average Invoice = I

See Also:
Constant Field Values

COSTINGMETHOD_LiFo

public static final String COSTINGMETHOD_LiFo
LiFo = L

See Also:
Constant Field Values

COSTINGMETHOD_StandardCosting

public static final String COSTINGMETHOD_StandardCosting
Standard Costing = S

See Also:
Constant Field Values

COSTINGMETHOD_UserDefined

public static final String COSTINGMETHOD_UserDefined
User Defined = U

See Also:
Constant Field Values

COSTINGMETHOD_LastInvoice

public static final String COSTINGMETHOD_LastInvoice
Last Invoice = i

See Also:
Constant Field Values

COSTINGMETHOD_LastPOPrice

public static final String COSTINGMETHOD_LastPOPrice
Last PO Price = p

See Also:
Constant Field Values

COSTINGMETHOD__

public static final String COSTINGMETHOD__
_ = x

See Also:
Constant Field Values
Constructor Detail

X_M_Product_Category_Acct

public X_M_Product_Category_Acct(Ctx ctx,
                                 int M_Product_Category_Acct_ID,
                                 String trxName)
Standard Constructor

Parameters:
ctx - context
M_Product_Category_Acct_ID - id
trxName - transaction

X_M_Product_Category_Acct

public X_M_Product_Category_Acct(Ctx ctx,
                                 ResultSet rs,
                                 String trxName)
Load Constructor

Parameters:
ctx - context
rs - result set
trxName - transaction
Method Detail

get_AccessLevel

protected int get_AccessLevel()
AccessLevel

Specified by:
get_AccessLevel in class PO
Returns:
3 - Client - Org

initPO

protected POInfo initPO(Ctx ctx)
Load Meta Data

Specified by:
initPO in class PO
Parameters:
ctx - context
Returns:
PO Info

toString

public String toString()
Info

Overrides:
toString in class PO
Returns:
info

setC_AcctSchema_ID

public void setC_AcctSchema_ID(int C_AcctSchema_ID)
Set Accounting Schema.

Parameters:
C_AcctSchema_ID - Rules for accounting

getC_AcctSchema_ID

public int getC_AcctSchema_ID()
Get Accounting Schema.

Returns:
Rules for accounting

getKeyNamePair

public KeyNamePair getKeyNamePair()
Get Record ID/ColumnName

Returns:
ID/ColumnName pair

isCostingLevelValid

public boolean isCostingLevelValid(String test)
Is test a valid value.

Parameters:
test - testvalue
Returns:
true if valid

setCostingLevel

public void setCostingLevel(String CostingLevel)
Set Costing Level.

Parameters:
CostingLevel - The lowest level to accumulate Costing Information

getCostingLevel

public String getCostingLevel()
Get Costing Level.

Returns:
The lowest level to accumulate Costing Information

isCostingMethodValid

public boolean isCostingMethodValid(String test)
Is test a valid value.

Parameters:
test - testvalue
Returns:
true if valid

setCostingMethod

public void setCostingMethod(String CostingMethod)
Set Costing Method.

Parameters:
CostingMethod - Indicates how Costs will be calculated

getCostingMethod

public String getCostingMethod()
Get Costing Method.

Returns:
Indicates how Costs will be calculated

setM_Product_Category_ID

public void setM_Product_Category_ID(int M_Product_Category_ID)
Set Product Category.

Parameters:
M_Product_Category_ID - Category of a Product

getM_Product_Category_ID

public int getM_Product_Category_ID()
Get Product Category.

Returns:
Category of a Product

setP_Asset_Acct

public void setP_Asset_Acct(int P_Asset_Acct)
Set Product Asset.

Parameters:
P_Asset_Acct - Account for Product Asset (Inventory)

getP_Asset_Acct

public int getP_Asset_Acct()
Get Product Asset.

Returns:
Account for Product Asset (Inventory)

setP_COGS_Acct

public void setP_COGS_Acct(int P_COGS_Acct)
Set Product COGS.

Parameters:
P_COGS_Acct - Account for Cost of Goods Sold

getP_COGS_Acct

public int getP_COGS_Acct()
Get Product COGS.

Returns:
Account for Cost of Goods Sold

setP_CostAdjustment_Acct

public void setP_CostAdjustment_Acct(int P_CostAdjustment_Acct)
Set Cost Adjustment.

Parameters:
P_CostAdjustment_Acct - Product Cost Adjustment Account

getP_CostAdjustment_Acct

public int getP_CostAdjustment_Acct()
Get Cost Adjustment.

Returns:
Product Cost Adjustment Account

setP_Expense_Acct

public void setP_Expense_Acct(int P_Expense_Acct)
Set Product Expense.

Parameters:
P_Expense_Acct - Account for Product Expense

getP_Expense_Acct

public int getP_Expense_Acct()
Get Product Expense.

Returns:
Account for Product Expense

setP_InventoryClearing_Acct

public void setP_InventoryClearing_Acct(int P_InventoryClearing_Acct)
Set Inventory Clearing.

Parameters:
P_InventoryClearing_Acct - Product Inventory Clearing Account

getP_InventoryClearing_Acct

public int getP_InventoryClearing_Acct()
Get Inventory Clearing.

Returns:
Product Inventory Clearing Account

setP_InvoicePriceVariance_Acct

public void setP_InvoicePriceVariance_Acct(int P_InvoicePriceVariance_Acct)
Set Invoice Price Variance.

Parameters:
P_InvoicePriceVariance_Acct - Difference between Costs and Invoice Price (IPV)

getP_InvoicePriceVariance_Acct

public int getP_InvoicePriceVariance_Acct()
Get Invoice Price Variance.

Returns:
Difference between Costs and Invoice Price (IPV)

setP_PurchasePriceVariance_Acct

public void setP_PurchasePriceVariance_Acct(int P_PurchasePriceVariance_Acct)
Set Purchase Price Variance.

Parameters:
P_PurchasePriceVariance_Acct - Difference between Standard Cost and Purchase Price (PPV)

getP_PurchasePriceVariance_Acct

public int getP_PurchasePriceVariance_Acct()
Get Purchase Price Variance.

Returns:
Difference between Standard Cost and Purchase Price (PPV)

setP_Revenue_Acct

public void setP_Revenue_Acct(int P_Revenue_Acct)
Set Product Revenue.

Parameters:
P_Revenue_Acct - Account for Product Revenue (Sales Account)

getP_Revenue_Acct

public int getP_Revenue_Acct()
Get Product Revenue.

Returns:
Account for Product Revenue (Sales Account)

setP_TradeDiscountGrant_Acct

public void setP_TradeDiscountGrant_Acct(int P_TradeDiscountGrant_Acct)
Set Trade Discount Granted.

Parameters:
P_TradeDiscountGrant_Acct - Trade Discount Granted Account

getP_TradeDiscountGrant_Acct

public int getP_TradeDiscountGrant_Acct()
Get Trade Discount Granted.

Returns:
Trade Discount Granted Account

setP_TradeDiscountRec_Acct

public void setP_TradeDiscountRec_Acct(int P_TradeDiscountRec_Acct)
Set Trade Discount Received.

Parameters:
P_TradeDiscountRec_Acct - Trade Discount Receivable Account

getP_TradeDiscountRec_Acct

public int getP_TradeDiscountRec_Acct()
Get Trade Discount Received.

Returns:
Trade Discount Receivable Account

setProcessing

public void setProcessing(boolean Processing)
Set Process Now.

Parameters:
Processing - Process Now

isProcessing

public boolean isProcessing()
Get Process Now.

Returns:
Process Now

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.