feat: generation of modules from the server, moved modules fields from the general tab
This commit is contained in:
@@ -135,7 +135,7 @@ class BarcodeService(BaseService):
|
||||
"barcode_image_url": uploader.get_abs_path(card_product.product.barcode_image.filename),
|
||||
"num_duplicates": card_product.quantity
|
||||
})
|
||||
else:
|
||||
elif len(card_product.product.barcodes) > 0:
|
||||
product_request = GetProductBarcodeRequest(
|
||||
product_id=card_product.product_id,
|
||||
barcode="",
|
||||
@@ -148,6 +148,8 @@ class BarcodeService(BaseService):
|
||||
"template": barcode_template,
|
||||
"num_duplicates": card_product.quantity
|
||||
})
|
||||
else:
|
||||
print("jaja")
|
||||
|
||||
default_generator = DefaultBarcodeGenerator()
|
||||
filename = f'{card.id}_deal_barcodes.pdf'
|
||||
|
||||
Reference in New Issue
Block a user