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 = [ grid_columns = [
'id', 'id',
'description',
'created', 'created',
'created_by', 'created_by',
'rowcount', 'rowcount',
'status_code', # 'status_code',
'complete', # 'complete',
'executed', 'executed',
'executed_by', 'executed_by',
] ]

View file

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

View file

@ -511,6 +511,17 @@ class ProductsView(MasterView):
return {'form': form, 'params_forms': params_forms} 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): def make_batch_params_form_pricing(self):
""" """
Returns a wtforms.Form object with param fields for making a new Returns a wtforms.Form object with param fields for making a new