Skip to content

Commit

Permalink
Support the following fields in TimesheetEntry:
Browse files Browse the repository at this point in the history
- taskId (XML name: TASKID)
- costTypeId (XML name: COSTTYPEID)
- laborClassId (XML name: LABORCLASSID)
- laborUnionId (XML name: LABORUNIONID)
  • Loading branch information
buptliuhs committed Jun 10, 2024
1 parent acc333d commit 4fcef5b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Functions/Projects/AbstractTimesheetEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ export default abstract class AbstractTimesheetEntry extends AbstractFunction im
public description: string;
public notes: string;
public taskRecordNo: number;
public taskId: string;
public costTypeId: string;
public timeTypeName: string;
public laborClassId: string;
public laborUnionId: string;
public billable: boolean;
public overrideBillingRate: number;
public overrideLaborCostRate: number;
Expand Down
4 changes: 4 additions & 0 deletions src/Functions/Projects/TimesheetEntryCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ export default class TimesheetEntryCreate extends AbstractTimesheetEntry {

xml.writeElement("DESCRIPTION", this.description);
xml.writeElement("NOTES", this.notes);
xml.writeElement("TASKID", this.taskId);
xml.writeElement("TASKKEY", this.taskRecordNo);
xml.writeElement("COSTTYPEID", this.costTypeId);
xml.writeElement("TIMETYPE", this.timeTypeName);
xml.writeElement("LABORCLASSID", this.laborClassId);
xml.writeElement("LABORUNIONID", this.laborUnionId);
xml.writeElement("BILLABLE", this.billable);

xml.writeElement("EXTBILLRATE", this.overrideBillingRate);
Expand Down
4 changes: 4 additions & 0 deletions src/Functions/Projects/TimesheetEntryUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ export default class TimesheetEntryUpdate extends AbstractTimesheetEntry {

xml.writeElement("DESCRIPTION", this.description);
xml.writeElement("NOTES", this.notes);
xml.writeElement("TASKID", this.taskId);
xml.writeElement("TASKKEY", this.taskRecordNo);
xml.writeElement("COSTTYPEID", this.costTypeId);
xml.writeElement("TIMETYPE", this.timeTypeName);
xml.writeElement("LABORCLASSID", this.laborClassId);
xml.writeElement("LABORUNIONID", this.laborUnionId);
xml.writeElement("BILLABLE", this.billable);

xml.writeElement("EXTBILLRATE", this.overrideBillingRate);
Expand Down

0 comments on commit 4fcef5b

Please sign in to comment.