Commit graph

55 commits

Author SHA1 Message Date
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
Lance Edgar c2c10de64b Add 'price_divider' for Catapult export 2020-03-30 13:32:02 -05:00
Lance Edgar 4cb42d06ea Add support for 'alt_id' and friends, in Catapult export
just the basic support here, for e.g. Zevia sodas where the single barcode
matches the pack
2020-03-30 13:32:02 -05:00
Lance Edgar 06f40f350e Add 'ideal_margin' for Catapult export 2020-03-30 13:31:59 -05:00
Lance Edgar 3a956c444d Add 'age_required' to Catapult export 2020-03-29 23:35:53 -05:00
Lance Edgar 5a75a99263 Add 'pos_menu_group' and 'weight_profile' to Catapult export 2020-03-29 23:13:52 -05:00
Lance Edgar 5e2fa46650 Fix some logging bugs 2020-03-27 20:57:23 -05:00
Lance Edgar 5a5927dce6 Add "low-hanging fruit" fields for Catapult inventory export 2020-03-27 20:50:36 -05:00
Lance Edgar 3d145d0314 Add very basic support for CORE -> Catapult Inventory Workbook export
more fields to come
2020-03-27 19:11:26 -05:00
Lance Edgar 4f300f1036 Prevent exporting "Change" data to CSV 2020-03-27 19:11:26 -05:00
Lance Edgar 99a67403f8 Move the CORE -> CSV exporter to subfolder 2020-03-27 19:08:34 -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 15a99164f2 Fix another refactoring bug 2020-03-17 16:40:29 -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 29166f4b1e Rename the old CORE Customer model, to CustData
it now has a new Customer model, so we use that where we can
2020-03-16 16:56:42 -05:00
Lance Edgar c44dba6456 Fall back to empty string for some product fields, in Rattail -> CORE 2020-03-15 16:03:24 -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 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 4180382250 Add support for phone, fax, email in Rattail -> CORE export 2020-03-04 13:05:20 -06:00
Lance Edgar 75ba08b9fc Move "direct DB" CORE importer logic, to subpackage
i.e. `rattail_corepos.corepos.importing.db` is now the place for direct DB
importers, and `rattail_corepos.corepos.importing` will become the place for
proper API-based importers
2020-03-03 23:25:37 -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 fa1e0c93e2 Provide default node title for CSV export
no need to throw an error if config doesn't define one
2019-10-28 01:26:47 -05:00
Lance Edgar 131e5d7c1f Add importer models for MemberDate, MemberContact 2019-10-25 16:30:18 -05:00
Lance Edgar aa356b652e Cleanup attribute names for CORE MemberInfo model 2019-10-25 15:33:57 -05:00
Lance Edgar 8da0f1b17f Cleanup attribute names for CORE Employee model 2019-08-14 21:02:46 -05:00
Lance Edgar 66fce9b066 Remove unused attribute 2019-07-30 23:30:19 -05:00