mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Fix common spelling mistakes (#4956)
* add codespell * first fixes * doc fixes * fix docstrings and comments * functional changes * docstrings again * and docs again * rename args * add ignore * use pre-commit for filtering instead * ups * fix typo in filter
This commit is contained in:
		@@ -25,8 +25,8 @@ def delete_scheduled(apps, schema_editor):
 | 
			
		||||
 | 
			
		||||
        # Ensure any parent / child relationships are updated!
 | 
			
		||||
        for item in items:
 | 
			
		||||
            childs = StockItem.objects.filter(parent=item)
 | 
			
		||||
            childs.update(parent=item.parent)
 | 
			
		||||
            children = StockItem.objects.filter(parent=item)
 | 
			
		||||
            children.update(parent=item.parent)
 | 
			
		||||
 | 
			
		||||
            item.delete()
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -26,7 +26,7 @@ def update_stock_history(apps, schema_editor):
 | 
			
		||||
    n = 0
 | 
			
		||||
 | 
			
		||||
    for item in items:
 | 
			
		||||
        # Find newest relevent history
 | 
			
		||||
        # Find newest relevant history
 | 
			
		||||
        history = StockItemTracking.objects.filter(
 | 
			
		||||
            item=item,
 | 
			
		||||
            tracking_type__in=[StockHistoryCode.SENT_TO_CUSTOMER, StockHistoryCode.SHIPPED_AGAINST_SALES_ORDER]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user