Commit graph

245 commits

Author SHA1 Message Date
Lance Edgar 1e4612bcbe Refactor schedule / timesheet views for better separation of concerns
This was needed to support a "late clock-ins" view which included both
scheduled *and* worked shift data..
2017-01-30 23:03:05 -06:00
Lance Edgar e452ea1ae9 Add min diff threshold param when making price batch from product query
Hopefully this sets the stage for arbitrary batch params here..
2017-01-30 16:11:29 -06:00
Lance Edgar 7104e275c3 Add ability to edit employee time sheet
Also disable some unwanted autocomplete logic, plus add ability to
prevent autocomplete "change click" event
2017-01-29 18:53:52 -06:00
Lance Edgar 732681b545 Tweaks to order form template etc., for purchasing batch 2017-01-25 11:15:17 -06:00
Lance Edgar c2a189cb40 Add basic support for cloning batches
For now only label batches support this by default
2017-01-24 21:36:58 -06:00
Lance Edgar 5bc3cb7431 Fix CSRF token bug with email preview form, refactor to use webhelpers 2017-01-09 13:38:17 -06:00
Lance Edgar e102fa3df5 Prefer received quantities over ordered quantities, for Order Form history 2017-01-03 12:32:02 -06:00
Lance Edgar e13e2cfaaf Add "discarded" flag when receiving DMG/EXP products; add view for purchase credits 2016-12-30 12:37:07 -06:00
Lance Edgar e9dd44fa39 Tweak the "create" screen for purchase batches, for more customization
Also add some fields to the batch row fieldset
2016-12-30 07:52:56 -06:00
Lance Edgar 814fd12e9e Refactor Order Form a bit to allow custom history data 2016-12-29 13:23:21 -06:00
Lance Edgar de38c3a20a Fix CSRF token bug for bulk-move message forms 2016-12-28 14:51:16 -06:00
Lance Edgar a0f32854e8 Fix CSRF token bug for old-style batch params form 2016-12-22 12:26:56 -06:00
Lance Edgar 113f474e8b Fix master merge template/forms to include CSRF token 2016-12-21 11:58:59 -06:00
Lance Edgar 0b10021942 Update some enum references, render all purchase batch cases/units fields as quantity 2016-12-20 16:10:22 -06:00
Lance Edgar feef8a5ecc Fix some bugs in product view template 2016-12-20 16:09:59 -06:00
Lance Edgar 8afaf80128 Various tweaks to purchasing batch views 2016-12-19 16:17:56 -06:00
Lance Edgar 7a9780e2b8 Fix CSRF bug in Ordering Form template, make case quantity pretty 2016-12-19 14:45:20 -06:00
Lance Edgar 6186200aba Make case quantity render a little prettier on product view 2016-12-15 16:31:32 -06:00
Lance Edgar 9a6ad16e2f Overhaul product views a little, per customization needs 2016-12-15 15:11:15 -06:00
Lance Edgar d40d5e3f6b Tweak some field renderers for sake of product view 2016-12-14 23:27:45 -06:00
Lance Edgar ef649d8c96 Fix CSRF tokens for datasync restart forms 2016-12-14 18:52:12 -06:00
Lance Edgar 4ed522ae47 Add global CSRF protection 2016-12-14 18:37:17 -06:00
Lance Edgar ab09314ed3 Add initial support for CSRF token protection 2016-12-14 15:41:15 -06:00
Lance Edgar 11e78adaab Add "print receiving worksheet" feature, for 'ordered' purchases 2016-12-14 12:32:41 -06:00
Lance Edgar ed252c6465 Overhaul the Receiving Form to account for "product not found" etc.
Also shows ordered/received/etc. quantities
2016-12-13 22:28:50 -06:00
Lance Edgar 7f14f50ee0 More mobile view improvements, various 2016-12-12 15:24:26 -06:00
Lance Edgar 06dee96af6 Add mobile support for datasync restart 2016-12-11 21:20:51 -06:00
Lance Edgar 22c7fee0f6 Tweak icons for mobile menu 2016-12-11 19:52:17 -06:00
Lance Edgar 024d3c1975 Add mobile support for "become/stop root" feature 2016-12-11 19:16:24 -06:00
Lance Edgar ee0bdc4b74 OMG..lots of changes for sake of mobile login / user menu etc.
Feeling a bit sloppy right about now...oh well good enough
2016-12-11 18:07:30 -06:00
Lance Edgar c2d2b6e072 Change jquery CDN URLs from HTTP to HTTPS 2016-12-11 01:43:17 -06:00
Lance Edgar d77216374f Add initial mobile templates: base, home, about 2016-12-11 01:39:51 -06:00
Lance Edgar aa9c7abdb5 Add 'restartable tempmon client' conditional logic 2016-12-10 11:56:25 -06:00
Lance Edgar 839d3957dd Add initial support for mispicks / attaching credits for receiving batch 2016-12-10 09:08:37 -06:00
Lance Edgar 1ab2a70e60 Add initial/basic support for damaged/expired items in receiving batch 2016-12-09 15:30:14 -06:00
Lance Edgar dd08b71458 Tweak various views for purchase batches 2016-12-09 14:20:16 -06:00
Lance Edgar c73ba56505 Add support for 'department' field in purchases / batches
Also fix logic for deleting a purchase (delete its batches first)
2016-12-09 14:01:06 -06:00
Lance Edgar 6c3d221e98 Add new 'receiving form' for purchase batches 2016-12-09 12:09:18 -06:00
Lance Edgar e4a10cf7fc Update footer text/link per new about page 2016-12-07 22:06:27 -06:00
Lance Edgar 457ce97f4e Add 'extra_styles' to true base template 2016-12-07 16:00:20 -06:00
Lance Edgar ee6d3195c5 Add basic 'about' page with some package versions 2016-11-28 18:28:33 -06:00
Lance Edgar 139d9a4fed Hopefully fix styles for 'print schedule' page 2016-11-26 20:29:10 -06:00
Lance Edgar 0296c29dd7 Add support for restarting tempmon client 2016-11-22 00:55:30 -06:00
Lance Edgar a39c347ad3 Add initial views for tempmon 2016-11-21 23:53:20 -06:00
Lance Edgar 8399eb8f91 Add initial support for 'costing' mode for purchase batches 2016-11-21 03:37:45 -06:00
Lance Edgar 67f6c11307 Add support for 'receiving' mode for purchase batches 2016-11-21 01:07:35 -06:00
Lance Edgar 8acb9b0029 Bump jquery version
Did this while troubleshooting something, maybe unnecessary but what the heck
2016-11-21 01:04:28 -06:00
Lance Edgar d46b0cbc70 Add support for mode, purchase relation for purchase batches 2016-11-20 17:48:04 -06:00
Lance Edgar 37be76cc84 Fix some bugs etc. with batch views and templates 2016-11-20 14:10:04 -06:00
Lance Edgar f97b26506f Add printer-friendly view for "full" employee schedule
i.e. whatever version of that the user happens to be currently viewing
2016-11-19 22:23:45 -06:00
Lance Edgar 203f0242fb Refactor batch views / templates per rattail framework overhaul 2016-11-19 18:34:50 -06:00
Lance Edgar c275071499 Add size, extra link fields to product view template 2016-11-14 19:29:00 -06:00
Lance Edgar 73fcf84d59 Disable save button when creating new object 2016-11-14 17:51:23 -06:00
Lance Edgar ad2724fd2f Make POD image for product view a bit more sane 2016-11-11 22:15:47 -06:00
Lance Edgar 11b4cf9616 Add support for more cases + units, more vendor fields, for new purchase batches 2016-11-11 01:56:37 -06:00
Lance Edgar 43eb2f107f Display sequence for product alt codes
Might as well, for now..
2016-11-09 16:59:08 -06:00
Lance Edgar ecdf9b6926 Tweak merge template 2016-11-09 14:15:16 -06:00
Lance Edgar ba1fa6d617 Tweak verbiage for merge template etc. 2016-11-09 02:17:01 -06:00
Lance Edgar 63d89b696a Fix line item PO Total update for new purchase Order Form 2016-11-08 23:44:34 -06:00
Lance Edgar da5c040aeb Add historical amounts to new purchase Order Form, allow extra columns etc. 2016-11-08 22:45:58 -06:00
Lance Edgar c51d0db42d Tweak order form view for new purchase batches 2016-11-08 13:06:56 -06:00
Lance Edgar 7454e611c5 Refactor how batch editing is done; don't include rows for that sometimes
Various other fixes also..for sake of new purchase batches
2016-11-08 12:56:12 -06:00
Lance Edgar 758ae7099d Add initial support for viewing new purchase batch as Order Form 2016-11-07 20:40:47 -06:00
Lance Edgar 0477561ca6 Add support for making new-style batches from products grid query
Just label batches so far, will have to revisit that
2016-11-06 23:31:27 -06:00
Lance Edgar a6e43d1658 Add support for new Purchase/Batch views, 'create row' master pattern
More refactoring here but hopefully not that important..
2016-11-06 12:58:29 -06:00
Lance Edgar 06b0b13992 Add basic merge feature to MasterView 2016-10-28 10:26:37 -05:00
Lance Edgar a398a0a710 Tweak styles for global header 2016-10-28 10:26:23 -05:00
Lance Edgar 2772057381 Tweak default styles for home page 2016-10-25 18:14:59 -05:00
Lance Edgar 1327b886fc Disable delete button by default, when clicked 2016-10-16 03:30:42 -05:00
Lance Edgar 7e3d47aa5c Fix / improve progress display somewhat 2016-10-16 03:30:12 -05:00
Lance Edgar 3980886356 Add ability to clone schedule data from another week 2016-10-14 16:02:15 -05:00
Lance Edgar c2503977ea Add ability to clear current schedule when editing 2016-10-14 14:45:23 -05:00
Lance Edgar 9e7cb532c8 Add speed bump when leaving timesheet page w/ unsaved changes
Also add save/undo buttons to top as well as bottom of timesheet.
2016-10-14 13:57:57 -05:00
Lance Edgar 048951153d Add basic ability to edit employee schedule 2016-10-12 14:16:33 -05:00
Lance Edgar 223a6dc862 Fix couple of bugs for vendor catalog views
No need to expose an "edit" mode for this batch since view allows
refresh.
2016-10-10 11:16:55 -05:00
Lance Edgar fca95ae8c0 Add 'tailbone' to global template context, update 'better' template footer 2016-10-07 19:33:41 -05:00
Lance Edgar 93fcc72f73 Add "refresh" button when viewing batch 2016-09-18 17:15:58 -05:00
Lance Edgar 94a7a15e6d Add basic form validation when sending new messages
This avoids the message body for now, since that's implemented a couple
different ways in the real world...
2016-09-13 20:23:51 -05:00
Lance Edgar bb6a838d3b Don't show CSV download link if master view opts out 2016-08-26 15:41:22 -05:00
Lance Edgar 901c2fc573 Add MasterView.has_rows concept and related logic
Now the `BatchMasterView` no longer provides most of these goodies.

Also tweak some custom batch views to reflect changes etc.
2016-08-23 13:11:13 -05:00
Lance Edgar 8a19b90efa Add hook to customize timesheet shift rendering
Also decrease font size slightly for shift text.
2016-08-22 17:25:43 -05:00
Lance Edgar cdde848275 Refactor batch view/edit pages to share some "execution options" logic 2016-08-22 15:46:16 -05:00
Lance Edgar 53950931af Add has_rows support to MasterView class
Eventually the batch views should be refactored to leverage this..
2016-08-22 12:38:51 -05:00
Lance Edgar aff90ac756 Add basic support for new handheld/inventory batches 2016-08-17 17:05:51 -05:00
Lance Edgar db62f82a37 Add basic support for batch execution options 2016-08-17 16:52:13 -05:00
Lance Edgar a6438e4bb5 Add permissions field when viewing user details
About damn time I'm sure...
2016-08-12 01:58:07 -05:00
Lance Edgar c4b4b866ff Fallback to empty string for email preview recipient, if current user has no address 2016-08-04 13:19:55 -05:00
Lance Edgar 38927ce282 Add initial attempt at 'better' theme 2016-07-17 20:16:26 -05:00
Lance Edgar 35d4d35fd6 Add awareness of special 'Authenticated' role, in permissions UI etc. 2016-06-15 12:51:10 -05:00
Lance Edgar 1e0ef53aea Add support for viewing single employee's schedule / time sheet
A little sloppy perhaps, here and there..but seems to do the job.
2016-06-07 16:16:37 -05:00
Lance Edgar 123f5ce0c6 Add support for "full" schedule and time sheet views
Temporarily removes support for viewing current user's time sheet; that
will be added back in soon.
2016-05-10 13:08:32 -05:00
Lance Edgar 890392ab92 Various improvements to the schedule view
Still clearly not yet complete though.
2016-05-06 11:41:05 -05:00
Lance Edgar b718336ac2 Refactor timesheet logic, add initial/basic schedule view
Clearly need to be able to filter by store/department yet.
2016-05-03 21:19:28 -05:00
Lance Edgar 34482892f7 Add prev/next week navigation to time sheet view 2016-05-02 19:26:21 -05:00
Lance Edgar 25ec005764 Add week navigation to time sheet view 2016-05-02 19:15:51 -05:00
Lance Edgar 785d0b5806 Remove 'create batch from results' link on products index page
This probably should come back someday, but in a smarter form and
leveraging new-style batches of course...
2016-05-02 16:43:56 -05:00
Lance Edgar 566777fef0 Tweak some styles on feedback template 2016-05-02 13:18:03 -05:00
Lance Edgar 157d4ccc9f Stop trying to use PIL when generating product image tag 2016-05-02 12:45:25 -05:00
Lance Edgar 1c0c148294 Add initial/basic user feedback form support 2016-05-01 20:39:05 -05:00
Lance Edgar 4ec8fdcf82 Add grid_index_nav() template def, for page header 2016-05-01 18:40:52 -05:00