VSN-2137 : Implementing api call logic related to fetching contracts with their associated lots & integrating it in the list view component as an additional reference sheet request attribute.
Merge Request: VSN-2137 – API Call Logic for Contracts and Lots Integration
Overview
This merge request introduces the implementation of API call logic related to fetching contracts and their associated lots. The retrieved data is integrated into the list view component as an additional attribute of the reference sheet request. The changes ensure that contracts and lots information is consistently available within the backoffice front-end, enhancing the accuracy and completeness of passenger-related templates.
Validations and Implemented Changes
Feature Implementation
- Defined and implemented the API call responsible for retrieving contracts and their associated lots.
- Integrated the API call into the store, ensuring proper state management and accessibility across the application.
Endpoint Definition
- Established an adequate endpoint to handle contract and lot retrieval requests.
- Ensured the endpoint is aligned with existing service architecture for consistency.
Data Transfer Object (DTO)
- Created a dedicated DTO to represent contract lots.
- Structured the DTO to express contracts with their associated lot labels clearly.
Reference Sheet Request Update
- Updated
ReferenceSheetRequestPropsto include contracts data. - Extended the Excel reference request DTO to support the new contracts attribute.
Invocation and Setting
- Added logic to invoke the API call and set the retrieved contracts and lots data into the new attribute of the reference sheet request DTO.
- Ensured seamless integration with the list view component for enhanced usability.
Purpose
The primary goal of this merge request is to enrich the reference sheet request with contract and lot data. This provides a more complete dataset for passenger templates and ensures that the backoffice front-end can handle dynamic and accurate exportation processes.
Conclusion
With these changes, the system gains the ability to fetch and integrate contracts and their associated lots directly into the reference sheet request. The implementation is modular, well-documented, and designed to support future enhancements in passenger template management and exportation workflows.
Closes VSN-2143