app/models/applications/application_for_offering.rb
def total_requested_award_amount
    total = 0.0
    awards.valid.each do |a|
      total += a.amount_awarded.blank? ? a.amount_requested : a.amount_awarded
    end
    total
  end
# Returns the sum of all requested awards in Numeric format. If you want a printable list of the awards, use award_list.
Returns the sum of all requested awards in Numeric format. If you want a printable list of the awards, use award_list.
Returns the sum of all requested awards in Numeric format . If you want a printable list of the awards use award_list .
def total_requested_award_amount
    total = 0.0
    awards.valid.each do |a|
      total += a.amount_awarded.blank? ? a.amount_requested : a.amount_awarded
    end
    total
  end
def total_requested_award_amount total = 0.0 awards . valid . each do | a | total += a . amount_awarded . blank? ? a . amount_requested : a . amount_awarded end total end
Returns the sum of all requested awards in Numeric format.
Returns the sum of all requested awards in Numeric format .