Table

TSPolicyViolationsCache

Cache table for policy violations on timesheets

Cache table that stores policy violations found on timesheets. Each record links a timesheet, a weekly period and a policy rule. It also holds the policy type, the rule type and the violation level.

Table name
TSPolicyViolationsCache
Module
Project management and accounting
Table group
Miscellaneous
Table type
Regular
Data per company
Yes
Configuration key
Project
Primary index
None
Replacement key
None
Key fields
None
Model
Foundation

Fields (11)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PolicyRuleTypeType of policy rule that was broken, such as user-defined or purchasing rule.Enum
SysPolicyRuleTypeEnum (enum)
NoNone
PolicyTypeType of policy involved, chosen from a list of policy kinds.Enum
SysPolicyTypeEnum (enum)
NoNone
PolicyViolationLevelLevel of the violation, which shows what action the policy requires.Enum
TSPolicyViolationLevel (enum)
NoNone
ProjPeriodTimesheetWeekPoints to the timesheet weekly period where the violation was found.Int64
RefRecId
NoProjPeriodTimesheetWeek.RecIdNone
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
RulePoints to the timesheet policy rule that was broken.Int64
RefRecId
YesTSPolicyRule.RecIdNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TimesheetNbrNumber of the timesheet that has the violation.String
TSTimesheetNbr
NoTSTimesheetTable.TimesheetNbrNone

Indexes (3)

Relations (3)

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

  • ProjPeriodTimesheetWeek → ProjPeriodTimesheetWeek

    Join on ProjPeriodTimesheetWeek = ProjPeriodTimesheetWeek.RecId

    Many TSPolicyViolationsCache records → zero or one ProjPeriodTimesheetWeek record

  • TSPolicyRule → TSPolicyRule

    Join on Rule = TSPolicyRule.RecId

    Many TSPolicyViolationsCache records → exactly one TSPolicyRule record

  • TSTimesheetTable → TSTimesheetTable

    Join on TimesheetNbr = TSTimesheetTable.TimesheetNbr

    Many TSPolicyViolationsCache records → exactly one TSTimesheetTable record

Get this data out

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

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

Email sales@drdynamics.co.uk