Commit graph

3270 commits

Author SHA1 Message Date
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
Lance Edgar 2032684a3f Fix bug in products autocomplete 2021-10-06 11:42:49 -04:00
Lance Edgar f5ab9d0b78 Always add new/dirty first, deleted last, for RattailWatcher
try to postpone processing of deletes until the end, to avoid record
dependency issues
2021-10-05 18:47:31 -04:00
Lance Edgar 1b1ee769fb Add costing batch logic to overlay invoice onto PO data 2021-10-05 16:12:15 -04:00
Lance Edgar 087a3c55a4 Update changelog 2021-10-05 10:42:10 -04:00
Lance Edgar d4673719c5 Improve get_context_employee() for EmploymentHandler 2021-10-05 08:16:46 -04:00
Lance Edgar 399eeede2c Add PeopleHandler methods for add/update of phone, email 2021-10-04 21:19:57 -04:00
Lance Edgar 194bca3ebc Add get_contact_phones() method for custorder batch handler
for presenting options to user when making new order
2021-10-04 12:18:37 -04:00
Lance Edgar 4305d0a2b4 Add get_contact_notes() method for custorder batch handler
not sure if this is quite the right approach, but better than we had
before at least.  may need to get certain "notes" independently,
e.g. "customer has invalid phone/email" type flags
2021-10-03 19:24:28 -04:00
Lance Edgar 936d2b058d Update changelog 2021-10-03 17:20:59 -04:00
Lance Edgar 55ab6194bf Tweak how we call the change recorder
to satisfy broken tests..  not sure if this is ideal quite yet but
seems to pass tests anyway
2021-10-03 17:11:56 -04:00
Lance Edgar d0c0e7cdc7 Remove some assertions which aren't always true..
not sure what those were meant to do other than serve as a sanity
check b/c i don't know what i'm doing yet..  but for some reason they
did not hold true when running in production
2021-10-03 16:33:20 -04:00
Lance Edgar 72fe7c4cdc Update changelog 2021-10-03 15:50:35 -04:00
Lance Edgar aa56e4a189 Add initial version of the "mailmon" daemon
and refactor some filemon config etc. to leverage common logic
2021-10-03 15:26:58 -04:00
Lance Edgar 4d54a01d26 Update changelog 2021-10-01 18:37:15 -04:00
Lance Edgar fc7161abd5 Add simple error logging when bouncer fails to login to server 2021-10-01 18:33:35 -04:00
Lance Edgar 43df20b678 Add config object to ChangeRecorder class 2021-10-01 18:07:15 -04:00
Lance Edgar 0e9d0ebaf0 Add support for Autocomplete Handlers
all autocompleters needed thus far are included; this avoids the need
to implement each via Tailbone View classes etc.
2021-10-01 10:26:15 -04:00
Lance Edgar c0f3eae14b Update changelog 2021-09-30 16:34:06 -04:00
Lance Edgar dca228bdcc Try to parse invoice number from invoice file
also only support one workflow (invoice_with_po) for invoice costing
batch, until we get our footing
2021-09-29 16:54:22 -04:00
Lance Edgar 703ea812fc Add basic workflow support for invoice costing (purchase) batches 2021-09-29 16:25:29 -04:00
Lance Edgar 32695bf9cd Update changelog 2021-09-28 16:13:22 -04:00
Lance Edgar 4c5ca8aef5 Make get_first_email() type methods skip invalid addresses 2021-09-28 16:09:31 -04:00
Lance Edgar 6db165d82a Add format_phone_number() method to app handler 2021-09-27 18:00:00 -04:00
Lance Edgar 44a32230ca Update changelog 2021-09-27 13:27:49 -04:00
Lance Edgar 14166200e1 Declare model for CustomerOrderItemNote 2021-09-27 13:18:58 -04:00
Lance Edgar 25483a21a0 Add "all" enum values for custorder item status, event
also attach "initiated" event(s) when creating new custorder
2021-09-27 12:31:12 -04:00
Lance Edgar 39504fdec9 Update changelog 2021-09-27 10:02:18 -04:00
Lance Edgar 10417fd8be Fix bugs in new clientele methods 2021-09-27 10:01:49 -04:00