Main > Reference Manual > Modeling > Customer
Demands are associated with a customer.
Customers can be organized in a hierarchical tree to represent the sales organization's structure.
FrePPLe uses customers only from reporting purposes, no real planning logic is currently linked to them.
Fields
| Field | Type | Description |
| name | non-empty string |
Name of the customer. |
| description | string |
Free format description. |
| category | normalizedString |
Free format category. |
| subcategory | normalizedString |
Free format subcategory. |
| owner | customer |
Customers are organized in a hierarchical tree. |
| members | list of customer |
Customers are organized in a hierarchical tree. |
| hidden | boolean |
Marks entities that are considered hidden and are normally not shown to the end user. |
| action | A C AC (default) R |
Type of action to be executed:
|
Example XML structures
- Adding or changing a customer
<plan>
<customers>
<customer name="customer A" category="Direct"/>
</customers>
</plan>
- Deleting a customer
<plan>
<customers>
<customer name="customer A" action="R"/>
</customers>
</plan>
Example Python code
- Adding or changing a customer
cust = frepple.customer(name="customer A", category="Direct")
- Deleting a customer
cust = frepple.customer(name="customer A", action="R")
