Add description, notes for pricing batches
This commit is contained in:
parent
aea4379fe4
commit
c7855f2ca5
|
@ -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,
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue