[FIX]fixed not manually journals in folio payment

This commit is contained in:
braisab
2021-11-08 13:11:16 +01:00
parent 2ffd6cc179
commit e9fed94977
3 changed files with 11 additions and 5 deletions

View File

@@ -964,7 +964,9 @@ class PmsFolio(models.Model):
}
record.update(vals)
else:
journals = record.pms_property_id._get_payment_methods()
journals = record.pms_property_id._get_payment_methods(
automatic_included=True
)
paid_out = 0
for journal in journals:
paid_out += sum(