mirror of
https://github.com/inventree/InvenTree.git
synced 2026-04-15 07:48:51 +00:00
* Report merge
* Remove auto-generated file
* Remove pre-commit file
* Revert "Remove pre-commit file"
This reverts commit 00d80bae2a.
* Update API version
* Reduced duplicated logic
* reset pre-commit config
* Added migration files
* Added unit test
* Removed redundant migration
* Updated migration file
* Added a default report template with merge enabled
* Unit test to ensure a single page is generated
* Added docs to support merge feature
* Clean up
* Clean up
* Fixed unresolved link
* Updated API version
* Fixed test report path issue
* Add plugin context for each instance
* merge in master
* Fixed formating
* Added more detailed user guide
* Updated docs
* Added assert to ensure test html output exists
* Updated docs
* Fixed report test path
---------
Co-authored-by: Matthias Mair <code@mjmair.com>
90 lines
3.1 KiB
Markdown
90 lines
3.1 KiB
Markdown
---
|
|
title: Sample Templates
|
|
---
|
|
|
|
## Sample Templates
|
|
|
|
A number of pre-built templates are provided with InvenTree, which can be used as a starting point for creating custom reports and labels.
|
|
|
|
Users can create their own custom templates, or modify the provided templates to suit their needs.
|
|
|
|
## Report Templates
|
|
|
|
The following report templates are provided "out of the box" and can be used as a starting point, or as a reference for creating custom reports templates:
|
|
|
|
| Template | Model Type | Description |
|
|
| --- | --- | --- |
|
|
| [Bill of Materials](#bill-of-materials-report) | [Part](../part/index.md) | Bill of Materials report |
|
|
| [Build Order](#build-order) | [BuildOrder](../manufacturing/build.md) | Build Order report |
|
|
| [Purchase Order](#purchase-order) | [PurchaseOrder](../purchasing/purchase_order.md) | Purchase Order report |
|
|
| [Return Order](#return-order) | [ReturnOrder](../sales/return_order.md) | Return Order report |
|
|
| [Sales Order](#sales-order) | [SalesOrder](../sales/sales_order.md) | Sales Order report |
|
|
| [Sales Order Shipment](#sales-order-shipment) | [SalesOrderShipment](../sales/sales_order.md) | Sales Order Shipment report |
|
|
| [Stock Location](#stock-location) | [StockLocation](../stock/index.md#stock-location) | Stock Location report |
|
|
| [Test Report](#test-report) | [StockItem](../stock/index.md#stock-item) | Test Report |
|
|
| [Selected Stock Items Report](#selected-stock-items-report) | [StockItem](../stock/index.md#stock-item) | Selected Stock Items report |
|
|
|
|
|
|
### Bill of Materials Report
|
|
|
|
{{ templatefile("report/inventree_bill_of_materials_report.html") }}
|
|
|
|
### Build Order
|
|
|
|
{{ templatefile("report/inventree_build_order_report.html") }}
|
|
|
|
### Purchase Order
|
|
|
|
{{ templatefile("report/inventree_purchase_order_report.html") }}
|
|
|
|
### Return Order
|
|
|
|
{{ templatefile("report/inventree_return_order_report.html") }}
|
|
|
|
### Sales Order
|
|
|
|
{{ templatefile("report/inventree_sales_order_report.html") }}
|
|
|
|
### Sales Order Shipment
|
|
|
|
{{ templatefile("report/inventree_sales_order_shipment_report.html") }}
|
|
|
|
### Stock Location
|
|
|
|
{{ templatefile("report/inventree_stock_location_report.html") }}
|
|
|
|
### Test Report
|
|
|
|
{{ templatefile("report/inventree_test_report.html") }}
|
|
|
|
### Selected Stock Items Report
|
|
|
|
{{ templatefile("report/inventree_stock_report_merge.html") }}
|
|
|
|
## Label Templates
|
|
|
|
The following label templates are provided "out of the box" and can be used as a starting point, or as a reference for creating custom label templates:
|
|
|
|
| Template | Model Type | Description |
|
|
| --- | --- | --- |
|
|
| [Build Line](#build-line-label) | [Build line item](../manufacturing/build.md) | Build Line label |
|
|
| [Part](#part-label) | [Part](../part/index.md) | Part label |
|
|
| [Stock Item](#stock-item-label) | [StockItem](../stock/index.md#stock-item) | Stock Item label |
|
|
| [Stock Location](#stock-location-label) | [StockLocation](../stock/index.md#stock-location) | Stock Location label |
|
|
|
|
### Build Line Label
|
|
|
|
{{ templatefile("label/buildline_label.html") }}
|
|
|
|
### Part Label
|
|
|
|
{{ templatefile("label/part_label_code128.html") }}
|
|
|
|
### Stock Item Label
|
|
|
|
{{ templatefile("label/stockitem_qr.html") }}
|
|
|
|
### Stock Location Label
|
|
|
|
{{ templatefile("label/stocklocation_qr_and_text.html") }}
|