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

 1$project = new Project('test_tasks.mpp');
 2
 3$resource_assignments = $project->getResourceAssignments()->toList();
 4
 5$asn = new Asn();
 6
 7$i = 0;
 8
 9while ($i < sizeof($resource_assignments))
10
11{
12
13    $assignment = $resource_assignments -> get($i);
14
15    print "Overtime Cost: " . $assignment -> get($asn -> OVERTIME_COST);
16
17    print "\nOvertime Work: " . $assignment -> get($asn -> OVERTIME_WORK);
18
19    print "\nRemaining Cost: " . $assignment -> get($asn -> REMAINING_COST);
20
21    print "\nRemaining Overtime Cost: " . $assignment -> get($asn -> REMAINING_OVERTIME_COST);
22
23    print "\nRemaining Overtime Work: " . $assignment -> get($asn -> REMAINING_OVERTIME_WORK);
24
25    print "\n--------------------------------------------------------";
26
27    $i += 1;
28
29}

Download Running Code

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

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.