[IMP] pms_api_rest: add fields in get transactions of folio

This commit is contained in:
Sara Lago
2022-11-14 14:40:40 +01:00
committed by Darío Lodeiros
parent 5ced9309af
commit 576f7d5fa6

View File

@@ -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