mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: reservation service lines with negative amounts
This commit is contained in:
@@ -154,7 +154,7 @@ class PmsServiceLine(models.Model):
|
|||||||
def _compute_day_amount_service(self):
|
def _compute_day_amount_service(self):
|
||||||
for line in self:
|
for line in self:
|
||||||
amount_service = line.price_unit
|
amount_service = line.price_unit
|
||||||
if amount_service > 0:
|
if amount_service:
|
||||||
currency = line.service_id.currency_id
|
currency = line.service_id.currency_id
|
||||||
product = line.product_id
|
product = line.product_id
|
||||||
price = amount_service * (1 - (line.discount or 0.0) * 0.01)
|
price = amount_service * (1 - (line.discount or 0.0) * 0.01)
|
||||||
|
|||||||
Reference in New Issue
Block a user