- Added a step to bring down existing containers before creating new ones to avoid issues with Docker's recreate path, specifically addressing a known bug with Docker Compose v1.29 and the latest Docker Engine.
- Ensured that the network and data are preserved during the down operation by using the `--remove-orphans` flag.
This change improves the reliability of the deployment process and prevents potential downtime during service updates.
- Introduced helper functions to calculate working days while skipping weekends, improving the accuracy of date calculations in production planning.
- Updated the logic for determining start and end dates based on lead time and production capacity, ensuring that weekend days are excluded from the calculations.
- Refactored existing date calculation code in the `previewSchedule` and `generateSchedule` functions to utilize the new helper methods for better maintainability and clarity.
(TASK: ERP-XXX)