mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 15:15:42 +00:00 
			
		
		
		
	Bug fix for sorting of sales orders
This commit is contained in:
		@@ -362,8 +362,9 @@ class SOList(generics.ListCreateAPIView):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    ordering_fields = [
 | 
					    ordering_fields = [
 | 
				
			||||||
        'creation_date',
 | 
					        'creation_date',
 | 
				
			||||||
        'reference'
 | 
					        'reference',
 | 
				
			||||||
        'customer__name',
 | 
					        'customer__name',
 | 
				
			||||||
 | 
					        'customer_reference',
 | 
				
			||||||
        'status',
 | 
					        'status',
 | 
				
			||||||
        'target_date',
 | 
					        'target_date',
 | 
				
			||||||
        'line_items',
 | 
					        'line_items',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -270,6 +270,7 @@ function loadSalesOrderTable(table, options) {
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
 | 
					                sortable: true,
 | 
				
			||||||
                field: 'customer_reference',
 | 
					                field: 'customer_reference',
 | 
				
			||||||
                title: '{% trans "Customer Reference" %}',
 | 
					                title: '{% trans "Customer Reference" %}',
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user