Commit graph

1195 commits

Author SHA1 Message Date
Lance Edgar 4fe885995f Allow "touch" for Department, Subdepartment 2020-03-15 15:52:10 -05:00
Lance Edgar da4f2b2081 Add sort/filter for Department Name, in Subdepartments grid 2020-03-15 14:26:56 -05:00
Lance Edgar 9b00e829b8 Prevent deletion of department which still has products 2020-03-15 13:01:52 -05:00
Lance Edgar 964671fcbf Don't let user delete roles to which they belong, without permission 2020-03-15 11:59:39 -05:00
Lance Edgar edd48ef667 Misc. changes to User, Role permissions and management thereof
* only "root" can edit the Administrator role
* edit of Authenticated and Guest roles requires dedicated permission
* edit of role(s) to which current user belongs, requires dedicated permission
* delete is not allowed for any built-in role
* when editing a role, user can only add/remove permissions they themselves have
* settings can define some "protected" users, which only "root" can edit/delete
2020-03-15 11:39:52 -05:00
Lance Edgar 413e9b0f1e Remove old/unwanted Vue.js index experiment, for Users table 2020-03-15 09:40:11 -05:00
Lance Edgar 59cae7d207 Only show tables for "public" schema
i.e. avoid the "batch" schema
2020-03-15 09:26:38 -05:00
Lance Edgar d72f61a98d Make sure all contact info is "touched" when touching person record 2020-03-11 13:30:04 -05:00
Lance Edgar 12b0ac1037 Move logic for Order Form worksheet into purchase batch handler
i.e. get it out of Tailbone!
2020-03-06 19:53:03 -06:00
Lance Edgar 0f5999c8d8 Allow "touch" for vendor records 2020-03-04 12:59:11 -06:00
Lance Edgar 0483f47b26 Add support for refreshing multiple batches (results) at once 2020-03-02 18:11:13 -06:00
Lance Edgar 2605f5ab79 Fix batch row status breakdown for Buefy themes
also, fix the "import batch from file" feature UI, per Buefy theme
2020-03-02 14:38:06 -06:00
Lance Edgar 86617e410f Fix some basic product editing features
mostly for sake of online demo
2020-02-28 18:11:54 -06:00
Lance Edgar 815cdbdd0a Fix product price, cost history dialogs, for Buefy theme 2020-02-28 17:06:30 -06:00
Lance Edgar a2277feb10 Cleanup main version history views for Buefy theme 2020-02-28 15:45:27 -06:00
Lance Edgar 6d929dd95a Fix how we fetch employee history, for profile view 2020-02-28 13:10:25 -06:00
Lance Edgar 5f8dc20312 Raise 404 not found instead of error, when user is not employee
i.e. when they try to view "employee schedule" or "time sheet"
2020-02-25 15:35:39 -06:00
Lance Edgar 2b70ed1407 Fix "edit row" logic for ordering batch
previous logic allowed `colander.null` to be passed to batch handler, which
caused an error.  also it allowed editing "all" fields for the row, which we
really don't need to do, so now we just support the order quantities
2020-02-24 13:38:58 -06:00
Lance Edgar fc830f60e8 Tweak worksheet_update() of ordering batch view, to leverage handler
specifically this is to make use of handler's `update_row_quantity()` method,
when user enters new order quantities via worksheet
2020-02-24 12:36:47 -06:00
Lance Edgar c3f4a3d9ea Tweak save_edit_row_form() of purchase batch view, to leverage handler
specifically this is to make use of handler's `update_row_quantity()` method,
when editing a row for ordering batches
2020-02-24 12:27:26 -06:00
Lance Edgar 76839c48cf Fix email preview for TXT templates on python3 2020-02-09 15:32:22 -06:00
Lance Edgar 6925c460c5 Add some custom display logic for "current price" in pricing batch 2020-02-07 18:12:44 -06:00
Lance Edgar 6a8f64a9e8 Use new Email.obtain_sample_data() method when generating preview
per upstream changes
2020-02-07 16:21:51 -06:00
Lance Edgar b633c91b66 Add red highlight for SRP breach, for generic product batch 2020-01-28 17:24:10 -06:00
Lance Edgar 132b2b9ec7 Fix vendor ID/name for Excel download of pricing batch rows 2020-01-28 16:33:23 -06:00
Lance Edgar 201f7cc21e Add warning for "price breaches SRP" rows in pricing batch 2020-01-28 11:59:40 -06:00
Lance Edgar 6e7ee99b47 Sort report options by name, when choosing which to generate 2020-01-28 06:47:59 -06:00
Lance Edgar 99f1e000bf Stop including deprecated views
probably this only affected the "tests"
2020-01-27 16:13:28 -06:00
Lance Edgar 35875b7826 Tweak how we import pip internal things, for upgrade view
ugh, just kicking the can down the road here
2020-01-27 12:57:40 -06:00
Lance Edgar e9533727db Allow populate of new pricing batch from products w/ "SRP breach" 2020-01-23 10:48:21 -06:00
Lance Edgar 842882e766 Include regular price changes, for current price history dialog 2020-01-21 11:41:37 -06:00
Lance Edgar 0e4b33be96 Add "cost history" dialog for product view
older jquery theme only, for now
2020-01-16 11:56:45 -06:00
Lance Edgar 91c1c1c5c8 Add "current price history" dialog for product view
hopefully this does everything it needs to...guess we'll see
2020-01-16 11:31:49 -06:00
Lance Edgar 09a383f89c Fix SRP warning logic!
dang, had it reversed for some testing and then forgot to switch back
2020-01-15 19:26:28 -06:00
Lance Edgar 133ca622a0 Expose batch ID, sequence for datasync change queue 2020-01-15 19:03:16 -06:00
Lance Edgar 0fbe3380cd Highlight SRP in red, if reg price is greater (in product view) 2020-01-14 16:49:56 -06:00
Lance Edgar 8f07f27a61 Highlight SRP in red, if reg price is greater (in products grid)
seems like a good enough idea generally...
2020-01-14 16:35:30 -06:00
Lance Edgar 234fd8b2e1 Add support for Row Status Breakdown, for Import/Export batches 2020-01-14 11:54:00 -06:00
Lance Edgar 02649709aa Add regular price history dialog for product view 2020-01-08 08:04:48 -06:00
Lance Edgar 910e82a795 Hide the SRP history link for new buefy themes
until support for that is added...
2020-01-07 06:44:27 -06:00
Lance Edgar 7dce154cc3 Add dialog for viewing product SRP history
only old jquery theme is supported, for now
2020-01-02 06:55:02 -06:00
Lance Edgar a96c5712ab Use currency formatting for costs in vendor catalog batch
and related tweaks
2019-12-04 16:51:55 -06:00
Lance Edgar 675660e130 Expose catalog cost, allow updating, for receiving batch rows 2019-11-26 11:19:55 -06:00
Lance Edgar 3e1409afc5 Show vendor item code in receiving batch row grid 2019-11-22 20:12:51 -06:00
Lance Edgar c14cf3022c Allow update of row unit cost directly from receiving batch view 2019-11-22 20:12:48 -06:00
Lance Edgar 0715bd6321 Add basic "receive" handler logic for receiving API 2019-11-15 16:16:56 -06:00
Lance Edgar d42c2fabb9 Move "quick entry" logic for purchase batch, into rattail handler 2019-11-13 14:04:11 -06:00
Lance Edgar a9b740dcaa Add basic support for "eligible purchases" for receiving batch API 2019-11-12 17:46:18 -06:00
Lance Edgar 86695c9dc7 Refactor "send new message" form, esp. recipients field, per Vue.js 2019-11-04 19:06:58 -06:00
Lance Edgar e153e530a8 Use "warning" status for pricing batch rows, where product not found 2019-11-04 12:39:26 -06:00
Lance Edgar 7f94e3fc77 Tweak a method signature for batch views
sometimes executing a batch will involve an "action" kwarg, so we can't use
that or else a collision ensues
2019-11-01 21:09:15 -05:00
Lance Edgar 8af3d53a3c Improve/fix some views for Messages per Vue.js theme 2019-11-01 15:58:56 -05:00
Lance Edgar 847136b69c Refactor "make batch from products query" per Vue.js theme 2019-10-31 12:45:22 -05:00
Lance Edgar 2e92f561d8 Assume "local only" flag should be ON by default, for new objects
i.e. if that is a thing, for the given master view
2019-10-29 19:58:08 -05:00
Lance Edgar 6536926f3c Don't bug out if can't update roles for user
based on perms, or missing data field
2019-10-24 12:25:59 -05:00
Lance Edgar 39b1a78b89 Allow bulk delete of New Product batch rows 2019-10-23 14:50:36 -05:00
Lance Edgar b311c6be7d Add config flag to "force unit item" for inventory batch 2019-10-21 15:35:30 -05:00
Lance Edgar 65bcd8da2a Improve default behavior for clone operation
copy all fields but uuid, and show flash message(s)
2019-10-17 16:17:43 -05:00
Lance Edgar 4afe8e900e Don't bug out if stores, departments fields aren't present for Employee 2019-10-15 20:33:37 -05:00
Lance Edgar c525b16581 Fix a label for Employees grid 2019-10-15 19:55:56 -05:00
Lance Edgar 9fe585bede Fix permissions for add/edit/delete notes from people profile view 2019-10-15 16:12:56 -05:00
Lance Edgar c0219938e3 Show active flag for users mini-grid on Role view page 2019-10-14 11:54:01 -05:00
Lance Edgar 6c228a59f2 Use self.has_perm() within MasterView 2019-10-12 18:35:11 -05:00
Lance Edgar acda689b15 Honor configured db key sequence; let config hide some db keys from UI 2019-10-12 13:34:00 -05:00
Lance Edgar 3dd70926b9 Expose unit cost diff for vendor invoice batch rows 2019-10-09 15:58:16 -05:00
Lance Edgar adf377c41d Move module for vendor invoice batch views to a new home 2019-10-09 15:38:12 -05:00
Lance Edgar 9a35a31261 Expose the "is preferred vendor" flag for vendor catalog batches 2019-10-09 14:55:51 -05:00
Lance Edgar b451f4af55 Move module for vendor catalog batch views to a new home
also, expose new "unit cost diff percent" field
2019-10-09 14:16:44 -05:00
Lance Edgar 18c30fcb05 Allow bulk-delete for some common batches 2019-10-09 11:26:26 -05:00
Lance Edgar b14a4987d2 Move label batch views to tailbone.views.batch.labels
to better match the general pattern we have going on
2019-10-09 11:11:22 -05:00
Lance Edgar c812519931 Fix URL for user, for feedback email 2019-10-08 10:08:13 -05:00
Lance Edgar 47669a23bc Add support for "local only" Person, User, plus related security
also add "view / edit roles for user" permissions
2019-10-04 22:31:19 -05:00
Lance Edgar c8e689712a Add forbidden() convenience method to core View class 2019-10-02 18:11:26 -05:00
Lance Edgar ff9700e23a Add core View.make_progress() method
so callers no longer need to import `SessionProgress` and create directly
2019-09-25 00:32:41 -05:00
Lance Edgar 64f81e3396 Show "image not found" placeholder image for products which have none 2019-09-24 11:15:44 -05:00
Lance Edgar fe413ba2f5 Honor kwargs used for MasterView.get_index_url() 2019-09-19 20:19:52 -05:00
Lance Edgar 0d2f6e060f Use simple_error() from rattail, for showing some error messages
just trying to standardize a little
2019-09-19 20:19:26 -05:00
Lance Edgar a972fb7359 Add todo comment 2019-09-14 15:07:47 -05:00
Lance Edgar 1165fa8cdb Show product image from database, if it exists
only use POD image if we have nothing in our DB (and config doesn't say not to)
2019-09-09 19:25:18 -05:00
Lance Edgar 1a6f9c2159 Fix 'about' page template for Buefy themes 2019-09-09 17:34:24 -05:00
Lance Edgar 4c42ccc7d7 Fix various templates for generating reports, per Buefy
also various other tweaks which came up along the way...
2019-09-06 17:45:59 -05:00
Lance Edgar 2185182eee Fix rendering of "handheld batches" field for inventory batch view 2019-09-04 10:33:32 -05:00
Lance Edgar 79be69f8c1 Include tax1 thru tax3 flags in form fields for product view page 2019-09-03 13:44:59 -05:00
Lance Edgar 19c734683b Add basic API view for user feedback 2019-08-29 18:30:13 -05:00
Lance Edgar 5cfe69d24b Hopefully fix "single store" behavior when make a new ordering batch
this does seem to fix for this use case, but previous commit for this code
implied that it was fixing something for the receiving use case...
2019-08-23 22:05:09 -05:00
Lance Edgar a49d107a82 Provide today's date as context for profile view 2019-08-11 17:30:08 -05:00
Lance Edgar dade379dcf Fix "last sold" field rendering for product view 2019-08-05 16:06:23 -05:00
Lance Edgar f3ac3ca25e Yet another fix for user feedback form handling 2019-08-04 22:59:32 -05:00
Lance Edgar 243c69b231 Fix some user feedback form handling
sheesh i don't see how this hasn't been more broken for some time now...
2019-08-04 22:36:58 -05:00
Lance Edgar 1b1d37b9df Fix home and login pages for Buefy theme
not sure what broke those so bad...they're still not "great"
2019-08-04 20:43:31 -05:00
Lance Edgar 69eb54abf6 Highlight former Employee records as red/warning 2019-08-03 17:18:53 -05:00
Lance Edgar 1bb0330ab5 Refactory Buefy templates to use WholePage and ThisPage components
plus add `GridFilter.set_choices()` method
2019-08-03 16:57:13 -05:00
Lance Edgar c64fca852c Allow "touch" for Person records 2019-08-02 11:30:46 -05:00
Lance Edgar 4a175c76f9 Add proper support for composite primary key, in MasterView
at least hopefully this is complete, and didn't break anything else...
2019-07-29 19:27:23 -05:00
Lance Edgar 6e1f925944 Cleanup 'phone' filter/sort logic for Employees grid
per newer conventions etc.  needed to override some of this for a client
2019-07-25 16:05:10 -05:00
Lance Edgar e756ae3c8f Add "multi-engine" support for Trainwreck transaction views 2019-07-25 15:40:38 -05:00
Lance Edgar b07365b487 Add perm for editing employee history from profile view 2019-07-23 13:12:36 -05:00
Lance Edgar dd773d4e5e Send URL for viewing employee, along to profile page template 2019-07-11 15:17:25 -05:00
Lance Edgar aeaef04fac Add convenience method for gathering employee history context data
so we can reuse that for returning JSON from various views
2019-07-11 14:01:22 -05:00
Lance Edgar 8c2287a1e8 Add custom permissions for People "profile" view
this whole thing needs some polishing yet...
2019-07-11 14:01:00 -05:00