mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: improvemente payment state compute
This commit is contained in:
@@ -1312,9 +1312,9 @@ class PmsFolio(models.Model):
|
||||
|
||||
# REVIEW: Must We ignored services in cancelled folios
|
||||
# pending amount?
|
||||
for folio in folios:
|
||||
if folio.state == "cancel":
|
||||
total = total - sum(folio.service_ids.mapped("price_total"))
|
||||
# for folio in folios:
|
||||
# if folio.state == "cancel":
|
||||
# total = total - sum(folio.service_ids.mapped("price_total"))
|
||||
payment_state = "not_paid"
|
||||
if (
|
||||
mls
|
||||
|
||||
Reference in New Issue
Block a user