Table

TSPolicyRule

Timesheet policies

Defines a timesheet policy rule. It holds a minimum and a maximum work calendar for a company, and the action to take when the rule is broken. The action is one of three levels, from none to blocking submission.

Table name
TSPolicyRule
Module
Project management and accounting
Table group
Reference
Table type
Regular
Data per company
No
Configuration key
Project
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation
Extends
SysPolicyRule

Fields (9)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
CompanyIdCompany that owns the calendars used by this policy.String
CompanyId
NoWorkCalendarTable.dataAreaIdWorkCalendarTable.dataAreaIdNone
InstanceRelationTypeShows which table in a table inheritance hierarchy the record belongs to. System field.Int64
RelationType
NoNone
MaxCalendarWork calendar used as the upper limit in the policy.String
CalendarId
NoWorkCalendarTable.CalendarIdNone
MinCalendarWork calendar used as the lower limit in the policy.String
CalendarId
NoWorkCalendarTable.CalendarIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TSActionLevel of action for a policy violation: none, allow submission and approval, or do not allow submission.Enum
TSPolicyViolationLevel (enum)
NoNone

Relations (3)

Each relation joins TSPolicyRule to another table on the fields shown.

  • MaxCalendar → WorkCalendarTable

    Join on CompanyId = WorkCalendarTable.dataAreaId, MaxCalendar = WorkCalendarTable.CalendarId

    Many TSPolicyRule records → zero or one WorkCalendarTable record

  • MinCalendar → WorkCalendarTable

    Join on CompanyId = WorkCalendarTable.dataAreaId, MinCalendar = WorkCalendarTable.CalendarId

    Many TSPolicyRule records → zero or one WorkCalendarTable record

  • SysPolicyRule_TS → SysPolicyRule

    Join on RecId = SysPolicyRule.RecId

    Zero or one TSPolicyRule record → exactly one SysPolicyRule record

Get this data out

No public entity reads from TSPolicyRule. Its data is only reachable through the application, a custom entity or a database export.

Need help with TSPolicyRule in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk