dodil/erp-platform
tests/data/quote.module.yaml
id: quote
name: Quotes
version: 1
actors:
- { id: rep, name: Sales rep }
- { id: customer, name: The customer }
workflows:
- entity: quote
states: [draft, sent, accepted, expired]
transitions:
- { key: draft_quote, from: none, to: draft, by: rep }
- { key: send_quote, from: draft, to: sent, by: rep, gate: "at least one line", effect: "frozen" }
- { key: accept_quote, from: sent, to: accepted, by: customer, effect: "the deal is won" }