Oerhaul the Vendor import/export between Rattail and CORE

also, add new DB schema specific to this integration, to hold PKs etc.
This commit is contained in:
Lance Edgar 2020-03-04 19:05:55 -06:00
parent f9071ac6e9
commit af1e38aa18
10 changed files with 311 additions and 30 deletions

View file

@ -160,8 +160,10 @@ class FromRattailToCore(NewDataSyncImportConsumer):
]
for change in [c for c in changes if c.payload_type in types]:
if change.payload_type == 'Vendor' and change.deletion:
# just do default logic for this one
self.invoke_importer(session, change)
# # just do default logic for this one
# self.invoke_importer(session, change)
# TODO: we have no way to delete a CORE vendor via API, right?
pass
else: # we consider this a "vendor add/update"
vendor = self.get_host_vendor(session, change)
if vendor: