Prevent importing zero as department number, from CORE API
This commit is contained in:
		
							parent
							
								
									ba31725ad1
								
							
						
					
					
						commit
						10c119ea60
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -509,7 +509,7 @@ class ProductImporter(FromCOREPOSAPI, corepos_importing.model.ProductImporter): | |||
| 
 | ||||
|         department_number = None | ||||
|         if 'department' in product: | ||||
|             department_number = int(product['department']) | ||||
|             department_number = int(product['department']) or None | ||||
| 
 | ||||
|         subdepartment_number = None | ||||
|         if 'subdept' in product: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar