Add "most of" support for truck dump receiving
still not complete, but conceptually it sort of is...
This commit is contained in:
parent
805a1afa3f
commit
cd7922f204
8 changed files with 368 additions and 76 deletions
|
@ -26,6 +26,8 @@ Views for "true" purchase credits
|
|||
|
||||
from __future__ import unicode_literals, absolute_import
|
||||
|
||||
import six
|
||||
|
||||
from rattail.db import model
|
||||
|
||||
from webhelpers2.html import tags
|
||||
|
@ -70,12 +72,13 @@ class PurchaseCreditView(MasterView):
|
|||
|
||||
g.set_sort_defaults('date_received', 'desc')
|
||||
|
||||
g.set_enum('status', self.enum.PURCHASE_CREDIT_STATUS)
|
||||
g.filters['status'].set_value_renderer(grids.filters.EnumValueRenderer(self.enum.PURCHASE_CREDIT_STATUS))
|
||||
g.filters['status'].default_active = True
|
||||
g.filters['status'].default_verb = 'not_equal'
|
||||
g.filters['status'].default_value = self.enum.PURCHASE_CREDIT_STATUS_SATISFIED
|
||||
# TODO: should not have to convert value to string!
|
||||
g.filters['status'].default_value = six.text_type(self.enum.PURCHASE_CREDIT_STATUS_SATISFIED)
|
||||
|
||||
g.set_enum('status', self.enum.PURCHASE_CREDIT_STATUS)
|
||||
# g.set_type('upc', 'gpc')
|
||||
g.set_type('cases_shorted', 'quantity')
|
||||
g.set_type('units_shorted', 'quantity')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue