STO 05 - Validation
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
- Â
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