This commit is contained in:
2026-04-04 00:50:42 +03:00
parent b548021b86
commit 2904a6b730
-4
View File
@@ -55,9 +55,6 @@ class ReportService:
room_increase = [ room_increase = [
t for t in room_transactions if t.transaction_type == "increase" t for t in room_transactions if t.transaction_type == "increase"
] ]
room_decrease = [
t for t in room_transactions if t.transaction_type == "decrease"
]
wb = Workbook() wb = Workbook()
@@ -67,7 +64,6 @@ class ReportService:
await self._create_resident_sheet(wb, "Резиденты - Начисления", resident_increase, start_date, end_date) await self._create_resident_sheet(wb, "Резиденты - Начисления", resident_increase, start_date, end_date)
await self._create_resident_sheet(wb, "Резиденты - Списания", resident_decrease, start_date, end_date) await self._create_resident_sheet(wb, "Резиденты - Списания", resident_decrease, start_date, end_date)
await self._create_resident_sheet(wb, "Комнаты - Начисления", room_increase, start_date, end_date) await self._create_resident_sheet(wb, "Комнаты - Начисления", room_increase, start_date, end_date)
await self._create_resident_sheet(wb, "Комнаты - Списания", room_decrease, start_date, end_date)
output = BytesIO() output = BytesIO()
wb.save(output) wb.save(output)