issue 21986: sales order workflow

There is also a pull request in private-extensions. This comprises everything in the spec except for serverside email triggering.