/******************************************************************************
 * 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;
import org.compiere.util.KeyNamePair;

/** Generated Model for S_TimeExpenseLine
 *  @author iDempiere (generated)
 *  @version Release 12 - $Id$ */
@org.adempiere.base.Model(table="S_TimeExpenseLine")
public class X_S_TimeExpenseLine extends PO implements I_S_TimeExpenseLine, I_Persistent
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20241222L;

    /** Standard Constructor */
    public X_S_TimeExpenseLine (Properties ctx, int S_TimeExpenseLine_ID, String trxName)
    {
      super (ctx, S_TimeExpenseLine_ID, trxName);
      /** if (S_TimeExpenseLine_ID == 0)
        {
			setDateExpense (new Timestamp( System.currentTimeMillis() ));
// @DateExpense@;@DateReport@
			setIsInvoiced (false);
			setIsTimeReport (false);
			setLine (0);
// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM S_TimeExpenseLine WHERE S_TimeExpense_ID=@S_TimeExpense_ID@
			setProcessed (false);
			setS_TimeExpenseLine_ID (0);
			setS_TimeExpense_ID (0);
        } */
    }

    /** Standard Constructor */
    public X_S_TimeExpenseLine (Properties ctx, int S_TimeExpenseLine_ID, String trxName, String ... virtualColumns)
    {
      super (ctx, S_TimeExpenseLine_ID, trxName, virtualColumns);
      /** if (S_TimeExpenseLine_ID == 0)
        {
			setDateExpense (new Timestamp( System.currentTimeMillis() ));
// @DateExpense@;@DateReport@
			setIsInvoiced (false);
			setIsTimeReport (false);
			setLine (0);
// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM S_TimeExpenseLine WHERE S_TimeExpense_ID=@S_TimeExpense_ID@
			setProcessed (false);
			setS_TimeExpenseLine_ID (0);
			setS_TimeExpense_ID (0);
        } */
    }

    /** Standard Constructor */
    public X_S_TimeExpenseLine (Properties ctx, String S_TimeExpenseLine_UU, String trxName)
    {
      super (ctx, S_TimeExpenseLine_UU, trxName);
      /** if (S_TimeExpenseLine_UU == null)
        {
			setDateExpense (new Timestamp( System.currentTimeMillis() ));
// @DateExpense@;@DateReport@
			setIsInvoiced (false);
			setIsTimeReport (false);
			setLine (0);
// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM S_TimeExpenseLine WHERE S_TimeExpense_ID=@S_TimeExpense_ID@
			setProcessed (false);
			setS_TimeExpenseLine_ID (0);
			setS_TimeExpense_ID (0);
        } */
    }

    /** Standard Constructor */
    public X_S_TimeExpenseLine (Properties ctx, String S_TimeExpenseLine_UU, String trxName, String ... virtualColumns)
    {
      super (ctx, S_TimeExpenseLine_UU, trxName, virtualColumns);
      /** if (S_TimeExpenseLine_UU == null)
        {
			setDateExpense (new Timestamp( System.currentTimeMillis() ));
// @DateExpense@;@DateReport@
			setIsInvoiced (false);
			setIsTimeReport (false);
			setLine (0);
// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM S_TimeExpenseLine WHERE S_TimeExpense_ID=@S_TimeExpense_ID@
			setProcessed (false);
			setS_TimeExpenseLine_ID (0);
			setS_TimeExpense_ID (0);
        } */
    }

    /** Load Constructor */
    public X_S_TimeExpenseLine (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 1 - 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_S_TimeExpenseLine[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	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_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 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_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 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_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();
	}

	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_Value (COLUMNNAME_C_Currency_ID, null);
		else
			set_Value (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_InvoiceLine getC_InvoiceLine() throws RuntimeException
	{
		return (org.compiere.model.I_C_InvoiceLine)MTable.get(getCtx(), org.compiere.model.I_C_InvoiceLine.Table_ID)
			.getPO(getC_InvoiceLine_ID(), get_TrxName());
	}

	/** Set Invoice Line.
		@param C_InvoiceLine_ID Invoice Detail Line
	*/
	public void setC_InvoiceLine_ID (int C_InvoiceLine_ID)
	{
		if (C_InvoiceLine_ID < 1)
			set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, null);
		else
			set_ValueNoCheck (COLUMNNAME_C_InvoiceLine_ID, Integer.valueOf(C_InvoiceLine_ID));
	}

	/** Get Invoice Line.
		@return Invoice Detail Line
	  */
	public int getC_InvoiceLine_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_InvoiceLine_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_OrderLine getC_OrderLine() throws RuntimeException
	{
		return (org.compiere.model.I_C_OrderLine)MTable.get(getCtx(), org.compiere.model.I_C_OrderLine.Table_ID)
			.getPO(getC_OrderLine_ID(), get_TrxName());
	}

	/** Set Sales Order Line.
		@param C_OrderLine_ID Sales Order Line
	*/
	public void setC_OrderLine_ID (int C_OrderLine_ID)
	{
		if (C_OrderLine_ID < 1)
			set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, null);
		else
			set_ValueNoCheck (COLUMNNAME_C_OrderLine_ID, Integer.valueOf(C_OrderLine_ID));
	}

	/** Get Sales Order Line.
		@return Sales Order Line
	  */
	public int getC_OrderLine_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_OrderLine_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_ProjectPhase getC_ProjectPhase() throws RuntimeException
	{
		return (org.compiere.model.I_C_ProjectPhase)MTable.get(getCtx(), org.compiere.model.I_C_ProjectPhase.Table_ID)
			.getPO(getC_ProjectPhase_ID(), get_TrxName());
	}

	/** 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 org.compiere.model.I_C_ProjectTask getC_ProjectTask() throws RuntimeException
	{
		return (org.compiere.model.I_C_ProjectTask)MTable.get(getCtx(), org.compiere.model.I_C_ProjectTask.Table_ID)
			.getPO(getC_ProjectTask_ID(), get_TrxName());
	}

	/** 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 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_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 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_Value (COLUMNNAME_C_UOM_ID, null);
		else
			set_Value (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 Converted Amount.
		@param ConvertedAmt Converted Amount
	*/
	public void setConvertedAmt (BigDecimal ConvertedAmt)
	{
		set_Value (COLUMNNAME_ConvertedAmt, ConvertedAmt);
	}

	/** Get Converted Amount.
		@return Converted Amount
	  */
	public BigDecimal getConvertedAmt()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ConvertedAmt);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Expense Date.
		@param DateExpense Date of expense
	*/
	public void setDateExpense (Timestamp DateExpense)
	{
		set_Value (COLUMNNAME_DateExpense, DateExpense);
	}

	/** Get Expense Date.
		@return Date of expense
	  */
	public Timestamp getDateExpense()
	{
		return (Timestamp)get_Value(COLUMNNAME_DateExpense);
	}

	/** Set Description.
		@param Description Optional short description of the record
	*/
	public void setDescription (String Description)
	{
		set_Value (COLUMNNAME_Description, Description);
	}

	/** Get Description.
		@return Optional short description of the record
	  */
	public String getDescription()
	{
		return (String)get_Value(COLUMNNAME_Description);
	}

	/** Set Expense Amount.
		@param ExpenseAmt Amount for this expense
	*/
	public void setExpenseAmt (BigDecimal ExpenseAmt)
	{
		set_Value (COLUMNNAME_ExpenseAmt, ExpenseAmt);
	}

	/** Get Expense Amount.
		@return Amount for this expense
	  */
	public BigDecimal getExpenseAmt()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ExpenseAmt);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Invoice Price.
		@param InvoicePrice Unit price to be invoiced or 0 for default price
	*/
	public void setInvoicePrice (BigDecimal InvoicePrice)
	{
		set_Value (COLUMNNAME_InvoicePrice, InvoicePrice);
	}

	/** Get Invoice Price.
		@return Unit price to be invoiced or 0 for default price
	  */
	public BigDecimal getInvoicePrice()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_InvoicePrice);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Invoiced.
		@param IsInvoiced Is this invoiced?
	*/
	public void setIsInvoiced (boolean IsInvoiced)
	{
		set_Value (COLUMNNAME_IsInvoiced, Boolean.valueOf(IsInvoiced));
	}

	/** Get Invoiced.
		@return Is this invoiced?
	  */
	public boolean isInvoiced()
	{
		Object oo = get_Value(COLUMNNAME_IsInvoiced);
		if (oo != null)
		{
			 if (oo instanceof Boolean)
				 return ((Boolean)oo).booleanValue();
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set Time Report.
		@param IsTimeReport Line is a time report only (no expense)
	*/
	public void setIsTimeReport (boolean IsTimeReport)
	{
		set_Value (COLUMNNAME_IsTimeReport, Boolean.valueOf(IsTimeReport));
	}

	/** Get Time Report.
		@return Line is a time report only (no expense)
	  */
	public boolean isTimeReport()
	{
		Object oo = get_Value(COLUMNNAME_IsTimeReport);
		if (oo != null)
		{
			 if (oo instanceof Boolean)
				 return ((Boolean)oo).booleanValue();
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set Line No.
		@param Line Unique line for this document
	*/
	public void setLine (int Line)
	{
		set_Value (COLUMNNAME_Line, Integer.valueOf(Line));
	}

	/** Get Line No.
		@return Unique line for this document
	  */
	public int getLine()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_Line);
		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(getLine()));
    }

	/** Set Line Amount.
		@param LineNetAmt Line Extended Amount (Quantity * Actual Price) without Freight and Charges
	*/
	public void setLineNetAmt (BigDecimal LineNetAmt)
	{
		set_Value (COLUMNNAME_LineNetAmt, LineNetAmt);
	}

	/** Get Line Amount.
		@return Line Extended Amount (Quantity * Actual Price) without Freight and Charges
	  */
	public BigDecimal getLineNetAmt()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_LineNetAmt);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	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_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();
	}

	/** Set Note.
		@param Note Optional additional user defined information
	*/
	public void setNote (String Note)
	{
		set_Value (COLUMNNAME_Note, Note);
	}

	/** Get Note.
		@return Optional additional user defined information
	  */
	public String getNote()
	{
		return (String)get_Value(COLUMNNAME_Note);
	}

	/** Set Price Invoiced.
		@param PriceInvoiced The priced invoiced to the customer (in the currency of the customer&#039;s AR price list) - 0 for default price
	*/
	public void setPriceInvoiced (BigDecimal PriceInvoiced)
	{
		set_Value (COLUMNNAME_PriceInvoiced, PriceInvoiced);
	}

	/** Get Price Invoiced.
		@return The priced invoiced to the customer (in the currency of the customer&#039;s AR price list) - 0 for default price
	  */
	public BigDecimal getPriceInvoiced()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceInvoiced);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Price Reimbursed.
		@param PriceReimbursed The reimbursed price (in currency of the employee&#039;s AP price list)
	*/
	public void setPriceReimbursed (BigDecimal PriceReimbursed)
	{
		set_Value (COLUMNNAME_PriceReimbursed, PriceReimbursed);
	}

	/** Get Price Reimbursed.
		@return The reimbursed price (in currency of the employee&#039;s AP price list)
	  */
	public BigDecimal getPriceReimbursed()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PriceReimbursed);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Processed.
		@param Processed The document has been processed
	*/
	public void setProcessed (boolean Processed)
	{
		set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed));
	}

	/** Get Processed.
		@return The document has been processed
	  */
	public boolean isProcessed()
	{
		Object oo = get_Value(COLUMNNAME_Processed);
		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 Quantity Invoiced.
		@param QtyInvoiced Invoiced Quantity
	*/
	public void setQtyInvoiced (BigDecimal QtyInvoiced)
	{
		set_Value (COLUMNNAME_QtyInvoiced, QtyInvoiced);
	}

	/** Get Quantity Invoiced.
		@return Invoiced Quantity
	  */
	public BigDecimal getQtyInvoiced()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyInvoiced);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Quantity Reimbursed.
		@param QtyReimbursed The reimbursed quantity
	*/
	public void setQtyReimbursed (BigDecimal QtyReimbursed)
	{
		set_Value (COLUMNNAME_QtyReimbursed, QtyReimbursed);
	}

	/** Get Quantity Reimbursed.
		@return The reimbursed quantity
	  */
	public BigDecimal getQtyReimbursed()
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_QtyReimbursed);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Resource Assignment.
		@param S_ResourceAssignment_ID Resource Assignment
	*/
	public void setS_ResourceAssignment_ID (int S_ResourceAssignment_ID)
	{
		if (S_ResourceAssignment_ID < 1)
			set_Value (COLUMNNAME_S_ResourceAssignment_ID, null);
		else
			set_Value (COLUMNNAME_S_ResourceAssignment_ID, Integer.valueOf(S_ResourceAssignment_ID));
	}

	/** Get Resource Assignment.
		@return Resource Assignment
	  */
	public int getS_ResourceAssignment_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_S_ResourceAssignment_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Expense Line.
		@param S_TimeExpenseLine_ID Time and Expense Report Line
	*/
	public void setS_TimeExpenseLine_ID (int S_TimeExpenseLine_ID)
	{
		if (S_TimeExpenseLine_ID < 1)
			set_ValueNoCheck (COLUMNNAME_S_TimeExpenseLine_ID, null);
		else
			set_ValueNoCheck (COLUMNNAME_S_TimeExpenseLine_ID, Integer.valueOf(S_TimeExpenseLine_ID));
	}

	/** Get Expense Line.
		@return Time and Expense Report Line
	  */
	public int getS_TimeExpenseLine_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_S_TimeExpenseLine_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set S_TimeExpenseLine_UU.
		@param S_TimeExpenseLine_UU S_TimeExpenseLine_UU
	*/
	public void setS_TimeExpenseLine_UU (String S_TimeExpenseLine_UU)
	{
		set_Value (COLUMNNAME_S_TimeExpenseLine_UU, S_TimeExpenseLine_UU);
	}

	/** Get S_TimeExpenseLine_UU.
		@return S_TimeExpenseLine_UU	  */
	public String getS_TimeExpenseLine_UU()
	{
		return (String)get_Value(COLUMNNAME_S_TimeExpenseLine_UU);
	}

	public org.compiere.model.I_S_TimeExpense getS_TimeExpense() throws RuntimeException
	{
		return (org.compiere.model.I_S_TimeExpense)MTable.get(getCtx(), org.compiere.model.I_S_TimeExpense.Table_ID)
			.getPO(getS_TimeExpense_ID(), get_TrxName());
	}

	/** Set Expense Report.
		@param S_TimeExpense_ID Time and Expense Report
	*/
	public void setS_TimeExpense_ID (int S_TimeExpense_ID)
	{
		if (S_TimeExpense_ID < 1)
			set_ValueNoCheck (COLUMNNAME_S_TimeExpense_ID, null);
		else
			set_ValueNoCheck (COLUMNNAME_S_TimeExpense_ID, Integer.valueOf(S_TimeExpense_ID));
	}

	/** Get Expense Report.
		@return Time and Expense Report
	  */
	public int getS_TimeExpense_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_S_TimeExpense_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_S_TimeType getS_TimeType() throws RuntimeException
	{
		return (org.compiere.model.I_S_TimeType)MTable.get(getCtx(), org.compiere.model.I_S_TimeType.Table_ID)
			.getPO(getS_TimeType_ID(), get_TrxName());
	}

	/** Set Time Type.
		@param S_TimeType_ID Type of time recorded
	*/
	public void setS_TimeType_ID (int S_TimeType_ID)
	{
		if (S_TimeType_ID < 1)
			set_Value (COLUMNNAME_S_TimeType_ID, null);
		else
			set_Value (COLUMNNAME_S_TimeType_ID, Integer.valueOf(S_TimeType_ID));
	}

	/** Get Time Type.
		@return Type of time recorded
	  */
	public int getS_TimeType_ID()
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_S_TimeType_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}
}