docs
0
# Sales Management
1
2
Sales pipeline management, opportunity tracking, sales phase configuration, and revenue forecasting.
3
4
## Capabilities
5
6
### Opportunity Management
7
8
```python { .api }
9
class Opportunity(CremeEntity):
10
"""
11
Sales opportunity entity for pipeline management.
12
13
Attributes:
14
- name: str, opportunity name
15
- sales_phase: ForeignKey, current sales phase
16
- estimated_sales: DecimalField, potential revenue
17
- made_sales: DecimalField, actual revenue
18
- closing_date: DateField, expected close date
19
20
Methods:
21
- advance_phase(): Move to next sales phase
22
- calculate_probability(): Get close probability
23
"""
24
```
25
26
### Sales Phase
27
28
```python { .api }
29
class SalesPhase(models.Model):
30
"""
31
Sales phase for opportunity progression.
32
33
Attributes:
34
- name: str, phase name
35
- order: int, phase sequence order
36
- won: bool, indicates successful close
37
- lost: bool, indicates lost opportunity
38
"""
39
```