From 4fcef5bbe3c7e61257b1748e77bc66b351fe8541 Mon Sep 17 00:00:00 2001 From: Tony Liu Date: Tue, 11 Jun 2024 00:48:42 +1200 Subject: [PATCH] Support the following fields in TimesheetEntry: - taskId (XML name: TASKID) - costTypeId (XML name: COSTTYPEID) - laborClassId (XML name: LABORCLASSID) - laborUnionId (XML name: LABORUNIONID) --- src/Functions/Projects/AbstractTimesheetEntry.ts | 4 ++++ src/Functions/Projects/TimesheetEntryCreate.ts | 4 ++++ src/Functions/Projects/TimesheetEntryUpdate.ts | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/Functions/Projects/AbstractTimesheetEntry.ts b/src/Functions/Projects/AbstractTimesheetEntry.ts index ceedcb22..be8fa50c 100644 --- a/src/Functions/Projects/AbstractTimesheetEntry.ts +++ b/src/Functions/Projects/AbstractTimesheetEntry.ts @@ -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; diff --git a/src/Functions/Projects/TimesheetEntryCreate.ts b/src/Functions/Projects/TimesheetEntryCreate.ts index 86feb2a0..bd4f3134 100644 --- a/src/Functions/Projects/TimesheetEntryCreate.ts +++ b/src/Functions/Projects/TimesheetEntryCreate.ts @@ -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); diff --git a/src/Functions/Projects/TimesheetEntryUpdate.ts b/src/Functions/Projects/TimesheetEntryUpdate.ts index 9a021114..8736fc57 100644 --- a/src/Functions/Projects/TimesheetEntryUpdate.ts +++ b/src/Functions/Projects/TimesheetEntryUpdate.ts @@ -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);