From 626b78fcd171c12c97619a974235a87c5f4664da Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 26 Aug 2012 08:48:51 -0700 Subject: [PATCH] tweak default label format --- rattail/hw/cognitive/labels.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rattail/hw/cognitive/labels.py b/rattail/hw/cognitive/labels.py index e1a09e7..1356e58 100644 --- a/rattail/hw/cognitive/labels.py +++ b/rattail/hw/cognitive/labels.py @@ -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), ]