#NEWLINE# @ property #NEWLINE# def sms_billables( self ) : #NEWLINE# #INDENT# selected_billables = SmsBillable . objects . filter ( date_sent__gte = DateSentFilter . get_start_date ( self . request ) , date_sent__lte = DateSentFilter . get_end_date ( self . request ) ) #NEWLINE# if DateCreatedFilter . use_filter ( self . request ) : #NEWLINE# #INDENT# selected_billables = selected_billables . filter ( date_created__gte = DateCreatedFilter . get_start_date ( self . request ) , date_created__lte = DateCreatedFilter . get_end_date ( self . request ) ) #NEWLINE# #UNINDENT# show_billables = ShowBillablesFilter . get_value ( self . request , gateway_type . domain ) #NEWLINE# if show_billables : #NEWLINE# #INDENT# selected_billables = selected_billables . filter ( is_valid = ( show_billables == ShowBillablesFilter . VALID ) ) #NEWLINE# #UNINDENT# domain = DomainFilter . get_value ( self . request , self . domain ) #NEWLINE# if domain : #NEWLINE# #INDENT# selected_billables = selected_billables . filter ( domain = domain ) #NEWLINE# #UNINDENT# has_gateway_fee = HasGatewayFeeFilter . get_value ( self . request , self . domain ) #NEWLINE# if has_gateway_fee : #NEWLINE# #INDENT# if ( has_gateway_fee == HasGatewayFeeFilter . YES ) : #NEWLINE# #INDENT# selected_billables = selected_billables . exclude ( gateway_fee = None ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# selected_billables = selected_billables . filter ( gateway_fee = None ) #NEWLINE# #UNINDENT# #UNINDENT# gateway_type = GatewayTypeFilter . get_value ( self . request , self . domain ) #NEWLINE# if gateway_type : #NEWLINE# #INDENT# selected_billables = selected_billables . filter ( gateway_fee__criteria__backend_api_id = gateway_type ) #NEWLINE# #UNINDENT# return selected_billables