Handling Overtime, Remaining Costs and Work in Ruby

Aspose.Tasks - Handling Overtime, Remaining Costs and Work

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

Ruby Code

 1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
 2resource_assignments = project.getResourceAssignments().toList()
 3i = 0
 4while i < resource_assignments.size()
 5  assignment = resource_assignments.get(i)
 6  puts "Overtime Cost: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').OVERTIME_COST).toString()
 7  puts "Overtime Work: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').OVERTIME_WORK).toString()
 8  puts "Remaining Cost: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').REMAINING_COST).toString()
 9  puts "Remaining Overtime Cost: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').REMAINING_OVERTIME_COST).toString()
10  puts "Remaining Overtime Work: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').REMAINING_OVERTIME_WORK).toString()
11  puts "--------------------------------------------------------"
12  i += 1
13end

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.