EARS: The system shall give each order item the status active, cancelled or closed from the service and delivery statuses of its services.
Story: As a revenue accountant, I want each order item's status worked out from its services, so that I know which items still hold value.
Acceptance criteria:
-
ONE-002.1: While at least one service of an order item holds value, the system shall mark the item active.
-
ONE-002.2: When every service of an order item is cancelled or transferred and none holds value, the system shall mark the item cancelled.
-
ONE-002.3: When at least one service of an order item is delivered and every other service is delivered or removed, the system shall mark the item closed.
-
ONE-002.4: The system shall give each order item exactly one status.
The result lists every status whose condition holds, so an item that meets two conditions, or none, shows it.