# -*- coding: utf-8 -*-

from django.contrib import admin

from sales.models import SalesResponsibilityInfo, SalesResponsibilityInfoModelsSaleStatisticInfo, SuperSalesResponsibilityInfoModelsSaleStatisticInfo


class SalesResponsibilityInfoAdmin(admin.ModelAdmin):
    list_display = ('brand_id', 'brand_name', 'sr_id', 'user_id', 'name', 'phone', 'user_status', 'is_auth', 'is_super', 'status', 'created_at', 'updated_at')
    list_filter = ('brand_id', 'user_status', 'is_auth', 'is_super', 'status')


class SalesResponsibilityInfoModelsSaleStatisticInfoAdmin(admin.ModelAdmin):
    list_display = ('brand_id', 'distributor_id', 'distributor_name', 'model_id', 'model_name', 'is_important', 'ymd', 'today_num', 'yesterday_num', 'current_month', 'last_month', 'position', 'status', 'created_at', 'updated_at')


class SuperSalesResponsibilityInfoModelsSaleStatisticInfoAdmin(admin.ModelAdmin):
    list_display = ('brand_id', 'sr_id', 'sr_name', 'ymd', 'today_num', 'yesterday_num', 'current_month', 'last_month', 'position', 'status', 'created_at', 'updated_at')


admin.site.register(SalesResponsibilityInfo, SalesResponsibilityInfoAdmin)
admin.site.register(SalesResponsibilityInfoModelsSaleStatisticInfo, SalesResponsibilityInfoModelsSaleStatisticInfoAdmin)
admin.site.register(SuperSalesResponsibilityInfoModelsSaleStatisticInfo, SuperSalesResponsibilityInfoModelsSaleStatisticInfoAdmin)
