Orders in Dolibarr
The order is sent when it is placed or when it reaches an order state you choose. The customer is found by e-mail address or created as a third party; the invoice is created and validated, the payment is recorded, and a refund becomes a credit note.