db/test_seeders/eligibilities/early_career_payments/importer.rb
def insert_eligibilities
          ::EarlyCareerPayments::Eligibility.copy_from_client ELIGIBILITY_COLUMNS do |copy|
            records.each do |data|
              time = Time.now.getutc

              copy << [
                true,
                qualification(data["Post / Undergraduate / AO / Overseas"])&.last,
                eligible_itt_subject(data["Subject Code"])&.last.to_s,
                itt_academic_year(data["ITT Cohort Year"]),
                true,
                false,
                false,
                false,
                schools_id,
                time,
                time
              ]
            end
          end
        end
# the existing version of the activerecord-copy gem does not support
# binary copy of decimals, so for now 'award_amount' has been excluded
# it will be calculated dynamically, and because this is for test purposes
# does not suffer the issue previously where if GIAS data changes then a
# claimants award_amount might change between submission, approval and then
# being added to a payroll run
the existing version of the activerecord-copy gem does not support
binary copy of decimals, so for now 'award_amount' has been excluded
it will be calculated dynamically, and because this is for test purposes
does not suffer the issue previously where if GIAS data changes then a
claimants award_amount might change between submission, approval and then
being added to a payroll run
the existing version of the activerecord - copy gem does not support binary copy of decimals so for now ' award_amount ' has been excluded it will be calculated dynamically and because this is for test purposes does not suffer the issue previously where if GIAS data changes then a claimants award_amount might change between submission approval and then being added to a payroll run
def insert_eligibilities
          ::EarlyCareerPayments::Eligibility.copy_from_client ELIGIBILITY_COLUMNS do |copy|
            records.each do |data|
              time = Time.now.getutc
              copy << [
                true,
                qualification(data["Post / Undergraduate / AO / Overseas"])&.last,
                eligible_itt_subject(data["Subject Code"])&.last.to_s,
                itt_academic_year(data["ITT Cohort Year"]),
                true,
                false,
                false,
                false,
                schools_id,
                time,
                time
              ]
            end
          end
        end
def insert_eligibilities :: EarlyCareerPayments :: Eligibility . copy_from_client ELIGIBILITY_COLUMNS do | copy | records . each do | data | time = Time . now . getutc copy << [ true , qualification ( data [ "Post / Undergraduate / AO / Overseas" ] ) &. last , eligible_itt_subject ( data [ "Subject Code" ] ) &. last . to_s , itt_academic_year ( data [ "ITT Cohort Year" ] ) , true , false , false , false , schools_id , time , time ] end end end
the existing version of the activerecord-copy gem does not support
binary copy of decimals, so for now 'award_amount' has been excluded
it will be calculated dynamically, and because this is for test purposes
does not suffer the issue previously where if GIAS data changes then a
claimants award_amount might change between submission, approval and then
being added to a payroll run
the existing version of the activerecord - copy gem does not support binary copy of decimals so for now ' award_amount ' has been excluded it will be calculated dynamically and because this is for test purposes does not suffer the issue previously where if GIAS data changes then a claimants award_amount might change between submission approval and then being added to a payroll run