FR2793242 Fact Acct Summary
https://sourceforge.net/tracker/?func=detail&atid=879335&aid=2793242&group_id=176962 Generate model for Fact_Acct_Summary table.
This commit is contained in:
parent
3dafd5957f
commit
0fe2fb7e4a
|
@ -0,0 +1,473 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* 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 Fact_Acct_Summary
|
||||||
|
* @author Adempiere (generated)
|
||||||
|
* @version Release 3.5.3a
|
||||||
|
*/
|
||||||
|
public interface I_Fact_Acct_Summary
|
||||||
|
{
|
||||||
|
|
||||||
|
/** TableName=Fact_Acct_Summary */
|
||||||
|
public static final String Table_Name = "Fact_Acct_Summary";
|
||||||
|
|
||||||
|
/** AD_Table_ID=53203 */
|
||||||
|
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 Account_ID */
|
||||||
|
public static final String COLUMNNAME_Account_ID = "Account_ID";
|
||||||
|
|
||||||
|
/** Set Account.
|
||||||
|
* Account used
|
||||||
|
*/
|
||||||
|
public void setAccount_ID (int Account_ID);
|
||||||
|
|
||||||
|
/** Get Account.
|
||||||
|
* Account used
|
||||||
|
*/
|
||||||
|
public int getAccount_ID();
|
||||||
|
|
||||||
|
/** 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 AD_OrgTrx_ID */
|
||||||
|
public static final String COLUMNNAME_AD_OrgTrx_ID = "AD_OrgTrx_ID";
|
||||||
|
|
||||||
|
/** Set Trx Organization.
|
||||||
|
* Performing or initiating organization
|
||||||
|
*/
|
||||||
|
public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);
|
||||||
|
|
||||||
|
/** Get Trx Organization.
|
||||||
|
* Performing or initiating organization
|
||||||
|
*/
|
||||||
|
public int getAD_OrgTrx_ID();
|
||||||
|
|
||||||
|
/** Column name AmtAcctCr */
|
||||||
|
public static final String COLUMNNAME_AmtAcctCr = "AmtAcctCr";
|
||||||
|
|
||||||
|
/** Set Accounted Credit.
|
||||||
|
* Accounted Credit Amount
|
||||||
|
*/
|
||||||
|
public void setAmtAcctCr (BigDecimal AmtAcctCr);
|
||||||
|
|
||||||
|
/** Get Accounted Credit.
|
||||||
|
* Accounted Credit Amount
|
||||||
|
*/
|
||||||
|
public BigDecimal getAmtAcctCr();
|
||||||
|
|
||||||
|
/** Column name AmtAcctDr */
|
||||||
|
public static final String COLUMNNAME_AmtAcctDr = "AmtAcctDr";
|
||||||
|
|
||||||
|
/** Set Accounted Debit.
|
||||||
|
* Accounted Debit Amount
|
||||||
|
*/
|
||||||
|
public void setAmtAcctDr (BigDecimal AmtAcctDr);
|
||||||
|
|
||||||
|
/** Get Accounted Debit.
|
||||||
|
* Accounted Debit Amount
|
||||||
|
*/
|
||||||
|
public BigDecimal getAmtAcctDr();
|
||||||
|
|
||||||
|
/** Column name C_AcctSchema_ID */
|
||||||
|
public static final String COLUMNNAME_C_AcctSchema_ID = "C_AcctSchema_ID";
|
||||||
|
|
||||||
|
/** Set Accounting Schema.
|
||||||
|
* Rules for accounting
|
||||||
|
*/
|
||||||
|
public void setC_AcctSchema_ID (int C_AcctSchema_ID);
|
||||||
|
|
||||||
|
/** Get Accounting Schema.
|
||||||
|
* Rules for accounting
|
||||||
|
*/
|
||||||
|
public int getC_AcctSchema_ID();
|
||||||
|
|
||||||
|
public I_C_AcctSchema getC_AcctSchema() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_Activity_ID */
|
||||||
|
public static final String COLUMNNAME_C_Activity_ID = "C_Activity_ID";
|
||||||
|
|
||||||
|
/** Set Activity.
|
||||||
|
* Business Activity
|
||||||
|
*/
|
||||||
|
public void setC_Activity_ID (int C_Activity_ID);
|
||||||
|
|
||||||
|
/** Get Activity.
|
||||||
|
* Business Activity
|
||||||
|
*/
|
||||||
|
public int getC_Activity_ID();
|
||||||
|
|
||||||
|
public I_C_Activity getC_Activity() throws RuntimeException;
|
||||||
|
|
||||||
|
/** 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();
|
||||||
|
|
||||||
|
public I_C_BPartner getC_BPartner() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_Campaign_ID */
|
||||||
|
public static final String COLUMNNAME_C_Campaign_ID = "C_Campaign_ID";
|
||||||
|
|
||||||
|
/** Set Campaign.
|
||||||
|
* Marketing Campaign
|
||||||
|
*/
|
||||||
|
public void setC_Campaign_ID (int C_Campaign_ID);
|
||||||
|
|
||||||
|
/** Get Campaign.
|
||||||
|
* Marketing Campaign
|
||||||
|
*/
|
||||||
|
public int getC_Campaign_ID();
|
||||||
|
|
||||||
|
public I_C_Campaign getC_Campaign() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_LocFrom_ID */
|
||||||
|
public static final String COLUMNNAME_C_LocFrom_ID = "C_LocFrom_ID";
|
||||||
|
|
||||||
|
/** Set Location From.
|
||||||
|
* Location that inventory was moved from
|
||||||
|
*/
|
||||||
|
public void setC_LocFrom_ID (int C_LocFrom_ID);
|
||||||
|
|
||||||
|
/** Get Location From.
|
||||||
|
* Location that inventory was moved from
|
||||||
|
*/
|
||||||
|
public int getC_LocFrom_ID();
|
||||||
|
|
||||||
|
/** Column name C_LocTo_ID */
|
||||||
|
public static final String COLUMNNAME_C_LocTo_ID = "C_LocTo_ID";
|
||||||
|
|
||||||
|
/** Set Location To.
|
||||||
|
* Location that inventory was moved to
|
||||||
|
*/
|
||||||
|
public void setC_LocTo_ID (int C_LocTo_ID);
|
||||||
|
|
||||||
|
/** Get Location To.
|
||||||
|
* Location that inventory was moved to
|
||||||
|
*/
|
||||||
|
public int getC_LocTo_ID();
|
||||||
|
|
||||||
|
/** Column name C_Period_ID */
|
||||||
|
public static final String COLUMNNAME_C_Period_ID = "C_Period_ID";
|
||||||
|
|
||||||
|
/** Set Period.
|
||||||
|
* Period of the Calendar
|
||||||
|
*/
|
||||||
|
public void setC_Period_ID (int C_Period_ID);
|
||||||
|
|
||||||
|
/** Get Period.
|
||||||
|
* Period of the Calendar
|
||||||
|
*/
|
||||||
|
public int getC_Period_ID();
|
||||||
|
|
||||||
|
public I_C_Period getC_Period() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_Project_ID */
|
||||||
|
public static final String COLUMNNAME_C_Project_ID = "C_Project_ID";
|
||||||
|
|
||||||
|
/** Set Project.
|
||||||
|
* Financial Project
|
||||||
|
*/
|
||||||
|
public void setC_Project_ID (int C_Project_ID);
|
||||||
|
|
||||||
|
/** Get Project.
|
||||||
|
* Financial Project
|
||||||
|
*/
|
||||||
|
public int getC_Project_ID();
|
||||||
|
|
||||||
|
public I_C_Project getC_Project() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_ProjectPhase_ID */
|
||||||
|
public static final String COLUMNNAME_C_ProjectPhase_ID = "C_ProjectPhase_ID";
|
||||||
|
|
||||||
|
/** Set Project Phase.
|
||||||
|
* Phase of a Project
|
||||||
|
*/
|
||||||
|
public void setC_ProjectPhase_ID (int C_ProjectPhase_ID);
|
||||||
|
|
||||||
|
/** Get Project Phase.
|
||||||
|
* Phase of a Project
|
||||||
|
*/
|
||||||
|
public int getC_ProjectPhase_ID();
|
||||||
|
|
||||||
|
public I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_ProjectTask_ID */
|
||||||
|
public static final String COLUMNNAME_C_ProjectTask_ID = "C_ProjectTask_ID";
|
||||||
|
|
||||||
|
/** Set Project Task.
|
||||||
|
* Actual Project Task in a Phase
|
||||||
|
*/
|
||||||
|
public void setC_ProjectTask_ID (int C_ProjectTask_ID);
|
||||||
|
|
||||||
|
/** Get Project Task.
|
||||||
|
* Actual Project Task in a Phase
|
||||||
|
*/
|
||||||
|
public int getC_ProjectTask_ID();
|
||||||
|
|
||||||
|
public I_C_ProjectTask getC_ProjectTask() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_SalesRegion_ID */
|
||||||
|
public static final String COLUMNNAME_C_SalesRegion_ID = "C_SalesRegion_ID";
|
||||||
|
|
||||||
|
/** Set Sales Region.
|
||||||
|
* Sales coverage region
|
||||||
|
*/
|
||||||
|
public void setC_SalesRegion_ID (int C_SalesRegion_ID);
|
||||||
|
|
||||||
|
/** Get Sales Region.
|
||||||
|
* Sales coverage region
|
||||||
|
*/
|
||||||
|
public int getC_SalesRegion_ID();
|
||||||
|
|
||||||
|
public I_C_SalesRegion getC_SalesRegion() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name C_SubAcct_ID */
|
||||||
|
public static final String COLUMNNAME_C_SubAcct_ID = "C_SubAcct_ID";
|
||||||
|
|
||||||
|
/** Set Sub Account.
|
||||||
|
* Sub account for Element Value
|
||||||
|
*/
|
||||||
|
public void setC_SubAcct_ID (int C_SubAcct_ID);
|
||||||
|
|
||||||
|
/** Get Sub Account.
|
||||||
|
* Sub account for Element Value
|
||||||
|
*/
|
||||||
|
public int getC_SubAcct_ID();
|
||||||
|
|
||||||
|
public I_C_SubAcct getC_SubAcct() throws RuntimeException;
|
||||||
|
|
||||||
|
/** 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 DateAcct */
|
||||||
|
public static final String COLUMNNAME_DateAcct = "DateAcct";
|
||||||
|
|
||||||
|
/** Set Account Date.
|
||||||
|
* Accounting Date
|
||||||
|
*/
|
||||||
|
public void setDateAcct (Timestamp DateAcct);
|
||||||
|
|
||||||
|
/** Get Account Date.
|
||||||
|
* Accounting Date
|
||||||
|
*/
|
||||||
|
public Timestamp getDateAcct();
|
||||||
|
|
||||||
|
/** Column name GL_Budget_ID */
|
||||||
|
public static final String COLUMNNAME_GL_Budget_ID = "GL_Budget_ID";
|
||||||
|
|
||||||
|
/** Set Budget.
|
||||||
|
* General Ledger Budget
|
||||||
|
*/
|
||||||
|
public void setGL_Budget_ID (int GL_Budget_ID);
|
||||||
|
|
||||||
|
/** Get Budget.
|
||||||
|
* General Ledger Budget
|
||||||
|
*/
|
||||||
|
public int getGL_Budget_ID();
|
||||||
|
|
||||||
|
public I_GL_Budget getGL_Budget() throws RuntimeException;
|
||||||
|
|
||||||
|
/** 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_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 PA_ReportCube_ID */
|
||||||
|
public static final String COLUMNNAME_PA_ReportCube_ID = "PA_ReportCube_ID";
|
||||||
|
|
||||||
|
/** Set Report Cube.
|
||||||
|
* Define reporting cube for pre-calculation of summary accounting data.
|
||||||
|
*/
|
||||||
|
public void setPA_ReportCube_ID (int PA_ReportCube_ID);
|
||||||
|
|
||||||
|
/** Get Report Cube.
|
||||||
|
* Define reporting cube for pre-calculation of summary accounting data.
|
||||||
|
*/
|
||||||
|
public int getPA_ReportCube_ID();
|
||||||
|
|
||||||
|
public I_PA_ReportCube getPA_ReportCube() throws RuntimeException;
|
||||||
|
|
||||||
|
/** Column name PostingType */
|
||||||
|
public static final String COLUMNNAME_PostingType = "PostingType";
|
||||||
|
|
||||||
|
/** Set PostingType.
|
||||||
|
* The type of posted amount for the transaction
|
||||||
|
*/
|
||||||
|
public void setPostingType (boolean PostingType);
|
||||||
|
|
||||||
|
/** Get PostingType.
|
||||||
|
* The type of posted amount for the transaction
|
||||||
|
*/
|
||||||
|
public boolean isPostingType();
|
||||||
|
|
||||||
|
/** Column name Qty */
|
||||||
|
public static final String COLUMNNAME_Qty = "Qty";
|
||||||
|
|
||||||
|
/** Set Quantity.
|
||||||
|
* Quantity
|
||||||
|
*/
|
||||||
|
public void setQty (BigDecimal Qty);
|
||||||
|
|
||||||
|
/** Get Quantity.
|
||||||
|
* Quantity
|
||||||
|
*/
|
||||||
|
public BigDecimal getQty();
|
||||||
|
|
||||||
|
/** 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();
|
||||||
|
|
||||||
|
/** Column name User1_ID */
|
||||||
|
public static final String COLUMNNAME_User1_ID = "User1_ID";
|
||||||
|
|
||||||
|
/** Set User List 1.
|
||||||
|
* User defined list element #1
|
||||||
|
*/
|
||||||
|
public void setUser1_ID (int User1_ID);
|
||||||
|
|
||||||
|
/** Get User List 1.
|
||||||
|
* User defined list element #1
|
||||||
|
*/
|
||||||
|
public int getUser1_ID();
|
||||||
|
|
||||||
|
/** Column name User2_ID */
|
||||||
|
public static final String COLUMNNAME_User2_ID = "User2_ID";
|
||||||
|
|
||||||
|
/** Set User List 2.
|
||||||
|
* User defined list element #2
|
||||||
|
*/
|
||||||
|
public void setUser2_ID (int User2_ID);
|
||||||
|
|
||||||
|
/** Get User List 2.
|
||||||
|
* User defined list element #2
|
||||||
|
*/
|
||||||
|
public int getUser2_ID();
|
||||||
|
|
||||||
|
/** Column name UserElement1_ID */
|
||||||
|
public static final String COLUMNNAME_UserElement1_ID = "UserElement1_ID";
|
||||||
|
|
||||||
|
/** Set User Element 1.
|
||||||
|
* User defined accounting Element
|
||||||
|
*/
|
||||||
|
public void setUserElement1_ID (int UserElement1_ID);
|
||||||
|
|
||||||
|
/** Get User Element 1.
|
||||||
|
* User defined accounting Element
|
||||||
|
*/
|
||||||
|
public int getUserElement1_ID();
|
||||||
|
|
||||||
|
/** Column name UserElement2_ID */
|
||||||
|
public static final String COLUMNNAME_UserElement2_ID = "UserElement2_ID";
|
||||||
|
|
||||||
|
/** Set User Element 2.
|
||||||
|
* User defined accounting Element
|
||||||
|
*/
|
||||||
|
public void setUserElement2_ID (int UserElement2_ID);
|
||||||
|
|
||||||
|
/** Get User Element 2.
|
||||||
|
* User defined accounting Element
|
||||||
|
*/
|
||||||
|
public int getUserElement2_ID();
|
||||||
|
}
|
|
@ -0,0 +1,875 @@
|
||||||
|
/******************************************************************************
|
||||||
|
* 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.sql.Timestamp;
|
||||||
|
import java.util.Properties;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import org.compiere.util.Env;
|
||||||
|
|
||||||
|
/** Generated Model for Fact_Acct_Summary
|
||||||
|
* @author Adempiere (generated)
|
||||||
|
* @version Release 3.5.3a - $Id$ */
|
||||||
|
public class X_Fact_Acct_Summary extends PO implements I_Fact_Acct_Summary, I_Persistent
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private static final long serialVersionUID = 20081221L;
|
||||||
|
|
||||||
|
/** Standard Constructor */
|
||||||
|
public X_Fact_Acct_Summary (Properties ctx, int Fact_Acct_Summary_ID, String trxName)
|
||||||
|
{
|
||||||
|
super (ctx, Fact_Acct_Summary_ID, trxName);
|
||||||
|
/** if (Fact_Acct_Summary_ID == 0)
|
||||||
|
{
|
||||||
|
setAccount_ID (0);
|
||||||
|
setAmtAcctCr (Env.ZERO);
|
||||||
|
setAmtAcctDr (Env.ZERO);
|
||||||
|
setC_AcctSchema_ID (0);
|
||||||
|
setC_Period_ID (0);
|
||||||
|
setPA_ReportCube_ID (0);
|
||||||
|
setPostingType (false);
|
||||||
|
setQty (Env.ZERO);
|
||||||
|
} */
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Load Constructor */
|
||||||
|
public X_Fact_Acct_Summary (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_Fact_Acct_Summary[")
|
||||||
|
.append(get_ID()).append("]");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Account.
|
||||||
|
@param Account_ID
|
||||||
|
Account used
|
||||||
|
*/
|
||||||
|
public void setAccount_ID (int Account_ID)
|
||||||
|
{
|
||||||
|
if (Account_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_Account_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (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 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_Value (COLUMNNAME_AD_OrgTrx_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (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();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Accounted Credit.
|
||||||
|
@param AmtAcctCr
|
||||||
|
Accounted Credit Amount
|
||||||
|
*/
|
||||||
|
public void setAmtAcctCr (BigDecimal AmtAcctCr)
|
||||||
|
{
|
||||||
|
set_Value (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_Value (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;
|
||||||
|
}
|
||||||
|
|
||||||
|
public I_C_AcctSchema getC_AcctSchema() throws RuntimeException
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_C_AcctSchema.Table_Name);
|
||||||
|
I_C_AcctSchema result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_C_AcctSchema)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_AcctSchema_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 Accounting Schema.
|
||||||
|
@param C_AcctSchema_ID
|
||||||
|
Rules for accounting
|
||||||
|
*/
|
||||||
|
public void setC_AcctSchema_ID (int C_AcctSchema_ID)
|
||||||
|
{
|
||||||
|
if (C_AcctSchema_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_AcctSchema_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (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 I_C_Activity getC_Activity() throws RuntimeException
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_C_Activity.Table_Name);
|
||||||
|
I_C_Activity result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_C_Activity)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Activity_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 Activity.
|
||||||
|
@param C_Activity_ID
|
||||||
|
Business Activity
|
||||||
|
*/
|
||||||
|
public void setC_Activity_ID (int C_Activity_ID)
|
||||||
|
{
|
||||||
|
if (C_Activity_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_Activity_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (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 I_C_BPartner getC_BPartner() throws RuntimeException
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_C_BPartner.Table_Name);
|
||||||
|
I_C_BPartner result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_C_BPartner)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_BPartner_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 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_Value (COLUMNNAME_C_BPartner_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (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_C_Campaign getC_Campaign() throws RuntimeException
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_C_Campaign.Table_Name);
|
||||||
|
I_C_Campaign result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_C_Campaign)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Campaign_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 Campaign.
|
||||||
|
@param C_Campaign_ID
|
||||||
|
Marketing Campaign
|
||||||
|
*/
|
||||||
|
public void setC_Campaign_ID (int C_Campaign_ID)
|
||||||
|
{
|
||||||
|
if (C_Campaign_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_Campaign_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (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();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 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_Value (COLUMNNAME_C_LocFrom_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (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();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 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_Value (COLUMNNAME_C_LocTo_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (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 I_C_Period getC_Period() throws RuntimeException
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_C_Period.Table_Name);
|
||||||
|
I_C_Period result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_C_Period)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Period_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 Period.
|
||||||
|
@param C_Period_ID
|
||||||
|
Period of the Calendar
|
||||||
|
*/
|
||||||
|
public void setC_Period_ID (int C_Period_ID)
|
||||||
|
{
|
||||||
|
if (C_Period_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_Period_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (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 I_C_Project getC_Project() throws RuntimeException
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_C_Project.Table_Name);
|
||||||
|
I_C_Project result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_C_Project)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_Project_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 Project.
|
||||||
|
@param C_Project_ID
|
||||||
|
Financial Project
|
||||||
|
*/
|
||||||
|
public void setC_Project_ID (int C_Project_ID)
|
||||||
|
{
|
||||||
|
if (C_Project_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_Project_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (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 I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_C_ProjectPhase.Table_Name);
|
||||||
|
I_C_ProjectPhase result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_C_ProjectPhase)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectPhase_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 Project Phase.
|
||||||
|
@param C_ProjectPhase_ID
|
||||||
|
Phase of a Project
|
||||||
|
*/
|
||||||
|
public void setC_ProjectPhase_ID (int C_ProjectPhase_ID)
|
||||||
|
{
|
||||||
|
if (C_ProjectPhase_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_ProjectPhase_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_C_ProjectPhase_ID, Integer.valueOf(C_ProjectPhase_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Project Phase.
|
||||||
|
@return Phase of a Project
|
||||||
|
*/
|
||||||
|
public int getC_ProjectPhase_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectPhase_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
public I_C_ProjectTask getC_ProjectTask() throws RuntimeException
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_C_ProjectTask.Table_Name);
|
||||||
|
I_C_ProjectTask result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_C_ProjectTask)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_ProjectTask_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 Project Task.
|
||||||
|
@param C_ProjectTask_ID
|
||||||
|
Actual Project Task in a Phase
|
||||||
|
*/
|
||||||
|
public void setC_ProjectTask_ID (int C_ProjectTask_ID)
|
||||||
|
{
|
||||||
|
if (C_ProjectTask_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_ProjectTask_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_C_ProjectTask_ID, Integer.valueOf(C_ProjectTask_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Project Task.
|
||||||
|
@return Actual Project Task in a Phase
|
||||||
|
*/
|
||||||
|
public int getC_ProjectTask_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_C_ProjectTask_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
public I_C_SalesRegion getC_SalesRegion() throws RuntimeException
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_C_SalesRegion.Table_Name);
|
||||||
|
I_C_SalesRegion result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_C_SalesRegion)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SalesRegion_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 Sales Region.
|
||||||
|
@param C_SalesRegion_ID
|
||||||
|
Sales coverage region
|
||||||
|
*/
|
||||||
|
public void setC_SalesRegion_ID (int C_SalesRegion_ID)
|
||||||
|
{
|
||||||
|
if (C_SalesRegion_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_SalesRegion_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (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 I_C_SubAcct getC_SubAcct() throws RuntimeException
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_C_SubAcct.Table_Name);
|
||||||
|
I_C_SubAcct result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_C_SubAcct)constructor.newInstance(new Object[] {getCtx(), new Integer(getC_SubAcct_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 Sub Account.
|
||||||
|
@param C_SubAcct_ID
|
||||||
|
Sub account for Element Value
|
||||||
|
*/
|
||||||
|
public void setC_SubAcct_ID (int C_SubAcct_ID)
|
||||||
|
{
|
||||||
|
if (C_SubAcct_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_C_SubAcct_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_C_SubAcct_ID, Integer.valueOf(C_SubAcct_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Sub Account.
|
||||||
|
@return Sub account for Element Value
|
||||||
|
*/
|
||||||
|
public int getC_SubAcct_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_C_SubAcct_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Account Date.
|
||||||
|
@param DateAcct
|
||||||
|
Accounting Date
|
||||||
|
*/
|
||||||
|
public void setDateAcct (Timestamp DateAcct)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_DateAcct, DateAcct);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Account Date.
|
||||||
|
@return Accounting Date
|
||||||
|
*/
|
||||||
|
public Timestamp getDateAcct ()
|
||||||
|
{
|
||||||
|
return (Timestamp)get_Value(COLUMNNAME_DateAcct);
|
||||||
|
}
|
||||||
|
|
||||||
|
public I_GL_Budget getGL_Budget() throws RuntimeException
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_GL_Budget.Table_Name);
|
||||||
|
I_GL_Budget result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_GL_Budget)constructor.newInstance(new Object[] {getCtx(), new Integer(getGL_Budget_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 Budget.
|
||||||
|
@param GL_Budget_ID
|
||||||
|
General Ledger Budget
|
||||||
|
*/
|
||||||
|
public void setGL_Budget_ID (int GL_Budget_ID)
|
||||||
|
{
|
||||||
|
if (GL_Budget_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_GL_Budget_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (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 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)
|
||||||
|
set_Value (COLUMNNAME_M_Product_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (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();
|
||||||
|
}
|
||||||
|
|
||||||
|
public I_PA_ReportCube getPA_ReportCube() throws RuntimeException
|
||||||
|
{
|
||||||
|
Class<?> clazz = MTable.getClass(I_PA_ReportCube.Table_Name);
|
||||||
|
I_PA_ReportCube result = null;
|
||||||
|
try {
|
||||||
|
Constructor<?> constructor = null;
|
||||||
|
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
|
||||||
|
result = (I_PA_ReportCube)constructor.newInstance(new Object[] {getCtx(), new Integer(getPA_ReportCube_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 Report Cube.
|
||||||
|
@param PA_ReportCube_ID
|
||||||
|
Define reporting cube for pre-calculation of summary accounting data.
|
||||||
|
*/
|
||||||
|
public void setPA_ReportCube_ID (int PA_ReportCube_ID)
|
||||||
|
{
|
||||||
|
if (PA_ReportCube_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_PA_ReportCube_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_PA_ReportCube_ID, Integer.valueOf(PA_ReportCube_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get Report Cube.
|
||||||
|
@return Define reporting cube for pre-calculation of summary accounting data.
|
||||||
|
*/
|
||||||
|
public int getPA_ReportCube_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_PA_ReportCube_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set PostingType.
|
||||||
|
@param PostingType
|
||||||
|
The type of posted amount for the transaction
|
||||||
|
*/
|
||||||
|
public void setPostingType (boolean PostingType)
|
||||||
|
{
|
||||||
|
set_Value (COLUMNNAME_PostingType, Boolean.valueOf(PostingType));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get PostingType.
|
||||||
|
@return The type of posted amount for the transaction
|
||||||
|
*/
|
||||||
|
public boolean isPostingType ()
|
||||||
|
{
|
||||||
|
Object oo = get_Value(COLUMNNAME_PostingType);
|
||||||
|
if (oo != null)
|
||||||
|
{
|
||||||
|
if (oo instanceof Boolean)
|
||||||
|
return ((Boolean)oo).booleanValue();
|
||||||
|
return "Y".equals(oo);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set Quantity.
|
||||||
|
@param Qty
|
||||||
|
Quantity
|
||||||
|
*/
|
||||||
|
public void setQty (BigDecimal Qty)
|
||||||
|
{
|
||||||
|
set_Value (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 User List 1.
|
||||||
|
@param User1_ID
|
||||||
|
User defined list element #1
|
||||||
|
*/
|
||||||
|
public void setUser1_ID (int User1_ID)
|
||||||
|
{
|
||||||
|
if (User1_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_User1_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_User1_ID, Integer.valueOf(User1_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get User 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();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set User List 2.
|
||||||
|
@param User2_ID
|
||||||
|
User defined list element #2
|
||||||
|
*/
|
||||||
|
public void setUser2_ID (int User2_ID)
|
||||||
|
{
|
||||||
|
if (User2_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_User2_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_User2_ID, Integer.valueOf(User2_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get User 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();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set User Element 1.
|
||||||
|
@param UserElement1_ID
|
||||||
|
User defined accounting Element
|
||||||
|
*/
|
||||||
|
public void setUserElement1_ID (int UserElement1_ID)
|
||||||
|
{
|
||||||
|
if (UserElement1_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_UserElement1_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_UserElement1_ID, Integer.valueOf(UserElement1_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get User Element 1.
|
||||||
|
@return User defined accounting Element
|
||||||
|
*/
|
||||||
|
public int getUserElement1_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_UserElement1_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Set User Element 2.
|
||||||
|
@param UserElement2_ID
|
||||||
|
User defined accounting Element
|
||||||
|
*/
|
||||||
|
public void setUserElement2_ID (int UserElement2_ID)
|
||||||
|
{
|
||||||
|
if (UserElement2_ID < 1)
|
||||||
|
set_Value (COLUMNNAME_UserElement2_ID, null);
|
||||||
|
else
|
||||||
|
set_Value (COLUMNNAME_UserElement2_ID, Integer.valueOf(UserElement2_ID));
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Get User Element 2.
|
||||||
|
@return User defined accounting Element
|
||||||
|
*/
|
||||||
|
public int getUserElement2_ID ()
|
||||||
|
{
|
||||||
|
Integer ii = (Integer)get_Value(COLUMNNAME_UserElement2_ID);
|
||||||
|
if (ii == null)
|
||||||
|
return 0;
|
||||||
|
return ii.intValue();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue