---
title: Lifecycles
description: The states things move through, who moves them, and what cannot be undone.
sidebar:
  order: 5
---

The states things move through, who moves them, and what cannot be undone.

## A conversation

One email conversation and everything hanging off it.

```
   Needs processing ──────► Read
        ▲                     │
        └── new mail that ────┘
            changes the
            requirement
```

| State | What it means | Who moves it |
| --- | --- | --- |
| **Needs processing** | Never processed, or the last run did not finish, or mail has arrived that changes the requirement, or documents remain unread | The system, at sync; a person, by processing it |
| **Read** | A complete reading — line items, parameters, suggested products — and nothing outstanding | The system, on a successful run |

- A conversation is not closed on its own. Closing is done on its enquiry, with a note, and new mail does not reopen it (R3, R4; see [An enquiry on the board](#an-enquiry-on-the-board)).
- Re-processing **replaces** the previous reading; it does not patch it (R13).

## An enquiry on the board

Where an enquiry's card sits. Nothing here is set by hand, except closing an enquiry before its first quotation and reopening it.

Only enquiries with gathered requirements and processed mail appear. Pending mail is hidden
from all inbox users. Terminal extraction failures appear in Needs Review to the person whose mailbox received the mail and to their office, when FlowOS could assign it, or, for inbound mail nobody can be given, to every office.

```mermaid
stateDiagram-v2
  [*] --> New: processed mail you have not opened
  New --> ToReview: you open it
  New --> ReadyToQuote: you open it, every line settled
  ToReview --> ReadyToQuote: every line confirmed or excluded, and every client change on a line decided
  ReadyToQuote --> ToReview: a confirmed value edited, a client's change reaching a line, or the lines gathered again
  ToReview --> New: new mail you have not opened
  ReadyToQuote --> New: new mail you have not opened
  ReadyToQuote --> Quoted: a quotation is issued
  Quoted --> RevisionRequested: the client asks for a change, or a line needs review again
  RevisionRequested --> Quoted: the changes and lines are settled
  Quoted --> Ordered: the client signals an order
  RevisionRequested --> Ordered: the client signals an order
  ToReview: To review
  ReadyToQuote: Ready to quote
  RevisionRequested: Revision requested
```

Six stages, placed by the first of these that fits, from the top.

```mermaid
flowchart TD
  A{Has the client signalled an order?} -- yes --> O[Ordered]
  A -- no --> B{Is a quotation issued?}
  B -- no --> E{Do you have unopened mail on it?}
  B -- yes --> C{Is a client change still to confirm or on the revision list, or a line needing review?}
  C -- yes --> R[Revision requested]
  C -- no --> Q[Quoted]
  E -- yes --> N[New]
  E -- no --> F{Does a line need review or hold a client's change to accept, or is none gathered?}
  F -- yes --> T[To review]
  F -- no --> Y[Ready to quote]
```

| Stage | What it means | What moves it |
| --- | --- | --- |
| **New** | You have processed conversation mail you have not opened, and no quotation is issued | Opening the conversation moves it to its requirement-progress stage for you |
| **To review** | A line needs review, a client's change on a line waits for a person, or gathering found no lines | A person, by confirming or excluding lines and accepting or declining the client's changes |
| **Ready to quote** | Every line is confirmed or excluded, and no client's change on a line waits | Editing a value on a confirmed line, which returns the card to To review; a client's change reaching a line; gathering again, which replaces the lines |
| **Quoted** | A quotation has been issued from FlowOS and nothing is outstanding on it | Issuing a quotation |
| **Revision requested** | A quotation is issued and the client has asked for a change that is still to confirm or on the revision list, or a line needs review again | The client's change arriving, or a line returning to review; resolving them returns the card to Quoted |
| **Ordered** | The client has signalled an order | The client's first sign of an order |

- Until a quotation is issued, new mail can move a card into New for people who have not opened it. From Quoted onward, unread mail does not move the card: it shows as an "N new" badge and the card sorts first in its column. Another person's read state does not change yours.
- A card leaves your board when its enquiry is assigned to someone whose enquiries you do not see. It stays on the board while its email is processed or gathered again. An enquiry closed with a note before its first quotation, or one whose quotations are all closed, leaves the board and is found in the List under Closed. Regret is a closed enquiry whose note says we do not provide it, not a stage of its own. Issuing a quotation on a closed enquiry reopens it; new client mail on a closed enquiry shows its card again, marked closed with new mail, until a person reopens it (see [Follow-ups](/business/features/follow-ups#closing-an-enquiry)). A quotation the client decided against is marked **Lost** in its follow-up, separately from **Closed**, which means we stopped pursuing it; the funnel counts only Lost as lost. Nothing else records an enquiry as won or lost beyond Ordered.
- An enquiry is marked **Ordered** from the client's first sign of an order: a purchase order, a confirmation in their own words, a request for a proforma invoice or a note that they will raise a purchase order. The mark moves the card to Ordered, whatever stage it was in. Changes the client asks for in later emails are held.

## A client's change

Each change a client's email asks for is recorded with a state taken from when the email arrived, and does not edit the quotation by itself.

```mermaid
stateDiagram-v2
  [*] --> ToConfirm: email before any quotation, or quotation made outside FlowOS
  [*] --> OnList: email answers an issued version
  [*] --> Held: email after a purchase order
  ToConfirm --> Held: an earlier purchase order is read
  OnList --> Held: an earlier purchase order is read
  ToConfirm --> Applied: an answer fills its field, or a line is added
  OnList --> Accepted: Accept
  OnList --> Declined: Decline
  Accepted --> OnList: Reopen
  Declined --> OnList: Reopen
  Accepted --> Carried: next revision started
  Carried --> [*]
  ToConfirm: To confirm
  OnList: On the revision list
  Carried: Accepted, carried by the revision
  Applied: Applied
  Applied --> [*]
```

| State | What it means | What moves it |
| --- | --- | --- |
| **To confirm** | The email came before any quotation was issued, or the quotation was made outside FlowOS | A person, in line review; an answer to a query fills its field and a line the client adds in writing is gathered as a new line, which shows as applied (R117, R120) |
| **On the revision list** | The email answers an issued quotation version | A person who may edit the quotation: **Accept**, **Decline**, or **Reopen** a decided one (R118) |
| **Declined** | A person declined it | A person who may edit the quotation can **Reopen** it (R118) |
| **Accepted · carried by R1** | Accepted, and the next revision has taken it | Starting the revision; a carried change cannot be reopened (R119) |
| **Held** | The email arrived after a purchase order | Once a sales order is raised, the order is paused and the change is decided from it; applying accepts it onto the revision list (R118) |

See [Revision requests](/business/features/revision-requests).

## A document's commercial type

Separate from open/closed — this says what the mail *is*.

| Type | What it means |
| --- | --- |
| **Enquiry** | A request for a quotation |
| **Revision request** | A change to a requirement already quoted |
| **Quotation** | A quotation or offer from Flowtech to a customer |
| **Purchase order** | An order the customer is placing |
| **Sales order** | Flowtech confirming or acknowledging an order |
| **Follow-up** | A question, chaser or request about an existing quotation or order that asks for no new price |
| **Other** | Invoices, payment and finance matters, complaints, thanks and automatic replies |

Once a person corrects the type by hand, later mail never changes it again (R6).

## A document attached to a conversation

```
   Waiting ──► Read
       │
       └────► Not read ──(email processed again)──► Waiting
```

A picture or scan is asked once more straight away only when the picture reader
failed with a temporary fault. After that a
document that is not read is tried again only when its email is processed
again (R49), which today means a developer reprocesses it. Nothing reprocesses
a finished email by itself.

## A quotation

A quotation starts as a draft, rebuilt from the enquiry on every view. Issuing
freezes a version; revising makes the next draft from it. Issuing is not
sending: an issued version goes to the client with **Send**, and can be sent again. A later PO is compared to the quotation it
accepts.

```mermaid
stateDiagram-v2
  [*] --> Draft: quotation created
  Draft --> Issued: Issue
  Issued --> RevisionDraft: Revise
  RevisionDraft --> Issued: Issue
  RevisionDraft --> Issued: Discard the draft, back to the last issued version
  Draft --> [*]: Delete, never issued
  Draft: Draft
  RevisionDraft: Revision draft
```

A rate, discount, quantity or skip typed on a quotation line that has since
changed, because the line is no longer on the enquiry or now offers another
item code, is **withheld** and not applied (R36). It is listed on the quotation
with what it set. The person enters it again on its line if it still stands and
dismisses what is left, and the quotation cannot be issued until none is
listed. Dismissing cannot be undone.

Issuing, revising, discarding a draft and deleting a quotation all ask first.
A revision's draft becomes the latest version. Until it is issued it can be
discarded: its edits are lost and the quotation goes back to the last issued
version. A quotation that was never issued is deleted instead, with its draft;
its number is not given to another quotation, so the series keeps a gap (R85).

### Its follow-up

Once issued, a quotation is followed up: **No follow-up**, then **Budgetary**, **Negotiation** or **Finalized** as its
owner sets them, with a review date that can move without changing the stage. A matched purchase order makes it
**Received**; the owner can **Close** it with a reason, and reopen it. See [Follow-ups](/business/features/follow-ups).

## A purchase order

A purchase order is read from the client's email once it is linked to an enquiry.
It is saved as **Open**. A later reading with the same number amends it: the
earlier one becomes **Amended**, and the amendment is the one that counts. A copy
with the same content is not saved again. A person with approval rights records
one decision on an open order, and a later decision replaces it. An amended order
takes no decision. Cancelled, short-closed and on-hold orders are not set by
anything yet.

```mermaid
stateDiagram-v2
  [*] --> Open: read from the email
  Open --> Amended: a later reading with the same number
  Open --> Open: a decision is recorded or replaced
  Amended --> [*]
  Open: Open, undecided
```

The decision is one of **Accept**, **Accept with deviations** and **Ask for
amendment**. See [Checking a purchase order](/business/workflows/checking-a-purchase-order).

## A sales order

Raised after PO-vs-quote verification, from an issued quotation, or by hand when
there is no inbound PO. Every sales order raised in
FlowOS belongs to an enquiry, and through it to that enquiry's owner and, when
it has one, its office; it moves with the enquiry when the enquiry is reassigned.
One purchase order has at most one sales order that is not cancelled, and so has one
quotation across all its revisions, so a cancelled order can be raised again. Amendments are revisions.

A sales order is **Pending** until it is put **On Hold**, **Short Closed**,
**Cancelled** or **Completed**; each change is kept with its date, who made it
and a note. A client's email asking for a change after the order puts it On
Hold until someone applies or declines the request. Beside its status, an order has a **progress**: it starts
**Awaiting confirmation**, becomes **Confirmed** when the client acknowledges it by email (FlowOS reads it, or a
person confirms with proof, R136), then **In progress** and **Ready to ship**, forward only; a confirmation can
be undone while the order is only Confirmed. Each line carries its own delivery date, and the order's **overall
delivery date** is the latest of them.

FlowOS holds only the orders raised in it; orders placed before it stay in the
ERP. See [Sales orders](/business/features/sales-orders).

See [Enquiry to quotation](/business/workflows/enquiry-to-quotation).
