mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]14.0-pms_api_rest: added return transaction ids for folio after create new charge
This commit is contained in:
@@ -330,6 +330,13 @@ class PmsFolioService(Component):
|
|||||||
partner=partner_id,
|
partner=partner_id,
|
||||||
date=datetime.strptime(pms_account_payment_info.date, "%m/%d/%Y"),
|
date=datetime.strptime(pms_account_payment_info.date, "%m/%d/%Y"),
|
||||||
)
|
)
|
||||||
|
folio_transactions = self.env["account.payment"].search(
|
||||||
|
[
|
||||||
|
("folio_ids", "in", folio_id),
|
||||||
|
("pms_api_transaction_type", "=", "customer_inbound"),
|
||||||
|
]
|
||||||
|
)
|
||||||
|
return folio_transactions.ids
|
||||||
|
|
||||||
@restapi.method(
|
@restapi.method(
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user