mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: payments and statements uses
This commit is contained in:
@@ -1502,16 +1502,16 @@ class PmsFolio(models.Model):
|
|||||||
services=False,
|
services=False,
|
||||||
partner=False,
|
partner=False,
|
||||||
date=False,
|
date=False,
|
||||||
type=False,
|
pay_type=False,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
create folio payment
|
create folio payment
|
||||||
type: set cash to use statement or bank to use account.payment,
|
type: set cash to use statement or bank to use account.payment,
|
||||||
by default, use the journal type
|
by default, use the journal type
|
||||||
"""
|
"""
|
||||||
if not type:
|
if not pay_type:
|
||||||
type = journal.type
|
pay_type = journal.type
|
||||||
if type == "cash":
|
if pay_type == "cash":
|
||||||
line = self._get_statement_line_vals(
|
line = self._get_statement_line_vals(
|
||||||
journal=journal,
|
journal=journal,
|
||||||
receivable_account=receivable_account,
|
receivable_account=receivable_account,
|
||||||
|
|||||||
Reference in New Issue
Block a user