app/controllers/employees_controller.rb
# Page for viewing an existing employee
Page for viewing an existing employee
Page for viewing an existing employee
def show
    @total_services = @service_allocations.length
    @total_products = @product_allocations.length
    @total_service_allocation = @employee.get_total_service_allocation(@year, @allocation_precision)
    @total_product_allocation = @employee.get_total_product_allocation(@year, @allocation_precision)
  end
def show @total_services = @service_allocations . length @total_products = @product_allocations . length @total_service_allocation = @employee . get_total_service_allocation ( @year , @allocation_precision ) @total_product_allocation = @employee . get_total_product_allocation ( @year , @allocation_precision ) end
Page for viewing an existing employee
Page for viewing an existing employee