From 6c210731821ec05e6668dc286114f91e6679fc90 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 8 Jun 2023 10:53:54 -0500 Subject: [PATCH] Fix datasync for CORE -> Rattail, per CustomerShopper changes --- rattail_corepos/datasync/rattail.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)