feat: end-point for pdf of all deal's barcodes, client and marketplace info in bill of payment

This commit is contained in:
2024-09-28 19:38:06 +04:00
parent d9c43624c0
commit 489f65a087
8 changed files with 169 additions and 57 deletions

View File

@@ -1,13 +1,11 @@
from abc import abstractmethod
from typing import List, Dict
from models import ProductBarcode, Product, BarcodeTemplate
from models import BarcodeTemplate, Product
class BaseBarcodeGenerator:
@abstractmethod
def generate(self,
barcode: ProductBarcode,
product: Product,
template: BarcodeTemplate):
def generate(self, data: List[Dict[str, str | Product | BarcodeTemplate | int]]):
pass