Skip to content

[IMP] pms_api_rest: line notes to invoices in post and section_id field in get#226

Merged
DarioLodeiros merged 2 commits into16.0-mig-pmsfrom
16.0-pms_api_rest_invoice_line_notes
Jun 9, 2025
Merged

[IMP] pms_api_rest: line notes to invoices in post and section_id field in get#226
DarioLodeiros merged 2 commits into16.0-mig-pmsfrom
16.0-pms_api_rest_invoice_line_notes

Conversation

@braisab
Copy link

@braisab braisab commented Jun 2, 2025

This pull request introduces changes to support the handling of sectionId in folio sale lines within the PMS API. The updates include adding a new field to the datamodel, modifying service methods to incorporate sectionId, and implementing logic to process line notes based on their section association.

Changes to support sectionId in folio sale lines:

Datamodel updates:

Service method updates:

  • Updated the get_folio_sale_lines method to include sectionId when constructing folio sale line objects. (pms_api_rest/services/pms_folio_service.py, pms_api_rest/services/pms_folio_service.pyR1400)
  • Enhanced the create_folio_invoices method to process line notes associated with sections. This includes filtering folio sale lines with display_type set to "line_note" and ensuring their IDs are added to the lines_to_invoice_dict. (pms_api_rest/services/pms_folio_service.py, pms_api_rest/services/pms_folio_service.pyR1532-R1537)

@DarioLodeiros DarioLodeiros merged commit 0697549 into 16.0-mig-pms Jun 9, 2025
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants