Commit graph

3398 commits

Author SHA1 Message Date
Lance Edgar 45a8c2d709 Allow problem report emails to have attachments
for now each report must generate their own, if needed
2023-06-27 23:14:43 -05:00
Lance Edgar 751eb8a75f Replace deprecated usage of send_email() function
use app handler instead
2023-06-27 22:50:39 -05:00
Lance Edgar eeca234c58 Update changelog 2023-06-27 20:46:52 -05:00
Lance Edgar 1fd79a46ff Fix how win32 service commands are ran, e.g. for install
must run command as e.g. `python -m rattail.filemon.win32` instead of
`python /path/to/rattail/filemon/win32.py` - latter will throw off the
import path / mechanism somehow and cause problems
2023-06-27 20:43:36 -05:00
Lance Edgar a5b4f02c3d Allow "arbitrary" PO attachment to purchase batch
for sake of other POS integration etc.
2023-06-27 14:14:03 -05:00
Lance Edgar 0bb9d49878 Avoid deprecated "api" functions for vendor invoice batch 2023-06-27 14:01:18 -05:00
Lance Edgar 75b77868db Fix bug when populating receiving from PO 2023-06-27 12:35:55 -05:00
Lance Edgar 7b30bc2232 Add special bulk item handling for KeHE invoice parser
when "PackSize" column value is e.g. "1/11.000 LB" then must
re-calculate unit cost, case size etc. accordingly, instead of
assuming "1" is the case size
2023-06-27 10:39:59 -05:00
Lance Edgar 4b3330f8c0 Do not trust unit cost from UNFI invoice
must calculate that instead, from "total" cost per item
2023-06-21 15:09:26 -05:00
Lance Edgar ba1fbdbbee Update changelog 2023-06-20 11:52:26 -05:00
Lance Edgar 87e5bd3fa2 Lower log level when enabling Continuum versioning
i guess we really should not see that normally..
2023-06-19 20:56:18 -05:00
Lance Edgar f8abebd4a6 Add basic autocomplete for Members
really just works on Person.display_name so far..
2023-06-18 21:18:30 -05:00
Lance Edgar 5f9917686c Add initial model, importers for MemberEquityPayment 2023-06-18 14:07:38 -05:00
Lance Edgar 2487b8f62b Stop limiting to just BASE_TABLE for rattail mysql-chars command 2023-06-17 23:13:20 -05:00
Lance Edgar f0626fd8a3 Fix more issues with modifying charset for live mysql DB 2023-06-17 20:51:59 -05:00
Lance Edgar 1078ea7496 Remove fallback to customer when getting contact email
for some reason exceeded max recursion depth in production, though i
was not able to reproduce?!  anyway this seemed to fix..
2023-06-17 20:43:45 -05:00
Lance Edgar 18f7b8a43f Add --supported arg for rattail mysql-chars flag
to show what the underlying DB engine supports

this also enables "live mode" which will actually attempt to modify
live DB / tables...fingers crossed
2023-06-17 20:29:14 -05:00
Lance Edgar ad4f882c2e Update changelog 2023-06-17 18:11:19 -05:00
Lance Edgar 052b8277b2 Add basic support for quickie_lookup() in people handler
meant to locate a person by e.g. customer number
2023-06-17 15:07:34 -05:00
Lance Edgar c9c613936f Add enum for PersonNote.type values 2023-06-17 14:12:11 -05:00
Lance Edgar 65905a18d3 Update usage of get_product_key_field()
avoid deprecation warnings
2023-06-17 10:07:42 -05:00
Lance Edgar 854a1b4352 Update changelog 2023-06-16 22:20:11 -05:00
Lance Edgar 8d66402f1a Add get_short_display_name() method for auth handler
supersedes `User.get_short_name()`
2023-06-16 22:15:02 -05:00
Lance Edgar b51237c10a Update changelog 2023-06-16 20:42:02 -05:00
Lance Edgar 248af14f9c Add default logic for membership.ensure_member() 2023-06-16 17:03:07 -05:00
Lance Edgar f7d024f604 Fix SQLAlchemy 2.x warnings for rattail mysql-chars command 2023-06-16 13:35:32 -05:00
Lance Edgar abd5b00760 Output emptry string for rattail setting-get if no value 2023-06-16 11:54:26 -05:00
Lance Edgar 087b93827d Update changelog 2023-06-16 11:41:20 -05:00
Lance Edgar 8c36af516d Cache phone/email maxlens for datasync too 2023-06-16 10:25:01 -05:00
Lance Edgar df753b462c Update changelog 2023-06-15 21:25:26 -05:00
Lance Edgar 70b2a3b993 Revert "Add logic to allow/ignore cache objects which do not normalize"
This reverts commit f96f1794be.

pretty sure that was misguided somehow..in particular the scenario
described in that commit comment is no longer quite relevant, as the
CORE -> Rattail import no longer uses that composite key
2023-06-15 20:06:42 -05:00
Lance Edgar 859b469818 Flush periodically during the delete phase of importer 2023-06-15 11:55:01 -05:00
Lance Edgar 3cd486575e Update changelog 2023-06-15 10:46:33 -05:00
Lance Edgar d7ca0c7d2a Prefer account holder, shoppers over legacy Customers.people
but until all are migrated, support both

also add `get_contact_email()` and `get_contact_email_address()`
methods to app handler; deprecate similar things in various places
2023-06-14 23:32:31 -05:00
Lance Edgar 2481cdfad2 Be a little smarter when parsing datetime values from CSV
sometimes they may contain microseconds
2023-06-13 16:37:56 -05:00
Lance Edgar 9ebc8dea85 Add account holder first/last name support for Customer importer 2023-06-13 16:37:15 -05:00
Lance Edgar 27817675c9 Update changelog 2023-06-12 20:31:38 -05:00
Lance Edgar 9fc34c4993 Don't auto-sort query unless it appears to support that 2023-06-12 20:31:04 -05:00
Lance Edgar 445dc7c94a Fix edge case when creating new shopper record 2023-06-12 20:01:30 -05:00
Lance Edgar 71f83afae3 Add account_holder field for CustomerShopper import
boolean flag, can auto-set Customer.account_holder to one of the
shoppers

this also fixes some session-related bugs when updating phone/email
2023-06-11 14:49:32 -05:00
Lance Edgar b11313e6f1 Auto-sort sqlalchemy queries for importer host objects
hopefully this does not break anything..but can fix if so
2023-06-11 11:52:04 -05:00
Lance Edgar 3e863b1117 Make get_person() handle an Employee 2023-06-10 23:21:16 -05:00
Lance Edgar 2377d7523d Be more thorough for get_customers_for_account_holder() 2023-06-10 22:28:27 -05:00
Lance Edgar 08da58de71 Make default configs require instead of include rattail.conf 2023-06-10 22:05:51 -05:00
Lance Edgar fcbb9f04e9 Add phone/email support for CustomerShopper importer
store contact info on the Person
2023-06-10 21:09:09 -05:00
Lance Edgar 710fba9841 Allow -l shortcut for make-config --list-types 2023-06-10 18:59:06 -05:00
Lance Edgar 6d1b77006e Add logic to get member from customer object 2023-06-10 14:29:14 -05:00
Lance Edgar ec2f018dec Allow suppress warnings for unknown membership type when importing 2023-06-10 13:05:32 -05:00
Lance Edgar 78d54c2897 Fix type check to avoid errors
apparently can't just check attr.type.impl ..since that isn't always
there
2023-06-09 22:48:02 -05:00
Lance Edgar 7e0e709969 Add decimal support for CSV -> Rattail data coersion 2023-06-09 22:34:20 -05:00