Expose description and notes for label batches

This commit is contained in:
Lance Edgar 2017-12-02 14:20:02 -06:00
parent f06fff983e
commit 70a34615a3
3 changed files with 16 additions and 2 deletions

View file

@ -45,11 +45,12 @@ class BatchMasterView2(MasterView2, BatchMasterView):
grid_columns = [
'id',
'description',
'created',
'created_by',
'rowcount',
'status_code',
'complete',
# 'status_code',
# 'complete',
'executed',
'executed_by',
]

View file

@ -72,6 +72,8 @@ class LabelBatchView(BatchMasterView):
fs.configure(
include=[
fs.id,
fs.description,
fs.notes,
fs.created,
fs.created_by,
fs.handheld_batches,

View file

@ -511,6 +511,17 @@ class ProductsView(MasterView):
return {'form': form, 'params_forms': params_forms}
def make_batch_params_form_labels(self):
"""
Returns a wtforms.Form object with param fields for making a new
Labels Batch.
"""
class LabelsParamsForm(wtforms.Form):
description = wtforms.StringField()
notes = wtforms.TextAreaField()
return LabelsParamsForm(self.request.POST)
def make_batch_params_form_pricing(self):
"""
Returns a wtforms.Form object with param fields for making a new