[Erp5-report] r21664 - in /experimental/bt5/erp5_accounting_experimental: SkinTemplateItem/...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jun 17 18:00:31 CEST 2008
Author: jacek
Date: Tue Jun 17 18:00:25 2008
New Revision: 21664
URL: http://svn.erp5.org?rev=21664&view=rev
Log:
Modifications in macro library
Added:
experimental/bt5/erp5_accounting_experimental/bt/template_catalog_datetime_key_list
experimental/bt5/erp5_accounting_experimental/bt/template_catalog_local_role_key_list
experimental/bt5/erp5_accounting_experimental/bt/template_catalog_role_key_list
experimental/bt5/erp5_accounting_experimental/bt/template_catalog_scriptable_key_list
Modified:
experimental/bt5/erp5_accounting_experimental/SkinTemplateItem/portal_skins/erp5_accounting_experimental/accounting_report_macro_library.xml
experimental/bt5/erp5_accounting_experimental/SkinTemplateItem/portal_skins/erp5_accounting_experimental/accounting_report_styles_cell.xml
experimental/bt5/erp5_accounting_experimental/bt/revision
Modified: experimental/bt5/erp5_accounting_experimental/SkinTemplateItem/portal_skins/erp5_accounting_experimental/accounting_report_macro_library.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_accounting_experimental/SkinTemplateItem/portal_skins/erp5_accounting_experimental/accounting_report_macro_library.xml?rev=21664&r1=21663&r2=21664&view=diff
==============================================================================
--- experimental/bt5/erp5_accounting_experimental/SkinTemplateItem/portal_skins/erp5_accounting_experimental/accounting_report_macro_library.xml (original)
+++ experimental/bt5/erp5_accounting_experimental/SkinTemplateItem/portal_skins/erp5_accounting_experimental/accounting_report_macro_library.xml Tue Jun 17 18:00:25 2008
@@ -161,6 +161,53 @@
</table:table-row>\n
</tal:block>\n
\n
+<!-- this macro generates styles for setting columnt width\n
+ it assumes that style names are co<number>\n
+ Before calling the macro, columnt_widths_list must be defined -->\n
+<tal:block metal:define-macro="column-widths">\n
+ <tal:block tal:repeat="width column_widths_list">\n
+ <tal:block tal:define="style_name python:\'co%i\'%repeat[\'width\'].number()">\n
+\t <style:style style:family=\'table-column\' style:name=\'co1\' \n
+\t\t\t tal:attributes="style:name style_name">\n
+ <style:table-column-properties fo:break-before=\'auto\' style:column-width=\'16.0cm\'\n
+\t\t\t tal:attributes="style:column-width width"/>\n
+ </style:style>\n
+ </tal:block>\n
+\t </tal:block> \n
+</tal:block>\n
+\n
+\n
+<!-- definition of office-body tag with typical report parameters taken from options.\n
+ Use metal:fill-slot="report_content" to place actual report content into macro.-->\n
+<tal:block metal:define-macro="office-body-common-variables-definition">\n
+ <office:body\n
+ tal:define="\n
+ from_date python: options.get(\'from_date\',DateTime()).strftime(\'%Y-%m-%d\');\n
+ at_date python: options.get(\'at_date\',DateTime()).strftime(\'%Y-%m-%d\');\n
+ report_title python: options.get(\'report_title\');\n
+ section_category python: options.get(\'section_category\').getTitle();\n
+ gap_root python: options.get(\'gap_root\',\'gap/pl/default\');\n
+ simulation_state python: options.get(\'simulation_state\',[\'delivered\',\'stopped\']);\n
+ portal_type python: options.get(\'portal_type\');\n
+ ">\n
+ <tal:block metal:define-slot="report-content"/>\n
+ </office:body>\n
+</tal:block>\n
+\n
+<tal:block metal:define-macro="print-number-cell">\n
+ <table:table-cell table:style-name=\'STYLENAME\' office:value-type=\'float\' office:value=\'000.00\' \n
+ tal:attributes="office:value value; table:style-name style_name">\n
+ <text:p tal:content="value">000.00</text:p>\n
+ </table:table-cell>\n
+</tal:block>\n
+\n
+<tal:block metal:define-macro="print-textual-cell">\n
+ <table:table-cell table:style-name=\'STYLENAME\' office:value-type=\'string\' \n
+ tal:attributes="table:style-name style_name">\n
+ <text:p tal:content="value">000.00</text:p>\n
+ </table:table-cell>\n
+</tal:block>\n
+\n
</office:document-content>
]]></string> </value>
Modified: experimental/bt5/erp5_accounting_experimental/SkinTemplateItem/portal_skins/erp5_accounting_experimental/accounting_report_styles_cell.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_accounting_experimental/SkinTemplateItem/portal_skins/erp5_accounting_experimental/accounting_report_styles_cell.xml?rev=21664&r1=21663&r2=21664&view=diff
==============================================================================
--- experimental/bt5/erp5_accounting_experimental/SkinTemplateItem/portal_skins/erp5_accounting_experimental/accounting_report_styles_cell.xml (original)
+++ experimental/bt5/erp5_accounting_experimental/SkinTemplateItem/portal_skins/erp5_accounting_experimental/accounting_report_styles_cell.xml Tue Jun 17 18:00:25 2008
@@ -68,6 +68,30 @@
<style:style style:data-style-name=\'N36\' style:parent-style-name=\'Default\' style:name=\'main-normal\' style:family=\'table-cell\'>\n
<style:table-cell-properties fo:border-left=\'none\' fo:border-bottom=\'none\' fo:border-right=\'none\' fo:border-top=\'0.002cm solid #000000\'/>\n
</style:style>\n
+\n
+ <!--indented styles, mainly for balance and profit and loss-->\n
+ <style:style style:data-style-name=\'N0\' style:parent-style-name=\'Default\' style:name=\'idn1\' style:family=\'table-cell\'>\n
+ <style:paragraph-properties fo:text-align=\'start\' style:writing-mode=\'page\' fo:margin-left=\'1.0cm\'/>\n
+ </style:style>\n
+ <style:style style:data-style-name=\'N0\' style:parent-style-name=\'Default\' style:name=\'idn2\' style:family=\'table-cell\'>\n
+ <style:paragraph-properties fo:text-align=\'start\' style:writing-mode=\'page\' fo:margin-left=\'2.0cm\'/>\n
+ </style:style>\n
+ <style:style style:data-style-name=\'N0\' style:parent-style-name=\'Default\' style:name=\'idn3\' style:family=\'table-cell\'>\n
+ <style:paragraph-properties fo:text-align=\'start\' style:writing-mode=\'page\' fo:margin-left=\'3.0cm\'/>\n
+ </style:style>\n
+ <style:style style:data-style-name=\'N0\' style:parent-style-name=\'Default\' style:name=\'idn4\' style:family=\'table-cell\'>\n
+ <style:paragraph-properties fo:text-align=\'start\' style:writing-mode=\'page\' fo:margin-left=\'4.0cm\'/>\n
+ </style:style>\n
+ <style:style style:data-style-name=\'N0\' style:parent-style-name=\'Default\' style:name=\'idn5\' style:family=\'table-cell\'>\n
+ <style:paragraph-properties fo:text-align=\'start\' style:writing-mode=\'page\' fo:margin-left=\'5.0cm\'/>\n
+ </style:style>\n
+ <style:style style:data-style-name=\'N0\' style:parent-style-name=\'Default\' style:name=\'idn6\' style:family=\'table-cell\'>\n
+ <style:paragraph-properties fo:text-align=\'start\' style:writing-mode=\'page\' fo:margin-left=\'6.0cm\'/>\n
+ </style:style>\n
+ <style:style style:data-style-name=\'N0\' style:parent-style-name=\'Default\' style:name=\'idn7\' style:family=\'table-cell\'>\n
+ <style:paragraph-properties fo:text-align=\'start\' style:writing-mode=\'page\' fo:margin-left=\'7.0cm\'/>\n
+ </style:style>\n
+\n
<style:style style:name="main-center-date" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N84">\n
<style:table-cell-properties fo:border-bottom="none" style:text-align-source="fix" style:repeat-content="false" fo:border-left="none" fo:border-right="none" fo:border-top="0.002cm solid #000000"/>\n
<style:paragraph-properties fo:text-align="center" fo:margin-left="0cm"/>\n
@@ -83,7 +107,8 @@
<style:style style:data-style-name=\'N4\' style:parent-style-name=\'Default\' style:name=\'sub-money\' style:family=\'table-cell\'/>\n
</tal:block>\n
\n
-</office:document-content>
+</office:document-content>\n
+
]]></string> </value>
</item>
Modified: experimental/bt5/erp5_accounting_experimental/bt/revision
URL: http://svn.erp5.org/experimental/bt5/erp5_accounting_experimental/bt/revision?rev=21664&r1=21663&r2=21664&view=diff
==============================================================================
--- experimental/bt5/erp5_accounting_experimental/bt/revision (original)
+++ experimental/bt5/erp5_accounting_experimental/bt/revision Tue Jun 17 18:00:25 2008
@@ -1,1 +1,1 @@
-5
+12
Added: experimental/bt5/erp5_accounting_experimental/bt/template_catalog_datetime_key_list
URL: http://svn.erp5.org/experimental/bt5/erp5_accounting_experimental/bt/template_catalog_datetime_key_list?rev=21664&view=auto
==============================================================================
(empty)
Added: experimental/bt5/erp5_accounting_experimental/bt/template_catalog_local_role_key_list
URL: http://svn.erp5.org/experimental/bt5/erp5_accounting_experimental/bt/template_catalog_local_role_key_list?rev=21664&view=auto
==============================================================================
(empty)
Added: experimental/bt5/erp5_accounting_experimental/bt/template_catalog_role_key_list
URL: http://svn.erp5.org/experimental/bt5/erp5_accounting_experimental/bt/template_catalog_role_key_list?rev=21664&view=auto
==============================================================================
(empty)
Added: experimental/bt5/erp5_accounting_experimental/bt/template_catalog_scriptable_key_list
URL: http://svn.erp5.org/experimental/bt5/erp5_accounting_experimental/bt/template_catalog_scriptable_key_list?rev=21664&view=auto
==============================================================================
(empty)
More information about the Erp5-report
mailing list