From ecf2297f5ab36f0fbded93d49868b0467195d1bf Mon Sep 17 00:00:00 2001 From: ljmwkx <1340053001@qq.com> Date: Thu, 9 Jan 2025 15:45:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_property_approval/models/property_lease_contract.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py index e42e2721f..8bfe51842 100644 --- a/yuthon_property_approval/models/property_lease_contract.py +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -687,9 +687,9 @@ class PropertyLeaseContract(models.Model): monthly_amount = self.total_area * unit_price monthly_amount = float_round(monthly_amount, precision_digits=0, rounding_method='HALF-UP') # 月租金 if self.increment_method == "percentage" and self.increment_value: - monthly_amount = monthly_amount * (1 + (self.increment_value / 100)) + unit_price = unit_price * (1 + (self.increment_value / 100)) + monthly_amount = self.total_area * unit_price monthly_amount = float_round(monthly_amount, precision_digits=0, rounding_method='HALF-UP') # 月租金 - unit_price = monthly_amount / self.total_area if self.increment_method == "increment_amount" and self.increment_value: monthly_amount = monthly_amount + self.increment_value monthly_amount = float_round(monthly_amount, precision_digits=0, rounding_method='HALF-UP') # 月租金