Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added term_end_date__c to query the members of the board
ij committed Jan 17, 2019
1 parent 0a330e8 commit f2e079e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/sf/contact.rb
@@ -161,9 +161,9 @@ def self.board_of_trustees_as_of(date=nil)
from = 'Seat__c'
date ||= Date.today
date = date.strftime('%Y-%m-%d')
where = "Committee__r.Name = 'BOT (Board of Trustees)' and
Start_Date__c <= #{date} and Actual_End_Date__c >= #{date} and
Contact__c <> null"
where = "Committee__r.Name = 'BOT (Board of Trustees)' and Start_Date__c <= #{date} and
((Actual_End_Date__c = null and Term_End_Date__c >= #{date}) or Actual_End_Date__c >= #{date})
and Contact__c <> null"
build_contacts(from, where)
end

0 comments on commit f2e079e

Please sign in to comment.