Document toolboxDocument toolbox

sp102_activity_conflicts

This table is used to determine how the system should handle an activity when it is first input or when it is modified such that it overlaps (i.e. is concurrent with) another activity for the same employee. The way in which two such "conflicting" activities are resolved depends on the type of the existing activity and of the newly input (or newly modified) activity. The options are either to allow the overlap; or to warn the user of the existing activity and prompt him to confirm the details of the new activity; or to forbid the overlap.


 

Table Definition

Field
Type
Default
Nullable
current_activitynumber(2) (tick)
new_activitynumber(2) (tick)
resolutionnumber(2) (error)

Keys 

unique (current_activity, new_activity) 
foreign key (current_activity) references sp105_activity_types (activity_type) 
foreign key (new_activity) references sp105_activity_types (activity_type)

Column Descriptions

FieldDescription
current_activityA number identifying the type of the existing activity. A null value in this column is taken to match any activity type.
new_activityA number identifying the type of the new (or newly modified) activity. A null value in this column is taken to match any activity type.
resolutionA number indicating how the conflict should be handled - 0 = silently allow the overlap. 20 = prompt the user to confirm before allowing it. 30 = forbid the overlap

 

Â