Commit Graph
13 Commits
Author SHA1 Message Date
Jepp9350 4c74dd7995 Add booking synchronization and handling improvements
Introduce functionality to synchronize bookings, including creating or updating bookings based on provided details. Added strong typing to the `addOrUpdate` method for improved robustness and code clarity.
2025-01-28 15:57:10 +01:00
Jepp9350 f0747d1966 Normalize handling of pickup_bool in booking data.
Refactored `pickup_bool` parsing to ensure consistent boolean handling across the application. Replaced mixed type checks with explicit boolean conversion and updated relevant logic to improve data reliability. This change avoids potential errors caused by inconsistent input formats.
2025-01-28 08:44:34 +01:00
Jepp9350 422d8fa18a Add Economic integration and support for wash completion
Introduce new classes, interfaces, and traits for integrating Economic API, including handling orders and drafts. Add CLI commands, test scripts, and database updates for enhanced functionality. Implement endpoint to complete a wash without a wash certificate.
2025-01-24 16:06:13 +01:00
Jepp9350 bbc4eb07a8 Refactor cron tasks and user caching mechanisms
Introduced a more dynamic and modular cron task system for better task management. Reworked user-related caching to use a consistent structure, replacing economic-specific functions with general-purpose methods. Improved customer and booking synchronization processes to streamline operations.
2025-01-23 16:08:22 +01:00
Jepp9350 b794e95ba9 Refactor and enhance booking, customer, and caching logic
Improved booking handling with unfulfilled booking checks and Slack notifications. Enhanced customer data retrieval with caching optimizations and discount calculations. Added logging, debug capabilities, and expanded Redis functionalities for better data management.
2025-01-21 21:16:42 +01:00
Jepp9350 635ad0fa04 Add booking synchronization and API integration
Implemented methods for booking synchronization, including fetching, parsing, and updating bookings from a remote API. Added caching mechanisms and data validation for customer names, department names, and booking details. Integrated new API trait and remote booking class to improve scalability and enable automated tests for booking modules.
2025-01-20 15:49:08 +01:00
Jepp9350 851d5f3e4c Add caching and Slack notification enhancements
Implemented caching for department and customer names to improve performance. Added Slack notifications for new bookings with detailed formatting. Refactored related methods to streamline functionality and ensure better code clarity.
2025-01-20 08:08:18 +01:00
Jepp9350 f256e05c3d Add Redis caching, Slack notifications, and booking logic.
Implemented Redis caching for improved department and customer data retrieval. Added Slack integration to send department notifications. Enhanced booking features and status handling, including parsing logic and wash certificate processing.
2025-01-17 08:39:20 +01:00
Jepp9350 34fc194df1 Add Redis integration and improve order processing
Introduces Redis integration with a client class, traits, and interface for caching and object persistence. Adds Redis tests, updates `composer` to include Predis, and extends configurations to support Redis. Implements a new `delete` method for bookings and enhances pagination to include order details.
2025-01-16 11:27:19 +01:00
Jepp9350 2a35b7ce4d Refactor pagination and filtering logic
Replaced redundant SQL queries with reusable methods for paginating, filtering, and searching records. Improved query safety using prepared statements and enhanced flexibility with dynamic order and filter processing. Updated related routes and objects to support the new structure.
2025-01-13 15:50:09 +01:00
Jepp9350 d7174ce29e Add endpoint for unfulfilled department bookings count
Introduced a new method to fetch unfulfilled bookings count by department in `bookings_o`. Added a corresponding route in `bookingsRoute` to expose this functionality via an API endpoint. Validations and logging were also implemented to ensure proper usage and tracking.
2025-01-10 13:01:50 +01:00
Jepp9350 f5a6ade96a Added the /user/bookings endpoint.
Made the bookings object find the id based on the name.
Added the booking user pagination.
2024-12-19 10:54:19 +01:00
Jepp9350 8d4995eea3 Added the bookings route, and the bookings_o.php object. 2024-12-19 09:18:05 +01:00