Skip to content

Commit

Permalink
[IMP]pms_civitfun: payment service search reservation
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioLodeiros committed Oct 23, 2023
1 parent b671e58 commit 0f81faf
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions pms_civitfun/services/pms_payment_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,13 @@ def payment_register(self, pms_input_param):
.sudo()
.search(
[
("name", "=", booking_identifier),
"&",
("pms_property_id", "=", pms_property.id),
]
"|",
("name", "=", booking_identifier),
("folio_id.name", "=", booking_identifier),
],
limit=1,
)
)
if not reservation:
Expand Down Expand Up @@ -131,12 +135,13 @@ def payment_search(self, pms_input_param):
.sudo()
.search(
[
"|",
"&",
("name", "=", booking_identifier),
("folio.name", "=", booking_identifier),
("pms_property_id", "=", pms_property.id),
]
"|",
("name", "=", booking_identifier),
("folio_id.name", "=", booking_identifier),
],
limit=1,
)
)
if not reservation:
Expand Down

0 comments on commit 0f81faf

Please sign in to comment.