Commit graph

3398 commits

Author SHA1 Message Date
Lance Edgar dc0c65ea7b Add some "case price" logic for custorder batch 2021-11-06 17:35:51 -05:00
Lance Edgar c3487917ce Only show POD image if so configured; use "image not found" fallback
also update a random docstring
2021-11-06 17:35:15 -05:00
Lance Edgar 892668f7f1 Update changelog 2021-11-05 18:44:50 -05:00
Lance Edgar 8c58b14919 Add "generic" vendor catalog parser
we'll see how generic it really is once more people try to use it...
2021-11-05 18:40:02 -05:00
Lance Edgar 71e5ac4ef0 Add progress_loop() method for app and generic handlers 2021-11-05 16:00:04 -05:00
Lance Edgar bb1a9ab6a3 Fix class name in NotImplementedError msg 2021-11-05 15:09:37 -05:00
Lance Edgar a8fa544377 Update changelog 2021-11-04 21:23:43 -05:00
Lance Edgar d720f0f0ab Add setting for "product price may be questionable" for custorders 2021-11-03 20:19:23 -05:00
Lance Edgar b80cb4af94 Add some product info fetchers to custorder batch handler
for easier customization
2021-11-03 19:13:42 -05:00
Lance Edgar 2fa90aa41d Update changelog 2021-11-02 11:14:26 -05:00
Lance Edgar f4dd326d02 Add "cannot calculate price" row status for new product batch 2021-10-31 11:56:25 -05:00
Lance Edgar 46d129d868 Add "did not receive" status for purchase batch rows
we set this within a costing batch, when received quantities are zero
2021-10-22 21:53:05 -05:00
Lance Edgar ae2a60183f Update changelog 2021-10-22 19:28:52 -05:00
Lance Edgar 9933887039 Assign app and model attributes when ProblemReport instantiates 2021-10-22 19:27:10 -05:00
Lance Edgar 6dbf1eb4af Update changelog 2021-10-21 17:08:13 -05:00
Lance Edgar 999a42a43f Record 'lastrun' time when mailmon watcher succeeds
so we can monitor that and restart the daemon when it stops
working..which it does sporadically although we don't yet know exactly
why/when that happens..
2021-10-21 17:06:04 -05:00
Lance Edgar 6441e89561 Update changelog 2021-10-20 16:13:56 -05:00
Lance Edgar 28c9d50914 Add new 'products.neworder' autocompleter; refactor a bit
also improve `ProductsHandler.get_image_url()` to give a tailbone url
pointing to the product image in rattail DB, if possible
2021-10-19 18:11:55 -05:00
Lance Edgar 49a2ddc7f5 Make product the first kwarg to get_image_url()
for ProductsHandler
2021-10-19 13:57:37 -05:00
Lance Edgar 37b8de9118 Add basic "price needs confirmation" support for custorder 2021-10-18 18:28:07 -05:00
Lance Edgar 75b8b3f4ae Allow for alternate encoding in CSV importers 2021-10-17 21:29:34 -05:00
Lance Edgar 4696c4dfd1 Calculate invoice totals when overlaying onto PO for purchase batch 2021-10-17 19:54:37 -05:00
Lance Edgar c62e080914 Add add_product() method for custorder batch handler
let it be repsonsible for adding a new item to the order
2021-10-17 18:07:18 -04:00
Lance Edgar ba8b366ba6 Restore "pending" customer when unassigning batch contact
unassign means "unset contact uuid" essentially, i.e. unassign the
"proper" contact.  but if "pending" contact info is there, restore it
2021-10-17 17:24:40 -04:00
Lance Edgar 5eaf893b94 Consolidate "new custorder" autocomplete logic for people, customers 2021-10-16 21:28:16 -04:00
Lance Edgar e46fbbd62c Limit autocomplete results for customer/phone lookup in new custorder
otherwise it's possible for the whole thing to bog down and freeze the
browser page...
2021-10-15 17:50:18 -04:00
Lance Edgar 954d9d1ac0 Add why_not_add_product() for custorder batch handler
let it declare any reason it likes for preventing the item add
2021-10-14 17:47:28 -04:00
Lance Edgar c3efd8c549 Improve default autocomplete for products
so user can type e.g. "vin app brag" in whatever order
2021-10-14 17:02:43 -04:00
Lance Edgar 5147d17b31 Update changelog 2021-10-14 14:41:08 -04:00
Lance Edgar 213df0e3aa Fix merge logic when employee needs to be transferred to new person 2021-10-14 14:40:26 -04:00
Lance Edgar 82460fd135 Update changelog 2021-10-14 14:21:30 -04:00
Lance Edgar d98afd2c0f Invoke auth handler when deleting a user via importer
plus some misc. tweaks i needed to cleanup some user accounts
2021-10-14 14:17:58 -04:00
Lance Edgar a8d820fe99 Update changelog 2021-10-14 12:11:23 -04:00
Lance Edgar bd964b9266 Add support for syncing roles, with users and permissions for each
but only those roles marked for sync.  also by default the GlobalRole
is *not* included in the handler's default list, so this still
requires a bit of setup
2021-10-14 10:38:07 -04:00
Lance Edgar a7aa6336ca Add a docstring 2021-10-13 16:50:18 -04:00
Lance Edgar 8147b1fb0b Update changelog 2021-10-13 12:19:00 -04:00
Lance Edgar 6a19be3edb Add basic auth handler concept 2021-10-12 18:21:04 -04:00
Lance Edgar 756f0530b9 Try to guess unit or case cost from invoice, if only one is specified 2021-10-12 15:33:28 -04:00
Lance Edgar a12f83d12f Update changelog 2021-10-11 15:26:26 -04:00
Lance Edgar 623cafca6b Increase precision for cost fields in purchase, batch
not sure why i thought 3 decimal places was enough..hopefully this is
big enough though
2021-10-10 20:07:33 -04:00
Lance Edgar fdbe1c2134 Update changelog 2021-10-07 19:35:14 -04:00
Lance Edgar ecc7726e9d Let InventoryBatchRow.case_cost equal zero 2021-10-07 14:52:05 -04:00
Lance Edgar f189a95bce Add update_pending_customer() for custorder batch handler
and perhaps more importantly, `validate_pending_customer_data()`

this was needed for sake of unique email address checks
2021-10-07 13:07:29 -04:00
Lance Edgar 6626b14798 Add contact_name for custorder and batch
so that we have something handy to easily sort/filter by etc.
2021-10-07 12:32:11 -04:00
Lance Edgar dec127727e Save pending customer reference when creating new custorder
i.e. when executing new custorder batch
2021-10-06 18:42:21 -04:00
Lance Edgar 8e197f347f Add PendingCustomer model, for sake of new custorder workflow 2021-10-06 18:22:09 -04:00
Lance Edgar cadc330dd8 Update changelog 2021-10-06 14:53:42 -04:00
Lance Edgar 3d89915d94 Add "contact update request" workflow for new custorders
if user requests contact info be updated on the customer record, then
"someone" (staff) should receive an email with that info
2021-10-06 14:47:07 -04:00
Lance Edgar 63864c95f1 Add setting to allow contact info choice for new custorder 2021-10-06 12:43:01 -04:00
Lance Edgar 121e9cc6c5 Add get_contact_emails() and should_restrict_contact_info()
for custorder batch
2021-10-06 12:29:14 -04:00