Commit Graph
100 Commits
Author SHA1 Message Date
Jepp9350 b65b1346bb Update XLVask helpers: modify parser setup string, add 'Hænger' to usage log, and clean up whitespace. 2025-06-24 09:39:20 +02:00
Jepp9350 c0ff18761d Add useDynamicPricing property and getUnitPriceExVat method in XLVask helpers. Refactor parsing logic to use integer type casting for price and count. 2025-06-24 09:16:03 +02:00
Jepp9350 dacb7ef4e0 Add xlvask_parser_h_nger helper class for handling specific XLVask product parsing 2025-06-24 08:38:35 +02:00
Jepp9350 29aa63bb08 Add vehicle type handling in customer_vehicles_o, including vehicle type retrieval, setting, and creation in XLVask. Extend route logic to support vehicle type updates and auto-start on LPR configurations, incorporating enhanced validation and permission checks. Refactor and streamline helper classes for consistency and functionality expansion. 2025-06-19 15:01:22 +02:00
Jepp9350 75e3efcb89 Introduce xlvask_helper base class and refactor XLVask helper classes to extend it. Add methods for XLVask vehicle checks and retrievals, enhance vehicle caching functionality, and update helper class instantiation logic. 2025-06-19 11:06:53 +02:00
Jepp9350 9d431d55d8 Refactor vehicle synchronization logic in XLVask helpers, update instantiation, and remove legacy customer creation code. 2025-06-18 15:39:27 +02:00
Jepp9350 3bf1292775 Add runSyncVehicles method to XLVask helpers for vehicle synchronization and caching. 2025-06-18 15:34:07 +02:00
Jepp9350 6ee8c0e2b1 Add vehicle caching methods to XLVask: interface and implementation updates for handling vehicle cache. 2025-06-18 15:20:59 +02:00
Jepp9350 9bcf52a046 Remove obsolete and commented-out legacy code in XLVask customer creation route. 2025-06-18 15:02:28 +02:00
Jepp9350 8c4dd34d68 Add multiple XLVask parser helper classes and update imports in XLVask helpers. 2025-06-18 15:01:33 +02:00
Jepp9350 8a8a6f19cf Add xlvask_parser_ht_osc_sider_lave_tur helper class and update imports in XLVask helpers. 2025-06-18 14:43:19 +02:00
Jepp9350 177767c499 Remove debugging statements and refine XLVask customer creation logic. 2025-06-18 14:36:35 +02:00
Jepp9350 bd0b1f83b8 Add validation methods to xlvask_customer, enhance default property values, and update createCustomer with new references to ensure data consistency. 2025-06-18 12:47:09 +02:00
Jepp9350 280f87535c Enhance XLVask customer handling: improve JSON encoding with error handling, refine property assignment in xlvask_customer, add debugging logs, and update customer cache logic. 2025-06-18 12:11:30 +02:00
Jepp9350 7b837a8a58 Add xlvask_parser_chassisskylning helper class and update imports in XLVask helpers. 2025-06-18 09:48:15 +02:00
Jepp9350 b068d499ca Reinstate modules_xlvask_sync_usage permission check in XLVask debug task route. 2025-06-17 20:09:24 +02:00
Jepp9350 cc0d1861cc Add updateCustomer method to XLVask endpoints, enhance cache handling for customer retrieval and management, and refine customer property definitions in helper class. 2025-06-17 20:05:03 +02:00
Jepp9350 c94537ecab Add createCustomer method to XLVask endpoints, update interface, and refine imports. 2025-06-17 19:14:12 +02:00
Jepp9350 43f0cd3a25 Ensure vehicleId is set before deleting vehicle and update route logic for vehicle fetching and debugging. 2025-06-17 19:08:52 +02:00
Jepp9350 3b4232a308 Add deleteVehicle method to XLVask endpoints and update route logic to use it 2025-06-17 18:49:32 +02:00
Jepp9350 67b178b002 Add vehicle management utilities for XLVask, implement updateVehicle method, refine endpoint logic, and introduce helper class for vehicle operations. 2025-06-17 18:42:20 +02:00
Jepp9350 19438f5d52 Add methods to retrieve XLVask vehicle types by ID, name, and product ID in vehicle management helpers. 2025-06-17 17:55:54 +02:00
Jepp9350 9a92f14637 Add support for XLVask vehicle management helpers, implement GUID generation, vehicle type handling, and createVehicle method in endpoints. Extend route logic and refine class imports. 2025-06-17 17:16:13 +02:00
Jepp9350 6e6ab047ec Add XLVask customer creation logic, extend user and helper classes, and integrate Slack notifications for failed API requests. 2025-06-17 12:24:14 +02:00
Jepp9350 ce95304fae Reinstate permission check for sync-usage task in Module XLVask route. 2025-06-16 15:09:30 +02:00
Jepp9350 5693d30c47 Add runCleanupTasks method to XLVask tasks, including module enablement check and task execution logic 2025-06-16 11:51:39 +02:00
Jepp9350 8edc0f9312 Add logic to handle duplicate potential order matches, include shouldIgnoreDuplicate method, and introduce route to ignore duplicates with permission checks. 2025-06-16 11:31:13 +02:00
Jepp9350 3987cf5de9 Refactor xlvask_potential_order_matches_o object, update related method signatures, and introduce route for retrieving potential order matches with permission checks and pagination. 2025-06-16 10:47:53 +02:00
Jepp9350 d72c534b2f Add xlvask_potential_order_matches_o object and logic to manage potential order matches in XLVask tasks. 2025-06-16 09:37:05 +02:00
Jepp9350 c2fb7cf873 Refine Limble module task retrieval to include cursor-based pagination support. 2025-06-16 08:02:53 +02:00
Jepp9350 447c52f917 Expand Limble module with new webhook payload helpers, JSON validation, Slack notifications, and task-specific webhook handling logic. 2025-06-12 19:57:04 +02:00
Jepp9350 978f51d8cd Expand Limble module with new webhook payload helpers, JSON validation, Slack notifications, and task-specific webhook handling logic. 2025-06-12 19:56:59 +02:00
Jepp9350 9371883138 Expand Limble module with additional helper classes, task formatting logic, webhook handling, configuration endpoints, and extended API request support. 2025-06-12 15:15:26 +02:00
Jepp9350 8c7a1f1509 Introduce Limble module with core interfaces, helper classes, and initial implementation. 2025-06-12 13:11:10 +02:00
Jepp9350 facd2a312a Introduce Limble module with core interfaces, helper classes, and initial implementation. 2025-06-12 13:10:34 +02:00
Jepp9350 56927b8994 Introduce initial structure for Limble module with core configuration classes 2025-06-12 12:50:17 +02:00
Jepp9350 7109f68cdd Comment out $dateFrom echo statement in XLVask tasks helper to clean up output 2025-06-12 12:15:13 +02:00
Jepp9350 27e8c558a4 Add getPlateReferenceIfExists in customer_vehicles_o, refine order creation logic to include plate references, enable usage synchronization in XLVask tasks, and introduce xlvask_parser_special_s_be_front. 2025-06-12 12:14:20 +02:00
Jepp9350 5d38eae9f6 Add lane property to orders_o, include lane handling in XLVask usage logs, and introduce xlvask_parser_kapellvask_alle_trailere parser. 2025-06-11 12:57:20 +02:00
Jepp9350 5fb962f6ba Add XLVask order creation logic, enhance wash item validation, update customer handling, and refine parser product ID logic 2025-06-11 12:30:06 +02:00
Jepp9350 f8c0c5a78c Extend order selection logic with registration number and date range in orders_o, update Slack messaging for modules, and implement potential order detection in XLVask tasks. 2025-06-11 09:38:21 +02:00
Jepp9350 1e9ca3e015 Add isCountAboveZero method to xlvask_wash_item and update task logic to skip items with non-positive counts 2025-06-10 16:45:20 +02:00
Jepp9350 940969a466 Update XLVask parsers with correct product IDs, add skipped item details to task logs, and handle special case for vask_udf_rt parser logic. 2025-06-10 16:03:28 +02:00
Jepp9350 59a0c642d3 Add additional XLVask parsers, refine department name capitalization logic, enhance task log outputs, and update helper imports 2025-06-10 15:40:32 +02:00
Jepp9350 e4e4a03b09 Include department and product name details in xlvask task log output for improved clarity. 2025-06-10 15:07:02 +02:00
Jepp9350 39e24465c4 Add multiple XLVask parsers, extend department and order selection logic, and add usage synchronization endpoint 2025-06-10 14:52:47 +02:00
Jepp9350 af75d38af9 Add new cron task for XLVask module with synchronization logic in Cron.php and tasks helper functions 2025-06-03 14:08:59 +02:00
Jepp9350 4d2d72224c Update comments in xlvask_tasks.php to clarify cache addition behavior and remove redundant newlines 2025-06-03 14:00:42 +02:00
Jepp9350 90823c4983 Update getCustomerCache return type to xlvask_customer for stricter type handling and remove redundant newlines in xlvask_tasks.php 2025-06-03 13:56:00 +02:00
Jepp9350 0e82d9a7bf Add customer synchronization support in xlvask with caching, filtering, and external ID handling 2025-06-03 13:52:23 +02:00
Jepp9350 5e9f0ade22 Remove redundant $key_type assignments in xlvask_customer.php for cleaner and more concise code 2025-06-03 12:58:33 +02:00
Jepp9350 79469914ec Refactor xlvask customer property handling with improved default value mapping and data type conversions 2025-06-03 12:57:11 +02:00
Jepp9350 1b2c573629 Enhance xlvask customer handling with nullable properties, default values, and data type conversion 2025-06-03 12:37:06 +02:00
Jepp9350 5934a339d8 Add caching support for xlvask module with Redis-backed xlvask_cache implementation 2025-06-03 10:18:35 +02:00
Jepp9350 ff4c18a45d Add key expiration support in Redis class with expire method implementation 2025-06-03 10:16:58 +02:00
Jepp9350 b0173193f2 Add task helpers and cron job support for xlvask module with user synchronization endpoint integration 2025-06-03 09:09:50 +02:00
Jepp9350 a3fc7cf08a Add synchronization status support for xlvask module with configuration setup and initialization 2025-06-03 08:13:13 +02:00
Jepp9350 9774b589cc Add handling for fixed pricing and tank cleaning transactions with action checks and enhanced customer retrieval 2025-06-02 22:04:57 +02:00
Jepp9350 27ca81ba8f Add support for invoicing period retrieval and enhanced filtering options for wash subscription transactions 2025-06-02 14:08:57 +02:00
Jepp9350 dcc6a56009 Add check for empty vehicle subscriptions in collected order invoices processing 2025-06-01 20:33:09 +02:00
Jepp9350 0eda58bcba Add vehicle subscription handling for customers without fixed pricing in order invoice processing 2025-06-01 20:24:03 +02:00
Jepp9350 fbf60da178 Refactor variable check logic in department handling to support multiple positive value types 2025-05-30 10:11:36 +02:00
Jepp9350 9507705c05 Add public endpoint for guest time bookings entries with validation and addon support 2025-05-28 17:25:48 +02:00
Jepp9350 af9c8f7dd3 Add customer time bookings routes for public access to opening hours, types, and entries 2025-05-28 16:07:28 +02:00
Jepp9350 5fb57b88e3 Refactor department time bookings routes to support department and ID parameters for access checks 2025-05-27 18:05:33 +02:00
Jepp9350 96647c5792 Refactor customer default department routes to streamline customer number handling and permission checks 2025-05-27 10:02:19 +02:00
Jepp9350 efc564c7f4 Refactor Entra module to remove calendar retrieval and update user endpoint 2025-05-27 08:32:57 +02:00
Jepp9350 73a9c4baf4 Add endpoint for updating bookings with user access checks 2025-05-27 08:30:06 +02:00
Jepp9350 743928459e Add customer default department handling and routes 2025-05-26 16:58:09 +02:00
Jepp9350 b837f572af Add handling for forced prices, arrays, and improved type checks
Introduced support for forced pricing in `addItemToOrder` and added stricter validation for array inputs in SQL queries. Enhanced JSON handling in type validation and improved code reuse with new objects. Added new endpoint `/modules/xlvask/related-orders` to fetch related orders by wash IDs.
2025-05-22 22:51:05 +02:00
Jepp9350 b42c864bff Add wash_id property and support for listing own orders
Introduced a new `wash_id` property to the `orders_o` object and updated related order handling logic. Implemented functionality to restrict users to only list their own orders if they lack permissions to view all orders. Updated permissions and adjusted queries accordingly.
2025-05-22 10:27:09 +02:00
Jepp9350 543a02c8e6 Update dependencies in composer.lock
Upgraded multiple dependencies to their latest versions to ensure compatibility, address bug fixes, and incorporate new features. Notable updates include `aws/aws-sdk-php`, `guzzlehttp/guzzle`, `illuminate/*`, and several others.
2025-05-21 15:07:04 +02:00
Jepp9350 bf68432484 Add Graph API client integration to entra class
Introduce methods to initialize a GraphServiceClient and ClientCredentialContext, leveraging configuration values for authentication. This enables interaction with Microsoft Graph API in a structured and secure manner.
2025-05-21 14:44:39 +02:00
Jepp9350 458e2916a6 Add Entra module for handling Microsoft integration
This commit introduces the Entra module, enabling configuration management and handling callbacks for Microsoft's authorization. It includes new classes, routes, and configuration variables to support integration, ensuring flexibility and logging support for related operations.
2025-05-21 14:20:50 +02:00
Jepp9350 a45e2706c3 Refactor customer number handling for clarity.
Reassign the customer number to a variable before reuse, improving code readability and reducing redundant calls to the value method. This change streamlines object property creation and simplifies maintainability.
2025-05-20 14:05:47 +02:00
Jepp9350 d65d49b31e Add support for retrieving and displaying customer details
Enhanced plate scans to include customer name and vehicle type. Introduced a method in `customer_vehicles_o` for fetching vehicle details by plate and adjusted `users_o` to manage display names more effectively.
2025-05-20 14:01:29 +02:00
Jepp9350 b37499e0f0 Add PO number handling and user invoices route
Introduced a new `po_number` property in `collected_order_invoices_o` and updated related methods to handle it. Added `userInvoicesRoute` to manage user invoice APIs with GET and PUT endpoints for listing and updating invoices. Updated `microsoft/microsoft-graph` dependency to version `^2.8`.
2025-05-20 12:15:35 +02:00
Jepp9350 d00bfef583 Add 'product' support to department time bookings
This update incorporates the 'product' parameter into the department time bookings API, supporting its addition, update, and validation processes. Additionally, composer dependencies are updated with several new libraries, enhancing functionality and compatibility.
2025-05-19 15:16:58 +02:00
Jepp9350 77f01112db Add support for managing department variables
Introduced endpoints for fetching and setting department variables in `superuserDepartmentRoute`. Enhanced `getDepartmentOptions` to filter by specific positive variables. Updated SMS notifications and booking forms to utilize department variables for improved flexibility.
2025-05-14 15:09:36 +02:00
Jepp9350 ca71c34b75 Add department time bookings functionality
Implemented management of department time bookings, including API routes, objects, and logic for opening hours, types, and entries. Enhanced the gateway API to handle optional empty recipient handling.
2025-05-13 12:33:44 +02:00
Jepp9350 023b6992b6 Add xlvask module API integration
Introduced xlvask module with request handling, endpoints, and route mappings. Implemented functionalities to fetch usage logs, vehicles, and customers from the API, along with basic authentication support. Includes error handling and configuration setup for seamless integration.
2025-05-08 14:03:13 +02:00
Jepp9350 5550e2e57f Add xlvask module with configuration and API endpoints
Introduce the xlvask module, including classes for configuration variables (enabled, username, password) and main functionality. Integrated xlvask into the app by adding GET/POST API routes for managing its configuration.
2025-05-08 12:17:27 +02:00
Jepp9350 e3d67acd07 Allow vehicle type to be unset and improve related checks
Updated logic to allow vehicle type to be set to 0 and handle related subscription behavior. Added safeguards to prevent setting subscriptions when type is unset. Introduced `isPlateSeenBefore` in `orders_o` and enhanced `plateScansRoute` to include `seen_before` data.
2025-05-06 16:36:24 +02:00
Jepp9350 84b6d4de3e Fix incorrect date handling for closing order invoices
Replaced `created_at` with `closed_at` to accurately set the timestamp when closing collected order invoices. This ensures the correct date is applied during the invoice update process.
2025-05-06 12:14:41 +02:00
Jepp9350 45faa7c56a Add 'barred' status to customer and vehicle data
Introduced the 'barred' property to identify barred customers and vehicles. Updated relevant classes, methods, and API endpoints to handle this new field. Enhanced plate scans to include the barred status for vehicles based on customer association.
2025-05-06 12:14:21 +02:00
Jepp9350 4cc2ff462e Add XLVask OpenAPI v1 JSON specification
Introduced a new OpenAPI v1 specification for XLVask within the services/nginx/app/modules directory. This includes detailed endpoint definitions for Customers, Vehicles, UsageLog, and associated schemas like Customer, Vehicle, and others. The API specification will facilitate integration and validation for related services.
2025-05-06 12:13:57 +02:00
Jepp9350 22562be135 Add API reference topics for XLVask OpenAPI v1
Added documentation topics for API endpoints related to `/Customers` and `/Vehicles` with GET, POST, PUT, and DELETE methods. Included a general API Reference topic and updated redirection rules for removed structure pages.
2025-05-06 12:13:47 +02:00
Jepp9350 b1ba8a2e34 Add support for vehicle reference field
Introduce a new "reference" field for vehicles to allow storing and validating additional information. Updates include parameter handling, validation, and database integration for creating, modifying, and retrieving the "reference" field.
2025-05-06 09:09:17 +02:00
Jepp9350 be9ba1a2fa Add fixed pricing logic for order invoices
Introduced a check to apply fixed pricing for customers with predefined rates. This ensures that customer-specific fixed prices override default prices before adding invoices to E-Conomic. The change improves pricing consistency and accuracy for eligible customers.
2025-05-05 16:42:03 +02:00
Jepp9350 30ff7d385e Add support for fixed pricing in collected order invoices
Introduced functionality to handle fixed prices for collected order invoices, allowing customer-specific pricing overrides. Added a new route and methods to integrate fixed pricing logic, modify invoice items, and ensure proper data management in E-Conomic. Adjusted discount calculations to accommodate cases where final price is zero.
2025-05-05 16:21:31 +02:00
Jepp9350 3868b2b867 Add attribute management methods and set default attributes
Introduced methods to add, delete, and check user attributes. Updated the user object initialization to set default attributes (`invoiceAllOrdersIndividually` and `restrictTankCleaning`). Removed redundant definitions of these methods to avoid duplication.
2025-05-05 13:53:35 +02:00
Jepp9350 91d215ffcc Add customer fixed pricing routes and object
Introduce routes for managing customer fixed pricing, including retrieval, creation, and deletion. Create `customer_fixed_pricing_o` object to handle database operations for fixed pricing data. This change enables structured handling of fixed pricing-related logic and functionality.
2025-05-05 13:36:04 +02:00
Jepp9350 8d2fe8d75d Add support for closed_at field in order invoices
Introduce the closed_at field to track closure dates for order invoices. Updated validation, processing logic, and database integration to ensure correct handling of the new field. Adjusted related routes to pass and store the closed_at value where applicable.
2025-05-01 15:45:59 +02:00
Jepp9350 8ae3a35a91 Add endpoints for unknown customer vehicles and suggestions
Introduced two new endpoints: one for listing unknown customer vehicles and another for fetching customer suggestions based on a vehicle registration. These changes include authentication, input validation, and proper logging for each new route.
2025-04-30 14:37:53 +02:00
Jepp9350 29e76b58d8 Fix and enhance order processing with improved data handling
Set proper timestamps for collected invoices and added `getLastOrderId` for vehicles. Streamlined order fetching logic by fixing parameter usage, refining customer and order item retrieval, and improving type casting in multiple methods.
2025-04-29 15:22:26 +02:00
Jepp9350 6cc5e6bbf0 Add custom routes, subscription features, and refactor orders
Introduced a new POST route for collected vehicle subscription invoices and enhanced responses with wash subscription transactions. Refactored order handling by adding department-based pricing logic and simplifying reusable methods. Various minor improvements include exception handling, input validation, and updated permissions.
2025-04-28 14:24:11 +02:00
Jepp9350 c19ed3389c Update permission check for Stripe payment intent
Replaced 'charge_order_stripe' with a more general 'charge_order' permission check in the Stripe payment intent endpoint. This ensures consistent permission handling across payment modules.
2025-04-28 09:01:15 +02:00
Jepp9350 c56955ee28 Add logic to remove vehicle subscription transactions
Introduced a method to handle the removal of vehicle subscription transactions from invoice collections. Refactored references to a hardcoded cashier ID by using a class property for better maintainability. This ensures a cleaner and more dynamic transaction-handling process.
2025-04-28 08:26:44 +02:00
Jepp9350 941ed2dce6 Disable transaction creation in wash certificate generation
Commented out the transaction creation step for bookings to prevent unnecessary or redundant transactions. This ensures the booking process focuses solely on wash certificate completion and status updates without altering the transactional state.
2025-04-28 08:11:03 +02:00
Jepp9350 e140c3242f Add default addons functionality to customer vehicles
Introduced a method to automatically add default addons to customer vehicles based on predefined product IDs. Updated the vehicle creation workflow to include the addition of these default addons. Adjusted type casting and comments for better clarity and functionality.
2025-04-24 12:40:27 +02:00