Module Sales Orders (developer)

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
Order
Numero/ID of module 25
User doc. of module Module Customers Orders
Developer doc. of module This page

Feature

En verysmall.png Page waiting for translation. To translate, create an account, go back and clic on "Modify".
Fr verysmall.png Page en attente de traduction. Pour traduire, créez un compte, revenez et cliquez sur "Modifier".
Es verysmall.png Página a traducir. Para traducirla, cree una cuenta, vuelva a la página y haga clic en "editar".
It verysmall.png Pagina da tradurre. Per tradurla, crea un utente, torna indietro e clicca su "modifica".
Pt verysmall.png Página a aguardar por tradução. Para traduzir, crie uma conta, volte atrás e clique em "Modificar".
De verysmall.png Seite wartet auf Übersetzung. Um Übersetzung zu erstellen, richte einen Account ein, geh zurück und klicke auf "bearbeiten".
Zh verysmall.png 页面等待翻译。若要翻译本页,先创建一个帐户、登录并返回本页后单击“编辑”。

Customer orders module allows you to manage the following entities in Dolibarr:

  • Customer orders
  • Lines of customer order

Supplier orders are managed by the Module Suppliers (developer) module.

Entity Order

The PHP class to use to manipulate such object is file htdocs/commande/class/commande.class.php.

It contains CRUD methods to create (C), read (R), update (U) and delete (D) this object.

Business rules:

  • A command/order has several command/order lines
  • It is possible to attach 1 to n contacts for an order
  • To complete...

Life Cycle:

  • An order can be created in draft mode (Causes trigger ORDER_CREATE)
  • An order can be changed (Causes trigger ORDER_UPDATE)
  • An order can be validated (Causes trigger ORDER_VALIDATE)

Permissions

  • ->commande->lire
  • ->commande->creer
  • ->commande->valider
  • ->commande->envoyer
  • ->commande->cloturer
  • ->commande->annuler
  • ->commande->supprimer
  • ->commande->export

Tables SQL