Purge even more jquery stuff
and related static files etc. from old themes this might be the end of it..??
This commit is contained in:
parent
2ebae17839
commit
976a5836a9
42 changed files with 366 additions and 5152 deletions
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2022 Lance Edgar
|
||||
# Copyright © 2010-2023 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -24,10 +24,6 @@
|
|||
Views for "true" purchase credits
|
||||
"""
|
||||
|
||||
from __future__ import unicode_literals, absolute_import
|
||||
|
||||
import six
|
||||
|
||||
from rattail.db import model
|
||||
|
||||
from webhelpers2.html import tags
|
||||
|
@ -112,7 +108,7 @@ class PurchaseCreditView(MasterView):
|
|||
g.filters['status'].default_active = True
|
||||
g.filters['status'].default_verb = 'not_equal'
|
||||
# TODO: should not have to convert value to string!
|
||||
g.filters['status'].default_value = six.text_type(self.enum.PURCHASE_CREDIT_STATUS_SATISFIED)
|
||||
g.filters['status'].default_value = str(self.enum.PURCHASE_CREDIT_STATUS_SATISFIED)
|
||||
|
||||
# g.set_type('upc', 'gpc')
|
||||
g.set_type('cases_shorted', 'quantity')
|
||||
|
@ -175,7 +171,9 @@ class PurchaseCreditView(MasterView):
|
|||
def status_options(self):
|
||||
options = []
|
||||
for value in sorted(self.enum.PURCHASE_CREDIT_STATUS):
|
||||
options.append(tags.Option(self.enum.PURCHASE_CREDIT_STATUS[value], value))
|
||||
options.append({
|
||||
'value': value,
|
||||
'label': self.enum.PURCHASE_CREDIT_STATUS[value]})
|
||||
return options
|
||||
|
||||
@classmethod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue