update excel

This commit is contained in:
2026-02-10 16:15:55 +03:30
parent 0d0d9410e6
commit 83127b43ee

View File

@@ -525,6 +525,7 @@ def hatching_excel(request):
'نژاد', 'نژاد',
'سن', 'سن',
'حجم جوجه ریزی', 'حجم جوجه ریزی',
'حجم تایید تخلیه',
'حجم افزایشی', 'حجم افزایشی',
'تلفات دامپزشک(قطعه)', 'تلفات دامپزشک(قطعه)',
'تلفات اتحادیه(قطعه)', 'تلفات اتحادیه(قطعه)',
@@ -595,6 +596,7 @@ def hatching_excel(request):
'تعداد فارم ها', 'تعداد فارم ها',
'تعداد جوجه ریزی ها', 'تعداد جوجه ریزی ها',
'مجموع جوجه ریزی', 'مجموع جوجه ریزی',
'مجموع تایید تخلیه',
'مجموع تلفات دامپزشک(قطعه)', 'مجموع تلفات دامپزشک(قطعه)',
'مجموع تلفات اتحادیه(قطعه)', 'مجموع تلفات اتحادیه(قطعه)',
'مجموع تلفات کل(قطعه)', 'مجموع تلفات کل(قطعه)',
@@ -848,6 +850,7 @@ def hatching_excel(request):
poultry_hatching.chicken_breed, poultry_hatching.chicken_breed,
age, age,
poultry_hatching.quantity, poultry_hatching.quantity,
poultry_hatching.loadingSum,
poultry_hatching.increase_quantity, poultry_hatching.increase_quantity,
poultry_hatching.losses, poultry_hatching.losses,
poultry_hatching.direct_losses, poultry_hatching.direct_losses,
@@ -951,6 +954,9 @@ def hatching_excel(request):
all_total_free_commitment_quantity = filtered_poultry_hatch.aggregate( all_total_free_commitment_quantity = filtered_poultry_hatch.aggregate(
total_quantity=Sum('total_free_commitment_quantity')).get( total_quantity=Sum('total_free_commitment_quantity')).get(
'total_quantity', 0) 'total_quantity', 0)
all_loading_sum = filtered_poultry_hatch.aggregate(
total_quantity=Sum('loadingSum')).get(
'total_quantity', 0)
kill_house_requests = KillHouseRequest.objects.filter(trash=False, kill_house_requests = KillHouseRequest.objects.filter(trash=False,
province_request__poultry_request__hatching__in=filtered_poultry_hatch) province_request__poultry_request__hatching__in=filtered_poultry_hatch)
@@ -995,6 +1001,7 @@ def hatching_excel(request):
len(poultry), len(poultry),
len(filtered_poultry_hatch), len(filtered_poultry_hatch),
all_poultry_hatching_quantity, all_poultry_hatching_quantity,
all_loading_sum,
all_losses, all_losses,
all_direct_losses, all_direct_losses,
all_total_losses, all_total_losses,
@@ -1054,6 +1061,7 @@ def hatching_excel(request):
'', # تاریخ ورود به بایگانی '', # تاریخ ورود به بایگانی
'', # سن فعلی '', # سن فعلی
all_quantity, # حجم جوجه ریزی all_quantity, # حجم جوجه ریزی
all_loading_sum,
'', # حجم افزایشی '', # حجم افزایشی
all_losses, all_losses,
all_direct_losses, all_direct_losses,