From ab39bc2e27490f5102c623e4da52af1a85c46ddb Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 19 Jun 2025 22:15:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wizard/property_rental_wizard.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/yuthon_property_approval/wizard/property_rental_wizard.py b/yuthon_property_approval/wizard/property_rental_wizard.py index dbffa8668..54aa02443 100644 --- a/yuthon_property_approval/wizard/property_rental_wizard.py +++ b/yuthon_property_approval/wizard/property_rental_wizard.py @@ -135,20 +135,6 @@ class PropertyRentalWizard(models.Model): if start_year_month <= date_field_year_month < end_year_month: self.create_rent_list(record, rent_id, adjusted_rent, start_date, multiplier) self.create_management_list(record, start_date) - elif start_year_month <= date_field_year_month <= end_year_month: - if rent_id.end_data.day < days: - self.create_rent_list(record, rent_id, adjusted_rent, rent_id.start_data,multiplier) - self.create_management_list(record, start_date) - # 尝试处理下一个租金分解 - rent_ids = record.breakdown_ids - current_index = rent_ids.ids.index(rent_id.id) - try: - next_rent_id = rent_ids[current_index + 1] - adjusted_rent_next = ( next_rent_id.period_rent if period_month else next_rent_id.monthly_amount) * multiplier - self.create_rent_list(record, next_rent_id, adjusted_rent_next, next_rent_id.start_data,multiplier) - self.create_management_list(record, start_date) - except (IndexError, ValueError): - pass def get_multiplier(self, cycle_dict): """根据周期类型返回相应的租金乘数"""