diff --git a/rattail_corepos/importing/versions.py b/rattail_corepos/importing/versions.py index f0d5d89..926b60a 100644 --- a/rattail_corepos/importing/versions.py +++ b/rattail_corepos/importing/versions.py @@ -2,7 +2,7 @@ ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2021 Lance Edgar +# Copyright © 2010-2023 Lance Edgar # # This file is part of Rattail. # @@ -35,6 +35,7 @@ class CoreposVersionMixin(object): def add_corepos_importers(self, importers): importers['CorePerson'] = CorePersonImporter importers['CoreCustomer'] = CoreCustomerImporter + importers['CoreCustomerShopper'] = CoreCustomerShopperImporter importers['CoreMember'] = CoreMemberImporter importers['CoreStore'] = CoreStoreImporter importers['CoreDepartment'] = CoreDepartmentImporter @@ -60,6 +61,13 @@ class CoreCustomerImporter(base.VersionImporter): return model.CoreCustomer +class CoreCustomerShopperImporter(base.VersionImporter): + + @property + def host_model_class(self): + return self.model.CoreCustomerShopper + + class CoreMemberImporter(base.VersionImporter): @property