mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms_api_rest: added default_invoice_to field in folio sale line GET service
This commit is contained in:
@@ -16,3 +16,4 @@ class PmsFolioSaleInfo(Datamodel):
|
||||
reservationId = fields.Integer(required=False, allow_none=True)
|
||||
serviceId = fields.Integer(required=False, allow_none=True)
|
||||
displayType = fields.String(required=False, allow_none=True)
|
||||
defaultInvoiceTo = fields.Integer(required=False, allow_none=True)
|
||||
|
||||
@@ -501,6 +501,9 @@ class PmsFolioService(Component):
|
||||
displayType=sale_line.display_type
|
||||
if sale_line.display_type
|
||||
else None,
|
||||
defaultInvoiceTo=sale_line.default_invoice_to
|
||||
if sale_line.default_invoice_to
|
||||
else None,
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user