Commit graph

1195 commits

Author SHA1 Message Date
Lance Edgar ef40af814a Add readonly support for email profile settings.
More to come...  Also this required some form tweaking/overhaul(s).
2015-12-04 17:25:52 -06:00
Lance Edgar a33b48dde3 Let subclass of MasterView override the database Session it uses. 2015-11-20 20:11:15 -06:00
Lance Edgar 864300b927 Render DataSyncChange.obtained as humanized timestamp within UI. 2015-11-11 15:58:13 -06:00
Lance Edgar a96a44110a Add view to show DataSync changes, for basic troubleshooting. 2015-11-04 22:30:55 -06:00
Lance Edgar be2a1ba862 Delete product costs for vendor when deleting vendor. 2015-10-17 16:45:39 -05:00
Lance Edgar 73939b825e Add ability to download batch row data as CSV. 2015-08-19 20:06:13 -05:00
Lance Edgar 6c5eec7981 Add progress indicator to batch execution.
Also disable Execute button immediately when clicked.
2015-08-19 18:49:09 -05:00
Lance Edgar e01e323d3e Tweak base BatchRowCrud view class, for fieldset customization. 2015-08-19 17:15:09 -05:00
Lance Edgar e02357a791 Add configure_fieldset() stub for master view. 2015-08-19 14:04:59 -05:00
Lance Edgar 5f1c60e362 Tweak default/basic batch CRUD fieldset a little. 2015-08-18 23:50:23 -05:00
Lance Edgar 6feb488884 Various tweaks to base batch views.
These were made to support a non-file batch; apparently that use case
hadn't seen much attention yet.
2015-08-18 21:17:15 -05:00
Lance Edgar 75c9f9ebc0 Fix bug in late-login user stuff. 2015-08-17 16:55:10 -05:00
Lance Edgar a7bcf71642 Fix references to config.getboolean(). 2015-08-17 12:40:42 -05:00
Lance Edgar 078e2c5471 Tweak label formatter instantiation, per rattail changes. 2015-08-17 12:39:26 -05:00
Lance Edgar 3e37ac909e Various tweaks to support "late login" idea when uploading new batch. 2015-08-15 17:00:01 -05:00
Lance Edgar d57f5169b0 Add 'Default Filters' and 'Clear Filters' buttons to new grid filters form. 2015-08-14 18:53:39 -05:00
Lance Edgar d2b065a8fc Add basic checkbox support to new grids.
Also:

 * Add 'creatable', 'editable' etc. to master view class.
 * Add styles for warning/notice grid rows.
 * Misc. other tweaks.
2015-08-14 15:31:11 -05:00
Lance Edgar d4210844ac Convert label profiles to use master view.
Plus some more minor tweaks to the framework.
2015-08-12 00:46:39 -05:00
Lance Edgar af07f477dc Convert User pages to use master view.
And of course make some more tweaks to new grids etc.
2015-08-11 23:24:02 -05:00
Lance Edgar 9cfbc918e7 Overhaul how available permissions are registered in app config.
Permissions must now be regsistered just like routes and views.  This
should make things much nicer going forward.
2015-08-11 17:26:04 -05:00
Lance Edgar 412ac6e12f Tweak some view config logic to avoid test failure. 2015-08-11 15:18:39 -05:00
Lance Edgar 9605d44b05 Convert Roles to use master view.
Also tweak the grid API here and there.
2015-08-11 15:01:21 -05:00
Lance Edgar 585eb09bec Add support for "new-style grids" and "model master views".
Finally, an API that makes some sense...  We don't yet have feature parity
with the old-style grids and CRUD views, but this is already a significant
improvement to the design.  Still needs a lot of docs though...
2015-08-10 18:58:31 -05:00
Lance Edgar d698bef608 Don't show flash message when user logs in.
That just seems more annoying to me, somehow..
2015-08-08 13:58:16 -05:00
Lance Edgar 46f8430c32 Log warning instead of error when refreshing batch fails. 2015-07-29 12:27:28 -05:00
Lance Edgar eecabac08f Fix filter bug in bouncer. 2015-07-23 20:10:29 -05:00
Lance Edgar c42e80f87a Make email "source" filter use a dropdown, in bouncer UI. 2015-07-23 20:05:48 -05:00
Lance Edgar 0ddb5bffd7 Add plain text of message body to email bounce view.
Also tweak some labels.
2015-07-23 15:47:17 -05:00
Lance Edgar f523146a4b Add initial support for email bounce management. 2015-07-22 20:01:16 -05:00
Lance Edgar fca1ae55db Fix missing import bug. 2015-07-21 12:54:49 -05:00
Lance Edgar 3732cc30f2 Add rattail_config attribute to base View class.
Just a shortcut but should save a little code noise.
2015-07-20 09:51:29 -05:00
Lance Edgar d0a977d64b Add products autocomplete view. 2015-07-20 09:51:08 -05:00
Lance Edgar e0cb47d03a Add list of assigned users to role view page.
This surely could be better still; at least this is *something*.
2015-07-16 17:11:25 -05:00
Lance Edgar bafa1a0fd7 Tweak how default filter config is handled for batch grid views.
Not sure I fully understand what happened but this seemed to fix it..
2015-07-15 23:19:29 -05:00
Lance Edgar 5cbccb175a Only check executability of a batch when not creating one.
There is no batch yet when creating, so execution is not relevant.
2015-07-09 15:46:21 -05:00
Lance Edgar dc1ef65441 Let batch handler determine whether Execute button is enabled. 2015-07-09 13:38:54 -05:00
Lance Edgar 4290f0d8df Allow batch view to disable the Execute button in some cases.
Although this only disables the UI button element, it doesn't really
prevent anything beyond that...
2015-07-09 01:42:19 -05:00
Lance Edgar fb8fab1577 Tweak logic for removing certain form fields when creating a batch.
Just to be a little more on the safe side.
2015-07-03 17:48:53 -05:00
Lance Edgar fcfe5f6442 Add display_name field to employee CRUD view. 2015-05-19 22:18:21 -05:00
Lance Edgar 49cb1e8e13 Merge branch 'bugfix' 2015-04-14 15:40:55 -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 23f491c441 Tweak old-style batch execution call.
Need to provide config so we can remove more edbob cruft.
2015-04-14 15:06:01 -05:00
Lance Edgar 2fe1d49ff9 Tweak old-style batch execution call.
Need to provide config so we can remove more edbob cruft.
2015-04-14 01:29:24 -05:00
Lance Edgar 7c2b406d0d Fix usage of Product.unit_of_measure vs. Product.weighed. 2015-04-11 03:33:01 -05:00
Lance Edgar 6db88edb68 Add autocomplete view for current employees. 2015-04-11 00:23:31 -05:00
Lance Edgar 0c4ceefa2c Add flash message when any batch executes successfully. 2015-04-11 00:22:34 -05:00
Lance Edgar a79c89b470 Change permission requirement for refreshing a batch's data.
In the event of a create-only user role, refreshing sort of needs to be
part of it.
2015-04-10 22:04:37 -05:00
Lance Edgar e43ceda6bc Fix query bugs for batch row grid views.
It worked until we needed to join a table (vendor in this case).
2015-04-06 20:44:42 -05:00
Lance Edgar 84c5f0a327 Add dept. number and friends to product details page. 2015-03-23 02:36:18 -05:00
Lance Edgar 8a21fe7cfc Fix vendor invoice validation bug.
If user provided a PO number but no parser, an error was raised.
2015-03-21 17:25:02 -05:00
Lance Edgar d0bc348ce4 Fix bulk delete of batch rows, to set 'removed' flag instead. 2015-03-19 02:02:07 -05:00
Lance Edgar 8285993fa6 Add ability to view details (i.e. all fields) of a batch row. 2015-03-19 01:25:38 -05:00
Lance Edgar be41d0bb1e Add 'fake_error' view to test exception handling. 2015-03-17 14:49:20 -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 5e79b132f9 Fix permission for taxes list/search view. 2015-03-11 23:44:27 -05:00
Lance Edgar ab0c5bb45f Fix permission for deposit link list/search view. 2015-03-11 23:42:40 -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 51e4eda662 Don't allow edit of vendor and effective date in catalog batches.
This may need to be tweaked in the future, but until then we'll be
conservative about it.
2015-03-06 19:15:03 -06:00
Lance Edgar d83ca4456a Fix bulk delete of batch rows.
Actually I didn't see this fail, but I've seen one instance where someone
else did.  This should hopefully be a safe approach.
2015-03-06 19:13:45 -06:00
Lance Edgar a7ecf445db Fix login redirect if referrer is not internal to site. 2015-03-05 16:55:09 -06:00
Lance Edgar d296b5bde5 Fix login so user is sent to their target page after authentication. 2015-03-05 16:19:38 -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 e216ed9281 Add validation to PO number for vendor invoices. 2015-02-24 22:50:59 -06:00
Lance Edgar e11a599f92 Add warning status for products with missing cost in vendor invoices. 2015-02-24 19:55:29 -06:00
Lance Edgar ce2b29433d Exclude 'deleted' items from reports. 2015-02-24 18:57:07 -06:00
Lance Edgar 50430e89db Add better error handling when batch refresh fails, etc.
Also don't force refresh when view is requested; instead just do a refresh
after batch is first created.
2015-02-23 20:10:21 -06:00
Lance Edgar 3e940e3c14 Fix bug when sorting batches by 'executed by' field.
Hopefully this gets it, seems like I may need an alias in there
somewhere...
2015-02-23 18:47:49 -06:00
Lance Edgar 3614254804 Improve data file handling for file batches.
Leverages a FormAlchemy "extension" of sorts.
2015-02-22 00:00:00 -06:00
Lance Edgar 2e8db05717 Add initial support for vendor invoice batch feature, etc.
Also included:

* Add "edit batch" template, refactor "view batch" template.
* Tweak form templates to allow specifying form ID and buttons HTML.
* Make deleting batch rows only work when editing a batch.
2015-02-16 18:00:45 -06:00
Lance Edgar 730a2a2f01 Let custom vendor catalog batch handler be specified in config file.
This was using database settings exclusively.
2015-02-13 21:22:36 -06:00
Lance Edgar 937a55c14d Add docs for new batch system.
And some other tweak(s).
2015-02-13 01:12:20 -06:00
Lance Edgar 6c7f1afcf4 Fix filename in batch file download link (again).
This hopefully prevents encoding errors which were bound to happen...
2015-02-12 23:32:17 -06:00
Lance Edgar 26e5be9897 Fix filename when downloading batch file. 2015-02-12 23:24:36 -06:00
Lance Edgar eedbcb81f8 Add download feature for file batches. 2015-02-12 23:19:01 -06:00
Lance Edgar 23addae818 Rearrange primary batch fields for vendor catalogs.
Catalog info seemed more important than who uploaded it.
2015-02-12 23:18:17 -06:00
Lance Edgar 16be06821a Wrap up initial vendor catalog batch support etc.
* Adds the ability to delete all batch rows matching current query.
* Refactors some progress factory args.
* If batch initialization fails, don't persist batch.
2015-02-12 21:35:28 -06:00
Lance Edgar 8409d24273 Add case pack field to product CRUD form. 2015-02-11 20:26:56 -06:00
Lance Edgar bc06a72993 Add prettier UPCs to ordering worksheet report. 2015-02-11 03:27:31 -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 aa70ffc9f0 Rework versioning support to allow it to be one or off.
Turns out versioning isn't quite ready for prime time, so let's have a
fallback plan shall we?
2015-02-10 19:07:46 -06:00
Lance Edgar 5ad5cb569d Only attempt to count versions for versioned models. 2015-02-10 11:23:35 -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 0455e472f5 Cleanup some view modules per conventions etc.
Mainly this makes extending them easier..
2015-02-09 13:30:29 -06:00
Lance Edgar eedbc5fb9a Various grid and form tweaks. 2015-02-09 13:20:34 -06:00
Lance Edgar 3257010a7e Change default sort for People grid view. 2015-02-02 20:44:32 -06:00
Lance Edgar 7fbabc8792 Add department to field lists for category views. 2015-01-31 18:18:54 -06:00
Lance Edgar c328c96203 Let settings determine which batch handler to use for vendor catalog views. 2015-01-20 13:22:20 -06:00
Lance Edgar 7c761bee99 Fix some imports etc. regarding new batch system. 2015-01-20 00:51:51 -06:00
Lance Edgar b05f30d9fe New batch system! Hopefully nothing else broke...
Attempt number 5,176 at a decent batch system, we'll see.
2015-01-19 00:52:40 -06:00
Lance Edgar c4a19f279b Remove some edbob, unicode tweak, etc.
In particular it was noticed that edbob has been configuring FormAlchemy
all this time, whoops.  That's still partially the case but now at least
it's explicit.
2015-01-19 00:49:07 -06:00
Lance Edgar e47477f0c4 Improve UPC search for rows within batches.
As with the products page, now this search works with or without the check
digit.
2015-01-15 12:17:35 -06:00
Lance Edgar 7d42950527 Tweak variable name. 2015-01-15 01:49:17 -06:00
Lance Edgar b7aa4b36d0 Add unique username check when creating users. 2015-01-15 01:40:00 -06:00
Lance Edgar 7bbadfd338 Add support for integer search filters.
This mostly just avoids to suppress type errors by stripping out
non-numeric chars from input.
2015-01-13 21:22:56 -06:00
Lance Edgar d8b2112d01 Fix bug in product search UPC filter. 2015-01-11 19:14:18 -06:00
Lance Edgar 4a71ab5fb1 Use boolean search filter for batch column filters of 'FLAG' type. 2014-12-28 16:00:52 -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 cc2c2573e5 Add grid, CRUD views for Setting model.
This required some tweaks to the base CRUD view etc.
2014-11-23 14:27:00 -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 8faec95b17 Make Store.database_key field editable. 2014-11-02 19:39:33 -06:00
Lance Edgar 350c944e91 Fix some bugs with printer profile stuff, per recent rattail changes. 2014-09-26 15:31:34 -07: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 a3cfbd1e09 Add "exclude not for sale" option to Inventory Worksheet. 2014-09-11 20:59:43 -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 16bba17e83 Add "active" filter to users view; enable it by default. 2014-08-05 21:23:55 -07:00
Lance Edgar 2626ff4fdf Add Person autocomplete view which restricts to employees only. 2014-07-19 18:49:00 -07:00
Lance Edgar 9c294f2e4d Allow editing User.active field. 2014-07-13 20:39:36 -07:00
Lance Edgar f9d22f59f2 Add customer phone autocomplete and customer "info" AJAX view.
This autocomplete view is a little different than the typical ones used
prior, and required some refactoring of the base autocomplete view as well
as the autocomplete template.
2014-07-13 12:47:03 -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 54bb9e2869 Add experimental soundex filter support to the Customers grid. 2014-06-12 20:41:25 -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 6fcb5a5ddf Add progress views. 2014-01-28 22:35:33 -08:00
Lance Edgar c6d01e0205 Add SessionProgress class. 2014-01-28 22:14:11 -08:00
Lance Edgar a6226700f1 Fix customer lookup bug in customer detail view. 2014-01-26 13:17:15 -08:00
Lance Edgar 7638020aa0 Removed reliance on global rattail.db.Session class. 2013-12-18 21:13:03 -08:00
Lance Edgar 874ad44e6b Removed references to edbob.enum. 2013-12-17 06:09:28 -08:00
Lance Edgar 1a557f3947 Refactored model imports, etc.
This is in preparation for using database models only from `rattail` (i.e. no
`edbob`).  Mostly the model and enum imports were affected.
2013-12-17 06:00:04 -08:00
Lance Edgar 650e6389e5 Added Product.family to CRUD view. 2013-10-11 14:15:43 -07:00
Lance Edgar a11b8d9ff2 Allow overriding form class/factory for CRUD views. 2013-09-21 17:09:10 -07:00
Lance Edgar 9f8a3d3a5c Refactored AutocompleteFieldRenderer.
Also improved some organization of renderers.
2013-09-21 15:02:55 -07:00
Lance Edgar c1d726d48c Made SortableAlchemyGridView default to full (100%) width. 2013-09-20 21:51:29 -07:00
Lance Edgar 62a0b67502 Added forbidden view. 2013-09-20 20:17:59 -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 857a4b88e5 Fixed change password template/form. 2013-09-10 20:37:19 -07:00
Lance Edgar 73686b822f Added forms.alchemy module and changed CRUD view to use it. 2013-09-10 09:45:01 -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 7d19700c3c More standalone operation stuff.
Stop using `edbob.db.engine`, stop using all edbob templates, etc.
2013-09-01 20:25:34 -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