Skip to content

Commit 4fcef5b

Browse files
committed
Support the following fields in TimesheetEntry:
- taskId (XML name: TASKID) - costTypeId (XML name: COSTTYPEID) - laborClassId (XML name: LABORCLASSID) - laborUnionId (XML name: LABORUNIONID)
1 parent acc333d commit 4fcef5b

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

src/Functions/Projects/AbstractTimesheetEntry.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ export default abstract class AbstractTimesheetEntry extends AbstractFunction im
2929
public description: string;
3030
public notes: string;
3131
public taskRecordNo: number;
32+
public taskId: string;
33+
public costTypeId: string;
3234
public timeTypeName: string;
35+
public laborClassId: string;
36+
public laborUnionId: string;
3337
public billable: boolean;
3438
public overrideBillingRate: number;
3539
public overrideLaborCostRate: number;

src/Functions/Projects/TimesheetEntryCreate.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@ export default class TimesheetEntryCreate extends AbstractTimesheetEntry {
3131

3232
xml.writeElement("DESCRIPTION", this.description);
3333
xml.writeElement("NOTES", this.notes);
34+
xml.writeElement("TASKID", this.taskId);
3435
xml.writeElement("TASKKEY", this.taskRecordNo);
36+
xml.writeElement("COSTTYPEID", this.costTypeId);
3537
xml.writeElement("TIMETYPE", this.timeTypeName);
38+
xml.writeElement("LABORCLASSID", this.laborClassId);
39+
xml.writeElement("LABORUNIONID", this.laborUnionId);
3640
xml.writeElement("BILLABLE", this.billable);
3741

3842
xml.writeElement("EXTBILLRATE", this.overrideBillingRate);

src/Functions/Projects/TimesheetEntryUpdate.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ export default class TimesheetEntryUpdate extends AbstractTimesheetEntry {
3232

3333
xml.writeElement("DESCRIPTION", this.description);
3434
xml.writeElement("NOTES", this.notes);
35+
xml.writeElement("TASKID", this.taskId);
3536
xml.writeElement("TASKKEY", this.taskRecordNo);
37+
xml.writeElement("COSTTYPEID", this.costTypeId);
3638
xml.writeElement("TIMETYPE", this.timeTypeName);
39+
xml.writeElement("LABORCLASSID", this.laborClassId);
40+
xml.writeElement("LABORUNIONID", this.laborUnionId);
3741
xml.writeElement("BILLABLE", this.billable);
3842

3943
xml.writeElement("EXTBILLRATE", this.overrideBillingRate);

0 commit comments

Comments
 (0)