Merge pull request !1196 from dev
This commit is contained in:
李鹏宇
2025-01-08 08:19:34 +00:00
committed by Gitee
@@ -490,7 +490,7 @@ class PropertyLeaseContract(models.Model):
unit_price = unit_price + self.increment_value
monthly_amount = self.total_area * unit_price
if self.increment_method == "percentage" and self.increment_value:
monthly_amount = monthly_amount * self.increment_value
monthly_amount = monthly_amount * (1 + (self.increment_value / 100))
unit_price = monthly_amount / self.total_area
if self.increment_method == "increment_amount" and self.increment_value:
monthly_amount = monthly_amount + self.increment_value