Commit graph

71 commits

Author SHA1 Message Date
Lance Edgar 6e1d2544c8 Fix bug when fetching corepos handler 2023-09-19 06:49:30 -05:00
Lance Edgar ebdb658a2c Make CORE API client via app handler, not deprecated function 2023-09-18 08:12:20 -05:00
Lance Edgar 1d1cb5fb3c Make CORE -> Rattail equity import a bit smarter re: datetime
if we add new equity to CORE, we can't know its timestamp for 100%
sure, and may need a "fuzzy" match when importing it back later
2023-09-15 10:35:44 -05:00
Lance Edgar 4bff0832e8 Use "complete" composite key for importing CORE equity payments 2023-09-13 22:13:37 -05:00
Lance Edgar 60bc6dd236 Add CORE-specific datetime for equity payments
in case payments are added to CORE on a later date, want to keep
original timestamp separate
2023-09-13 21:29:16 -05:00
Lance Edgar 64048db92f Import member first/last name from CORE API 2023-09-13 13:15:25 -05:00
Lance Edgar bf74ba8108 Ignore non-CORE equity payments when importing from CORE
hopefully a good idea..?
2023-09-07 20:58:35 -05:00
Lance Edgar a57f29fe1a Add support for importing MemberEquityPayment from CORE-POS DB
SQL only, no API for now
2023-09-07 18:18:38 -05:00
Lance Edgar b6e4ad2a21 Import Member.corepos_account_id from CORE 2023-06-18 17:19:43 -05:00
Lance Edgar 3cef682a75 More tweaks for CORE <-> Rattail member sync 2023-06-11 21:05:51 -05:00
Lance Edgar 788efbd114 Let handler cache members from CORE API, for multiple importers 2023-06-11 15:26:27 -05:00
Lance Edgar 2ca9cd8f76 Fix how customerAccountID is imported from CORE API
geez.

also optimize joinedloads when fetching Rattail member data for CORE
export
2023-06-11 15:21:30 -05:00
Lance Edgar 914fcbe192 Add customer "account holder" support for CORE -> Rattail 2023-06-11 14:53:14 -05:00
Lance Edgar 87bd1faa58 Make some importer logic datasync-friendly 2023-06-10 21:58:24 -05:00
Lance Edgar 7489d4a4a9 Add phone/email support in CORE -> Rattail importer for CustomerShopper 2023-06-10 21:10:09 -05:00
Lance Edgar 76b0791831 Add support for Customer address fields in CORE -> Rattail 2023-06-10 20:27:12 -05:00
Lance Edgar 13e5f2a801 Add version importer for CoreCustomerShopper model 2023-06-10 18:01:24 -05:00
Lance Edgar 660637522d Add CustomerShopper.corepos_customer_id and refactor importers
removes phone/email support for now..also change how we handle
default/empty values for member start/end date..
2023-06-10 14:35:08 -05:00
Lance Edgar 86a8e2d241 Detect bad memtype number early, for CORE API -> Rattail import
to avoid false diffs when we give a bad value
2023-06-10 13:06:18 -05:00
Lance Edgar a45d28cd6f Add initial/basic CustomerShopper importer for CORE -> Rattail
this replaces previous importers for Person and CustomerPerson

no contact info support just yet..need to decide where to put that
2023-06-07 16:39:57 -05:00
Lance Edgar 2c38e4d5d3 Import membership types from CORE API 2023-06-06 13:14:36 -05:00
Lance Edgar dde729b959 Import the Member.active flag from CORE API 2023-06-06 11:45:35 -05:00
Lance Edgar bfc52a6fb3 Make card_number more central for CORE API -> Rattail importers
let's track that as (effectively) `Customer.corepos_card_number` and
use that when possible for importer key
2023-06-05 20:45:45 -05:00
Lance Edgar 519ed0a594 Avoid deprecated import for OrderedDict 2023-05-05 01:48:39 -05:00
Lance Edgar 63a1172408 Update usage of short_session() per upstream changes 2022-08-21 20:00:15 -05:00
Lance Edgar 7eb7c25172 Fix datasync bug for CORE API -> Rattail 2022-08-21 11:33:51 -05:00
Lance Edgar 82f73276ba Refactor some importer method calls to avoid deprecation warnings 2022-01-08 19:51:47 -06:00
Lance Edgar 1f3ab43e91 Avoid error if CORE product data is missing some fields 2022-01-08 19:51:31 -06:00
Lance Edgar 9045965035 Mark some import handlers as safe for web app 2021-12-06 21:29:56 -06:00
Lance Edgar 0e28a6ee2b Some tweaks to expose CORE <-> Rattail import handlers in web app 2021-12-05 17:24:54 -06:00
Lance Edgar 1be258246c Add make_corepos_api() convenience function 2021-02-09 14:28:38 -06:00
Lance Edgar 67618d4784 Fix CORE API -> Rattail datasync for ProductCost 2021-01-31 21:53:26 -06:00
Lance Edgar ef68d4b2d0 Populate Vendor.id when importing from CORE API 2021-01-27 22:21:31 -06:00
Lance Edgar 95952c665e Add schema extension for Stores, importing from CORE API 2021-01-27 22:21:06 -06:00
Lance Edgar 5b1305ddbd Don't choke when vendorItems record has no modified timestamp 2021-01-27 09:28:35 -06:00
Lance Edgar da55a07982 Add support for importing Product.case_size from CORE API 2021-01-27 09:21:02 -06:00
Lance Edgar ca14884c46 Don't choke when unit size is not decimal-compatible 2021-01-21 17:58:11 -06:00
Lance Edgar 2faa0cb18b Add support for importing full size, uom data from CORE
also add core-specific product handler and mixin, to find all UOM abbreviations
in the wild.
2021-01-21 17:41:13 -06:00
Lance Edgar 10c119ea60 Prevent importing zero as department number, from CORE API 2021-01-21 12:28:01 -06:00
Lance Edgar deec1cd929 Add some common email profiles, for importer diff warnings 2020-09-19 14:03:54 -05:00
Lance Edgar aff04035ff Add datasync support for CORE VendorItem -> ProductCost 2020-09-04 20:22:24 -05:00
Lance Edgar 580f2093ae Add schema, logic for importing CORE VendorItem -> ProductCost 2020-09-04 19:10:48 -05:00
Lance Edgar d3e2619944 Refactor the Rattail <-> CORE product importers
this should allow for more seamless "dual authority" mode
2020-08-20 20:00:13 -05:00
Lance Edgar de628b387a Convert CORE-specific version import handler into a mixin class
so that we don't have to "choose" it as our final handler
2020-08-19 22:31:56 -05:00
Lance Edgar 6dbf7cf174 Use custom data model where possible, when importing from CORE API
not sure if this really does much good, but what the heck
2020-07-30 21:07:39 -05:00
Lance Edgar 8037de7efe Add support for importing product last sold from CORE API 2020-07-15 21:19:27 -05:00
Lance Edgar 6ce4b59509 Add more schema extensions; importing support 2020-07-07 19:58:57 -05:00
Lance Edgar 4402d79052 Allow for missing vendor abbreviation, when importing from CORE 2020-06-29 19:06:57 -05:00
Lance Edgar 1fea95be97 Import Member.person_uuid from CORE 2020-03-18 13:15:37 -05:00
Lance Edgar 154722b78d Change how we import Member.id from CORE
to match what we do for `Customer.id`
2020-03-18 12:37:18 -05:00