mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms_api_rest: add fields in get transactions of folio
This commit is contained in:
committed by
Darío Lodeiros
parent
5ced9309af
commit
576f7d5fa6
@@ -205,6 +205,17 @@ class PmsFolioService(Component):
|
||||
payment.date, datetime.min.time()
|
||||
).isoformat(),
|
||||
transactionType=payment.pms_api_transaction_type,
|
||||
partnerId=payment.partner_id.id
|
||||
if payment.partner_id
|
||||
else None,
|
||||
partnerName=payment.partner_id.name
|
||||
if payment.partner_id
|
||||
else None,
|
||||
reference=payment.ref if payment.ref else None,
|
||||
isReconcilied=(
|
||||
payment.reconciled_statements_count > 0
|
||||
or payment.reconciled_invoices_count > 0
|
||||
),
|
||||
)
|
||||
)
|
||||
return transactions
|
||||
|
||||
Reference in New Issue
Block a user