Allow direct creation of new label batches

now technically this is allowed on desktop, but probably makes more
sense on mobile via api
This commit is contained in:
Lance Edgar 2021-05-18 12:36:46 -05:00
parent 949b9d64bf
commit d1a35a4d58
2 changed files with 9 additions and 5 deletions

View file

@ -2,7 +2,7 @@
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2020 Lance Edgar
# Copyright © 2010-2021 Lance Edgar
#
# This file is part of Rattail.
#
@ -61,7 +61,9 @@ class LabelBatchRowViews(APIBatchRowView):
data['item_id'] = row.item_id
data['upc'] = six.text_type(row.upc)
data['upc_pretty'] = row.upc.pretty() if row.upc else None
data['brand_name'] = row.brand_name
data['description'] = row.description
data['size'] = row.size
data['full_description'] = row.product.full_description if row.product else row.description
return data