Commit graph

2902 commits

Author SHA1 Message Date
Lance Edgar 5d875bc731 Let user "add past product" when making new custorder 2021-11-06 20:00:54 -05:00
Lance Edgar ddb05afe6b Auto-select Quantity tab when editing item for new custorder
also be a little smarter on error when user selects an item
2021-11-06 17:56:35 -05:00
Lance Edgar 43bbc2a29e Show some more product attributes in custorder item selection popup 2021-11-06 17:37:05 -05:00
Lance Edgar 7a5ba0503a Use products handler to get image URL 2021-11-06 17:36:19 -05:00
Lance Edgar 28e9085249 Update changelog 2021-11-05 18:45:45 -05:00
Lance Edgar 5ff57ae7d2 Add link to download generic template for vendor catalog batch
also let config restrict which parsers are "supported"

and auto-choose parser if there is only one
2021-11-05 18:40:46 -05:00
Lance Edgar df8778f85d Add render_brand() method for MasterView 2021-11-05 15:11:30 -05:00
Lance Edgar 2be1d12116 Make separate method for writing results XLSX file
so subclass can customize
2021-11-05 15:11:07 -05:00
Lance Edgar eb76d868ca Update changelog 2021-11-04 21:25:32 -05:00
Lance Edgar b34d88d704 Avoid exposing batch params when creating a batch
not sure how this never came up until now..?
2021-11-04 21:20:42 -05:00
Lance Edgar 0758ca09e6 Show unit price in line items grid for new custorder
maybe should change this to show "base price" (unit *or* case
depending on the row uom) ?
2021-11-03 20:54:46 -05:00
Lance Edgar 1bdb845032 Honor the "product price may be questionable" flag for new custorder
i.e. don't expose the per-item flag unless *that* flag is set
2021-11-03 20:20:22 -05:00
Lance Edgar 4d33e3dcbe Move some custorder logic to handler; allow force-swap of product selection 2021-11-03 19:19:20 -05:00
Lance Edgar b0fa559760 Fix product view page when user cannot view version history 2021-11-03 18:30:16 -05:00
Lance Edgar 8a378317c0 Try to prevent caching for any /index (grid) page
if this works, maybe also should do it for /view since that can have a
rows grid?
2021-11-03 18:15:13 -05:00
Lance Edgar a6b7056f2a Update changelog 2021-11-03 16:49:04 -05:00
Lance Edgar 9fef4c2601 Fix the Department filter for Products grid, for jquery themes
ugh jquery
2021-11-03 16:47:55 -05:00
Lance Edgar 209b4b4de3 Update changelog 2021-11-02 11:15:44 -05:00
Lance Edgar 7651efff9d Highlight "cannot calculate price" rows for new product batch 2021-10-31 11:56:46 -05:00
Lance Edgar 7b5e2d17f3 Omit "edit" link unless user has perm, for Customer "people" subgrid 2021-10-28 19:00:56 -05:00
Lance Edgar 4dfc29768c Improve validation for Person field of User form
otherwise if user enters e.g. "John Doe" but does *not* select an
autocomplete result, then "John Doe" will be submitted as-is to the
server, which then tried to write that directly to
``users.person_uuid`` column in the DB, resulting in error
2021-10-28 18:55:28 -05:00
Lance Edgar 2d87ce5c29 Highlight the "did not receive" rows for purchase batch
also add some row grid links
2021-10-22 21:53:46 -05:00
Lance Edgar 2d0a922cff Show case qty by default for costing batch rows 2021-10-22 21:24:08 -05:00
Lance Edgar a553a26644 Optionally set the sticky-header attribute for main buefy grids
should affect the 'index' and 'view' (with rows) but i don't think any
other pages will get this..?
2021-10-22 21:04:39 -05:00
Lance Edgar 4a383709bd Update changelog 2021-10-20 16:15:19 -05:00
Lance Edgar 8d16a5f110 Clean up the product selection UI for new custorder
still needs some work but this is much better, more like the customer
selection now w/ "multi-faceted" autocomplete
2021-10-20 07:26:05 -05:00
Lance Edgar 8b044dbb22 Add basic "price needs confirmation" support for custorder 2021-10-18 18:28:28 -05:00
Lance Edgar 93b752f436 Invoke handler when adding new item to custorder batch 2021-10-17 18:07:57 -04:00
Lance Edgar 87374d5647 Fix auth handler reference bug 2021-10-17 17:29:26 -04:00
Lance Edgar ab33b49218 Improve "refresh contact", show new fields in green for custorder
only showing new "customer" fields in green so far
2021-10-17 17:28:28 -04:00
Lance Edgar 52fbe73893 Overhaul the autocomplete component, for sake of new custorder
turns out we had some issues with our understanding of how that all
was supposed to work.  this seems to be much cleaner and even
semi-documented :)
2021-10-16 15:37:23 -04:00
Lance Edgar 232a02b944 Refactor to leverage all existing methods of auth handler
instead of importing and calling functions from core rattail
2021-10-14 23:30:26 -04:00
Lance Edgar 53fc1508f3 Give custorder batch handler a couple ways to affect adding new items 2021-10-14 17:49:12 -04:00
Lance Edgar 1b33c8a2b7 Update changelog 2021-10-14 14:22:07 -04:00
Lance Edgar dd6c9cc8ce Misc. tweaks for users, roles 2021-10-14 14:18:36 -04:00
Lance Edgar d61fa7b6b9 Update changelog 2021-10-14 12:12:10 -04:00
Lance Edgar 22aa55c24b Invoke the auth handler to cache user permissions etc.
various changes for sake of "synced" roles feature
2021-10-14 10:39:54 -04:00
Lance Edgar 80589cde2f Cleanup form display a bit, for App Settings 2021-10-13 17:29:41 -04:00
Lance Edgar 1463c09385 Update changelog 2021-10-13 12:19:49 -04:00
Lance Edgar e3cad91be0 Leverage the auth handler for main user login 2021-10-12 18:22:04 -04:00
Lance Edgar aeace0c7cf Add debounce() wrapper for buefy autocomplete
per docs, although was not very clear "which" debounce i needed, this
one at least works without errors..

hoping this fixes some page performance issues when tailbone
autocomplete component is present
2021-10-12 14:17:10 -04:00
Lance Edgar 20492410ad Update changelog 2021-10-11 21:58:18 -04:00
Lance Edgar 66bc775e14 Improve display, handling for "add contact info to customer record"
for new custorders page.  in particular, show this flag in main screen
2021-10-10 20:43:27 -04:00
Lance Edgar 3e796e9164 Fix bug when making context for mailing address
sometimes those belong to a non-person, e.g. customer
2021-10-10 20:24:26 -04:00
Lance Edgar ffb33d00c8 Fix some phone/email bugs for new custorder page 2021-10-10 20:21:41 -04:00
Lance Edgar 7fabef6004 Stop rounding case/unit cost fields to 2 places for purchase batch 2021-10-10 20:08:52 -04:00
Lance Edgar ce969306f7 Update changelog 2021-10-10 18:42:46 -04:00
Lance Edgar a919bfb6c5 Simplify template context customization for view_profile_buefy 2021-10-07 21:13:59 -04:00
Lance Edgar b9b5a0e79b Update changelog 2021-10-07 19:36:17 -04:00
Lance Edgar 284078ff71 Delete pending customer if deleting custorder batch
also invoke handler to update pending customer info for batch, so the
handler can add validation, e.g. unique email address check
2021-10-07 13:08:48 -04:00