diff --git a/lib/sf/reg_registration.rb b/lib/sf/reg_registration.rb index b26ee56..e373e91 100644 --- a/lib/sf/reg_registration.rb +++ b/lib/sf/reg_registration.rb @@ -134,6 +134,12 @@ def self.all_processed(code) self.query(where_stmt, order_stmt) end + def self.all_for_check_in(code) + where_stmt = "event_code__c = \'#{code}\' and status__c = \'processed\'" + order_stmt = self.order_by(last_name__c: "ASC") + self.query_with_reg_item_codes(where_stmt, order_stmt) + end + def self.all_checked_in(code) where_stmt = "event_code__c = \'#{code}\' and check_in_at__c != null" order_stmt = self.order_by(last_name__c: "ASC")