public class TimesheetEntry
extends java.lang.Object
Timesheet
objects, which are used as input to
create timesheets and also to return timesheet data from getTimesheet.
Note the following: Admin Time Type IDs are defined in the Timesheet Administrative Time Types lookup list in the Innotas app (needed for Admin entries, Level3Id).
TimesheetEntry includes the following elements:
billableRate
- (Optional) Not used if billing turned off.companyId
- (Optional)entryDate
- The date for which to enter the hours, in the form of YYYY/mm/ddddentryHours
- The hours worked for the specified date.entryId
- (Optional) For Update only.entryTypeId
- 1 for Project, 6 for Account, 99 for Portfolio, 2 for AdmininternalRate
- (Optional)isbillable
- (Optional)isProductive
- (Optional)level1Id
- Value depends on entryType ID; see below
level2Id
- Value depends on entryType ID; see below
level3Id
- Value depends on entryType ID; see below
locationId
- If customer class 107 turned on.notes
- (Optional)state
- (Optional) Only populated on return.timesheetId
- Generated by system.externalId
- (Optional) String, max length 20 bytes. Uniquely identifies timesheet entries when integrating time data from an external system.
<ax21:entriesProject xsi:type="ax21:TimesheetEntry">
<ax21:billableRate>150.0</ax21:billableRate>
<ax21:companyId>0</ax21:companyId>
<ax21:entryDate>2014/01/27</ax21:entryDate>
<ax21:entryHours>10.0</ax21:entryHours>
<ax21:entryId>1163233638</ax21:entryId>
<ax21:entryTypeId>1</ax21:entryTypeId>
<ax21:internalRate>100.0</ax21:internalRate>
<ax21:isBillable>false</ax21:isBillable>
<ax21:isProductive>false</ax21:isProductive>
<ax21:level1Id>73418480</ax21:level1Id>
<ax21:level2Id>73456692</ax21:level2Id>
<ax21:level3Id>811177964</ax21:level3Id>
<ax21:locationId>0</ax21:locationId>
<ax21:notes/>
<ax21:state>Started</ax21:state>
<ax21:timesheetId>812498409</ax21:timesheetId>
<ax21:externalId>JIRA123</ax21:externalId>
</ax21:entriesProject>
Constructor and Description |
---|
TimesheetEntry() |
Modifier and Type | Method and Description |
---|---|
double |
getBillableRate() |
long |
getCompanyId() |
java.lang.String |
getEntryDate() |
double |
getEntryHours() |
long |
getEntryId() |
long |
getEntryTypeId() |
java.lang.String |
getExternalId() |
double |
getInternalRate() |
boolean |
getIsBillable() |
boolean |
getIsProductive() |
long |
getLevel1Id() |
long |
getLevel2Id() |
long |
getLevel3Id() |
long |
getLocationId() |
java.lang.String |
getNotes() |
java.lang.String |
getState() |
long |
getTimesheetId() |
OMElement |
serialize(OMFactory fac) |
void |
setBillableRate(double pVal) |
void |
setCompanyId(long pVal) |
void |
setEntryDate(java.lang.String pVal) |
void |
setEntryHours(double pVal) |
void |
setEntryId(long pVal) |
void |
setEntryTypeId(long pVal) |
void |
setExternalId(java.lang.String externalId) |
void |
setInternalRate(double pVal) |
void |
setIsBillable(boolean pVal) |
void |
setIsProductive(boolean pVal) |
void |
setLevel1Id(long pVal) |
void |
setLevel2Id(long pVal) |
void |
setLevel3Id(long pVal) |
void |
setLocationId(long pVal) |
void |
setNotes(java.lang.String pVal) |
void |
setState(java.lang.String pVal) |
void |
setTimesheetId(long pVal) |
public java.lang.String getExternalId()
public void setExternalId(java.lang.String externalId)
public void setTimesheetId(long pVal)
public long getTimesheetId()
public void setEntryId(long pVal)
public long getEntryId()
public void setEntryDate(java.lang.String pVal)
public java.lang.String getEntryDate()
public void setEntryHours(double pVal)
public double getEntryHours()
public void setLocationId(long pVal)
public long getLocationId()
public void setCompanyId(long pVal)
public long getCompanyId()
public void setNotes(java.lang.String pVal)
public java.lang.String getNotes()
public void setIsBillable(boolean pVal)
public boolean getIsBillable()
public void setIsProductive(boolean pVal)
public boolean getIsProductive()
public void setBillableRate(double pVal)
public double getBillableRate()
public void setInternalRate(double pVal)
public double getInternalRate()
public void setEntryTypeId(long pVal)
public long getEntryTypeId()
public void setState(java.lang.String pVal)
public java.lang.String getState()
public void setLevel1Id(long pVal)
public long getLevel1Id()
public void setLevel2Id(long pVal)
public long getLevel2Id()
public void setLevel3Id(long pVal)
public long getLevel3Id()
public OMElement serialize(OMFactory fac)