Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Display legacy in Larchmont, remove zero billings and the matching at…

…tendings
  • Loading branch information...
commit 7b677fef769cec1d0f8dfc3af04cd1fd0db8056e 1 parent 124ff87
@hiltmon authored
View
3  bin/gen_larchmont.rb
@@ -31,7 +31,8 @@
street: '75 Larchmont Ave',
city: 'Larchmont',
state: 'NY',
- post_code: '10538'
+ post_code: '10538',
+ show_legacy: true
}
config[:users] = [
View
2  config/larchmont.json
@@ -1 +1 @@
-{"import":{"start_year":2008,"year_is_at_end_of_period":false,"load_memorials":true,"load_children":true},"marks":{"tribute_bank_account_code":"10-005-11000","tribute_income_account_code":"10-010-41100","deposit_bank_account_code":"10-005-11000","membership_tag_code":0,"person_gender_code":2,"spouse_gender_code":3},"company":{"subdomain":"larchmont","name":"Larchmont Temple","fiscal_year_month":7,"email":"contact@larchmonttemple.org","phone":"914-834-6120","fax":"914-834-6503","street":"75 Larchmont Ave","city":"Larchmont","state":"NY","post_code":"10538"},"users":[{"name":"admin","email":"hiltmon@shukaico.com","subdomain":"larchmont","password":"admin00","password_confirmation":"admin00","role":"Admin"},{"name":"marcelline","email":"marcell@larchmonttemple.org","subdomain":"larchmont","password":"marcelline00","password_confirmation":"marcelline00","role":"Admin"},{"name":"alexis","email":"alexis@shukaico.com","subdomain":"larchmont","password":"alexis00","password_confirmation":"alexis00","role":"Admin"}],"tags":{"B":{"name":"Non Resident Member","implies":true},"F":{"name":"Full Family Member","implies":true},"I":{"name":"Individiual Member","implies":true},"H":{"name":"Honorary Member","implies":true},"A":{"name":"Adjusted Member","implies":true},"R":{"name":"Religious School Member","implies":true},"S":{"name":"Single Member","implies":true},"M":{"name":"M-Member","implies":true},"P":{"name":"P-Member","implies":true},"N":{"name":"No Billing Member","implies":true},"Z":{"name":"Z-Member","implies":true},"D":{"name":"D-Member","implies":true}}}
+{"import":{"start_year":2008,"year_is_at_end_of_period":false,"load_memorials":true,"load_children":true},"marks":{"tribute_bank_account_code":"10-005-11000","tribute_income_account_code":"10-010-41100","deposit_bank_account_code":"10-005-11000","membership_tag_code":0,"person_gender_code":2,"spouse_gender_code":3},"company":{"subdomain":"larchmont","name":"Larchmont Temple","fiscal_year_month":7,"email":"contact@larchmonttemple.org","phone":"914-834-6120","fax":"914-834-6503","street":"75 Larchmont Ave","city":"Larchmont","state":"NY","post_code":"10538","show_legacy":true},"users":[{"name":"admin","email":"hiltmon@shukaico.com","subdomain":"larchmont","password":"admin00","password_confirmation":"admin00","role":"Admin"},{"name":"marcelline","email":"marcell@larchmonttemple.org","subdomain":"larchmont","password":"marcelline00","password_confirmation":"marcelline00","role":"Admin"},{"name":"alexis","email":"alexis@shukaico.com","subdomain":"larchmont","password":"alexis00","password_confirmation":"alexis00","role":"Admin"}],"tags":{"B":{"name":"Non Resident Member","implies":true},"F":{"name":"Full Family Member","implies":true},"I":{"name":"Individiual Member","implies":true},"H":{"name":"Honorary Member","implies":true},"A":{"name":"Adjusted Member","implies":true},"R":{"name":"Religious School Member","implies":true},"S":{"name":"Single Member","implies":true},"M":{"name":"M-Member","implies":true},"P":{"name":"P-Member","implies":true},"N":{"name":"No Billing Member","implies":true},"Z":{"name":"Z-Member","implies":true},"D":{"name":"D-Member","implies":true}}}
View
19 lib/kifu-tools/marks_import.rb
@@ -238,7 +238,7 @@ def generate_person_row(record)
@person_milestones << PersonMilestone.new(
person_id: person[:legacy_id],
milestone_id: 1,
- on: record.birth1
+ milestone_date: record.birth1
)
end
@@ -311,7 +311,7 @@ def generate_spouse_row(record, person)
@person_milestones << PersonMilestone.new(
person_id: spouse[:legacy_id],
milestone_id: 1,
- on: record.birth2
+ milestone_date: record.birth2
)
end
@@ -319,12 +319,12 @@ def generate_spouse_row(record, person)
@person_milestones << PersonMilestone.new(
person_id: person[:legacy_id],
milestone_id: 5,
- on: record.anniv
+ milestone_date: record.anniv
)
@person_milestones << PersonMilestone.new(
person_id: spouse[:legacy_id],
milestone_id: 5,
- on: record.anniv
+ milestone_date: record.anniv
)
end
else
@@ -437,7 +437,7 @@ def add_memorials_to_people
@person_milestones << PersonMilestone.new(
person_id: relative[:legacy_id],
milestone_id: 2,
- on: memorial_person[:death_date]
+ milestone_date: memorial_person[:death_date]
)
else
display_warn "Person", "#{relative.errors.join(', ')} : #{relative.description}"
@@ -615,7 +615,7 @@ def add_children_to_people
@person_milestones << PersonMilestone.new(
person_id: child[:legacy_id],
milestone_id: 1,
- on: record.bday
+ milestone_date: record.bday
)
end
@@ -623,7 +623,7 @@ def add_children_to_people
@person_milestones << PersonMilestone.new(
person_id: child[:legacy_id],
milestone_id: 7,
- on: record.bmdate
+ milestone_date: record.bmdate
)
end
@@ -1406,6 +1406,11 @@ def generate_for_adjustments(which, file_path, year)
if attending.present?
if attending[:no_of].to_i > 1
attending[:no_of] = attending[:no_of].to_i - 1
+ else
+ # Payable is zero, since all events are manual
+ # Remove the attendee
+ # puts "STOP #{person[:legacy_id]}/#{event[:legacy_id]} for #{record.trnsamnt}"
+ @attendings.delete("#{person[:legacy_id]}/#{event[:legacy_id]}")
end
end
View
4 lib/kifu-tools/person_milestone.rb
@@ -17,7 +17,7 @@ def initialize(params = {})
@model = {
person_id: '',
milestone_id: '',
- on: '',
+ milestone_date: '',
after_sunset: false
}
@model.merge!(params)
@@ -26,7 +26,7 @@ def initialize(params = {})
def errors
array = []
array << "Must have a milestone id" if @model[:milestone_id] == ''
- array << "Must have a date" if @model[:on] == ''
+ array << "Must have a milestone_date" if @model[:milestone_date] == ''
array
end
Please sign in to comment.
Something went wrong with that request. Please try again.