mirror of
				https://github.com/inventree/inventree-docs.git
				synced 2025-11-04 14:35:38 +00:00 
			
		
		
		
	* Add release entry for 0.11.x * Add note about default reports. * Add brief documentation on report filtering * Add images for report filter selection * More report docs * Cleanup * Fix filter docs for TestReport * Update context variables for TestReport * Add context variable information for purchase order * Updates for sales order report docs
		
			
				
	
	
		
			31 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
title: Sales Order Reports
 | 
						|
---
 | 
						|
 | 
						|
## Sales Order Reports
 | 
						|
 | 
						|
Custom sales order reports may be generated against any given [Sales Order](../sell/so.md). For example, a sales order report could be used to generate an invoice to send to a customer.
 | 
						|
 | 
						|
### Sales Order Filters
 | 
						|
 | 
						|
The report template can be filtered against available [Sales Order](../sell/so.md) instances.
 | 
						|
 | 
						|
### Context Variables
 | 
						|
 | 
						|
In addition to the default report context variables, the following variables are made available to the sales order report template for rendering:
 | 
						|
 | 
						|
| Variable | Description |
 | 
						|
| --- | --- |
 | 
						|
| order | The specific Sales Order object |
 | 
						|
| reference | The order reference field (can also be accessed as `{% raw %}{{ order.description }}{% endraw %}`) |
 | 
						|
| description | The order description field |
 | 
						|
| customer | The [customer](../sell/customer.md) associated with the particular sales order |
 | 
						|
| lines | A list of available line items for this order |
 | 
						|
| extra_lines | A list of available *extra* line items for this order | 
 | 
						|
 | 
						|
### Default Report Template
 | 
						|
 | 
						|
A default *Sales Order Report* template is provided out of the box, which is useful for generating simple test reports. Furthermore, it may be used as a starting point for developing custom BOM reports:
 | 
						|
 | 
						|
View the [source code](https://github.com/inventree/InvenTree/blob/master/InvenTree/report/templates/report/inventree_so_report_base.html) for the default sales order report template.
 |