Merge pull request !1246 from 李鹏宇/dev
This commit is contained in:
李鹏宇
2025-01-09 07:53:04 +00:00
committed by Gitee
@@ -686,9 +686,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') # 月租金