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 = [
|
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',
|
||||||
]
|
]
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue