feat: bigger product size

This commit is contained in:
2024-10-06 13:04:42 +03:00
parent 4e5365b946
commit e153d4a1c0
3 changed files with 9 additions and 3 deletions

View File

@@ -21,11 +21,15 @@ class DefaultBarcodeGenerator(BaseBarcodeGenerator):
if not attribute_getter:
continue
value = attribute_getter.get_value(barcode_data["product"])
if not value or not value.strip():
continue
attributes[attribute.name] = value
for additional_attribute in barcode_data["template"].additional_attributes:
attributes[additional_attribute.name] = additional_attribute.value
value = additional_attribute.value
if not value:
continue
attributes[additional_attribute.name] = value
barcode_text = '<br/>'.join([f'{key}: {value}' for key, value in attributes.items()])
pdf_barcodes_gen_data.append(