Tsk.OvertimeCost

Tsk.OvertimeCost field

The total overtime cost for a task, for a resource on all assigned tasks, or for a resource assignment.

public static readonly Key<decimal, TaskKey> OvertimeCost;

Examples

Shows how to read task overtimes.

var project = new Project(DataDir + "TaskOvertimes.mpp");

// Read overtime and percentage completion for tasks
foreach (var task in project.RootTask.Children)
{
    Console.WriteLine(task.Get(Tsk.OvertimeCost));
    Console.WriteLine(task.Get(Tsk.OvertimeWork));
    Console.WriteLine(task.Get(Tsk.PercentComplete));
    Console.WriteLine(task.Get(Tsk.PercentWorkComplete));
    Console.WriteLine(task.Get(Tsk.PhysicalPercentComplete));

    // Set percent complete
    task.Set(Tsk.PercentComplete, 100);
}

See Also