app/models/credit_assignment.rb
# facilitator has approved the credit for transmittal to the district. 
# move the credit course names over and record who approved the credit for transmittal to district
facilitator has approved the credit for transmittal to the district.
move the credit course names over and record who approved the credit for transmittal to district
facilitator has approved the credit for transmittal to the district . move the credit course names over and record who approved the credit for transmittal to district
def district_approve(user, date)
	  raise "Can't approve this, as it has already been approved for recording at the district" if self.credit_transmittal_batch_id
	  self.district_finalize_approved = true
    self.district_finalize_approved_by = user.last_name_first
    self.district_finalize_approved_on = date
    denormalize_credit
    save!
    self.child_credit_assignments.each do |ca|
      if ca.denormalize_credit
        ca.save
      end
    end
	end
def district_approve ( user , date ) raise "Can't approve this, as it has already been approved for recording at the district" if self . credit_transmittal_batch_id self . district_finalize_approved = true self . district_finalize_approved_by = user . last_name_first self . district_finalize_approved_on = date denormalize_credit save! self . child_credit_assignments . each do | ca | if ca . denormalize_credit ca . save end end end
facilitator has approved the credit for transmittal to the district.
facilitator has approved the credit for transmittal to the district .
# set denormalized credits info
user
<not_specific>
date
<not_specific>