Handling Overtime, Remaining Costs and Work in PHP
Contents
[
Hide
Show
]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
1$project = new Project('test_tasks.mpp');
2$resource_assignments = $project->getResourceAssignments()->toList();
3$asn = new Asn();
4$i = 0;
5while ($i < sizeof($resource_assignments))
6{
7 $assignment = $resource_assignments -> get($i);
8 print "Overtime Cost: " . $assignment -> get($asn -> OVERTIME_COST);
9 print "\nOvertime Work: " . $assignment -> get($asn -> OVERTIME_WORK);
10 print "\nRemaining Cost: " . $assignment -> get($asn -> REMAINING_COST);
11 print "\nRemaining Overtime Cost: " . $assignment -> get($asn -> REMAINING_OVERTIME_COST);
12 print "\nRemaining Overtime Work: " . $assignment -> get($asn -> REMAINING_OVERTIME_WORK);
13 print "\n--------------------------------------------------------";
14 $i += 1;
15}
Download Running Code
Download Handling Overtime, Remaining Costs and Work (Aspose.Tasks) from any of the below mentioned social coding sites: