Jeppe Bundgaard
4cc270e258
Refactor order creation to use addArray method and sanitize inputs
...
- Introduced `addArray` method in `orders_o` for streamlined order creation using an associative array.
- Updated `ordersRoute` to utilize `addArray`, replacing older implementation for better manageability.
- Improved input handling by trimming whitespaces from registration numbers.
- Enhanced product pricing by incorporating department-specific prices and discount percentages.
2025-07-21 13:10:15 +02:00
Jeppe Bundgaard
af3b0666fb
Add import tasks and new parsers to XL Vask module
...
- Introduced `runImportTasks` method for vehicle, user, and usage log imports.
- Added new product parsers: `ht_b_rstel_s`, `ht_turbo`, and `ikke_b_rster_p_kabinen`.
- Implemented simulation and duplicate detection for usage logs via order objects.
- Updated usage log handling to include default customer checks and user association.
- Enhanced request handling with fast-link functionality for usage orders.
2025-07-21 10:32:56 +02:00
Jeppe Bundgaard
e057b225a6
Make importUsageLogs and getUsageLogsFromXLVask accept dynamic date modifiers
2025-07-16 13:59:08 +02:00
Jeppe Bundgaard
648a58b724
Add import usage logs functionality to XL Vask module
2025-07-16 10:38:06 +02:00
Jeppe Bundgaard
7a4c53df1b
Add xlvask_usage_log_id property to wash item usage log
2025-07-16 10:02:17 +02:00
Jeppe Bundgaard
4e89d168de
Add wash item usage log functionality to XL Vask module
2025-07-16 09:01:03 +02:00
Jeppe Bundgaard
6a696eeb71
Add usage logs functionality to XL Vask module
2025-07-16 09:00:51 +02:00
Jeppe Bundgaard
f74a904738
Add import vehicles functionality to XL Vask module
2025-07-15 15:01:03 +02:00
Jeppe Bundgaard
026942f772
Add import customers functionality to XL Vask module
2025-07-15 14:25:40 +02:00
Jeppe Bundgaard
1551d37f19
Handle null salesPrice in product mapping
2025-07-15 12:36:39 +02:00
Jeppe Bundgaard
fb28c7a7df
Remove unused delete method from customer_vehicles_o class
2025-07-15 10:52:17 +02:00
Jepp9350
ffd0606ece
Enhance xlvask_tasks: introduce date range options and additional debug outputs for runSyncUsage. Add new parsers xlvask_parser_ingen_b_rster_foran_no_brush_wash_front and xlvask_parser_ht_dysebom and integrate into xlvask_helpers. Improve rate limiting and reduce FastCGI timeout in nginx configuration. Adjust execution time and memory limits in cli.php.
2025-07-14 09:22:32 +02:00
Jepp9350
edcb6e5926
Adjust cron job intervals: increase execution intervals for SyncUserEconomicCustomerDiscounts, SyncEconomicInvoiceStatus, and SyncXLVaskModuleCron to reduce frequency.
2025-07-11 08:37:34 +02:00
Jepp9350
0f8ec71ffe
Enhance orders_o: add wash ID, timestamp creation, and detailed debug logging for mismatched totals. Add new parsers (xlvask_parser_ikke_b_rster_mellom_bil_og_trailer, xlvask_parser_s_be_dysebom_tak) and integrate into xlvask_helpers. Set memory limit in moduleXLVaskRoute.
2025-07-06 19:31:07 +02:00
Jepp9350
7a8edd0f28
Enhance orders_o and InvoicingPeriodRoute: expand duplicate detection logic by including additional registration fields, refine duplicate filtering criteria, and update transaction handling flag for possible duplicates. Add new xlvask_parser_ikke_ht_dysebom_mellom_bil_trailer parser and integrate it into xlvask_helpers.
2025-07-06 13:38:34 +02:00
Jepp9350
112f28228d
Enhance vehiclesRoute: strip whitespace from vehicle registration numbers before setting values.
2025-07-03 12:23:02 +02:00
Jepp9350
3d8700bad6
Refactor InvoicingPeriodRoute: add meta parameter for transactions, enhance fixed pricing retrieval, and implement utility method for array-based object matching.
2025-07-03 09:59:12 +02:00
Jepp9350
bf6c2d711d
Refactor getOrder in order_items_o: add explicit type casting for order_id to ensure proper ID handling.
2025-07-02 12:19:43 +02:00
Jepp9350
c429c359ea
Refactor getOrdersWithPossibleDuplicates and InvoicingPeriodRoute: simplify duplicate order detection, enhance customer transaction handling, and streamline object construction for improved efficiency.
2025-07-01 13:51:31 +02:00
Jepp9350
f503a5379e
Enhance orders_o, order_items_o, and InvoicingPeriodRoute: add transaction and calculation methods, implement debug execution timing, refine invoicing period handling, optimize order retrieval, improve caching, and expand database query logic.
2025-07-01 13:01:01 +02:00
Jepp9350
e583a269d0
Add getOrdersWithPossibleDuplicates method in orders_o and getPossibleDuplicates method in InvoicingPeriodRoute to identify and handle potential duplicate orders within a specified date range.
2025-06-30 17:39:11 +02:00
Jepp9350
6b80637208
Refactor InvoicingPeriodRoute and vehiclesRoute: streamline invoicing period data retrieval, enhance transaction handling across customer types, introduce new methods for efficient object construction, and add improved type validation in object_property.
2025-06-30 14:37:37 +02:00
Jepp9350
e0f582289f
Refactor orders_o, InvoicingPeriodRoute, and object_property: enhance ID validation, streamline customer processing, and improve method structures for better data handling.
2025-06-26 16:55:37 +02:00
Jepp9350
c5a6b2006f
Add methods for retrieving customers and transactions within date ranges, enhance orders_o functionality, and improve customer object construction in invoicing routes.
2025-06-26 16:06:02 +02:00
Jepp9350
1bcd15fa2f
Enhance customer_vehicles_o: add asArray caching with expiration, implement cache invalidation in object changes, and improve vehicle update flow with cache management.
2025-06-26 12:33:38 +02:00
Jepp9350
5b88ef9dc3
Refactor order and order item management: add cache invalidation, improve object change tracking, and enhance asArray conversion with caching and expiration support.
2025-06-26 08:55:58 +02:00
Jepp9350
0e90c80ee1
Uncomment vehicle cache retrieval in xlvask_vehicles helper.
2025-06-26 07:59:46 +02:00
Jepp9350
2b3ebfe357
Add xlvask_parser_h_nger to XLVask helpers imports for extended parsing functionalities
2025-06-24 10:40:52 +02:00
Jepp9350
c16d8729cb
Add xlvask_parser_h_nger to XLVask helpers imports for extended parsing functionalities
2025-06-24 09:48:10 +02:00
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