Costing Object

Manages the Costing list report parameters and data source creation.
Property Description
CreateFile Boolean flag which indicates if a general ledger journal file is to be created when the data source is created.
Data ADO recordset containing report data
DirectCreditCostCodeId
DirectCreditExpenseCodeId
ChequeCostCodeId
ChequeExpenseCodeId
CashCostCodeId
CashExpenseCodeId
BenefitCostCodeId
BenefitExpenseCodeId
SuspenseCostCodeId
SuspenseExpenseCodeId
Cost and expense code ids for totals for which cost and expense codes cannot be defined in the pay item setup.
GLAccFormat See Costing Report Options screen
GLDelim String specifying the delimiter character for records in the general ledger file
GLDelim A TextList object containing a list of valid general ledger file record delimiters
GLJournal See Costing Report options screen
GLReference See Costing Report Options screen
GLType String specifying the output format of the general ledger file
GLTypes A TextList object containing a list of valid general ledger file formats
EndDate The last pay date to include in the report
StartDate The first pay date to include in the report
PayeeIds Comma delimited string containing record identifiers of payees to include in the report. All payees will be included if PayeeIds is an empty string
PayGroupId The record identifier of the pay group to process
Payroll Object reference to the global payroll object
ReportName Full path of the custom report definition to be used to create the report. The system default layout will be used if ReportName is an empty string
Sequence Currently not used. Report data is always in CostCode, ExpenseCode, PayItem, FullName sequence
StartDate The first pay date to include in the report

The object methods provide the means to save and recall the report parameters, and to create the data source required to print the report.

Method Description
Initialise Retrieves the last recorded values of report parameters
Create (Server, Connection) Creates the report data source. Server is a string containing the name of the network server to provide the data, and Connection is the ADO connection string to establish a connection with the database on that server.
Save Saves the values of report parameters