Commit graph

3607 commits

Author SHA1 Message Date
Lance Edgar 23ce2fb33c Add description, notes to default form_fields for batch views 2018-11-28 18:15:48 -06:00
Lance Edgar 36f786f0eb Clean up how we configure DB sessions on app startup
not real sure if the old logic was a "problem" per se, but this cleanup seems
warranted and (fingers crossed) shouldn't break anything
2018-11-28 15:37:57 -06:00
Lance Edgar c56eadc49b Fix "delete object" form submit
not real sure why that broke, but this is a better pattern anyway
2018-11-28 15:37:35 -06:00
Lance Edgar 508359a939 Fix template references for app_title
make sure we only look to /base_meta.mako for that
2018-11-27 18:20:15 -06:00
Lance Edgar acaa83c31a Add some code comments 2018-11-27 17:53:24 -06:00
Lance Edgar ea0dc1ea19 Add template "theme" feature, albeit global
would be even better to let each user session have something different, but
alas this is all-or-nothing for now
2018-11-27 17:52:02 -06:00
Lance Edgar f05d50bce3 Allow user to choose which columns to show, for Vue.js users grid 2018-11-27 03:05:14 -06:00
Lance Edgar b7319fd152 Add patterns for joining tables in API list methods
i.e. we needed to do an *outer* join on User.person since that can be null
2018-11-27 02:21:38 -06:00
Lance Edgar 93aa96a339 Add support for sorting by person name in Vue.js Users grid 2018-11-27 01:49:39 -06:00
Lance Edgar 875f520710 Add basic FontAwesome support to new Vue.js table grid
i.e. for sortable column icons
2018-11-27 00:57:38 -06:00
Lance Edgar 02528aecc7 Tweak styles for "global title" in header 2018-11-26 22:58:21 -06:00
Lance Edgar 993d8c3b4e Add very basic Vue.js grid/index experiment for Users table 2018-11-26 22:07:30 -06:00
Lance Edgar 25e61cc8d5 Use empty string instead of null as fallback value, for pricing rows CSV 2018-11-26 19:25:32 -06:00
Lance Edgar d773043429 Allow override of products query when making batch from it
also, invoke handler properly when populating the batch (i.e. to include
setup/teardown)
2018-11-26 18:58:55 -06:00
Lance Edgar 3b54ab3e0b Add "min % diff" option for pricing batch from products query
refactor the "batch from query" a bit also, to allow for multiple batch type
options which represent the same underlying batch type.  (thought i needed
that, then realized i didn't, but seems safe to include.)
2018-11-25 20:14:49 -06:00
Lance Edgar d9e5eff23d Fix download filename when it contains spaces 2018-11-25 17:27:31 -06:00
Lance Edgar 4fa9ab3c6e Add better support for "make import batch from file" pattern 2018-11-22 20:26:28 -06:00
Lance Edgar 0375d66b91 Tweak default "model title" logic for master view
i.e. if view class doesn't declare one
2018-11-22 11:12:31 -06:00
Lance Edgar 4ad958b9d2 Fix bug in receiving template when truck dump not enabled 2018-11-21 23:03:07 -06:00
Lance Edgar de788423e1 Update comments per frozen webhelpers2_grid dependency
not sure yet if it's worth refactoring to new version? probably is though..
2018-11-21 21:19:02 -06:00
Lance Edgar 6b7631013d Remove some relationship fields when creating new Person 2018-11-21 19:56:01 -06:00
Lance Edgar 5c66eb5f4f Refactor API collection_get to work with vue-tables-2
https://github.com/matfish2/vue-tables-2
2018-11-20 20:49:13 -06:00
Lance Edgar 81db564e34 Delay import of sqlalchemy_filters project
since apparently we can't use this (and hence our new API) unless python3
2018-11-20 17:07:28 -06:00
Lance Edgar 46501b7caa Use sqlalchemy-filters package for REST API collection_get
just sorting and pagination so far though, no actual filters yet
2018-11-19 23:56:42 -06:00
Lance Edgar 3e8d6a27f1 Update changelog 2018-11-19 14:15:48 -06:00
Lance Edgar 4806d7e5fe Expose price_diff_percent, margin_diff for pricing batch row 2018-11-18 21:12:08 -06:00
Lance Edgar 342c7c3854 Move some label definitions for pricing batch rows 2018-11-18 20:47:24 -06:00
Lance Edgar 4a36ab827c Expose "suggested price" for pricing batch row view 2018-11-18 20:02:43 -06:00
Lance Edgar fded97d586 Don't add values to CSV row for undefined fields 2018-11-18 20:02:14 -06:00
Lance Edgar de6275003e Add vendor id, name to row CSV download for pricing batch 2018-11-18 19:36:28 -06:00
Lance Edgar f7e549b5fd Expose new Customer.wholesale flag 2018-11-17 19:26:13 -06:00
Lance Edgar e27debd452 Allow override of template for custom create views 2018-11-17 18:23:07 -06:00
Lance Edgar e3afb2c52a Add department, subdepartment "name" columns for products XLSX download 2018-11-14 10:46:23 -06:00
Lance Edgar fed42d4898 Add "200 per page" option for UI table grids 2018-11-14 10:38:08 -06:00
Lance Edgar b33c2fd0d0 Add simple price fields for product XLSX results download 2018-11-14 10:33:39 -06:00
Lance Edgar a9b60b3d4a Update changelog 2018-11-08 15:48:38 -06:00
Lance Edgar 20e654ddea Display "suggested price" when viewing product details
very basic support here...
2018-11-08 09:57:41 -06:00
Lance Edgar bdbb8e2a7d Make sure status field is readonly when creating new batch 2018-11-07 16:47:51 -06:00
Lance Edgar 37b9a81344 Add Grid.hide_columns() convenience method 2018-11-07 16:47:41 -06:00
Lance Edgar 21014c5013 Remove unwanted style for "email setting description" field
not sure why that was in there, but it broke some other pages sure enough.
will have to revisit whenever i see the "problem" on email settings page again
2018-11-07 16:46:55 -06:00
Lance Edgar 9daefed9b3 Detect non-numeric entry when locating row for purchase batch
i.e. don't try to convert to GPC if non-numeric
2018-11-07 13:08:59 -06:00
Lance Edgar 23a94ebfad Update changelog 2018-11-07 10:11:11 -06:00
Lance Edgar d1980aeed8 Add client IP address to user feedback email 2018-11-05 11:24:03 -06:00
Lance Edgar fec8ba28e2 Refactor API views a bit for sake of running as separate service
also add "proper" (sic) permission checks
2018-11-03 18:55:26 -05:00
Lance Edgar 9b61b05155 Add dependency for cornice 2018-11-03 17:15:23 -05:00
Lance Edgar ad35481234 Use Cornice for REST API viws
still very experimental at this point
2018-11-03 17:13:08 -05:00
Lance Edgar 31ae5eacd5 Tweak status code rendering for upgrades API view 2018-11-02 21:44:19 -05:00
Lance Edgar 22ef6aad7b Fix bug in upgrades API view, when upgrade has no status code 2018-11-02 21:38:06 -05:00
Lance Edgar e4a518c444 Remove some unwanted row grid labels
doing it that way makes customization harder..still need to revisit how best to
do that i guess
2018-11-02 18:59:46 -05:00
Lance Edgar b8fdce378f Add basic API endpoint for upgrades, partial pagination support
latter is still broken, but this much is a starting point i think
2018-11-01 00:34:28 -05:00