Commit graph

31 commits

Author SHA1 Message Date
Lance Edgar 1b04b4097c fix: add Employee support for CORE API -> Rattail import/datasync 2024-07-04 18:29:05 -05:00
Lance Edgar 4752409a45 fix: misc. improvements for CORE API importer, per flaky data
handle some edge cases better; let config dictate whether some
warnings should be logged etc.
2024-07-04 13:23:51 -05:00
Lance Edgar dca2c1bfe2 fix: add command to install mysql triggers for CORE office_op DB
for use with datasync.  this also adds datasync support for
ProductCost preference
2024-07-03 18:25:18 -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 77bd9e34e4 Be smarter about member datasync for Rattail -> CORE
per new CustomerShopper schema etc.
2023-06-10 22:29:50 -05:00
Lance Edgar 6e50ea58a8 Fix how we select changes from CORE DB in datasync
to placate SQLAlchemy warnings
2023-06-10 22:13:42 -05:00
Lance Edgar 6c21073182 Fix datasync for CORE -> Rattail, per CustomerShopper changes 2023-06-08 10:53:54 -05:00
Lance Edgar 82892be096 More refactoring, Query.get() => Session.get() 2023-02-12 09:37:31 -06:00
Lance Edgar 0b5930a511 Refactor Query.get() => Session.get() per SQLAlchemy 1.4 2023-02-11 22:06:43 -06:00
Lance Edgar 7eb7c25172 Fix datasync bug for CORE API -> Rattail 2022-08-21 11:33:51 -05:00
Lance Edgar 74b9ec5e1e Avoid deprecated base class, per upstream changes 2021-12-30 15:53:59 -06:00
Lance Edgar a72fd9ef77 Use sku instead of upc when fetching CORE vendorItems record
since that is what API client now expects
2021-02-09 16:12:32 -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 9b00de26c6 Be sure to update Rattail Product, when VendorItem changes in CORE
b/c of the `Product.case_size` field
2021-01-27 10:12:46 -06:00
Lance Edgar aff04035ff Add datasync support for CORE VendorItem -> ProductCost 2020-09-04 20:22:24 -05:00
Lance Edgar a32753a04a Let CORE-POS datasync watcher use alternate "changes" table name
i needed this for sake of online demo, so that 2 separate rattail apps could
both watch the same CORE DB simultaneously
2020-07-09 17:01:23 -05:00
Lance Edgar 8917316a21 Add 2-way sync for basic Member data, CORE <-> Rattail 2020-03-18 11:30:18 -05:00
Lance Edgar 9dbdb81f07 Add 2-way sync for customer contact data, for CORE API <-> Rattail 2020-03-17 18:52:08 -05:00
Lance Edgar 42184e34b7 Fix refactoring bugs 2020-03-17 16:36:31 -05:00
Lance Edgar cb63644c7d Add support for Rattail -> CORE export/sync for Member data
also refactor CORE -> Rattail logic to use `api.set_member()` etc.
2020-03-17 16:29:35 -05:00
Lance Edgar 8f9f77b6b7 Add proper importing for Customer/Person data from CORE API
includes datasync support.  i think it even works right, but we'll see
2020-03-16 19:45:54 -05:00
Lance Edgar 36b8afb03b Add support for Customer data in CORE API -> Rattail import/sync 2020-03-15 19:29:47 -05:00
Lance Edgar cd93d3e36b Add support for Department, Subdepartment, Product in Rattail -> CORE API 2020-03-15 15:54:15 -05:00
Lance Edgar ab8894ef0d Add importer, datasync for CORE-POS (API) -> Rattail 2020-03-15 14:28:22 -05:00
Lance Edgar af1e38aa18 Oerhaul the Vendor import/export between Rattail and CORE
also, add new DB schema specific to this integration, to hold PKs etc.
2020-03-04 19:05:55 -06:00
Lance Edgar f9071ac6e9 Remove DB-related things from the Rattail -> CORE datasync consumer
since that should only use API, going forward
2020-03-04 13:29:47 -06:00
Lance Edgar 0298e63384 Add initial Rattail -> CORE-POS export logic
only allows "update" for Vendor model so far.  more to come after testing...
2020-03-03 21:45:11 -06:00
Lance Edgar 6f03461114 Add datasync watcher for trigger-populated "changes" table in CORE 2020-03-01 20:00:45 -06:00
Lance Edgar 2a37bb5a49 Cleanup attribute names for CORE Department model 2019-07-23 19:44:32 -05:00
Lance Edgar 810d4726c3 Initial commit 2018-06-01 15:14:49 -05:00