feat: expenses in statistics
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
			
		||||
import datetime
 | 
			
		||||
from typing import List, Tuple
 | 
			
		||||
from optparse import Option
 | 
			
		||||
from typing import List, Tuple, Optional
 | 
			
		||||
 | 
			
		||||
from enums.profit_table_group_by import ProfitTableGroupBy
 | 
			
		||||
from schemas.base import BaseSchema
 | 
			
		||||
@@ -10,6 +11,7 @@ class ProfitChartDataItem(BaseSchema):
 | 
			
		||||
    date: datetime.date
 | 
			
		||||
    revenue: float
 | 
			
		||||
    profit: float
 | 
			
		||||
    expenses: float
 | 
			
		||||
    deals_count: int
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -17,6 +19,7 @@ class ProfitTableDataItem(BaseSchema):
 | 
			
		||||
    grouped_value: datetime.date | str | int
 | 
			
		||||
    revenue: float
 | 
			
		||||
    profit: float
 | 
			
		||||
    expenses: Optional[float] = 0
 | 
			
		||||
    deals_count: int
 | 
			
		||||
 | 
			
		||||
# endregion
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user