from cclog.models import Log
import django_filters

class CC_Log_Filter( django_filters.FilterSet ):
	# CHOICES = [
	# 	('ascending', 'Ascending')
	# 	('descending', 'Descending')
	# ]
	# ordering = django_filters.ChoiceFilter( label='Ordering', choices=CHOICES, method='filter_by_order' )
	user_id	= django_filters.CharFilter(lookup_expr='icontains')
	vendor 	= django_filters.CharFilter(lookup_expr='icontains')
	# closed	= django_filters.BooleanFilter( default = True )

	class Meta:
		model = Log
		fields = ['amount', 'ro1', 'invoice', 'returned', 'credit', 'voided', 'closed']		# Exact
		# fields = {
		# 	'user_id':	['icontains'],
		# 	'vendor':	['icontains'],
		# 	'ro':		['icontains'],
		# 	'invoice':	['icontains'],
		# }
5a3223b4157fd37ffe46636a406075312fba21cd
<mask token>

<mask token>


class CC_Log_Filter(django_filters.FilterSet):
    <mask token>
    <mask token>


    class Meta:
        model = Log
        fields = ['amount', 'ro1', 'invoice', 'returned', 'credit',
            'voided', 'closed']

<mask token>


class CC_Log_Filter(django_filters.FilterSet):
    user_id = django_filters.CharFilter(lookup_expr='icontains')
    vendor = django_filters.CharFilter(lookup_expr='icontains')


    class Meta:
        model = Log
        fields = ['amount', 'ro1', 'invoice', 'returned', 'credit',
            'voided', 'closed']

from cclog.models import Log
import django_filters


class CC_Log_Filter(django_filters.FilterSet):
    user_id = django_filters.CharFilter(lookup_expr='icontains')
    vendor = django_filters.CharFilter(lookup_expr='icontains')


    class Meta:
        model = Log
        fields = ['amount', 'ro1', 'invoice', 'returned', 'credit',
            'voided', 'closed']

from cclog.models import Log
import django_filters

class CC_Log_Filter( django_filters.FilterSet ):
	# CHOICES = [
	# 	('ascending', 'Ascending')
	# 	('descending', 'Descending')
	# ]
	# ordering = django_filters.ChoiceFilter( label='Ordering', choices=CHOICES, method='filter_by_order' )
	user_id	= django_filters.CharFilter(lookup_expr='icontains')
	vendor 	= django_filters.CharFilter(lookup_expr='icontains')
	# closed	= django_filters.BooleanFilter( default = True )

	class Meta:
		model = Log
		fields = ['amount', 'ro1', 'invoice', 'returned', 'credit', 'voided', 'closed']		# Exact
		# fields = {
		# 	'user_id':	['icontains'],
		# 	'vendor':	['icontains'],
		# 	'ro':		['icontains'],
		# 	'invoice':	['icontains'],
		# }