Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request Internet2-TSG#3 from eajeanes/feature/IFMC-997_exc…
…lude_existing_business_cert_subscribers

Feature/ifmc 997 exclude existing business cert subscribers
dshafer committed Aug 24, 2018
2 parents c73eca7 + 2defed6 commit 0a330e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sf/opportunity.rb
@@ -35,7 +35,7 @@ def self.inc_participations(since_date=nil)
def self.cert_subscribers(since_date=nil)
since_date ||=Date.today
since = since_date.to_date.to_s
sobjects = Sf.client.query("select #{FIELDS_SELECT_STR} from Opportunity where Name like '%Certificate Service%' and Type not like '%Existing Business%' and IsWon = true and CloseDate >= #{since}")
sobjects = Sf.client.query("select #{FIELDS_SELECT_STR} from Opportunity where Name like '%Certificate Service%' and (not Type like '%Existing Business%') and IsWon = true and CloseDate >= #{since}")
build_collection sobjects unless sobjects.blank?
end

0 comments on commit 0a330e8

Please sign in to comment.