/****************************************************************************** * Product: iDempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2012 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.math.BigDecimal; import java.sql.ResultSet; import java.sql.Timestamp; import java.util.Properties; import org.compiere.util.Env; /** Generated Model for T_TrialBalance * @author iDempiere (generated) * @version Release 12 - $Id$ */ @org.adempiere.base.Model(table="T_TrialBalance") public class X_T_TrialBalance extends PO implements I_T_TrialBalance, I_Persistent { /** * */ private static final long serialVersionUID = 20241222L; /** Standard Constructor */ public X_T_TrialBalance (Properties ctx, String T_TrialBalance_UU, String trxName) { super (ctx, T_TrialBalance_UU, trxName); /** if (T_TrialBalance_UU == null) { setAD_PInstance_ID (0); setAmtAcctBalance (Env.ZERO); setAmtAcctCr (Env.ZERO); setAmtAcctDr (Env.ZERO); setC_AcctSchema_ID (0); setDateAcct (new Timestamp( System.currentTimeMillis() )); setFact_Acct_ID (0); setPostingType (null); } */ } /** Standard Constructor */ public X_T_TrialBalance (Properties ctx, String T_TrialBalance_UU, String trxName, String ... virtualColumns) { super (ctx, T_TrialBalance_UU, trxName, virtualColumns); /** if (T_TrialBalance_UU == null) { setAD_PInstance_ID (0); setAmtAcctBalance (Env.ZERO); setAmtAcctCr (Env.ZERO); setAmtAcctDr (Env.ZERO); setC_AcctSchema_ID (0); setDateAcct (new Timestamp( System.currentTimeMillis() )); setFact_Acct_ID (0); setPostingType (null); } */ } /** Load Constructor */ public X_T_TrialBalance (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() { StringBuilder sb = new StringBuilder ("X_T_TrialBalance[") .append(get_UUID()).append("]"); return sb.toString(); } /** Set Trx Organization. @param AD_OrgTrx_ID Performing or initiating organization */ public void setAD_OrgTrx_ID (int AD_OrgTrx_ID) { if (AD_OrgTrx_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_OrgTrx_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_OrgTrx_ID, Integer.valueOf(AD_OrgTrx_ID)); } /** Get Trx Organization. @return Performing or initiating organization */ public int getAD_OrgTrx_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_OrgTrx_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_AD_PInstance getAD_PInstance() throws RuntimeException { return (org.compiere.model.I_AD_PInstance)MTable.get(getCtx(), org.compiere.model.I_AD_PInstance.Table_ID) .getPO(getAD_PInstance_ID(), get_TrxName()); } /** Set Process Instance. @param AD_PInstance_ID Instance of the process */ public void setAD_PInstance_ID (int AD_PInstance_ID) { if (AD_PInstance_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_PInstance_ID, Integer.valueOf(AD_PInstance_ID)); } /** Get Process Instance. @return Instance of the process */ public int getAD_PInstance_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_PInstance_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_AD_Table getAD_Table() throws RuntimeException { return (org.compiere.model.I_AD_Table)MTable.get(getCtx(), org.compiere.model.I_AD_Table.Table_ID) .getPO(getAD_Table_ID(), get_TrxName()); } /** Set Table. @param AD_Table_ID Database Table information */ public void setAD_Table_ID (int AD_Table_ID) { if (AD_Table_ID < 1) set_ValueNoCheck (COLUMNNAME_AD_Table_ID, null); else set_ValueNoCheck (COLUMNNAME_AD_Table_ID, Integer.valueOf(AD_Table_ID)); } /** Get Table. @return Database Table information */ public int getAD_Table_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_AD_Table_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_A_Asset getA_Asset() throws RuntimeException { return (org.compiere.model.I_A_Asset)MTable.get(getCtx(), org.compiere.model.I_A_Asset.Table_ID) .getPO(getA_Asset_ID(), get_TrxName()); } /** Set Asset. @param A_Asset_ID Asset used internally or by customers */ public void setA_Asset_ID (int A_Asset_ID) { if (A_Asset_ID < 1) set_ValueNoCheck (COLUMNNAME_A_Asset_ID, null); else set_ValueNoCheck (COLUMNNAME_A_Asset_ID, Integer.valueOf(A_Asset_ID)); } /** Get Asset. @return Asset used internally or by customers */ public int getA_Asset_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_A_Asset_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Account Key. @param AccountValue Key of Account Element */ public void setAccountValue (String AccountValue) { set_ValueNoCheck (COLUMNNAME_AccountValue, AccountValue); } /** Get Account Key. @return Key of Account Element */ public String getAccountValue() { return (String)get_Value(COLUMNNAME_AccountValue); } public org.compiere.model.I_C_ElementValue getAccount() throws RuntimeException { return (org.compiere.model.I_C_ElementValue)MTable.get(getCtx(), org.compiere.model.I_C_ElementValue.Table_ID) .getPO(getAccount_ID(), get_TrxName()); } /** Set Account. @param Account_ID Account used */ public void setAccount_ID (int Account_ID) { if (Account_ID < 1) set_ValueNoCheck (COLUMNNAME_Account_ID, null); else set_ValueNoCheck (COLUMNNAME_Account_ID, Integer.valueOf(Account_ID)); } /** Get Account. @return Account used */ public int getAccount_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_Account_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Accounted Balance. @param AmtAcctBalance Accounted Balance Amount */ public void setAmtAcctBalance (BigDecimal AmtAcctBalance) { set_ValueNoCheck (COLUMNNAME_AmtAcctBalance, AmtAcctBalance); } /** Get Accounted Balance. @return Accounted Balance Amount */ public BigDecimal getAmtAcctBalance() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctBalance); if (bd == null) return Env.ZERO; return bd; } /** Set Accounted Credit. @param AmtAcctCr Accounted Credit Amount */ public void setAmtAcctCr (BigDecimal AmtAcctCr) { set_ValueNoCheck (COLUMNNAME_AmtAcctCr, AmtAcctCr); } /** Get Accounted Credit. @return Accounted Credit Amount */ public BigDecimal getAmtAcctCr() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctCr); if (bd == null) return Env.ZERO; return bd; } /** Set Accounted Debit. @param AmtAcctDr Accounted Debit Amount */ public void setAmtAcctDr (BigDecimal AmtAcctDr) { set_ValueNoCheck (COLUMNNAME_AmtAcctDr, AmtAcctDr); } /** Get Accounted Debit. @return Accounted Debit Amount */ public BigDecimal getAmtAcctDr() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtAcctDr); if (bd == null) return Env.ZERO; return bd; } /** Set Source Balance. @param AmtSourceBalance Source Balance Amount */ public void setAmtSourceBalance (BigDecimal AmtSourceBalance) { set_ValueNoCheck (COLUMNNAME_AmtSourceBalance, AmtSourceBalance); } /** Get Source Balance. @return Source Balance Amount */ public BigDecimal getAmtSourceBalance() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtSourceBalance); if (bd == null) return Env.ZERO; return bd; } /** Set Source Credit. @param AmtSourceCr Source Credit Amount */ public void setAmtSourceCr (BigDecimal AmtSourceCr) { set_ValueNoCheck (COLUMNNAME_AmtSourceCr, AmtSourceCr); } /** Get Source Credit. @return Source Credit Amount */ public BigDecimal getAmtSourceCr() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtSourceCr); if (bd == null) return Env.ZERO; return bd; } /** Set Source Debit. @param AmtSourceDr Source Debit Amount */ public void setAmtSourceDr (BigDecimal AmtSourceDr) { set_ValueNoCheck (COLUMNNAME_AmtSourceDr, AmtSourceDr); } /** Get Source Debit. @return Source Debit Amount */ public BigDecimal getAmtSourceDr() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_AmtSourceDr); if (bd == null) return Env.ZERO; return bd; } public org.compiere.model.I_C_AcctSchema getC_AcctSchema() throws RuntimeException { return (org.compiere.model.I_C_AcctSchema)MTable.get(getCtx(), org.compiere.model.I_C_AcctSchema.Table_ID) .getPO(getC_AcctSchema_ID(), get_TrxName()); } /** Set Accounting Schema. @param C_AcctSchema_ID Rules for accounting */ public void setC_AcctSchema_ID (int C_AcctSchema_ID) { if (C_AcctSchema_ID < 1) set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, null); else set_ValueNoCheck (COLUMNNAME_C_AcctSchema_ID, Integer.valueOf(C_AcctSchema_ID)); } /** Get Accounting Schema. @return Rules for accounting */ public int getC_AcctSchema_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_Activity getC_Activity() throws RuntimeException { return (org.compiere.model.I_C_Activity)MTable.get(getCtx(), org.compiere.model.I_C_Activity.Table_ID) .getPO(getC_Activity_ID(), get_TrxName()); } /** Set Activity. @param C_Activity_ID Business Activity */ public void setC_Activity_ID (int C_Activity_ID) { if (C_Activity_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Activity_ID, null); else set_ValueNoCheck (COLUMNNAME_C_Activity_ID, Integer.valueOf(C_Activity_ID)); } /** Get Activity. @return Business Activity */ public int getC_Activity_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_Activity_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException { return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_ID) .getPO(getC_BPartner_ID(), get_TrxName()); } /** 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) set_ValueNoCheck (COLUMNNAME_C_BPartner_ID, null); else 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 org.compiere.model.I_C_Campaign getC_Campaign() throws RuntimeException { return (org.compiere.model.I_C_Campaign)MTable.get(getCtx(), org.compiere.model.I_C_Campaign.Table_ID) .getPO(getC_Campaign_ID(), get_TrxName()); } /** Set Campaign. @param C_Campaign_ID Marketing Campaign */ public void setC_Campaign_ID (int C_Campaign_ID) { if (C_Campaign_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Campaign_ID, null); else set_ValueNoCheck (COLUMNNAME_C_Campaign_ID, Integer.valueOf(C_Campaign_ID)); } /** Get Campaign. @return Marketing Campaign */ public int getC_Campaign_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_Campaign_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_Currency getC_Currency() throws RuntimeException { return (org.compiere.model.I_C_Currency)MTable.get(getCtx(), org.compiere.model.I_C_Currency.Table_ID) .getPO(getC_Currency_ID(), get_TrxName()); } /** Set Currency. @param C_Currency_ID The Currency for this record */ public void setC_Currency_ID (int C_Currency_ID) { if (C_Currency_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Currency_ID, null); else set_ValueNoCheck (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID)); } /** Get Currency. @return The Currency for this record */ public int getC_Currency_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_Location getC_LocFrom() throws RuntimeException { return (org.compiere.model.I_C_Location)MTable.get(getCtx(), org.compiere.model.I_C_Location.Table_ID) .getPO(getC_LocFrom_ID(), get_TrxName()); } /** Set Location From. @param C_LocFrom_ID Location that inventory was moved from */ public void setC_LocFrom_ID (int C_LocFrom_ID) { if (C_LocFrom_ID < 1) set_ValueNoCheck (COLUMNNAME_C_LocFrom_ID, null); else set_ValueNoCheck (COLUMNNAME_C_LocFrom_ID, Integer.valueOf(C_LocFrom_ID)); } /** Get Location From. @return Location that inventory was moved from */ public int getC_LocFrom_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_LocFrom_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_Location getC_LocTo() throws RuntimeException { return (org.compiere.model.I_C_Location)MTable.get(getCtx(), org.compiere.model.I_C_Location.Table_ID) .getPO(getC_LocTo_ID(), get_TrxName()); } /** Set Location To. @param C_LocTo_ID Location that inventory was moved to */ public void setC_LocTo_ID (int C_LocTo_ID) { if (C_LocTo_ID < 1) set_ValueNoCheck (COLUMNNAME_C_LocTo_ID, null); else set_ValueNoCheck (COLUMNNAME_C_LocTo_ID, Integer.valueOf(C_LocTo_ID)); } /** Get Location To. @return Location that inventory was moved to */ public int getC_LocTo_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_LocTo_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_Period getC_Period() throws RuntimeException { return (org.compiere.model.I_C_Period)MTable.get(getCtx(), org.compiere.model.I_C_Period.Table_ID) .getPO(getC_Period_ID(), get_TrxName()); } /** Set Period. @param C_Period_ID Period of the Calendar */ public void setC_Period_ID (int C_Period_ID) { if (C_Period_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Period_ID, null); else set_ValueNoCheck (COLUMNNAME_C_Period_ID, Integer.valueOf(C_Period_ID)); } /** Get Period. @return Period of the Calendar */ public int getC_Period_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_Period_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_Project getC_Project() throws RuntimeException { return (org.compiere.model.I_C_Project)MTable.get(getCtx(), org.compiere.model.I_C_Project.Table_ID) .getPO(getC_Project_ID(), get_TrxName()); } /** Set Project. @param C_Project_ID Financial Project */ public void setC_Project_ID (int C_Project_ID) { if (C_Project_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Project_ID, null); else set_ValueNoCheck (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID)); } /** Get Project. @return Financial Project */ public int getC_Project_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_SalesRegion getC_SalesRegion() throws RuntimeException { return (org.compiere.model.I_C_SalesRegion)MTable.get(getCtx(), org.compiere.model.I_C_SalesRegion.Table_ID) .getPO(getC_SalesRegion_ID(), get_TrxName()); } /** Set Sales Region. @param C_SalesRegion_ID Sales coverage region */ public void setC_SalesRegion_ID (int C_SalesRegion_ID) { if (C_SalesRegion_ID < 1) set_ValueNoCheck (COLUMNNAME_C_SalesRegion_ID, null); else set_ValueNoCheck (COLUMNNAME_C_SalesRegion_ID, Integer.valueOf(C_SalesRegion_ID)); } /** Get Sales Region. @return Sales coverage region */ public int getC_SalesRegion_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_SalesRegion_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_Tax getC_Tax() throws RuntimeException { return (org.compiere.model.I_C_Tax)MTable.get(getCtx(), org.compiere.model.I_C_Tax.Table_ID) .getPO(getC_Tax_ID(), get_TrxName()); } /** Set Tax. @param C_Tax_ID Tax identifier */ public void setC_Tax_ID (int C_Tax_ID) { if (C_Tax_ID < 1) set_ValueNoCheck (COLUMNNAME_C_Tax_ID, null); else set_ValueNoCheck (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID)); } /** Get Tax. @return Tax identifier */ public int getC_Tax_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_UOM getC_UOM() throws RuntimeException { return (org.compiere.model.I_C_UOM)MTable.get(getCtx(), org.compiere.model.I_C_UOM.Table_ID) .getPO(getC_UOM_ID(), get_TrxName()); } /** Set UOM. @param C_UOM_ID Unit of Measure */ public void setC_UOM_ID (int C_UOM_ID) { if (C_UOM_ID < 1) set_ValueNoCheck (COLUMNNAME_C_UOM_ID, null); else set_ValueNoCheck (COLUMNNAME_C_UOM_ID, Integer.valueOf(C_UOM_ID)); } /** Get UOM. @return Unit of Measure */ public int getC_UOM_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_C_UOM_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Account Date. @param DateAcct Accounting Date */ public void setDateAcct (Timestamp DateAcct) { set_ValueNoCheck (COLUMNNAME_DateAcct, DateAcct); } /** Get Account Date. @return Accounting Date */ public Timestamp getDateAcct() { return (Timestamp)get_Value(COLUMNNAME_DateAcct); } /** Set Transaction Date. @param DateTrx Transaction Date */ public void setDateTrx (Timestamp DateTrx) { set_ValueNoCheck (COLUMNNAME_DateTrx, DateTrx); } /** Get Transaction Date. @return Transaction Date */ public Timestamp getDateTrx() { return (Timestamp)get_Value(COLUMNNAME_DateTrx); } /** Set Description. @param Description Optional short description of the record */ public void setDescription (String Description) { set_ValueNoCheck (COLUMNNAME_Description, Description); } /** Get Description. @return Optional short description of the record */ public String getDescription() { return (String)get_Value(COLUMNNAME_Description); } /** Set Accounting Fact. @param Fact_Acct_ID Accounting Fact */ public void setFact_Acct_ID (int Fact_Acct_ID) { if (Fact_Acct_ID < 1) set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, null); else set_ValueNoCheck (COLUMNNAME_Fact_Acct_ID, Integer.valueOf(Fact_Acct_ID)); } /** Get Accounting Fact. @return Accounting Fact */ public int getFact_Acct_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_Fact_Acct_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_GL_Budget getGL_Budget() throws RuntimeException { return (org.compiere.model.I_GL_Budget)MTable.get(getCtx(), org.compiere.model.I_GL_Budget.Table_ID) .getPO(getGL_Budget_ID(), get_TrxName()); } /** Set Budget. @param GL_Budget_ID General Ledger Budget */ public void setGL_Budget_ID (int GL_Budget_ID) { if (GL_Budget_ID < 1) set_ValueNoCheck (COLUMNNAME_GL_Budget_ID, null); else set_ValueNoCheck (COLUMNNAME_GL_Budget_ID, Integer.valueOf(GL_Budget_ID)); } /** Get Budget. @return General Ledger Budget */ public int getGL_Budget_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_GL_Budget_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_GL_Category getGL_Category() throws RuntimeException { return (org.compiere.model.I_GL_Category)MTable.get(getCtx(), org.compiere.model.I_GL_Category.Table_ID) .getPO(getGL_Category_ID(), get_TrxName()); } /** Set GL Category. @param GL_Category_ID General Ledger Category */ public void setGL_Category_ID (int GL_Category_ID) { if (GL_Category_ID < 1) set_ValueNoCheck (COLUMNNAME_GL_Category_ID, null); else set_ValueNoCheck (COLUMNNAME_GL_Category_ID, Integer.valueOf(GL_Category_ID)); } /** Get GL Category. @return General Ledger Category */ public int getGL_Category_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_GL_Category_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Level no. @param LevelNo Level no */ public void setLevelNo (int LevelNo) { set_Value (COLUMNNAME_LevelNo, Integer.valueOf(LevelNo)); } /** Get Level no. @return Level no */ public int getLevelNo() { Integer ii = (Integer)get_Value(COLUMNNAME_LevelNo); if (ii == null) return 0; return ii.intValue(); } /** Set Line ID. @param Line_ID Transaction line ID (internal) */ public void setLine_ID (int Line_ID) { if (Line_ID < 1) set_ValueNoCheck (COLUMNNAME_Line_ID, null); else set_ValueNoCheck (COLUMNNAME_Line_ID, Integer.valueOf(Line_ID)); } /** Get Line ID. @return Transaction line ID (internal) */ public int getLine_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_Line_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_M_Locator getM_Locator() throws RuntimeException { return (org.compiere.model.I_M_Locator)MTable.get(getCtx(), org.compiere.model.I_M_Locator.Table_ID) .getPO(getM_Locator_ID(), get_TrxName()); } /** Set Locator. @param M_Locator_ID Warehouse Locator */ public void setM_Locator_ID (int M_Locator_ID) { if (M_Locator_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Locator_ID, null); else set_ValueNoCheck (COLUMNNAME_M_Locator_ID, Integer.valueOf(M_Locator_ID)); } /** Get Locator. @return Warehouse Locator */ public int getM_Locator_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_M_Locator_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_M_Product getM_Product() throws RuntimeException { return (org.compiere.model.I_M_Product)MTable.get(getCtx(), org.compiere.model.I_M_Product.Table_ID) .getPO(getM_Product_ID(), get_TrxName()); } /** Set Product. @param M_Product_ID Product, Service, Item */ public void setM_Product_ID (int M_Product_ID) { if (M_Product_ID < 1) set_ValueNoCheck (COLUMNNAME_M_Product_ID, null); else 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(); } /** PostingType AD_Reference_ID=125 */ public static final int POSTINGTYPE_AD_Reference_ID=125; /** Actual = A */ public static final String POSTINGTYPE_Actual = "A"; /** Budget = B */ public static final String POSTINGTYPE_Budget = "B"; /** Commitment = E */ public static final String POSTINGTYPE_Commitment = "E"; /** Reservation = R */ public static final String POSTINGTYPE_Reservation = "R"; /** Statistical = S */ public static final String POSTINGTYPE_Statistical = "S"; /** Set Posting Type. @param PostingType The type of posted amount for the transaction */ public void setPostingType (String PostingType) { set_ValueNoCheck (COLUMNNAME_PostingType, PostingType); } /** Get Posting Type. @return The type of posted amount for the transaction */ public String getPostingType() { return (String)get_Value(COLUMNNAME_PostingType); } /** Set Quantity. @param Qty Quantity */ public void setQty (BigDecimal Qty) { set_ValueNoCheck (COLUMNNAME_Qty, Qty); } /** Get Quantity. @return Quantity */ public BigDecimal getQty() { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty); if (bd == null) return Env.ZERO; return bd; } /** Set Record ID. @param Record_ID Direct internal record ID */ public void setRecord_ID (int Record_ID) { if (Record_ID < 0) set_ValueNoCheck (COLUMNNAME_Record_ID, null); else set_ValueNoCheck (COLUMNNAME_Record_ID, Integer.valueOf(Record_ID)); } /** Get Record ID. @return Direct internal record ID */ public int getRecord_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_Record_ID); if (ii == null) return 0; return ii.intValue(); } /** Set T_TrialBalance_UU. @param T_TrialBalance_UU T_TrialBalance_UU */ public void setT_TrialBalance_UU (String T_TrialBalance_UU) { set_Value (COLUMNNAME_T_TrialBalance_UU, T_TrialBalance_UU); } /** Get T_TrialBalance_UU. @return T_TrialBalance_UU */ public String getT_TrialBalance_UU() { return (String)get_Value(COLUMNNAME_T_TrialBalance_UU); } public org.compiere.model.I_C_ElementValue getUser1() throws RuntimeException { return (org.compiere.model.I_C_ElementValue)MTable.get(getCtx(), org.compiere.model.I_C_ElementValue.Table_ID) .getPO(getUser1_ID(), get_TrxName()); } /** Set User Element List 1. @param User1_ID User defined list element #1 */ public void setUser1_ID (int User1_ID) { if (User1_ID < 1) set_ValueNoCheck (COLUMNNAME_User1_ID, null); else set_ValueNoCheck (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID)); } /** Get User Element List 1. @return User defined list element #1 */ public int getUser1_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_User1_ID); if (ii == null) return 0; return ii.intValue(); } public org.compiere.model.I_C_ElementValue getUser2() throws RuntimeException { return (org.compiere.model.I_C_ElementValue)MTable.get(getCtx(), org.compiere.model.I_C_ElementValue.Table_ID) .getPO(getUser2_ID(), get_TrxName()); } /** Set User Element List 2. @param User2_ID User defined list element #2 */ public void setUser2_ID (int User2_ID) { if (User2_ID < 1) set_ValueNoCheck (COLUMNNAME_User2_ID, null); else set_ValueNoCheck (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID)); } /** Get User Element List 2. @return User defined list element #2 */ public int getUser2_ID() { Integer ii = (Integer)get_Value(COLUMNNAME_User2_ID); if (ii == null) return 0; return ii.intValue(); } }