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 = [
'id',
'description',
'created',
'created_by',
'rowcount',
@ -76,7 +77,9 @@ class PricingBatchView(BatchMasterView):
fs.configure(
include=[
fs.id,
fs.description,
fs.min_diff_threshold,
fs.notes,
fs.created,
fs.created_by,
fs.executed,

View file

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