Pending
1. Each newly created order will have assigned status "pending".
2. "On save" shouldn't be data validation. Order could be saved without planned from-to date (somebody will create order, but the date will be calculated later)
3. If it exists connection between MES and ERP (eg. enova), date validation shoul be active only for "date to" (the assumption is that ERP provides this date).
4. The icon "Start" should be replaced by icon "Accept" - graphical proposition is following (please use the icon "Start", which will be replaced by new one).
...
Validation
Depends of order state and action (=changing the state), different type of "on-save" validation should be done.
Pending
We should distinguish two cases:
- entity is created manually - obligatory feilds:
- State (automaticly set to Pending)
- Number
- Name
- Product
- Planed quantity
- Unit (automaticly set from Product default unit)
- entity is created by ERP connector:
- these same obligatory fields as item #1
- Date To
Accepted
- User changes state from "Pending" to "Accepted" using "Accept" action & button, should be done following validation:
- these same obligatory fields as in "Pending"
- Date to
- Date from
- Default technology
- Technology
In progress
- User changes state from "Accepted" to "In progress" using "Start" action & button, should be done following validation:
- these same obligatory fields as in "Accepted"
Declined
- User changes state from "Pending" or "Accepted" to "Declined" using "Decline" action & button
- could't be done any additional validation
- could't be done any additional validation
Completed
- User changes state from "In progress" to "Completed" using "Finish" action & button, should be done following validation:
- these same obligatory fields as in "In progress"
- Quantity made
Abandoned
- User changes state from "In progress" or "Interupted" to "Abandoned" using "Abandon" action & button
- could't be done any additional validation