Add description, notes for pricing batches

This commit is contained in:
Lance Edgar 2017-10-30 21:33:25 -07:00
parent aea4379fe4
commit c7855f2ca5
2 changed files with 5 additions and 0 deletions

View file

@ -49,6 +49,7 @@ class PricingBatchView(BatchMasterView):
grid_columns = [ grid_columns = [
'id', 'id',
'description',
'created', 'created',
'created_by', 'created_by',
'rowcount', 'rowcount',
@ -76,7 +77,9 @@ class PricingBatchView(BatchMasterView):
fs.configure( fs.configure(
include=[ include=[
fs.id, fs.id,
fs.description,
fs.min_diff_threshold, fs.min_diff_threshold,
fs.notes,
fs.created, fs.created,
fs.created_by, fs.created_by,
fs.executed, fs.executed,

View file

@ -517,7 +517,9 @@ class ProductsView(MasterView):
Pricing Batch. Pricing Batch.
""" """
class PricingParamsForm(wtforms.Form): class PricingParamsForm(wtforms.Form):
description = wtforms.StringField()
min_diff_threshold = wtforms.DecimalField(places=2, validators=[wtforms.validators.optional()]) min_diff_threshold = wtforms.DecimalField(places=2, validators=[wtforms.validators.optional()])
notes = wtforms.TextAreaField()
return PricingParamsForm(self.request.POST) return PricingParamsForm(self.request.POST)