Expose description and notes for label batches
This commit is contained in:
parent
f06fff983e
commit
70a34615a3
|
@ -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',
|
||||
]
|
||||
|
|
|
@ -72,6 +72,8 @@ class LabelBatchView(BatchMasterView):
|
|||
fs.configure(
|
||||
include=[
|
||||
fs.id,
|
||||
fs.description,
|
||||
fs.notes,
|
||||
fs.created,
|
||||
fs.created_by,
|
||||
fs.handheld_batches,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue