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
ad853a7869
commit
ae6f3029ea
@@ -205,6 +205,17 @@ class PmsFolioService(Component):
|
|||||||
payment.date, datetime.min.time()
|
payment.date, datetime.min.time()
|
||||||
).isoformat(),
|
).isoformat(),
|
||||||
transactionType=payment.pms_api_transaction_type,
|
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
|
return transactions
|
||||||
|
|||||||
Reference in New Issue
Block a user