Extend docs for report filename generation (#4781)

This commit is contained in:
Oliver 2023-05-06 09:49:32 +10:00 committed by GitHub
parent 09083d2de1
commit 5886415aa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

View File

@ -180,7 +180,14 @@ Boolean field which determines if the specific report template is enabled, and a
### 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