Import Store, ProductCost from CORE DB

and tweak API importer accordingly
This commit is contained in:
Lance Edgar 2023-10-20 14:37:25 -05:00
parent 67861522eb
commit b6e21f52ee
5 changed files with 199 additions and 9 deletions

View file

@ -43,7 +43,7 @@ class PersonImporter(importing.model.PersonImporter):
}
def cache_query(self):
query = super(PersonImporter, self).cache_query()
query = super().cache_query()
model = self.config.get_model()
# we want to ignore people with no CORE ID, if that's (part of) our key
@ -168,7 +168,7 @@ class ProductImporter(importing.model.ProductImporter):
}
def setup(self):
super(ProductImporter, self).setup()
super().setup()
if self.fields_active(self.size_fields):
app = self.config.get_app()
@ -176,7 +176,7 @@ class ProductImporter(importing.model.ProductImporter):
self.uoms = handler.get_uom_sil_codes(self.session, uppercase=True)
def cache_query(self):
query = super(ProductImporter, self).cache_query()
query = super().cache_query()
model = self.config.get_model()
# we want to ignore products with no CORE ID, if that's (part of) our key
@ -239,12 +239,14 @@ class ProductCostImporter(importing.model.ProductCostImporter):
extensions = {
'_corepos': [
'corepos_vendor_id',
'corepos_sku',
'corepos_id',
],
}
def cache_query(self):
query = super(ProductCostImporter, self).cache_query()
query = super().cache_query()
model = self.config.get_model()
# we want to ignore items with no CORE ID, if that's (part of) our key