2
0
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:
Oliver
2025-06-20 17:52:07 +10:00
committed by GitHub
parent 6229d2e8c8
commit 499e48cdd8
6 changed files with 41 additions and 5 deletions

View File

@ -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: