diff --git a/rattail_corepos/datasync/rattail.py b/rattail_corepos/datasync/rattail.py index 4a14441..48152c1 100644 --- a/rattail_corepos/datasync/rattail.py +++ b/rattail_corepos/datasync/rattail.py @@ -74,10 +74,10 @@ class FromCOREAPIToRattail(DataSyncImportConsumer): member = self.get_host_object(session, change) self.process_change(session, self.importers['Customer'], host_object=member) - people = self.importers['Person'].get_person_objects_for_member(member) - for person in people: - self.process_change(session, self.importers['Person'], - host_object=person) + shoppers = self.importers['CustomerShopper'].get_shoppers_for_member(member) + for shopper in shoppers: + self.process_change(session, self.importers['CustomerShopper'], + host_object=shopper) self.process_change(session, self.importers['Member'], host_object=member)