Prevent importing zero as department number, from CORE API

This commit is contained in:
Lance Edgar 2021-01-21 12:28:01 -06:00
parent ba31725ad1
commit 10c119ea60

View file

@ -509,7 +509,7 @@ class ProductImporter(FromCOREPOSAPI, corepos_importing.model.ProductImporter):
department_number = None department_number = None
if 'department' in product: if 'department' in product:
department_number = int(product['department']) department_number = int(product['department']) or None
subdepartment_number = None subdepartment_number = None
if 'subdept' in product: if 'subdept' in product: