mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Merge pull request #1489 from eeintech/stock_fixes
Stock return to customer fix
This commit is contained in:
		@@ -634,6 +634,7 @@ class StockItem(MPTTModel):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        self.customer = None
 | 
					        self.customer = None
 | 
				
			||||||
        self.location = location
 | 
					        self.location = location
 | 
				
			||||||
 | 
					        self.sales_order = None
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.save()
 | 
					        self.save()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -30,7 +30,7 @@
 | 
				
			|||||||
loadStockTable($("#stock-table"), {
 | 
					loadStockTable($("#stock-table"), {
 | 
				
			||||||
    params: {
 | 
					    params: {
 | 
				
			||||||
        location_detail: true,
 | 
					        location_detail: true,
 | 
				
			||||||
        part_details: true,
 | 
					        part_detail: false,
 | 
				
			||||||
        ancestor: {{ item.id }},
 | 
					        ancestor: {{ item.id }},
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    name: 'item-childs',
 | 
					    name: 'item-childs',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user