[FIX]pms_api_rest: mapper agencyId 0 to False in ORM

This commit is contained in:
Darío Lodeiros
2022-10-30 11:56:26 +01:00
parent 184517b795
commit b4aa797638

View File

@@ -350,7 +350,9 @@ class PmsFolioService(Component):
vals = {
"pms_property_id": pms_folio_info.pmsPropertyId,
"sale_channel_origin_id": pms_folio_info.saleChannelId,
"agency_id": pms_folio_info.agencyId,
"agency_id": pms_folio_info.agencyId
if pms_folio_info.agencyId
else False,
"reservation_type": pms_folio_info.reservationType,
}
if pms_folio_info.partnerId: