MYOB Greentree

HideShow

  • Contents
  • Index
  • Search
 
Display results with all search words

 

gtJCTimesheet


This function supplies the information needed to create a Job Cost Timesheet header. The unique identifier returned by the function call is structured as JCTIME-nnn if nnn is a sequential number that is unique for the current Excel session. This number links the gtJCTimesheetLine function call with its header call. This number is not updated to or passed through to Greentree.

Each Job Cost Timesheet is uploaded to Greentree Desktop as a complete transaction set. The timesheet either uploads in its entirety or nothing of the document is loaded into Greentree Desktop.

Company

The company code that the timesheet is to be created in.

BatchNumber

The batch number the timesheet is to be posted in. A new batch is created if it does not exist.

WeekEndDate

The week ending date for the timesheet.

PostingDate

The posting date for the transaction. This determines the financial period the transaction posts to.

EmployeeNumber

The employee code that the timesheet belongs to.

Branch

The branch code. If no branch is entered the branch assigned to the Job Cost Module Control default Profit Centre is used.

Narration

The narration for the timesheet header.

BatchDescription

The batch description if a new batch is created. If no batch description is entered it defaults to Generated Timesheet Batch.

Returns

  • Unique identifier - JCTIME-nnn to use to link the timesheet header with its lines
  • Error - if an error is encountered

Errors Returned

  • The company is required
  • The batch number is required
  • The week end date is required
  • The employee number is required
  • The posting date is required