tweak default label format

This commit is contained in:
Lance Edgar 2012-08-26 08:48:51 -07:00
parent ce1762ada8
commit 626b78fcd1

View file

@ -78,8 +78,9 @@ class BlasterTwoUpFormatter(labels.TwoUpCommandFormatter, BlasterFormatter):
half_offset = 120
def label_body_commands(self, product, x=0):
description = '%s %s' % (product.description, product.size)
return [
'STRING 5X7(1,1,1,1) %u 5 %s' % (x + 5, product.description[:17]),
'STRING 5X7(1,1,1,1) %u 15 %s' % (x + 5, product.description[17:]),
'STRING 5X7(1,1,1,1) %u 5 %s' % (x + 5, description[:17]),
'STRING 5X7(1,1,1,1) %u 15 %s' % (x + 5, description[17:]),
'BARCODE UPCA+ %u 75 25 %011u' % (x + 9, product.upc),
]