mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
Extend docs for report filename generation (#4781)
This commit is contained in:
parent
09083d2de1
commit
5886415aa7
BIN
docs/docs/assets/images/report/filename_pattern.png
Normal file
BIN
docs/docs/assets/images/report/filename_pattern.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.6 KiB |
@ -180,7 +180,14 @@ Boolean field which determines if the specific report template is enabled, and a
|
|||||||
|
|
||||||
### Filename Pattern
|
### Filename Pattern
|
||||||
|
|
||||||
The filename pattern used to generate the output `.pdf` file. Defaults to "report.pdf"
|
The filename pattern used to generate the output `.pdf` file. Defaults to "report.pdf".
|
||||||
|
|
||||||
|
The filename pattern allows custom rendering with any context variables which are available to the report. For example, a [test report](./test.md) for a particular [Stock Item](../stock/stock.md#stock-item) can use the part name and serial number of the stock item when generating the report name:
|
||||||
|
|
||||||
|
{% with id="report-filename-pattern", url="report/filename_pattern.png", description="Report filename pattern" %}
|
||||||
|
{% include 'img.html' %}
|
||||||
|
{% endwith %}
|
||||||
|
|
||||||
|
|
||||||
### Report Filters
|
### Report Filters
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user