feat: pdf generation using product barcode images
This commit is contained in:
		
							
								
								
									
										21
									
								
								barcodes/types.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								barcodes/types.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
from typing import TypedDict
 | 
			
		||||
 | 
			
		||||
from models import BarcodeTemplate, Product
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class BarcodeData(TypedDict):
 | 
			
		||||
    barcode: str
 | 
			
		||||
    template: BarcodeTemplate
 | 
			
		||||
    product: Product
 | 
			
		||||
    num_duplicates: int
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class PdfBarcodeGenData(TypedDict):
 | 
			
		||||
    barcode_value: str
 | 
			
		||||
    text: str
 | 
			
		||||
    num_duplicates: int
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class PdfBarcodeImageGenData(TypedDict):
 | 
			
		||||
    num_duplicates: int
 | 
			
		||||
    barcode_image_url: str
 | 
			
		||||
		Reference in New Issue
	
	Block a user