Torsten Schulz (local)
|
513862a157
|
Limit maximum production quantity in DirectorWorker: Updated the production calculation to cap the output at 100 units per start, ensuring it does not exceed available capacity or financial constraints. Enhanced comments for better understanding of the production limits.
|
2025-12-01 15:55:59 +01:00 |
|
Torsten Schulz (local)
|
bd9fbb80c0
|
Enhance production job handling in DirectorWorker: Implemented a limit on the number of concurrent production jobs per branch to a maximum of two. Updated SQL query for fetching finished productions to aggregate quality ratings correctly and ensure unique results per production ID. Improved comments for clarity on the logic and SQL structure.
|
2025-12-01 14:32:31 +01:00 |
|
Torsten Schulz (local)
|
3e9f921f4f
|
Enhance DirectorWorker functionality: Added branch_id to the Director struct and updated SQL queries to include branch_id as a parameter. Improved logging messages to include branch_id for better traceability during production, transport, and sales checks. This change enhances the clarity and functionality of the DirectorWorker's operations.
|
2025-12-01 11:59:03 +01:00 |
|
Torsten Schulz (local)
|
a0e14788c7
|
Refactor money update execution in BaseWorker: Simplified the SQL execution by directly constructing the update query without parameterized placeholders, addressing serialization issues. Updated comments for clarity on the handling of money values and ensured compatibility with trusted data sources. Additionally, modified the casting of money in the director query to text for consistent mapping in Rust.
|
2025-12-01 11:31:37 +01:00 |
|
Torsten Schulz (local)
|
260b3b2962
|
Refactor SQL parameter handling in BaseWorker: Updated the execution of the money update query to pass parameters in their natural types, allowing PostgreSQL to handle type casting automatically. Improved comments for clarity on the changes made to ensure compatibility with the existing database schema.
|
2025-12-01 11:18:54 +01:00 |
|
Torsten Schulz (local)
|
d98620ea06
|
Refactor SQL query in DirectorWorker: Removed unnecessary conditions from the query for fetching transport vehicles, simplifying the logic while maintaining functionality. This change enhances query readability and performance.
|
2025-12-01 10:55:50 +01:00 |
|
Torsten Schulz (local)
|
7ae2f0c6c9
|
Enhance money production calculation in DirectorWorker: Updated the logic to handle cases where available money is zero, allowing production limits to be determined by capacity instead. Added warning logging for unexpected zero money scenarios, improving error handling and visibility in production planning.
|
2025-12-01 10:37:05 +01:00 |
|
Torsten Schulz (local)
|
cf874a7b8d
|
Refactor map_row_to_production_plan in DirectorWorker: Simplified the parsing of database fields by introducing local variables for required and optional fields. This change enhances readability and maintains default values for optional fields, improving the robustness of production plan creation.
|
2025-12-01 10:25:33 +01:00 |
|
Torsten Schulz (local)
|
9715723db7
|
Improve logging in DirectorWorker: Added detailed error messages and production calculations to enhance visibility into production planning and execution. Included checks for running productions and capacity constraints, ensuring better tracking of production processes.
|
2025-12-01 10:23:42 +01:00 |
|
Torsten Schulz (local)
|
d5017ef1e1
|
Enhance logging and error handling in DirectorWorker: Added detailed logging for production, transport, and sales checks for directors. Included a warning message when no directors are found for actions, improving visibility into the task execution process.
|
2025-12-01 10:09:19 +01:00 |
|
Torsten Schulz (local)
|
fbca231de5
|
Add running_productions_quantity to ProductionPlan: Introduced a new field to track the quantity of ongoing productions. Updated the DirectorWorker to parse this new field from the database and adjusted the free capacity calculation accordingly. Enhanced logging to provide detailed information when production cannot be started due to capacity constraints.
|
2025-12-01 10:04:09 +01:00 |
|
Torsten Schulz (local)
|
8a08a74b80
|
Refactor ProductionPlan to use f64 for money: Updated the money field in ProductionPlan from i32 to f64 to accommodate decimal values from the database. Adjusted related calculations in DirectorWorker to handle floating-point arithmetic for production costs and money management, ensuring accurate financial computations.
|
2025-12-01 09:35:23 +01:00 |
|
Torsten Schulz (local)
|
407cdd9bdc
|
Add transport planning functionality in DirectorWorker: Introduced logic for planning transports for inventory items, including new SQL queries for fetching regional worth and available transport vehicles. Enhanced inventory management by updating quantities based on transport outcomes and improved logging for transport planning decisions.
|
2025-11-26 16:21:11 +01:00 |
|
Torsten Schulz (local)
|
d0ec363f09
|
Initial commit: Rust YpDaemon
|
2025-11-21 23:05:34 +01:00 |
|