[Feature]: No warnings when Work Center Calendars are not calculated
Nobody has claimed this yet.
- Dominant language
- AL
- Stars
- 683
- Forks
- 459
- Avg merge
- 3d 26m
- Merged PRs (30d)
- 633
Description
Describe the issue
Work center calendars are usually calculated on a yearly basis or even less. If that is forgotten there are no warnings at all.
In the planning worksheet it can be seen after calculating regenerative plan that the starting date is much earlier than the due date, which is usually not noticed. There should be a warning so that it is noticed.
Expected behavior
A warning in the planning worksheet.
Steps to reproduce
Steps in Cronus, that has calendars calculated for 2027 and 2028 currently.
- Create a sales order with shipment date in 2030 and item 1001.
- In Planning Worksheet use Calculate Regenerative Plan for Item 1001 and set ending date after the shipment date on the order.
- Notice the big difference between due date and starting date, and that there are no warnings.
Additional context
This is a common problem that usually goes unnoticed until it starts generating real problems. It usually requires help since the user doesn't understand why the results are so strange. Often it costs money also because components are ordered earlier than needed.
It should only warn if it's the last capacity for the work/machine centers that has been used. (Since there might be missing capacities for an indvidiual work center)
The bad planning might be more difficult to notice than in the example. In more complex cases the ending date might be correct, and just the starting date is unreasonably early.
This should not be an error, since there can be good reasons for capacity stopping at some point.
I will provide a fix for a bug
- I will provide a fix for a bug
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the Planning Worksheet flow around Calculate Regenerative Plan, then trace how Work Center Calendars and the final capacity are evaluated. Reproduce the Cronus scenario with item 1001 and a 2030 shipment date. Done means the Planning Worksheet warns when the last capacity is missing, while still allowing intentional capacity limits and avoiding an error.
Written by the indexing model from the issue text.
Assessment
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100