2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-04-28 13:46:54 +00:00

Merge branch 'inventree:master' into new-plugin

This commit is contained in:
Matthias Mair 2021-11-19 23:26:19 +01:00 committed by GitHub
commit e993b84cee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

View File

@ -26,6 +26,7 @@ The InvenTree demo database resets to a known state once per day.
- Database records are reset to the latest state of the [demo dataset](https://github.com/inventree/demo-dataset) - Database records are reset to the latest state of the [demo dataset](https://github.com/inventree/demo-dataset)
- InvenTree software is kept up to date with the latest `inventree:master` available via docker - InvenTree software is kept up to date with the latest `inventree:master` available via docker
!!! warning "Server Down"
During the update period, the demo server may be inaccessible for a few minutes. During the update period, the demo server may be inaccessible for a few minutes.
## Demo Dataset ## Demo Dataset

View File

@ -63,14 +63,19 @@ The django template system allows for conditional rendering, providing condition
A number of global reporting options are available for customizing InvenTree reports: A number of global reporting options are available for customizing InvenTree reports:
{% with id="report-options", url="report/report.png", description="Report Options" %}
{% include 'img.html' %}
{% endwith %}
### Enable Reports
By default, the reporting feature is turned off. It must be enabled in the global settings.
### Default Page Size ### Default Page Size
The built-in InvenTree report templates (and any reports which are derived from the built-in templates) use the *Page Size* option to set the page size of the generated reports. The built-in InvenTree report templates (and any reports which are derived from the built-in templates) use the *Page Size* option to set the page size of the generated reports.
{% with id="report_page_size", url="report/report_default_page_size.png", description="Report Page Size" %}
{% include 'img.html' %}
{% endwith %}
!!! info "Override Page Size" !!! info "Override Page Size"
Custom report templates do not have to make use of the *Page Size* option, although it is made available to the template context. Custom report templates do not have to make use of the *Page Size* option, although it is made available to the template context.
@ -80,10 +85,6 @@ As templates are rendered directly to a PDF object, it can be difficult to debug
Setting the *Debug Mode* option renders the template as raw HTML instead of PDF, allowing the rendering output to be introspected. This feature allows template designers to understand any issues with the generated HTML (before it is passed to the PDF generation engine). Setting the *Debug Mode* option renders the template as raw HTML instead of PDF, allowing the rendering output to be introspected. This feature allows template designers to understand any issues with the generated HTML (before it is passed to the PDF generation engine).
{% with id="report_debu_mode", url="report/report_debug_mode.png", description="Report Debug Mode" %}
{% include 'img.html' %}
{% endwith %}
!!! warning "HTML Rendering Limitations" !!! warning "HTML Rendering Limitations"
When rendered in debug mode, @page attributes (such as size, etc) will **not** be observed. Additionally, any asset files stored on the InvenTree server will not be rendered. Debug mode is not intended to produce "good looking" documents! When rendered in debug mode, @page attributes (such as size, etc) will **not** be observed. Additionally, any asset files stored on the InvenTree server will not be rendered. Debug mode is not intended to produce "good looking" documents!