Skip to content

Commit

Permalink
[IMP]pms: reservation service lines with negative amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioLodeiros committed Jan 14, 2025
1 parent c9a2f72 commit 56139e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pms/models/pms_service_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class PmsServiceLine(models.Model):
def _compute_day_amount_service(self):
for line in self:
amount_service = line.price_unit
if amount_service > 0:
if amount_service:
currency = line.service_id.currency_id
product = line.product_id
price = amount_service * (1 - (line.discount or 0.0) * 0.01)
Expand Down

0 comments on commit 56139e8

Please sign in to comment.