diff --git a/plugins/skrooge/dark.txt b/plugins/skrooge/dark.txt index c4e73dd50..5e3757c70 100644 --- a/plugins/skrooge/dark.txt +++ b/plugins/skrooge/dark.txt @@ -1,161 +1,161 @@

{{ title_main }}

Date: {{ current_date }}
File name: {{ document.fileName }}

{{ title_personal_finance_score }}

{% include "default/personal_finance_score.html" %}

{{ document|display:"f_CURRENTAMOUNT_INCOME" }} & {{ document|display:"f_CURRENTAMOUNT_EXPENSE" }} *

{% include "default/income_vs_expenditure_table.html" %} - +

{{ title_main_categories }}

{% include "default/categories_previous_period_table.html" %} - + {% include "default/categories_period_table.html" %} - +

{{ title_variations }}

{% for item in report.categories_variations %}
  • {{ item|safe }}
  • {% endfor %}

    {{ title_account }} *

    {% include "default/account_table.html" %}

    {{ title_budget }}

    {% include "default/budget_table.html" %}

    {{ title_unit }} *

    {% include "default/unit_table.html" %}

    {{ title_portfolio }} *

    {% include "default/portfolio.html" %} - +

    {{ current_date }} - {{ document.fileName }}

    * {{ msg_amount_unit_date }}

    diff --git a/plugins/skrooge/default.txt b/plugins/skrooge/default.txt index 010ec4993..718fb7762 100644 --- a/plugins/skrooge/default.txt +++ b/plugins/skrooge/default.txt @@ -1,134 +1,134 @@

    {{ title_main }}

    Date: {{ current_date }}
    File name: {{ document.fileName }}

    {{ title_personal_finance_score }}

    {% include "default/personal_finance_score.html" %}

    {{ document|display:"f_CURRENTAMOUNT_INCOME" }} & {{ document|display:"f_CURRENTAMOUNT_EXPENSE" }} *

    {% include "default/income_vs_expenditure_table.html" %} - +

    {{ title_budget }}

    {% include "default/budget_table.html" %}

    {{ title_main_categories }}

    {% include "default/categories_previous_period_table.html" %} - + {% include "default/categories_period_table.html" %} - +

    {{ title_variations }}

    {% include "default/categories_variations.html" %}

    {{ title_account }} *

    {% include "default/bank_table.html" %}
    {% include "default/account_table.html" %}

    {{ title_unit }} *

    {% include "default/unit_table.html" %}

    {{ title_portfolio }} *

    {% include "default/portfolio.html" %} {% if report.portfolio|length %} - + {% endif %}

    {{ title_highlighted }}

    {% include "default/highlighted_operations.html" %}

    * {{ msg_amount_unit_date }}

    diff --git a/plugins/skrooge/detailed.txt b/plugins/skrooge/detailed.txt index 43328c6a8..ef4ea0546 100644 --- a/plugins/skrooge/detailed.txt +++ b/plugins/skrooge/detailed.txt @@ -1,156 +1,156 @@

    {{ title_main }}

    Date: {{ current_date }}
    File name: {{ document.fileName }}

    {{ title_personal_finance_score }}

    {% include "default/personal_finance_score.html" %}

    {{ document|display:"f_CURRENTAMOUNT_INCOME" }} & {{ document|display:"f_CURRENTAMOUNT_EXPENSE" }} *

    {% include "default/income_vs_expenditure_table.html" %} - +

    {{ title_budget }}

    {% include "default/budget_table.html" %}

    {{ title_main_categories }}

    {% include "default/categories_previous_period_table.html" %} - + {% include "default/categories_period_table.html" %} - +

    Operations

    {% for item in document|table:"v_operation_display,1=1 ORDER By d_date, t_ACCOUNT, t_CATEGORY" %} {% ifequal item|att:"d_DATEMONTH" report.period %} {% endifequal %} {% ifequal item|att:"d_DATEQUARTER" report.period %} {% endifequal %} {% ifequal item|att:"d_DATESEMESTER" report.period %} {% endifequal %} {% ifequal item|att:"d_DATEYEAR" report.period %} {% endifequal %} {% endfor %}
    {{ item|att:"d_date" }}{{ item|att:"t_ACCOUNT" }}{{ item|att:"f_CURRENTAMOUNT"|money|safe }}{{ item|att:"t_CATEGORY" }}
    {{ item|att:"d_date" }}{{ item|att:"t_ACCOUNT" }}{{ item|att:"f_CURRENTAMOUNT"|money|safe }}{{ item|att:"t_CATEGORY" }}
    {{ item|att:"d_date" }}{{ item|att:"t_ACCOUNT" }}{{ item|att:"f_CURRENTAMOUNT"|money|safe }}{{ item|att:"t_CATEGORY" }}
    {{ item|att:"d_date" }}{{ item|att:"t_ACCOUNT" }}{{ item|att:"f_CURRENTAMOUNT"|money|safe }}{{ item|att:"t_CATEGORY" }}

    {{ title_variations }}

    {% for item in report.categories_variations %}
  • {{ item|safe }}
  • {% endfor %}

    {{ title_account }} *

    {% include "default/bank_table.html" %}
    {% include "default/account_table.html" %}

    {{ title_unit }} *

    {% include "default/unit_table.html" %}

    {{ title_portfolio }} *

    {% include "default/portfolio.html" %} - +

    {{ title_interests }} *

    {% include "default/interests.html" %}

    {{ title_alarms }} *

    {% include "default/alarm.html" %}

    * {{ msg_amount_unit_date }}

    diff --git a/plugins/skrooge/tutorial.txt b/plugins/skrooge/tutorial.txt index 591a36ddb..84b81ef6a 100644 --- a/plugins/skrooge/tutorial.txt +++ b/plugins/skrooge/tutorial.txt @@ -1,372 +1,372 @@

    Introduction

    Welcome to this tutorial. You will learn how to develop a template to personalize your how report.
    The template engine is based on Grantlee.

    You can find information here:
    http://www.grantlee.org/apidox/for_themers.html
    https://docs.djangoproject.com/en/dev/ref/templates/builtins/

    The main variables

    The simple values:

    You can have access to simple values:
    Code
    color_negativetext: {{ color_negativetext }}
    color_positivetext: {{ color_positivetext }}
    color_neutraltext: {{ color_neutraltext }}
    color_normaltext: {{ color_normaltext }}
    color_inactivetext: {{ color_inactivetext }}
    color_activetext: {{ color_activetext }}
    color_linktext: {{ color_linktext }}
    color_visitedtext: {{ color_visitedtext }}
    color_activebackground: {{ color_activebackground }}
    font_family: {{ font_family }}
    logo: {{ logo }} <img src="{{ logo }}" />
    logo_black: {{ logo_black }} <img src="{{ logo_black }}" />
    title_main: {{ title_main }}
    title_budget: {{ title_budget }}
    title_main_categories: {{ title_main_categories }}
    title_variations: {{ title_variations }}
    title_account: {{ title_account }}
    title_unit: {{ title_unit }}
    title_advice: {{ title_advice }}
    title_portfolio: {{ title_portfolio }}
    title_highlighted: {{ title_highlighted }}
    title_networth: {{ title_networth }}
    title_annual_spending: {{ title_annual_spending }}
    title_personal_finance_score: {{ title_personal_finance_score }}
    msg_no_variation: {{ msg_no_variation|safe }}
    msg_no_scheduled: {{ msg_no_scheduled|safe }}
    msg_no_highlighted: {{ msg_no_highlighted|safe }}
    msg_no_budget: {{ msg_no_budget|safe }}
    msg_no_share: {{ msg_no_share|safe }}
    msg_amount_unit_date: {{ msg_amount_unit_date|safe }}
    about_welcome: {{ about_welcome|safe }}
    about_programname: {{ about_programname|safe }}
    about_version: {{ about_version|safe }}
    about_bugaddress: {{ about_bugaddress|safe }}
    about_copyrightstatement: {{ about_copyrightstatement|safe }}
    about_homepage: {{ about_homepage|safe }}
    about_forumpage: {{ about_forumpage|safe }}
    about_newspage: {{ about_newspage|safe }}
    about_operationpage: {{ about_operationpage|safe }}
    about_accountpage: {{ about_accountpage|safe }}
    about_shortdescription: {{ about_shortdescription|safe }}
    about_othertext: {{ about_othertext|safe }}
    about_maintext: {{ about_maintext|safe }}
    about_did_you_know: {{ about_did_you_know|safe }}
    Result
    color_negativetext: {{ color_negativetext }}
    color_positivetext: {{ color_positivetext }}
    color_neutraltext: {{ color_neutraltext }}
    color_normaltext: {{ color_normaltext }}
    color_inactivetext: {{ color_inactivetext }}
    color_activetext: {{ color_activetext }}
    color_linktext: {{ color_linktext }}
    color_visitedtext: {{ color_visitedtext }}
    color_activebackground: {{ color_activebackground }}
    font_family: {{ font_family }}
    logo: {{ logo }}
    logo_black: {{ logo_black }}
    title_main: {{ title_main }}
    title_budget: {{ title_budget }}
    title_main_categories: {{ title_main_categories }}
    title_variations: {{ title_variations }}
    title_account: {{ title_account }}
    title_unit: {{ title_unit }}
    title_advice: {{ title_advice }}
    title_portfolio: {{ title_portfolio }}
    title_highlighted: {{ title_highlighted }}
    title_networth: {{ title_networth }}
    title_annual_spending: {{ title_annual_spending }}
    title_personal_finance_score: {{ title_personal_finance_score }}
    msg_no_variation: {{ msg_no_variation|safe }}
    msg_no_scheduled: {{ msg_no_scheduled|safe }}
    msg_no_highlighted: {{ msg_no_highlighted|safe }}
    msg_no_budget: {{ msg_no_budget|safe }}
    msg_no_share: {{ msg_no_share|safe }}
    msg_amount_unit_date: {{ msg_amount_unit_date|safe }}
    about_welcome: {{ about_welcome|safe }}
    about_programname: {{ about_programname|safe }}
    about_version: {{ about_version|safe }}
    about_bugaddress: {{ about_bugaddress|safe }}
    about_copyrightstatement: {{ about_copyrightstatement|safe }}
    about_homepage: {{ about_homepage|safe }}
    about_forumpage: {{ about_forumpage|safe }}
    about_newspage: {{ about_newspage|safe }}
    about_operationpage: {{ about_operationpage|safe }}
    about_accountpage: {{ about_accountpage|safe }}
    about_shortdescription: {{ about_shortdescription|safe }}
    about_othertext: {{ about_othertext|safe }}
    about_maintext: {{ about_maintext|safe }}
    about_did_you_know: {{ about_did_you_know|safe }}

    The report:

    From this object you can have access to more complex values:
    Code
    report.period={{ report.period }}
    report.previous_period={{ report.previous_period }}
    report.previous.period={{ report.previous.period }}
    report.previous.previous_period={{ report.previous.previous_period }}
    report.tip_of_day;{ report.tip_of_day }}
    report.budget_table={{ report.budget_table|dump|safe }}
    report.unit_table={{ report.unit_table|dump|safe }}
    report.portfolio={{ report.portfolio|dump|safe }}
    report.account_table={{ report.account_table|dump|safe }}
    report.bank_table={{ report.bank_table|dump|safe }}
    report.scheduled_operations={{ report.scheduled_operations|dump|safe }}
    report.categories_period={{ report.categories_period|dump|safe }}
    report.categories_previous_period={{ report.categories_previous_period|dump|safe }}
    report.income_vs_expenditure={{ report.income_vs_expenditure|dump|safe }}
    report.networth={{ report.networth|money|safe }}
    report.annual_spending={{ report.annual_spending|money|safe }}
    report.personal_finance_score={{ report.personal_finance_score }}
    report.categories_variations={{ report.categories_variations|dump|safe }}
    report.categories_variations_issues={{ report.categories_variations_issues|dump|safe }}
    Result
    report.period={{ report.period }}
    report.previous_period={{ report.previous_period }}
    report.previous.period={{ report.previous.period }}
    report.previous.previous_period={{ report.previous.previous_period }}
    report.tip_of_day={{ report.tip_of_day }}
    report.budget_table={{ report.budget_table|dump|safe }}
    report.unit_table={{ report.unit_table|dump|safe }}
    report.portfolio={{ report.portfolio|dump|safe }}
    report.account_table={{ report.account_table|dump|safe }}
    report.bank_table={{ report.bank_table|dump|safe }}
    report.scheduled_operations={{ report.scheduled_operations|dump|safe }}
    report.categories_period={{ report.categories_period|dump|safe }}
    report.categories_previous_period={{ report.categories_previous_period|dump|safe }}
    report.income_vs_expenditure={{ report.income_vs_expenditure|dump|safe }}
    report.networth={{ report.networth|money|safe }}
    report.annual_spending={{ report.annual_spending|money|safe }}
    report.personal_finance_score={{ report.personal_finance_score }}
    report.categories_variations={{ report.categories_variations|dump|safe }}
    report.categories_variations_issues={{ report.categories_variations_issues|dump|safe }}

    The document:

    From this object you can have access to more complex values:
    Code
    {{ document|dump|safe }}
    Result
    {{ document|dump|safe }}

    The filters

    In addition of standard filters, you can the following filters developed for Skrooge.
    Code
    {{ 10.1|money|safe }}
    {{ -10.2|money|safe }}
    {{ -10.3|money:"nocolor" }}
    {{ -10.4|money:"nodecimal" }}
    {{ -10.5|money:"nocolor;nodecimal" }}
    {{ 10.1|money:"1"|safe }}
    {{ -10.2|money:"1"|safe }}
    {{ -10.3|money:"1;nocolor" }}
    {{ -10.4|money:"1;nocolor;nodecimal" }}
    {{ 10.1|money:"2"|safe }}
    {{ -10.2|money:"2"|safe }}
    {{ -10.3|money:"2;nocolor" }}
    {{ -10.4|money:"2;nocolor;nodecimal" }}
    {{ 10.1|percent|safe }}
    {{ -10.2|percent|safe }}
    {{ 70000|filesizeformat }}
    {{ about_did_you_know|replace:"Did;Do" }}
    Result
    {{ 10.1|money|safe }}
    {{ -10.2|money|safe }}
    {{ -10.3|money:"nocolor" }}
    {{ -10.4|money:"nodecimal" }}
    {{ -10.5|money:"nocolor;nodecimal" }}
    {{ 10.1|money:"1"|safe }}
    {{ -10.2|money:"1"|safe }}
    {{ -10.3|money:"1;nocolor" }}
    {{ -10.4|money:"1;nocolor;nodecimal" }}
    {{ 10.1|money:"2"|safe }}
    {{ -10.2|money:"2"|safe }}
    {{ -10.3|money:"2;nocolor" }}
    {{ -10.4|money:"2;nocolor;nodecimal" }}
    {{ 10.1|percent|safe }}
    {{ -10.2|percent|safe }}
    {{ 70000|filesizeformat }}
    {{ about_did_you_know|replace:"Did;Do" }}
    The following code will display the list of opened accounts with current amount:
    Code
    {% for item in document|table:"v_account_display,t_close='N' ORDER BY t_name" %}
    {{ item|att:"rd_bank_id.t_name" }}.{{ item|att:"t_name" }}:{{ item|att:"f_CURRENTAMOUNT"|money|safe }}<br/>
    {% endfor %}
    Result
    {% for item in document|table:"v_account_display,t_close='N' ORDER BY t_name" %} {{ item|att:"rd_bank_id.t_name" }}.{{ item|att:"t_name" }}:{{ item|att:"f_CURRENTAMOUNT"|money|safe }}
    {% endfor %}
    The following code will execute a sql order and display the result:
    Code
    {% for item in document|query:"select t_name as name, (select count(1) from operation where rd_account_id=account.id) as id from account" %}
    {{ item.0 }}:{{ item.1 }}<br/>
    {% endfor %}
    Result
    {% for item in document|query:"select t_name as name, (select count(1) from operation where rd_account_id=account.id) as id from account" %} {{ item.0 }}:{{ item.1 }}
    {% endfor %}

    Some examples

    To go faster, you can include already existing part of template like this:
    Code
    {% include "default/personal_finance_score.html" %}
    {% include "default/income_vs_expenditure_table.html" %}
    {% include "default/budget_table.html" %}
    {% include "default/categories_previous_period_table.html" %}
    {% include "default/categories_period_table.html" %}
    {% include "default/categories_variations.html" %}
    {% include "default/bank_table.html" %}
    {% include "default/account_table.html" %}
    {% include "default/unit_table.html" %}
    {% include "default/portfolio.html" %}
    {% include "default/highlighted_operations.html" %}
    Result
    {% include "default/personal_finance_score.html" %} {% include "default/income_vs_expenditure_table.html" %} {% include "default/budget_table.html" %} {% include "default/categories_previous_period_table.html" %} {% include "default/categories_period_table.html" %} {% include "default/categories_variations.html" %} {% include "default/bank_table.html" %} {% include "default/account_table.html" %} {% include "default/unit_table.html" %} {% include "default/portfolio.html" %} {% include "default/highlighted_operations.html" %}
    You can also use external libraries to display values as you want:
    Code
    - <img src="http://chart.apis.google.com/chart?cht=bvs&chxs=0,{{ color_normaltext }}|1,{{ color_normaltext }}&chbh=100&chxt=x,y&chxr=1,0,{{ report.income_vs_expenditure.4.3 }}&chf=bg,s,{{ color_normalbackground }}&chco={{ color_negativetext }}|{{ color_positivetext }}&chd=t:{{ report.income_vs_expenditure.2.3 }},{{ report.income_vs_expenditure.1.3 }}&chds=0,{{ report.income_vs_expenditure.4.3 }}&chs=300x200&chl={{ document|display:"f_CURRENTAMOUNT_EXPENSE" }}|{{ document|display:"f_CURRENTAMOUNT_INCOME" }}&chts={{ color_normaltext }}&chtt={{ document|display:"f_CURRENTAMOUNT_EXPENSE" }} vs {{ document|display:"f_CURRENTAMOUNT_INCOME" }}|{{ report.period }}"/> + <img src="https://chart.apis.google.com/chart?cht=bvs&chxs=0,{{ color_normaltext }}|1,{{ color_normaltext }}&chbh=100&chxt=x,y&chxr=1,0,{{ report.income_vs_expenditure.4.3 }}&chf=bg,s,{{ color_normalbackground }}&chco={{ color_negativetext }}|{{ color_positivetext }}&chd=t:{{ report.income_vs_expenditure.2.3 }},{{ report.income_vs_expenditure.1.3 }}&chds=0,{{ report.income_vs_expenditure.4.3 }}&chs=300x200&chl={{ document|display:"f_CURRENTAMOUNT_EXPENSE" }}|{{ document|display:"f_CURRENTAMOUNT_INCOME" }}&chts={{ color_normaltext }}&chtt={{ document|display:"f_CURRENTAMOUNT_EXPENSE" }} vs {{ document|display:"f_CURRENTAMOUNT_INCOME" }}|{{ report.period }}"/>
    Result
    - +
    diff --git a/tests/input/template.txt b/tests/input/template.txt index 9478070ae..62f112af8 100644 --- a/tests/input/template.txt +++ b/tests/input/template.txt @@ -1,318 +1,318 @@

    Introduction

    Welcome to this tutorial. You will learn how to develop a template to personalize your how report.
    The template engine is based on Grantlee.

    You can find information here:
    http://www.grantlee.org/apidox/for_themers.html
    https://docs.djangoproject.com/en/dev/ref/templates/builtins/

    The main variables

    The simple values:

    You can have access to simple values:
    Code
    color_negativetext: {{ color_negativetext }}
    color_positivetext: {{ color_positivetext }}
    color_neutraltext: {{ color_neutraltext }}
    color_normaltext: {{ color_normaltext }}
    color_inactivetext: {{ color_inactivetext }}
    color_activetext: {{ color_activetext }}
    color_linktext: {{ color_linktext }}
    color_visitedtext: {{ color_visitedtext }}
    color_activebackground: {{ color_activebackground }}
    font_family: {{ font_family }}
    logo: {{ logo }} <img src="{{ logo }}" />
    logo_black: {{ logo_black }} <img src="{{ logo_black }}" />
    title_main: {{ title_main }}
    title_budget: {{ title_budget }}
    title_main_categories: {{ title_main_categories }}
    title_variations: {{ title_variations }}
    title_account: {{ title_account }}
    title_unit: {{ title_unit }}
    title_advice: {{ title_advice }}
    title_portfolio: {{ title_portfolio }}
    title_highlighted: {{ title_highlighted }}
    title_networth: {{ title_networth }}
    title_annual_spending: {{ title_annual_spending }}
    title_personal_finance_score: {{ title_personal_finance_score }}
    msg_no_variation: {{ msg_no_variation|safe }}
    msg_no_scheduled: {{ msg_no_scheduled|safe }}
    msg_no_highlighted: {{ msg_no_highlighted|safe }}
    msg_no_budget: {{ msg_no_budget|safe }}
    msg_no_share: {{ msg_no_share|safe }}
    msg_amount_unit_date: {{ msg_amount_unit_date|safe }}
    about_welcome: {{ about_welcome|safe }}
    about_programname: {{ about_programname|safe }}
    about_version: {{ about_version|safe }}
    about_bugaddress: {{ about_bugaddress|safe }}
    about_copyrightstatement: {{ about_copyrightstatement|safe }}
    about_homepage: {{ about_homepage|safe }}
    about_forumpage: {{ about_forumpage|safe }}
    about_newspage: {{ about_newspage|safe }}
    about_operationpage: {{ about_operationpage|safe }}
    about_accountpage: {{ about_accountpage|safe }}
    about_shortdescription: {{ about_shortdescription|safe }}
    about_othertext: {{ about_othertext|safe }}
    about_maintext: {{ about_maintext|safe }}
    Result
    color_negativetext: {{ color_negativetext }}
    color_positivetext: {{ color_positivetext }}
    color_neutraltext: {{ color_neutraltext }}
    color_normaltext: {{ color_normaltext }}
    color_inactivetext: {{ color_inactivetext }}
    color_activetext: {{ color_activetext }}
    color_linktext: {{ color_linktext }}
    color_visitedtext: {{ color_visitedtext }}
    color_activebackground: {{ color_activebackground }}
    font_family: {{ font_family }}
    logo: {{ logo }}
    logo_black: {{ logo_black }}
    title_main: {{ title_main }}
    title_budget: {{ title_budget }}
    title_main_categories: {{ title_main_categories }}
    title_variations: {{ title_variations }}
    title_account: {{ title_account }}
    title_unit: {{ title_unit }}
    title_advice: {{ title_advice }}
    title_portfolio: {{ title_portfolio }}
    title_highlighted: {{ title_highlighted }}
    title_networth: {{ title_networth }}
    title_annual_spending: {{ title_annual_spending }}
    title_personal_finance_score: {{ title_personal_finance_score }}
    msg_no_variation: {{ msg_no_variation|safe }}
    msg_no_scheduled: {{ msg_no_scheduled|safe }}
    msg_no_highlighted: {{ msg_no_highlighted|safe }}
    msg_no_budget: {{ msg_no_budget|safe }}
    msg_no_share: {{ msg_no_share|safe }}
    msg_amount_unit_date: {{ msg_amount_unit_date|safe }}
    about_welcome: {{ about_welcome|safe }}
    about_programname: {{ about_programname|safe }}
    about_version: {{ about_version|safe }}
    about_bugaddress: {{ about_bugaddress|safe }}
    about_copyrightstatement: {{ about_copyrightstatement|safe }}
    about_homepage: {{ about_homepage|safe }}
    about_forumpage: {{ about_forumpage|safe }}
    about_newspage: {{ about_newspage|safe }}
    about_operationpage: {{ about_operationpage|safe }}
    about_accountpage: {{ about_accountpage|safe }}
    about_shortdescription: {{ about_shortdescription|safe }}
    about_othertext: {{ about_othertext|safe }}
    about_maintext: {{ about_maintext|safe }}

    The report:

    From this object you can have access to more complex values:
    Code
    report.period={{ report.period }}
    report.previous_period={{ report.previous_period }}
    report.previous.period={{ report.previous.period }}
    report.previous.previous_period={{ report.previous.previous_period }}
    report.budget_table={{ report.budget_table|dump|safe }}
    report.unit_table={{ report.unit_table|dump|safe }}
    report.portfolio={{ report.portfolio|dump|safe }}
    report.account_table={{ report.account_table|dump|safe }}
    report.bank_table={{ report.bank_table|dump|safe }}
    report.scheduled_operations={{ report.scheduled_operations|dump|safe }}
    report.categories_period={{ report.categories_period|dump|safe }}
    report.categories_previous_period={{ report.categories_previous_period|dump|safe }}
    report.income_vs_expenditure={{ report.income_vs_expenditure|dump|safe }}
    report.networth={{ report.networth|money|safe }}
    report.annual_spending={{ report.annual_spending|money|safe }}
    report.personal_finance_score={{ report.personal_finance_score }}
    report.categories_variations={{ report.categories_variations|dump|safe }}
    report.categories_variations_issues={{ report.categories_variations_issues|dump|safe }}
    Result
    report.period={{ report.period }}
    report.previous_period={{ report.previous_period }}
    report.previous.period={{ report.previous.period }}
    report.previous.previous_period={{ report.previous.previous_period }}
    report.budget_table={{ report.budget_table|dump|safe }}
    report.unit_table={{ report.unit_table|dump|safe }}
    report.portfolio={{ report.portfolio|dump|safe }}
    report.account_table={{ report.account_table|dump|safe }}
    report.bank_table={{ report.bank_table|dump|safe }}
    report.scheduled_operations={{ report.scheduled_operations|dump|safe }}
    report.categories_period={{ report.categories_period|dump|safe }}
    report.categories_previous_period={{ report.categories_previous_period|dump|safe }}
    report.income_vs_expenditure={{ report.income_vs_expenditure|dump|safe }}
    report.networth={{ report.networth|money|safe }}
    report.annual_spending={{ report.annual_spending|money|safe }}
    report.personal_finance_score={{ report.personal_finance_score }}
    report.categories_variations={{ report.categories_variations|dump|safe }}
    report.categories_variations_issues={{ report.categories_variations_issues|dump|safe }}

    The document:

    From this object you can have access to more complex values:
    Code
    {{ document|dump|safe }}
    Result
    {{ document|dump|safe }}

    The filters

    In addition of standard filters, you can the following filters developed for Skrooge.
    Code
    {{ 10.1|money|safe }}
    {{ -10.2|money|safe }}
    {{ -10.2|money:"nocolor" }}
    {{ 10.1|money:"1"|safe }}
    {{ -10.2|money:"1"|safe }}
    {{ 10.1|money:"2"|safe }}
    {{ -10.2|money:"2"|safe }}
    {{ -10.2|money:"2;nocolor" }}
    {{ 10.1|percent|safe }}
    {{ -10.2|percent|safe }}
    {{ 70000|filesizeformat }}
    Result
    {{ 10.1|money|safe }}
    {{ -10.2|money|safe }}
    {{ -10.2|money:"nocolor" }}
    {{ 10.1|money:"1"|safe }}
    {{ -10.2|money:"1"|safe }}
    {{ 10.1|money:"2"|safe }}
    {{ -10.2|money:"2"|safe }}
    {{ -10.2|money:"2;nocolor" }}
    {{ 10.1|percent|safe }}
    {{ -10.2|percent|safe }}
    {{ 70000|filesizeformat }}
    The following code will display the list of opened accounts with current amount:
    Code
    {% for item in document|table:"v_account_display,t_close='N' ORDER BY t_name" %}
    {{ item|att:"t_name" }}:{{ item|att:"f_CURRENTAMOUNT"|money|safe }}<br/>
    {% endfor %}
    Result
    {% for item in document|table:"v_account_display,t_close='N' ORDER BY t_name" %} {{ item|att:"t_name" }}:{{ item|att:"f_CURRENTAMOUNT"|money|safe }}
    {% endfor %}
    The following code will execute a sql order and display the result:
    Code
    {% for item in document|query:"select t_name as name, (select count(1) from operation where rd_account_id=account.id) as id from account" %}
    {{ item.0 }}:{{ item.1 }}<br/>
    {% endfor %}
    Result
    {% for item in document|query:"select t_name as name, (select count(1) from operation where rd_account_id=account.id) as id from account" %} {{ item.0 }}:{{ item.1 }}
    {% endfor %}
    You can also use external libraries to display values as you want:
    Code
    - <img src="http://chart.apis.google.com/chart?cht=bvs&chxs=0,{{ color_normaltext }}|1,{{ color_normaltext }}&chbh=100&chxt=x,y&chxr=1,0,{{ report.income_vs_expenditure.4.3 }}&chf=bg,s,{{ color_normalbackground }}&chco={{ color_negativetext }}|{{ color_positivetext }}&chd=t:{{ report.income_vs_expenditure.2.3 }},{{ report.income_vs_expenditure.1.3 }}&chds=0,{{ report.income_vs_expenditure.4.3 }}&chs=300x200&chl={{ document|display:"f_CURRENTAMOUNT_EXPENSE" }}|{{ document|display:"f_CURRENTAMOUNT_INCOME" }}&chts={{ color_normaltext }}&chtt={{ document|display:"f_CURRENTAMOUNT_EXPENSE" }} vs {{ document|display:"f_CURRENTAMOUNT_INCOME" }}|{{ report.period }}"/> + <img src="https://chart.apis.google.com/chart?cht=bvs&chxs=0,{{ color_normaltext }}|1,{{ color_normaltext }}&chbh=100&chxt=x,y&chxr=1,0,{{ report.income_vs_expenditure.4.3 }}&chf=bg,s,{{ color_normalbackground }}&chco={{ color_negativetext }}|{{ color_positivetext }}&chd=t:{{ report.income_vs_expenditure.2.3 }},{{ report.income_vs_expenditure.1.3 }}&chds=0,{{ report.income_vs_expenditure.4.3 }}&chs=300x200&chl={{ document|display:"f_CURRENTAMOUNT_EXPENSE" }}|{{ document|display:"f_CURRENTAMOUNT_INCOME" }}&chts={{ color_normaltext }}&chtt={{ document|display:"f_CURRENTAMOUNT_EXPENSE" }} vs {{ document|display:"f_CURRENTAMOUNT_INCOME" }}|{{ report.period }}"/>
    Result
    - +