mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-02 03:30:54 +00:00
Company reports (#9817)
* Support report generation against company * Add "print report" to Company table * Add printing button to Company detail page * Bump API version
This commit is contained in:
@ -69,6 +69,7 @@ Templates (whether for generating [reports](./report.md) or [labels](./labels.md
|
||||
|
||||
| Model Type | Description |
|
||||
| --- | --- |
|
||||
| company | A Company instance |
|
||||
| [build](#build-order) | A [Build Order](../manufacturing/build.md) instance |
|
||||
| [buildline](#build-line) | A [Build Order Line Item](../manufacturing/build.md) instance |
|
||||
| [salesorder](#sales-order) | A [Sales Order](../sales/sales_order.md) instance |
|
||||
@ -78,6 +79,16 @@ Templates (whether for generating [reports](./report.md) or [labels](./labels.md
|
||||
| [stocklocation](#stock-location) | A [StockLocation](../stock/index.md#stock-location) instance |
|
||||
| [part](#part) | A [Part](../part/index.md) instance |
|
||||
|
||||
### Company
|
||||
|
||||
When printing a report or label against a Company instance, the following context variables are available:
|
||||
|
||||
{{ report_context("models", "company") }}
|
||||
|
||||
::: company.models.Company.report_context
|
||||
options:
|
||||
show_source: True
|
||||
|
||||
### Build Order
|
||||
|
||||
When printing a report or label against a [Build Order](../manufacturing/build.md) object, the following context variables are available:
|
||||
|
Reference in New Issue
Block a user