Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Corrected links that should have been relative instead of absolute.

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:

  1. entity is created manually - obligatory feilds:
    1. State (automaticly set to Pending)
    2. Number
    3. Name
    4. Product
    5. Planed quantity
    6. Unit (automaticly set from Product default unit)
    entity is created by ERP connector:
    1. these same obligatory fields as item #1
    2. Date To
  2.  

Accepted

  1. User changes state from "Pending" to "Accepted" using "Accept" action & button, should be done following validation:
    1. these same obligatory fields as in "Pending"
    2. Date to
    3. Date from
    4. Default technology
    5. Technology

In progress

  1. User changes state from "Accepted" to "In progress" using "Start" action & button, should be done following validation:
    1. these same obligatory fields as in "Accepted"

Declined

  1. User changes state from "Pending" or "Accepted" to "Declined" using "Decline" action & button
    1. could't be done any additional validation

Completed

  1. User changes state from "In progress"  to "Completed" using "Finish" action & button, should be done following validation:
    1. these same obligatory fields as in "In progress"
    2. Quantity made

Abandoned

  1. User changes state from "In progress" or "Interupted" to "Abandoned" using "Abandon" action & button
    1. could't be done any additional validation