feat: executors and grouping by article in deal document
This commit is contained in:
		
							
								
								
									
										20
									
								
								generators/deal_pdf_generator/deal_data.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								generators/deal_pdf_generator/deal_data.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
from typing import TypedDict, List, Dict, Tuple, Optional
 | 
			
		||||
 | 
			
		||||
from models import DealProduct, Deal, DealStatusHistory
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class DocumentDealProductData(TypedDict):
 | 
			
		||||
    deal_products: List[DealProduct]
 | 
			
		||||
    total_one_product: int
 | 
			
		||||
    quantity: int
 | 
			
		||||
    additional_info: Optional[str]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class DocumentDealData(TypedDict):
 | 
			
		||||
    deal: Deal
 | 
			
		||||
    general_services_total: int
 | 
			
		||||
    products: Dict[str, DocumentDealProductData]
 | 
			
		||||
    current_status_str: str
 | 
			
		||||
    last_status: DealStatusHistory
 | 
			
		||||
    product_images: Tuple[str]
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user