first push
This commit is contained in:
179
panel/ReportingPanel/helper.py
Normal file
179
panel/ReportingPanel/helper.py
Normal file
@@ -0,0 +1,179 @@
|
||||
poultry_request_fields = [
|
||||
'poultry__user__mobile',
|
||||
'poultry__user__fullname',
|
||||
'poultry__user__first_name',
|
||||
'poultry__user__last_name',
|
||||
'poultry__user__national_id',
|
||||
'poultry__user__national_code',
|
||||
'poultry__address__province__name',
|
||||
'poultry__address__city__name',
|
||||
'poultry__natinal_id',
|
||||
'poultry__unit_name',
|
||||
'poultry__gis_code',
|
||||
'poultry__operating_licence_capacity',
|
||||
'poultry__number_of_halls',
|
||||
'poultry__person_type',
|
||||
'poultry__economic_code',
|
||||
'poultry__system_code',
|
||||
'poultry__epidemiological_code',
|
||||
'poultry__total_capacity',
|
||||
'poultry__licence_number',
|
||||
'poultry__health_certificate_number',
|
||||
'poultry__number_of_requests',
|
||||
'poultry__hatching_date',
|
||||
'hatching__quantity',
|
||||
'hatching__chicken_breed',
|
||||
'poultry__last_party_date',
|
||||
'poultry__number_of_incubators',
|
||||
'poultry__herd_age_by_day',
|
||||
'poultry__herd_age_by_week',
|
||||
'poultry__number_of_party',
|
||||
'poultry__communication_type',
|
||||
'poultry__cooperative',
|
||||
'poultry__date_of_register',
|
||||
'poultry__unit_status',
|
||||
'poultry__samasat_user_code',
|
||||
'poultry__incubation_date',
|
||||
'poultry__address__breeding_unique_id',
|
||||
'order_code',
|
||||
'quantity',
|
||||
'chicken_breed',
|
||||
'Index_weight',
|
||||
'user__address__postal_code',
|
||||
'user__company'
|
||||
|
||||
# 'bar_code',
|
||||
]
|
||||
|
||||
user_fields = [
|
||||
'mobile',
|
||||
'fullname',
|
||||
'first_name',
|
||||
'last_name',
|
||||
'province__name',
|
||||
'city__name',
|
||||
'national_code',
|
||||
'national_id',
|
||||
]
|
||||
|
||||
city_operator_fields = [
|
||||
'city_operator_system__user__mobile',
|
||||
'city_operator_system__user__fullname',
|
||||
'city_operator_system__user__first_name',
|
||||
'city_operator_system__user__last_name',
|
||||
'city_operator_system__user__national_code',
|
||||
'city_operator_system__user__national_id',
|
||||
]
|
||||
|
||||
province_operator_fields = [
|
||||
'province_operator_system__user__mobile',
|
||||
'province_operator_system__user__fullname',
|
||||
'province_operator_system__user__first_name',
|
||||
'province_operator_system__user__last_name',
|
||||
'province_operator_system__user__national_code',
|
||||
'province_operator_system__user__national_id',
|
||||
]
|
||||
|
||||
kill_house_operator_fields = [
|
||||
'killhouse_user__userprofile__mobile',
|
||||
'killhouse_user__userprofile__fullname',
|
||||
'killhouse_user__userprofile__first_name',
|
||||
'killhouse_user__userprofile__last_name',
|
||||
'killhouse_user__userprofile__national_code',
|
||||
'killhouse_user__userprofile__national_id',
|
||||
'killhouse_user__name',
|
||||
'killhouse_user__phone',
|
||||
'killhouse_user__capacity',
|
||||
'capacity',
|
||||
'quantity',
|
||||
'bar_code',
|
||||
]
|
||||
|
||||
vet_operator_fields = [
|
||||
'vet__user__mobile',
|
||||
'vet__user__fullname',
|
||||
'vet__user__first_name',
|
||||
'vet__user__last_name',
|
||||
'vet__user__national_code',
|
||||
'vet__user__national_id',
|
||||
]
|
||||
|
||||
poultry_hatching_fields = [
|
||||
'quantity',
|
||||
'losses',
|
||||
'left_over',
|
||||
'hall',
|
||||
'chicken_breed',
|
||||
'period',
|
||||
'state'
|
||||
]
|
||||
|
||||
|
||||
#new
|
||||
|
||||
poultry_filterset_fields = [
|
||||
'user__mobile',
|
||||
'user__first_name',
|
||||
'user__last_name',
|
||||
'user__city__name',
|
||||
'user__province_name',
|
||||
'unit_name',
|
||||
'gis_code',
|
||||
'operating_licence_capacity',
|
||||
'number_of_halls',
|
||||
'economic_code',
|
||||
'system_code',
|
||||
'epidemiological_code',
|
||||
'total_capacity',
|
||||
'licence_number',
|
||||
'health_certificate_number',
|
||||
]
|
||||
|
||||
poultry_hatching_filterset_fields = [
|
||||
'quantity',
|
||||
'losses',
|
||||
'left_over',
|
||||
'hall',
|
||||
'chicken_breed',
|
||||
'period',
|
||||
'state'
|
||||
]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
poultry_request_new_fields = [
|
||||
'poultry__user__mobile',
|
||||
'poultry__user__fullname',
|
||||
'poultry__user__first_name',
|
||||
'poultry__user__last_name',
|
||||
'poultry__user__national_id',
|
||||
'poultry__user__national_code',
|
||||
'poultry__address__province__name',
|
||||
'poultry__address__city__name',
|
||||
'poultry__unit_name',
|
||||
'order_code',
|
||||
'quantity',
|
||||
'chicken_breed',
|
||||
'Index_weight',
|
||||
|
||||
# 'bar_code',
|
||||
]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
kill_house_request_filterset_fields = [
|
||||
'killhouse_user__kill_house_operator__user__fullname',
|
||||
'killhouse_user__kill_house_operator__user__mobile',
|
||||
'killhouse_user__kill_house_operator__user__city__name',
|
||||
'province_request__poultry_request__poultry__user__fullname',
|
||||
'province_request__poultry_request__poultry__user__mobile',
|
||||
'province_request__poultry_request__order_code',
|
||||
'province_request__poultry_request__order_code',
|
||||
'bar_code',
|
||||
|
||||
]
|
||||
Reference in New Issue
Block a user