Handling Overtime, Remaining Costs and Work in PHP

Aspose.Tasks - Handling Overtime, Remaining Costs and Work

To Handle Overtime, Remaining Costs and Work using Aspose.Tasks Java for PHP, simply invoke AssignmentOvertimeAndRemainingCosts module. Here you can see example code.

PHP Code

$project = new Project('test_tasks.mpp');
$resource_assignments = $project->getResourceAssignments()->toList();
$asn = new Asn();
$i = 0;
while ($i < sizeof($resource_assignments))
{
    $assignment = $resource_assignments -> get($i);
    print "Overtime Cost: " . $assignment -> get($asn -> OVERTIME_COST);
    print "\nOvertime Work: " . $assignment -> get($asn -> OVERTIME_WORK);
    print "\nRemaining Cost: " . $assignment -> get($asn -> REMAINING_COST);
    print "\nRemaining Overtime Cost: " . $assignment -> get($asn -> REMAINING_OVERTIME_COST);
    print "\nRemaining Overtime Work: " . $assignment -> get($asn -> REMAINING_OVERTIME_WORK);
    print "\n--------------------------------------------------------";
    $i += 1;
}

Download Running Code

Download Handling Overtime, Remaining Costs and Work (Aspose.Tasks) from any of the below mentioned social coding sites: