Commit graph

81 commits

Author SHA1 Message Date
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
Lance Edgar 7e450e11b1 Allow suppression of logging for unknown bottle deposits 2020-04-09 10:39:30 -05:00
Lance Edgar aefaaf8351 Fix how bottle deposit amounts are calculated, for Catapult export 2020-04-08 16:14:35 -05:00
Lance Edgar c330cfccb5 Use subdept. number and name for pf1 field in Catapult export 2020-04-08 16:13:51 -05:00
Lance Edgar c3ecf828fc Remove support for pos_menu_group field in Catapult export
since it's not clear what that value should be, "objectively"
2020-04-08 16:12:55 -05:00
Lance Edgar 74deef63ab Allow some warnings to be suppressed for Catapult inventory export 2020-04-08 14:15:51 -05:00
Lance Edgar 28f17ca31a Move a block of code
somehow it was stuck right in the middle of some other contiguous blocks, and
the sequence just seemed wrong
2020-04-01 17:21:25 -05:00
Lance Edgar 16c80082ad Log warning if null byte is detected in size field 2020-04-01 00:03:00 -05:00
Lance Edgar c5b1cf01af Dang it, size could also be None... 2020-03-31 23:29:10 -05:00
Lance Edgar fcbba9608c Remove null characters from product size field, during export 2020-03-31 23:26:37 -05:00
Lance Edgar 4a03a7f57d Dang it, use datetime instead of date, for that sorting hack 2020-03-31 23:11:46 -05:00
Lance Edgar d00e3b6312 Provide fall back date when sorting, to avoid None 2020-03-31 23:09:35 -05:00
Lance Edgar 2e5f7d3cd5 Add initial 'tax' support for Catapult export 2020-03-31 14:11:39 -05:00
Lance Edgar e71e06f837 Add 'location' to Catapult export 2020-03-30 13:32:02 -05:00
Lance Edgar d87c889d26 Add 'auto_discount' to Catapult export 2020-03-30 13:32:02 -05:00
Lance Edgar e3204993b1 Add 'memo' field to Catapult export 2020-03-30 13:32:02 -05:00
Lance Edgar c5e618d517 Add scale info fields to Catapult export 2020-03-30 13:32:02 -05:00
Lance Edgar e30cbf374e Add supplier info to Catapult export 2020-03-30 13:32:02 -05:00
Lance Edgar 6dc65f1aa5 Update various warnings to use product upc 2020-03-30 13:32:02 -05:00
Lance Edgar 45f05032fb Add 'pf1' (subdepartment number) to Catapult export 2020-03-30 13:32:02 -05:00