Commit f0eef58c authored by Jérome Perrin's avatar Jérome Perrin

improve budget consumption report to support 3 dimensions

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34566 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 94b74ac5
......@@ -379,9 +379,11 @@ AQABAEMAAAB9AQAAAAA=</string> </value>
</tal:block>\n
</table:table-row>\n
\n
<tal:block tal:condition="python: same_type(line, [])">\n
<tal:block tal:condition="python: same_type(line, []) and len(line)">\n
<table:table-row-group table:display="false">\n
<tal:block tal:repeat="subline line">\n
<tal:block tal:condition="python: not same_type(subline, [])">\n
<!--simple row level 2 -->\n
<table:table-row table:style-name="Level3" \n
tal:attributes="table:visibility python: repeat[\'subline\'].first and \'collapse\' or None"\n
tal:condition="subline/is_level_3 | nothing">\n
......@@ -409,10 +411,51 @@ AQABAEMAAAB9AQAAAAA=</string> </value>
<table:table-cell table:number-columns-repeated="1016"/>\n
</table:table-row>\n
</tal:block>\n
\n
<tal:block tal:condition="python: same_type(subline, []) and len(subline)">\n
<table:table-row-group table:display="false">\n
<tal:block tal:repeat="subsubline subline">\n
<table:table-row table:style-name="Level4" \n
tal:attributes="table:visibility python: repeat[\'subsubline\'].first and \'collapse\' or None"\n
tal:condition="subsubline/is_level_4 | nothing">\n
<table:table-cell table:style-name="Level4Cell1" office:value-type="string">\n
<text:p><tal:block tal:replace="subsubline/title"/></text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name="Level4" office:value-type="float"\n
office:value="1" tal:attributes="office:value subsubline/initial_budget">\n
<text:p>1</text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name="Level4" office:value-type="float"\n
office:value="2" tal:attributes="office:value subsubline/current_budget">\n
<text:p>2</text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name="Level4" office:value-type="float"\n
office:value="3" tal:attributes="office:value subsubline/engaged_budget">\n
<text:p>3</text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name="Level4" office:value-type="float"\n
office:value="4" tal:attributes="office:value subsubline/consumed_budget">\n
<text:p>4</text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name="Level4" office:value-type="float"\n
office:value="5" tal:attributes="office:value subsubline/available_budget">\n
<text:p>5</text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name="Level4"\n
office:value-type="percentage" office:value="0.06"\n
tal:attributes="office:value subsubline/consumed_ratio">\n
<text:p>6,00%</text:p>\n
</table:table-cell>\n
<!-- <table:table-cell table:number-columns-repeated="1016"/>-->\n
</table:table-row>\n
</tal:block>\n
</table:table-row-group>\n
</tal:block>\n
\n
</tal:block>\n
</table:table-row-group>\n
</tal:block>\n
</tal:block>\n
\n
</table:table>\n
</office:spreadsheet>\n
</office:body>\n
......
277
\ No newline at end of file
279
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment