Lance Edgar
478126f1e3
Improve the core-office anonymize
command somewhat
...
API is not good enough for this, need to write direct SQL instead
this "mostly" anonymizes `custdata` and `meminfo` but still needs to
also anonymize probably `CustomerAccounts` and `Customers`, as well as
`employees` and possibly others..?
2023-10-03 23:17:09 -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
7dc09d0a2e
Let config override the CORE API client factory
2023-09-17 13:47:06 -05:00
Lance Edgar
465322b87b
Add common base for commands which import straight to CORE op/trans DB
2023-09-09 12:19:54 -05:00
Lance Edgar
2af89f2cbf
Add core-office anonymize
command
...
for sake of demo data etc.
2023-06-19 20:58:00 -05:00
Lance Edgar
9c15952386
Rename model for custdata
to CustomerClassic
2023-06-12 20:04:31 -05:00
Lance Edgar
a6541a2c32
Add core-office patch-customer-gaps
command
...
hopefully this is not often needed, but definitely might be sometimes..
2023-06-12 20:04:24 -05:00
Lance Edgar
cc517702e1
Improve email diff display for exports to CORE API 'Member.customers'
...
break out each subrecord into separate fields, for easier viewing
2023-06-12 16:39:32 -05:00
Lance Edgar
46eec6b781
Improve diff detection for customerID when dealing with CORE API
...
sometimes it returns int, sometimes str..
2023-06-12 16:36:31 -05:00
Lance Edgar
3cef682a75
More tweaks for CORE <-> Rattail member sync
2023-06-11 21:05:51 -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
15bac1dc23
Add core-office export-csv
command; deprecate crepes export-csv
2023-06-11 11:55:29 -05:00
Lance Edgar
43cd63c1f5
Add phone/email support for Rattail -> CORE export for Member
2023-06-10 21:18:14 -05:00
Lance Edgar
bde8200cdf
Add core-office ping-install
command, for DB setup
2023-06-10 18:35:49 -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
2cf865d879
Add core-office import-csv
command; deprecate crepes import-csv
2023-06-09 19:53:47 -05:00
Lance Edgar
6267205966
Avoid the Change
model by default, for CSV -> CORE import
2023-06-09 17:41:32 -05:00
Lance Edgar
95fcf054ef
Fix import to avoid deprecation warning
2023-06-09 15:28:08 -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
5dc1392ef7
Skip customer record with no member type, for blue line update
...
otherwise would just raise error, and prevent the rest of updates from
happening
2023-06-03 07:27:57 -05:00
Lance Edgar
e838e5b514
Add support for htdigest auth when using CORE webservices API
2023-05-22 21:36:04 -05:00
Lance Edgar
80084e13da
Add core-office import-self
command, to fix custdata.blueLine
2023-05-18 15:55:56 -05:00
Lance Edgar
e74a47b99a
Add behavior options for CORE member importer
2023-05-11 15:23:39 -05:00
Lance Edgar
f8de832294
Add support for member_type_id
in CORE MemberInfoImporter
...
also improve support for first, last name sync
2023-05-09 20:25:52 -05:00
Lance Edgar
24d4afa22b
Move CORE DB import handler to more general location
2023-05-08 14:56:49 -05:00
Lance Edgar
ef823260ab
Move logic for CORE importing to "more precise" module path
...
should distinguish "office vs. lane"
2023-05-08 14:56:46 -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
e91fef0e8d
Refactor CORE API hack to use custdata
instead of Customers
table
...
the older table seems more reliable? at least i just ran across an
example where it was, albeit a demo..
2022-01-08 19:49:51 -06:00
Lance Edgar
9045965035
Mark some import handlers as safe for web app
2021-12-06 21:29:56 -06:00
Lance Edgar
3140245857
OMG a ridiculous commit to overhaul import handler config etc.
...
- register all import/export handlers via setup.py and config
- use "handler key" lookup for all import/export commands
- fix logic bugs w/ CORE -> Trainwreck importer
2021-12-06 20:07:42 -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
7522dd14cb
Add custdata
importer for CORE Office -> Lane
...
to double-check sync issues
2021-11-04 17:42:38 -05:00
Lance Edgar
980c2fa952
Add CORE Office -> Lane op importer for Department
2021-08-31 22:41:32 -05:00
Lance Edgar
ca723ffde8
Add email setting for CORE Office -> CORE Lane export
2021-07-22 12:15:26 -05:00
Lance Edgar
6c9d9964dc
Add basic support for CORE Office -> CORE Lane export
...
just products data so far
2021-07-21 20:05:16 -05:00
Lance Edgar
83ba5c9ace
Fix typo
2021-02-09 15:41:27 -06:00
Lance Edgar
1be258246c
Add make_corepos_api()
convenience function
2021-02-09 14:28:38 -06:00
Lance Edgar
f61a0a7dd9
Add importer support for VendorItem
...
this was done mostly for CORE <-> CORE diffs
2021-01-30 13:17:45 -06:00
Lance Edgar
59abc4995e
Fix 'size' and push 'unitofmeasure' when exporting to CORE Products
2021-01-21 18:16:56 -06:00
Lance Edgar
b96a4bc7b9
Only assign new CORE ID if not in dry run mode
...
b/c if dry run, we didn't really make the API call so there is no ID
2020-08-20 20:19:01 -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
1fe48d91f6
Use member split_street()
method when exporting to Catapult workbook
2020-07-21 15:07:54 -05:00
Lance Edgar
9f3cfa0d8e
Add basic exporter for CORE -> Catapult Membership Workbook
...
this only does what i need it to for the moment...still missing equity fields
2020-07-13 11:04:32 -05:00
Lance Edgar
40cb18f0cc
Avoid touching DB records when dry-run importing
...
just in case storage engine doesn't support transactions!
2020-04-15 20:54:35 -05:00
Lance Edgar
a193a3458a
Include product UPC as original item id, for Catapult export
...
in case data needs to be imported back into CORE, from spreadsheet
2020-04-15 20:54:35 -05:00
Lance Edgar
20e8aa97ca
Try to be smarter about the "size" column for Catapult export
2020-04-15 20:54:33 -05:00
Lance Edgar
190ba506e5
Combine size and UOM for "size" column in export
2020-04-14 16:00:31 -05:00
Lance Edgar
6905b387d0
Add "alternate for" column in Catapult export, based on like codes
...
this is more of an FYI column, user must do with it what they will
2020-04-10 14:12:10 -05:00
Lance Edgar
ae58b7c55a
Refactor Catapult export a bit, for sake of "duplicate" item_id
...
also improve certain warnings and exclusion rules
2020-04-10 13:02:34 -05:00