Commit graph

49 commits

Author SHA1 Message Date
Lance Edgar
aaa1d17507 Add hyperlinks to product UPC and description, within main grid
These won't honor the indexing scheme yet, still need to think about
that.
2016-05-03 22:10:54 -05:00
Lance Edgar
c83a3e6eb0 Overhaul vendor catalog batch views, to use BatchMasterView. 2016-02-14 17:07:48 -06:00
Lance Edgar
62221a1a25 Add new BatchMasterView for new-style batches. 2016-02-14 16:47:35 -06:00
Lance Edgar
a341acb4f0 Make our DateTimeFieldRenderer the default for datetime fields. 2016-02-14 16:34:39 -06:00
Lance Edgar
a5080b113d Various tweaks to products grid filters etc.
Trying to troubleshoot some things...think we're good now.  Some of the
changes here were made and then discovered not to be necessary yet, but
left in place since they're probably good ideas anyway.
2016-02-13 13:00:55 -06:00
Lance Edgar
583548cad5 Refactor products view(s) per new master pattern.
Finally!
2016-02-12 20:44:41 -06:00
Lance Edgar
ab40685175 Clean up products view imports etc. a bit. 2015-12-07 15:07:48 -06:00
Lance Edgar
a7bcf71642 Fix references to config.getboolean(). 2015-08-17 12:40:42 -05:00
Lance Edgar
fca1ae55db Fix missing import bug. 2015-07-21 12:54:49 -05:00
Lance Edgar
d0a977d64b Add products autocomplete view. 2015-07-20 09:51:08 -05:00
Lance Edgar
b30549cab6 Fix bug when creating batch from product query.
Caused by some refactoring to remove edbob cruft.
2015-04-14 15:38:57 -05:00
Lance Edgar
84c5f0a327 Add dept. number and friends to product details page. 2015-03-23 02:36:18 -05:00
Lance Edgar
62a93d1cd1 Hide "print labels" column on products list view if so configured. 2015-03-12 19:22:06 -05:00
Lance Edgar
3fed317805 Add UI support for Product.last_sold and current_price_ends pseudo-field. 2015-03-10 17:51:12 -05:00
Lance Edgar
42da24a047 Add product UPC to JSON output of 'products.search' view. 2015-03-10 15:22:39 -05:00
Lance Edgar
7c9e7cd138 Clean up some imports. 2015-03-07 14:21:48 -06:00
Lance Edgar
69a5eed83b Add shared GPC search filter, use it for product batch rows. 2015-03-07 14:19:19 -06:00
Lance Edgar
3b9efe0ffb Add panels to product details view, etc. 2015-02-27 03:07:49 -06:00
Lance Edgar
86db5181b8 Add some new vendor and product fields. 2015-02-27 01:53:36 -06:00
Lance Edgar
6ea032c591 Add unit_of_measure to product detail view. 2015-02-26 21:10:08 -06:00
Lance Edgar
d50aef4e49 Add views for deposit links, taxes; update product view. 2015-02-26 19:06:20 -06:00
Lance Edgar
99e11fe8d8 Hide deleted field from product details, according to permissions. 2015-02-26 18:01:55 -06:00
Lance Edgar
8409d24273 Add case pack field to product CRUD form. 2015-02-11 20:26:56 -06:00
Lance Edgar
f3d449c9f3 Add UI support for Product.deleted column.
This leverages the 'products.view_deleted' permission to hide products
which are marked as deleted from various views.  Also adds a 'deleted'
class to product grid rows where the flag is set, and adds a flash warning
when viewing a deleted product.
2015-02-11 00:52:23 -06:00
Lance Edgar
def466935b Add initial versioning support with SQLAlchemy-Continuum. 2015-02-09 23:36:40 -06:00
Lance Edgar
41dd2ef17b Add category to product CRUD view. 2015-02-09 13:31:41 -06:00
Lance Edgar
d8b2112d01 Fix bug in product search UPC filter. 2015-01-11 19:14:18 -06:00
Lance Edgar
2a04caaf99 Make product UPC search view strip non-digit chars from input.
This is to accomodate the apparently frequent use case of copy/paste which
includes the check digit as a "-X" type suffix.
2014-12-18 15:43:49 -06:00
Lance Edgar
8bf292ebac Remove some more edbob cruft. 2014-11-18 23:00:24 -06:00
Lance Edgar
b2aa45ceb0 Fix bugs when configuring database session within threads.
This got missed during a recent refactor.
2014-11-11 10:48:48 -06:00
Lance Edgar
5b173dd9bc Change session progress API.
Breaks compatibility, but worth it I think..
2014-11-02 20:48:22 -06:00
Lance Edgar
4a598bd360 Add explicit session config within batch threads.
This may not be particularly necessary in general, but this change is
required to match previous functionality.
2014-11-02 19:40:14 -06:00
Lance Edgar
9d2a35c8b1 Refactor some label printing stuff, per rattail changes.
This had to do with some edbob removal.
2014-09-13 19:16:25 -07:00
Lance Edgar
dfb5e83c7e Add support for Product.not_for_sale flag.
This involved a couple of ancillary changes:

* The price field renderer will not display a price for products marked not
  for sale.

* The "grid" class now allows specifying a custom callable to provide
  additional CSS class for table rows.

* The products grid uses this to add a "not-for-sale" class to table rows
  for products which are marked thusly.
2014-09-10 19:38:49 -07:00
Lance Edgar
6943298ee0 Add product report codes to the UI. 2014-07-12 16:03:31 -07:00
Lance Edgar
8cf5605e8e Remove some edbob references. 2014-06-12 22:07:34 -07:00
Lance Edgar
389bb5dcc6 Add POD image support to product view page. 2014-04-13 17:54:22 -07:00
Lance Edgar
087342b09c Add Family and Product.family to the general grid/crud UI. 2014-04-13 00:04:30 -07:00
Lance Edgar
e4ef46d4fc Fix vendor filter/sort issues in products grid. 2014-04-12 19:14:14 -07:00
Lance Edgar
d6f2b1afb1 Use global Session from rattail (again). 2014-02-15 19:27:22 -08:00
Lance Edgar
c6d01e0205 Add SessionProgress class. 2014-01-28 22:14:11 -08:00
Lance Edgar
7638020aa0 Removed reliance on global rattail.db.Session class. 2013-12-18 21:13:03 -08:00
Lance Edgar
650e6389e5 Added Product.family to CRUD view. 2013-10-11 14:15:43 -07:00
Lance Edgar
9f8a3d3a5c Refactored AutocompleteFieldRenderer.
Also improved some organization of renderers.
2013-09-21 15:02:55 -07:00
Lance Edgar
23e08d0bb0 Fixed grid join map bug. 2013-09-20 15:49:48 -07:00
Lance Edgar
685b391dd2 Added products.search route/view.
This is for simple AJAX uses.
2013-09-20 14:54:27 -07:00
Lance Edgar
047c35ab75 Changed vendor filter in product search to find "any vendor".
I.e. the current filter is ''not'' restricted to the preferred vendor only.
Probably should still add one (back) for preferred only as well; hence the
commented code.
2013-09-10 06:35:17 -07:00
Lance Edgar
2a50e704ef Major overhaul for standalone operation.
This removes some of the `edbob` reliance, as well as borrowing some templates
and styling etc. from Dtail.
2013-09-01 15:31:50 -07:00
Lance Edgar
40efd8a3bc Rebranded to Tailbone. 2013-09-01 08:18:37 -07:00
Renamed from rattail/pyramid/views/products.py (Browse further)