From c7855f2ca5da1dbba6cc72b92ee8264a089c7274 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 30 Oct 2017 21:33:25 -0700 Subject: [PATCH] Add description, notes for pricing batches --- tailbone/views/batch/pricing.py | 3 +++ tailbone/views/products.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/tailbone/views/batch/pricing.py b/tailbone/views/batch/pricing.py index f35ba04a..273430b1 100644 --- a/tailbone/views/batch/pricing.py +++ b/tailbone/views/batch/pricing.py @@ -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, diff --git a/tailbone/views/products.py b/tailbone/views/products.py index fb7a7c22..807f2a8f 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -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)