Commit graph

3860 commits

Author SHA1 Message Date
Lance Edgar 277a483c80 Add workaround for person fields when importing new member 2023-09-13 13:29:15 -05:00
Lance Edgar 0b30d041da Update changelog 2023-09-13 13:13:41 -05:00
Lance Edgar 0314e49076 Add get_equity_total() for membership handler 2023-09-13 13:12:47 -05:00
Lance Edgar 772a473af5 Add person first/last name fields for Member importer 2023-09-13 13:12:29 -05:00
Lance Edgar 129382e3e1 Fix type for CustomerOrderItem.product_weighed 2023-09-13 09:18:08 -05:00
Lance Edgar 6fec2aa6bd Update changelog 2023-09-12 18:30:30 -05:00
Lance Edgar ecfa1b9d07 Add make_list_string() method for config objects
opposite of `parse_list()`
2023-09-12 18:06:52 -05:00
Lance Edgar 4f6c810bfb Add add_note() method for custorder handler
and tweak item status/event enum labels to be more terse
2023-09-12 12:29:56 -05:00
Lance Edgar 25a3c9c2c9 Add global --plus-config command arg
can now omit `--config` to get "normal" config, and use
`--plus-config` to add some tweaks
2023-09-12 12:27:40 -05:00
Lance Edgar 424daaf89c Update changelog 2023-09-11 15:57:19 -05:00
Lance Edgar ef63e67728 Re-define custorder item status/event codes enum
pretty sure this is good enough to go live with...?
2023-09-11 15:51:06 -05:00
Lance Edgar 6a6ba1aa58 Add contact attempt fields for custorder item
also tweak some enums regarding those
2023-09-11 14:49:46 -05:00
Lance Edgar 2493598959 Add custorder handler method for mark_received() 2023-09-11 14:49:46 -05:00
Lance Edgar d6e5c4ec6a Add special_order flag for CustomerOrderItem
also add `flagged` flag

and copy all product key fields when making order from batch
2023-09-11 14:49:42 -05:00
Lance Edgar f81da39fd2 Must pass rows to make_new_order() for custorder batch
also allow passing `new_order_id` if `batch.id` is not wanted for order
2023-09-10 13:49:08 -05:00
Lance Edgar f81ddb113a Remove deprecated logic for legacy Customer.people schema
perhaps one day that will be used again, but for now remove the option
to avoid confusion
2023-09-10 11:49:29 -05:00
Lance Edgar ae44ff11d5 Add product relationship and resolved user/time for PendingProduct
when resolving, should keep a ref to new product record and who did it
2023-09-10 09:33:29 -05:00
Lance Edgar 64d505fdbf Optionally configure SQLAlchemy Session with future=True
this avoids the need for setting `cascade_backrefs=False` everywhere

https://docs.sqlalchemy.org/en/14/errors.html#error-s9r1

https://docs.sqlalchemy.org/en/14/orm/session_api.html#sqlalchemy.orm.Session.params.future
2023-09-10 09:33:29 -05:00
Lance Edgar 0c1a4cd14c Remove unused attr 2023-09-09 12:16:38 -05:00
Lance Edgar c965485e1b Tweak warning for deprecated bounce handler getter 2023-09-08 10:53:17 -05:00
Lance Edgar 9e1ff3f674 Update changelog 2023-09-07 18:35:25 -05:00
Lance Edgar 73aa4d4f2c Add source column for MemberEquityPayment
for cases where payments must be reconciled across systems

also wire up version importer for this model, whoops
2023-09-07 18:19:11 -05:00
Lance Edgar fa75b06915 Update changelog 2023-09-07 14:21:14 -05:00
Lance Edgar 389f2bc156 Add import_single_object() method for ImportHandler
this may or may not be a good idea..?  seemed pretty convenient for
use in a script though so we'll see
2023-09-07 14:17:39 -05:00
Lance Edgar a0ff566c48 Update changelog 2023-09-02 13:54:45 -05:00
Lance Edgar 4721b64a56 Add get_label_profiles() method for LabelHandler
just to make sure same logic is used in tailbone and byjove/api
2023-09-02 10:55:02 -05:00
Lance Edgar 1f55cbe856 Add setup_importer() method for datasync consumers 2023-09-01 21:55:56 -05:00
Lance Edgar 08ac42fd1c Update changelog 2023-08-30 22:24:02 -05:00
Lance Edgar cf35ec46c1 Fix bugs in product lookup methods 2023-08-30 22:23:26 -05:00
Lance Edgar 71b26f8864 Update changelog 2023-08-30 22:07:59 -05:00
Lance Edgar 0b268dc868 Remove usage of deprecated rattail.db.api functions
now using handlers all around instead
2023-08-30 21:49:13 -05:00
Lance Edgar 6c366241b1 Add get_store() method for OrgHandler 2023-08-30 21:21:22 -05:00
Lance Edgar 81672e2ded Let "new product" batch override type-2 UPC lookup behavior 2023-08-30 20:09:46 -05:00
Lance Edgar 8a61574221 Add generic base class for web API clients
tired of re-inventing this wheel, surely they can standardize somehow?
guess we'll see
2023-08-29 23:18:28 -05:00
Lance Edgar 0bd52c7f26 Update changelog 2023-08-29 22:19:59 -05:00
Lance Edgar 4d6bc9f9d6 Add setting for "max one member per person"
this should possibly be True by default? but for now we'll leave it
False by default, since that has "better" support thus far..
2023-08-28 20:40:56 -05:00
Lance Edgar 94a28b04ef Version import should add "DELETE" record instead of deleting records
..right?  we'll see if anything breaks
2023-08-25 10:39:28 -05:00
Lance Edgar 0b3b7382e9 Add clientele methods to deactivate shopper, check its active history 2023-08-24 21:59:41 -05:00
Lance Edgar 994847acdd Fix web config error in rattail project template 2023-08-24 18:26:42 -05:00
Lance Edgar 8c66d6f161 Add new OrgHandler class, deprecate some db.api functions 2023-08-18 15:36:02 -05:00
Lance Edgar ce8b0faf5d Set appropriate attr when assigning PO for receiving batch
if PO lives outside of Rattail, different attr must be used to track reference
2023-08-17 18:10:38 -05:00
Lance Edgar 9e15b6c426 Remove autoincrement kwargs for latest db migration
to avoid alembic warnings
2023-08-09 11:16:49 -05:00
Lance Edgar 416971b648 Update changelog 2023-08-08 18:42:01 -05:00
Lance Edgar d165027c45 Fix nullable for member equity payment version table 2023-08-08 18:10:55 -05:00
Lance Edgar 5371c80ff3 Improve UOM choices for product info
better represent items sold by weight, for new/edit custorder
2023-08-08 14:11:10 -05:00
Lance Edgar f3b7db92e7 Assume order quantities are known for multi-invoice receiving 2023-08-07 19:05:06 -05:00
Lance Edgar 0456b290c0 Preserve invoice number/date in credits for multi-invoice receiving
and make single-invoice work the same way
2023-08-07 13:49:58 -05:00
Lance Edgar 7d4f90ab1c Collect telemetry data for python by default 2023-08-05 21:47:51 -05:00
Lance Edgar c01043727d Add support for collecting 'python' telemetry data
just the envroot and python version so far..
2023-08-05 21:14:02 -05:00
Lance Edgar df40178acc Fix config ambiguity for telemetry w/ new RattailConfiguration 2023-08-05 20:36:17 -05:00