/******************************************************************************
 * Product: Compiere 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., 3600 Bridge Parkway #102, Redwood City, CA 94065, USA      *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
package org.compiere.model;

/** Generated Model - DO NOT CHANGE */
import java.sql.*;
import java.math.*;
import org.compiere.framework.*;
import org.compiere.util.*;
/** Generated Model for C_AcctSchema_GL
 *  @author Jorg Janke (generated) 
 *  @version Release 3.0.0 - $Id: GenerateModel.java,v 1.1 2008/01/16 07:34:32 jrmt Exp $ */
public class X_C_AcctSchema_GL extends PO
{
/** Standard Constructor
@param ctx context
@param C_AcctSchema_GL_ID id
@param trxName transaction
*/
public X_C_AcctSchema_GL (Ctx ctx, int C_AcctSchema_GL_ID, String trxName)
{
super (ctx, C_AcctSchema_GL_ID, trxName);
/** if (C_AcctSchema_GL_ID == 0)
{
setC_AcctSchema_ID (0);
setCommitmentOffset_Acct (0);
setIncomeSummary_Acct (0);
setIntercompanyDueFrom_Acct (0);
setIntercompanyDueTo_Acct (0);
setPPVOffset_Acct (0);
setRetainedEarning_Acct (0);
setUseCurrencyBalancing (false);
setUseSuspenseBalancing (false);
setUseSuspenseError (false);
}
 */
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_C_AcctSchema_GL (Ctx ctx, ResultSet rs, String trxName)
{
super (ctx, rs, trxName);
}
/** Serial Version No */
static final long serialVersionUID = 27411436489789L;
/** Last Updated Timestamp 2005-10-15 02:32:53.0 */
public static final long updatedMS = 1129311173000L;
/** AD_Table_ID=266 */
public static final int Table_ID=266;

/** TableName=C_AcctSchema_GL */
public static final String Table_Name="C_AcctSchema_GL";

protected static KeyNamePair Model = new KeyNamePair(266,"C_AcctSchema_GL");

protected BigDecimal accessLevel = new BigDecimal(2);
/** AccessLevel
@return 2 - Client 
*/
protected int get_AccessLevel()
{
return accessLevel.intValue();
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected POInfo initPO (Ctx ctx)
{
POInfo poi = POInfo.getPOInfo (ctx, Table_ID);
return poi;
}
/** Info
@return info
*/
public String toString()
{
StringBuffer sb = new StringBuffer ("X_C_AcctSchema_GL[").append(get_ID()).append("]");
return sb.toString();
}
/** Set Accounting Schema.
@param C_AcctSchema_ID Rules for accounting */
public void setC_AcctSchema_ID (int C_AcctSchema_ID)
{
if (C_AcctSchema_ID < 1) throw new IllegalArgumentException ("C_AcctSchema_ID is mandatory.");
set_ValueNoCheck ("C_AcctSchema_ID", new Integer(C_AcctSchema_ID));
}
/** Get Accounting Schema.
@return Rules for accounting */
public int getC_AcctSchema_ID() 
{
Integer ii = (Integer)get_Value("C_AcctSchema_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Get Record ID/ColumnName
@return ID/ColumnName pair */
public KeyNamePair getKeyNamePair() 
{
return new KeyNamePair(get_ID(), String.valueOf(getC_AcctSchema_ID()));
}
/** Set Commitment Offset.
@param CommitmentOffset_Acct Budgetary Commitment Offset Account */
public void setCommitmentOffset_Acct (int CommitmentOffset_Acct)
{
set_Value ("CommitmentOffset_Acct", new Integer(CommitmentOffset_Acct));
}
/** Get Commitment Offset.
@return Budgetary Commitment Offset Account */
public int getCommitmentOffset_Acct() 
{
Integer ii = (Integer)get_Value("CommitmentOffset_Acct");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Currency Balancing Acct.
@param CurrencyBalancing_Acct Account used when a currency is out of balance */
public void setCurrencyBalancing_Acct (int CurrencyBalancing_Acct)
{
set_Value ("CurrencyBalancing_Acct", new Integer(CurrencyBalancing_Acct));
}
/** Get Currency Balancing Acct.
@return Account used when a currency is out of balance */
public int getCurrencyBalancing_Acct() 
{
Integer ii = (Integer)get_Value("CurrencyBalancing_Acct");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Income Summary Acct.
@param IncomeSummary_Acct Income Summary Account  */
public void setIncomeSummary_Acct (int IncomeSummary_Acct)
{
set_Value ("IncomeSummary_Acct", new Integer(IncomeSummary_Acct));
}
/** Get Income Summary Acct.
@return Income Summary Account  */
public int getIncomeSummary_Acct() 
{
Integer ii = (Integer)get_Value("IncomeSummary_Acct");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Intercompany Due From Acct.
@param IntercompanyDueFrom_Acct Intercompany Due From / Receivables Account */
public void setIntercompanyDueFrom_Acct (int IntercompanyDueFrom_Acct)
{
set_Value ("IntercompanyDueFrom_Acct", new Integer(IntercompanyDueFrom_Acct));
}
/** Get Intercompany Due From Acct.
@return Intercompany Due From / Receivables Account */
public int getIntercompanyDueFrom_Acct() 
{
Integer ii = (Integer)get_Value("IntercompanyDueFrom_Acct");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Intercompany Due To Acct.
@param IntercompanyDueTo_Acct Intercompany Due To / Payable Account */
public void setIntercompanyDueTo_Acct (int IntercompanyDueTo_Acct)
{
set_Value ("IntercompanyDueTo_Acct", new Integer(IntercompanyDueTo_Acct));
}
/** Get Intercompany Due To Acct.
@return Intercompany Due To / Payable Account */
public int getIntercompanyDueTo_Acct() 
{
Integer ii = (Integer)get_Value("IntercompanyDueTo_Acct");
if (ii == null) return 0;
return ii.intValue();
}
/** Set PPV Offset.
@param PPVOffset_Acct Purchase Price Variance Offset Account */
public void setPPVOffset_Acct (int PPVOffset_Acct)
{
set_Value ("PPVOffset_Acct", new Integer(PPVOffset_Acct));
}
/** Get PPV Offset.
@return Purchase Price Variance Offset Account */
public int getPPVOffset_Acct() 
{
Integer ii = (Integer)get_Value("PPVOffset_Acct");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Retained Earning Acct.
@param RetainedEarning_Acct Retained Earning Acct */
public void setRetainedEarning_Acct (int RetainedEarning_Acct)
{
set_Value ("RetainedEarning_Acct", new Integer(RetainedEarning_Acct));
}
/** Get Retained Earning Acct.
@return Retained Earning Acct */
public int getRetainedEarning_Acct() 
{
Integer ii = (Integer)get_Value("RetainedEarning_Acct");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Suspense Balancing Acct.
@param SuspenseBalancing_Acct Suspense Balancing Acct */
public void setSuspenseBalancing_Acct (int SuspenseBalancing_Acct)
{
set_Value ("SuspenseBalancing_Acct", new Integer(SuspenseBalancing_Acct));
}
/** Get Suspense Balancing Acct.
@return Suspense Balancing Acct */
public int getSuspenseBalancing_Acct() 
{
Integer ii = (Integer)get_Value("SuspenseBalancing_Acct");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Suspense Error Acct.
@param SuspenseError_Acct Suspense Error Acct */
public void setSuspenseError_Acct (int SuspenseError_Acct)
{
set_Value ("SuspenseError_Acct", new Integer(SuspenseError_Acct));
}
/** Get Suspense Error Acct.
@return Suspense Error Acct */
public int getSuspenseError_Acct() 
{
Integer ii = (Integer)get_Value("SuspenseError_Acct");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Use Currency Balancing.
@param UseCurrencyBalancing Use Currency Balancing */
public void setUseCurrencyBalancing (boolean UseCurrencyBalancing)
{
set_Value ("UseCurrencyBalancing", new Boolean(UseCurrencyBalancing));
}
/** Get Use Currency Balancing.
@return Use Currency Balancing */
public boolean isUseCurrencyBalancing() 
{
Object oo = get_Value("UseCurrencyBalancing");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Use Suspense Balancing.
@param UseSuspenseBalancing Use Suspense Balancing */
public void setUseSuspenseBalancing (boolean UseSuspenseBalancing)
{
set_Value ("UseSuspenseBalancing", new Boolean(UseSuspenseBalancing));
}
/** Get Use Suspense Balancing.
@return Use Suspense Balancing */
public boolean isUseSuspenseBalancing() 
{
Object oo = get_Value("UseSuspenseBalancing");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
/** Set Use Suspense Error.
@param UseSuspenseError Use Suspense Error */
public void setUseSuspenseError (boolean UseSuspenseError)
{
set_Value ("UseSuspenseError", new Boolean(UseSuspenseError));
}
/** Get Use Suspense Error.
@return Use Suspense Error */
public boolean isUseSuspenseError() 
{
Object oo = get_Value("UseSuspenseError");
if (oo != null) 
{
 if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
 return "Y".equals(oo);
}
return false;
}
}
