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:
parent
f9071ac6e9
commit
af1e38aa18
10 changed files with 311 additions and 30 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue