Commit 3c19111b authored by Yusei Tahara's avatar Yusei Tahara

2010-09-13 yusei

* Fix printout format of B/S report and make its scripts simple.
* Implement P/L report.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38295 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5f1e42eb
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
<tuple/>
</tuple>
<global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
</pickle>
<pickle>
<dictionary>
......@@ -70,16 +67,13 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Expression" module="Products.CMFCore.Expression"/>
<tuple/>
</tuple>
<global name="Expression" module="Products.CMFCore.Expression"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/AccountModule_viewJapaneseBalanceSheetReportDialog</string> </value>
<value> <string>string:${object_url}/AccountingTransactionModule_viewJapaneseBalanceSheetReportDialog</string> </value>
</item>
</dictionary>
</pickle>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ActionInformation" module="Products.CMFCore.ActionInformation"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>action</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>categories</string> </key>
<value>
<tuple>
<string>action_type/object_report</string>
</tuple>
</value>
</item>
<item>
<key> <string>category</string> </key>
<value> <string>object_report</string> </value>
</item>
<item>
<key> <string>condition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>profit_and_loss_report_l10n_jp</string> </value>
</item>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>View</string>
</tuple>
</value>
</item>
<item>
<key> <string>priority</string> </key>
<value> <float>26.0</float> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Japanese Profit and Loss</string> </value>
</item>
<item>
<key> <string>visible</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Expression" module="Products.CMFCore.Expression"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/AccountingTransactionModule_viewJapaneseProfitAndLossReportDialog</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="Folder" module="OFS.Folder"/>
<tuple/>
</tuple>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string># Example code:\n
\n
# Import a standard function, and get the HTML request and response objects.\n
from Products.PythonScripts.standard import html_quote\n
request = container.REQUEST\n
RESPONSE = request.RESPONSE\n
\n
# Return a string identifying this script.\n
print "This is the", script.meta_type, \'"%s"\' % script.getId(),\n
if script.title:\n
print "(%s)" % html_quote(script.title),\n
print "in", container.absolute_url()\n
return printed\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_print_</string>
<string>_print</string>
<string>Products.PythonScripts.standard</string>
<string>html_quote</string>
<string>_getattr_</string>
<string>container</string>
<string>request</string>
<string>RESPONSE</string>
<string>script</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountModule_getInventoryJapaneseOutOfSaleExpenseList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string># Example code:\n
\n
# Import a standard function, and get the HTML request and response objects.\n
from Products.PythonScripts.standard import html_quote\n
request = container.REQUEST\n
RESPONSE = request.RESPONSE\n
\n
# Return a string identifying this script.\n
print "This is the", script.meta_type, \'"%s"\' % script.getId(),\n
if script.title:\n
print "(%s)" % html_quote(script.title),\n
print "in", container.absolute_url()\n
return printed\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_print_</string>
<string>_print</string>
<string>Products.PythonScripts.standard</string>
<string>html_quote</string>
<string>_getattr_</string>
<string>container</string>
<string>request</string>
<string>RESPONSE</string>
<string>script</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountModule_getInventoryJapaneseOutOfSaleIncomeList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string># Example code:\n
\n
# Import a standard function, and get the HTML request and response objects.\n
from Products.PythonScripts.standard import html_quote\n
request = container.REQUEST\n
RESPONSE = request.RESPONSE\n
\n
# Return a string identifying this script.\n
print "This is the", script.meta_type, \'"%s"\' % script.getId(),\n
if script.title:\n
print "(%s)" % html_quote(script.title),\n
print "in", container.absolute_url()\n
return printed\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_print_</string>
<string>_print</string>
<string>Products.PythonScripts.standard</string>
<string>html_quote</string>
<string>_getattr_</string>
<string>container</string>
<string>request</string>
<string>RESPONSE</string>
<string>script</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountModule_getInventoryJapaneseSaleExpenseList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string># Example code:\n
\n
# Import a standard function, and get the HTML request and response objects.\n
from Products.PythonScripts.standard import html_quote\n
request = container.REQUEST\n
RESPONSE = request.RESPONSE\n
\n
# Return a string identifying this script.\n
print "This is the", script.meta_type, \'"%s"\' % script.getId(),\n
if script.title:\n
print "(%s)" % html_quote(script.title),\n
print "in", container.absolute_url()\n
return printed\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_print_</string>
<string>_print</string>
<string>Products.PythonScripts.standard</string>
<string>html_quote</string>
<string>_getattr_</string>
<string>container</string>
<string>request</string>
<string>RESPONSE</string>
<string>script</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountModule_getInventoryJapaneseSaleIncomeList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string># Example code:\n
\n
# Import a standard function, and get the HTML request and response objects.\n
from Products.PythonScripts.standard import html_quote\n
request = container.REQUEST\n
RESPONSE = request.RESPONSE\n
\n
# Return a string identifying this script.\n
print "This is the", script.meta_type, \'"%s"\' % script.getId(),\n
if script.title:\n
print "(%s)" % html_quote(script.title),\n
print "in", container.absolute_url()\n
return printed\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_print_</string>
<string>_print</string>
<string>Products.PythonScripts.standard</string>
<string>html_quote</string>
<string>_getattr_</string>
<string>container</string>
<string>request</string>
<string>RESPONSE</string>
<string>script</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountModule_getInventoryJapaneseSpecialExpenseList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string># Example code:\n
\n
# Import a standard function, and get the HTML request and response objects.\n
from Products.PythonScripts.standard import html_quote\n
request = container.REQUEST\n
RESPONSE = request.RESPONSE\n
\n
# Return a string identifying this script.\n
print "This is the", script.meta_type, \'"%s"\' % script.getId(),\n
if script.title:\n
print "(%s)" % html_quote(script.title),\n
print "in", container.absolute_url()\n
return printed\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_print_</string>
<string>_print</string>
<string>Products.PythonScripts.standard</string>
<string>html_quote</string>
<string>_getattr_</string>
<string>container</string>
<string>request</string>
<string>RESPONSE</string>
<string>script</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountModule_getInventoryJapaneseSpecialIncomeList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string># Example code:\n
\n
# Import a standard function, and get the HTML request and response objects.\n
from Products.PythonScripts.standard import html_quote\n
request = container.REQUEST\n
RESPONSE = request.RESPONSE\n
\n
# Return a string identifying this script.\n
print "This is the", script.meta_type, \'"%s"\' % script.getId(),\n
if script.title:\n
print "(%s)" % html_quote(script.title),\n
print "in", container.absolute_url()\n
return printed\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_print_</string>
<string>_print</string>
<string>Products.PythonScripts.standard</string>
<string>html_quote</string>
<string>_getattr_</string>
<string>container</string>
<string>request</string>
<string>RESPONSE</string>
<string>script</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountModule_getInventoryJapaneseTaxList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>root = context.portal_categories.gap.jp.afbe\n
\n
return [\n
(depth,\n
root.restrictedTraverse(path))\n
for depth, path in (\n
######################\n
# 株主資本\n
######################\n
(2, \'1/10\'), # 資本金\n
# 新株式申込証拠金\n
# 資本準備金\n
# その他の資本余剰金\n
# 利益準備金\n
# 繰越利益余剰金\n
# 自己株式\n
\n
# xxx準備金 (GAPに該当なし、必要だと思われる)\n
# xxx積立金 (GAPに該当なし、必要だと思われる)\n
\n
(2, \'1/11\'), # その他有価証券評価差額金\n
# 繰越ヘッジ損失\n
# 土地再評価差額金\n
(2, \'1/12\'), # 新株予約権\n
(2, \'1/13\'), # 小数株主持分\n
\n
)]\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>root</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>depth</string>
<string>path</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountModule_getJapaneseGapCapitalCategoryList</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="OOoTemplate" module="Products.ERP5OOo.OOoTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>OLE_documents_zipstring</string> </key>
<value> <string encoding="base64">UEsDBBQAAAAIAEyHuTbMBk1mQgEAAFEHAAAVAAAATUVUQS1JTkYvbWFuaWZlc3QueG1stZVLasMw
EED3PYXR3lbbVTFxAi30BOkBJvLYEeiHZhSS21cO5NM2lKZYOw1I741GGmmx2ltT7TCS9q4TT82j
qNAp32s3duJj/V6/iNXyYWHB6QGJ29OgyuscncNOpOhaD6SpdWCRWlatD+h6r5JFx+3X+e1kWj5U
F/CgDdZ5YjxUFxn2Gmo+BOwEhGC0As55yp3rm6OruVY0FCJCT1tEFhfIkIypA/C2E1LIu5y3KW/e
DXpM8ZgLPUti4EQbiGXwoBQazKGPUqUYp53mYhZ3FREMxgNjIXjwIYV8E1IhfPRjRCp30lPqxeDs
vSkG1xZGJPmq2UKgoo472d+fDUpu6p4m6UZdC/6Ww51yxj3LqVdvwrOf/9fMv3OJDwZpdqxFhtke
nvU22Y0DbUjyadgEN84Nn7ewyJz/xXNpF/LHt7j8BFBLAQIUABQAAAAIAEyHuTbMBk1mQgEAAFEH
AAAVAAAAAAAAAAAAAAAAAAAAAABNRVRBLUlORi9tYW5pZmVzdC54bWxQSwUGAAAAAAEAAQBDAAAA
dQEAAAAA</string> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<office:document-content\n
xmlns:draw=\'urn:oasis:names:tc:opendocument:xmlns:drawing:1.0\'\n
xmlns:office=\'urn:oasis:names:tc:opendocument:xmlns:office:1.0\'\n
xmlns:text=\'urn:oasis:names:tc:opendocument:xmlns:text:1.0\'\n
xmlns:ooo=\'http://openoffice.org/2004/office\'\n
xmlns:number=\'urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0\'\n
xmlns:dc=\'http://purl.org/dc/elements/1.1/\'\n
xmlns:meta=\'urn:oasis:names:tc:opendocument:xmlns:meta:1.0\'\n
xmlns:table=\'urn:oasis:names:tc:opendocument:xmlns:table:1.0\'\n
xmlns:dr3d=\'urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0\'\n
xmlns:fo=\'urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\'\n
xmlns:style=\'urn:oasis:names:tc:opendocument:xmlns:style:1.0\'\n
xmlns:xforms=\'http://www.w3.org/2002/xforms\'\n
xmlns:form=\'urn:oasis:names:tc:opendocument:xmlns:form:1.0\'\n
xmlns:script=\'urn:oasis:names:tc:opendocument:xmlns:script:1.0\'\n
xmlns:ooow=\'http://openoffice.org/2004/writer\'\n
xmlns:svg=\'urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0\'\n
xmlns:chart=\'urn:oasis:names:tc:opendocument:xmlns:chart:1.0\'\n
xmlns:dom=\'http://www.w3.org/2001/xml-events\'\n
xmlns:xlink=\'http://www.w3.org/1999/xlink\'\n
xmlns:xsd=\'http://www.w3.org/2001/XMLSchema\'\n
xmlns:xsi=\'http://www.w3.org/2001/XMLSchema-instance\'\n
xmlns:oooc=\'http://openoffice.org/2004/calc\'\n
xmlns:math=\'http://www.w3.org/1998/Math/MathML\'\n
xmlns:tal=\'http://xml.zope.org/namespaces/tal\'\n
xmlns:i18n=\'http://xml.zope.org/namespaces/i18n\'\n
xmlns:metal=\'http://xml.zope.org/namespaces/metal\'\n
tal:attributes=\'dummy python:request.RESPONSE.setHeader("Content-Type", "text/html;; charset=utf-8")\'\n
tal:define=\'at_date request/at_date/latestTime;\n
at_date_previous_period python:modules["DateTime"].DateTime(at_date.year() - 1, at_date.month(), at_date.day()).latestTime();\n
date_formatter nocall:here/Base_viewFieldLibrary/my_date/render_pdf;\n
from_date python:context.Base_getAccountingPeriodStartDateForSectionCategory(section_category=request["section_category"], date=at_date);\n
from_date_previous_period python:context.Base_getAccountingPeriodStartDateForSectionCategory(section_category=request["section_category"], date=at_date_previous_period);\n
portal_type here/getPortalAccountingMovementTypeList;\n
section_uid python: context.Base_getSectionUidListForSectionCategory(request["section_category"], request["section_category_strict"]);\n
getInventory python: lambda **kw: context.portal_simulation.getInventoryAssetPrice(section_uid=section_uid, simulation_state=request["simulation_state"], function=request.get("function") or None, project=request.get("project") or None, at_date=at_date, portal_type=portal_type, **kw);\n
getInventoryPreviousPeriod python: lambda **kw:context.portal_simulation.getInventoryAssetPrice(section_uid=section_uid, simulation_state=request["simulation_state"], function=request.get("function") or None, project=request.get("project") or None, at_date=at_date_previous_period, portal_type=portal_type, **kw);\'\n
office:version=\'1.0\'>\n
<office:scripts/>\n
<office:font-face-decls>\n
<style:font-face svg:font-family=\'Arial\' style:font-family-generic=\'swiss\' style:name=\'Arial\' style:font-pitch=\'variable\'/>\n
<style:font-face svg:font-family="\'DejaVu Sans\'" style:font-family-generic=\'system\' style:name=\'DejaVu Sans\' style:font-pitch=\'variable\'/>\n
<style:font-face svg:font-family=\'Lucidasans\' style:font-family-generic=\'system\' style:name=\'Lucidasans\' style:font-pitch=\'variable\'/>\n
</office:font-face-decls>\n
<office:automatic-styles> <!-- {{{ -->\n
<style:style style:family=\'table-column\' style:name=\'co1\'>\n
<style:table-column-properties fo:break-before=\'auto\' style:column-width=\'6.21cm\'/>\n
</style:style>\n
<style:style style:family=\'table-column\' style:name=\'co2\'>\n
<style:table-column-properties fo:break-before=\'auto\' style:column-width=\'3.10cm\'/>\n
</style:style>\n
<style:style style:family=\'table-row\' style:name=\'ro2\'>\n
<style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'false\' style:row-height=\'0.644cm\'/>\n
</style:style>\n
<style:style style:family=\'table-row\' style:name=\'ro3\'>\n
<style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'false\' style:row-height=\'0.951cm\'/>\n
</style:style>\n
<style:style style:family=\'table-row\' style:name=\'ro4\'>\n
<style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'true\' style:row-height=\'0.503cm\'/>\n
</style:style>\n
<style:style style:family=\'table-row\' style:name=\'ro7\'>\n
<style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'true\' style:row-height=\'0.496cm\'/>\n
</style:style>\n
<style:style style:family=\'table-row\' style:name=\'ro9\'>\n
<style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'false\' style:row-height=\'0.279cm\'/>\n
</style:style>\n
<style:style style:family=\'table-row\' style:name=\'page-break\'>\n
<style:table-row-properties fo:break-before=\'page\' style:use-optimal-row-height=\'false\' style:row-height=\'0.279cm\'/>\n
</style:style>\n
<style:style style:family=\'table\' style:name=\'ta1\' style:master-page-name=\'Default\'>\n
<style:table-properties style:writing-mode=\'lr-tb\' table:display=\'true\'/>\n
</style:style>\n
<style:style style:parent-style-name=\'Default\' style:family=\'table-cell\' style:name=\'ce1\'>\n
<style:table-cell-properties style:vertical-align=\'middle\' style:repeat-content=\'false\' style:text-align-source=\'fix\' fo:border=\'none\'/>\n
<style:paragraph-properties fo:text-align=\'center\'/>\n
</style:style>\n
<style:style style:parent-style-name=\'Default\' style:family=\'table-cell\' style:name=\'empty-cell\'>\n
<style:table-cell-properties fo:border-left=\'none\' fo:border-bottom=\'none\' fo:border-right=\'none\' fo:border-top=\'none\'/>\n
</style:style>\n
<style:style style:parent-style-name=\'Default\' style:family=\'table-cell\' style:name=\'bottom_border\'>\n
<style:table-cell-properties fo:border-left=\'0.002cm solid #000000\' fo:border-bottom=\'0.002cm solid #000000\' fo:border-right=\'0.002cm solid #000000\' fo:border-top=\'none\'/>\n
</style:style>\n
<style:style style:parent-style-name=\'Default\' style:family=\'table-cell\' style:name=\'ce7\'>\n
<style:table-cell-properties style:vertical-align=\'middle\' style:repeat-content=\'false\' style:text-align-source=\'fix\' fo:border=\'none\'/>\n
<style:paragraph-properties fo:text-align=\'center\' fo:margin-left=\'0cm\'/>\n
<style:text-properties fo:font-size=\'20pt\'/>\n
</style:style>\n
<style:style style:parent-style-name=\'Default\' style:family=\'table-cell\' style:name=\'ce8\'>\n
<style:table-cell-properties style:vertical-align=\'middle\' style:repeat-content=\'false\' style:text-align-source=\'fix\' fo:border=\'none\'/>\n
<style:paragraph-properties fo:text-align=\'center\' fo:margin-left=\'0cm\'/>\n
</style:style>\n
<style:style style:parent-style-name=\'Default\' style:family=\'table-cell\' style:name=\'ce9\'>\n
<style:table-cell-properties style:vertical-align=\'middle\' style:repeat-content=\'false\' style:text-align-source=\'fix\' fo:border=\'0.002cm solid #000000\'/>\n
<style:paragraph-properties fo:text-align=\'center\'/>\n
</style:style>\n
<style:style style:family=\'text\' style:name=\'T1\'>\n
<style:text-properties fo:font-size=\'12pt\'/>\n
</style:style>\n
</office:automatic-styles> <!-- }}} -->\n
<office:body>\n
\n
<office:spreadsheet>\n
<table:table table:style-name=\'ta1\' table:print=\'false\' table:name=\'Asset\' i18n:domain=\'ui\' i18n:attributes=\'table:name\'>\n
<office:forms form:apply-design-mode=\'false\' form:automatic-focus=\'false\'/>\n
<table:table-column table:style-name=\'co1\' table:default-cell-style-name=\'report-title\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'ce7\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'ce1\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'report-column-title\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'report-column-title\'/>\n
\n
<!-- Asset -->\n
<tal:block tal:define="global total_net python: 0;\n
global total_net_prev_period python: 0;\n
">\n
<!-- Header {{{ -->\n
<table:table-row table:style-name=\'ro2\'>\n
<table:table-cell table:number-rows-spanned=\'2\' table:number-columns-spanned=\'1\'\n
office:value-type=\'string\' table:style-name=\'report-title\'>\n
<text:p tal:content=\'python: context.portal_categories.restrictedTraverse(request["section_category"]).getTranslatedTitle()\'/>\n
</table:table-cell>\n
<table:table-cell table:number-rows-spanned=\'1\' table:number-columns-spanned=\'4\'\n
office:value-type=\'string\' table:style-name=\'report-title\'>\n
<text:p i18n:translate="" i18n:domain="ui">Balance Sheet</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated=\'2\'/>\n
<table:covered-table-cell table:style-name=\'ce1\' table:number-columns-repeated=\'1\'/>\n
</table:table-row>\n
\n
<table:table-row table:style-name=\'ro2\'>\n
<table:table-cell table:style-name=\'ce1\'><text:p/></table:table-cell>\n
<table:table-cell table:style-name=\'report-title-date\'\n
table:number-rows-spanned=\'1\' table:number-columns-spanned=\'4\'>\n
<text:p tal:content="python: date_formatter(at_date)">Date</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated=\'2\'/>\n
<table:covered-table-cell table:style-name=\'ce1\' table:number-columns-repeated=\'1\'/>\n
</table:table-row>\n
\n
<table:table-row table:style-name=\'ro2\'>\n
<table:table-cell table:style-name=\'ce1\'/>\n
<table:table-cell table:style-name=\'ce8\'/>\n
<table:table-cell/>\n
<table:table-cell table:style-name=\'ce1\' table:number-columns-repeated=\'2\'/>\n
</table:table-row>\n
\n
<table:table-header-rows>\n
<table:table-row table:style-name=\'ro3\'>\n
<table:table-cell\n
table:style-name=\'report-column-title\'\n
office:value-type=\'string\'\n
table:number-rows-spanned=\'1\'\n
table:number-columns-spanned=\'3\'>\n
<text:p i18n:translate="" i18n:domain="ui">Asset</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:table-cell table:style-name=\'report-column-title\' office:value-type=\'string\'>\n
<text:p i18n:translate="" i18n:domain="ui">Current Period</text:p>\n
</table:table-cell>\n
<table:table-cell office:value-type=\'string\' table:style-name=\'report-column-title\'>\n
<text:p i18n:translate="" i18n:domain="ui">Previous Period</text:p>\n
</table:table-cell>\n
</table:table-row>\n
</table:table-header-rows>\n
<!-- }}} -->\n
<tal:block tal:repeat="pair python: context.AccountModule_getJapaneseGapAssetCategoryList()">\n
<tal:block tal:define="depth python: pair[0] - 1;\n
cat_level_1 python: pair[1]">\n
<!-- LEVEL 1 {{{ -->\n
<table:table-row table:style-name=\'ro4\' tal:condition=\'python: depth &gt; 0 and len(cat_level_1.contentIds()) &gt; 0\'>\n
<table:table-cell table:style-name=\'report-content-heading1\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'\n
office:value-type=\'string\'>\n
<text:p tal:define=\'global level1_title cat_level_1/getTranslatedTitle\'\n
tal:content="level1_title">Level 1</text:p>\n
</table:table-cell>\n
\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
</table:table-row>\n
<table:table-row table:style-name=\'ro4\' tal:condition=\'python: depth == 0 or len(cat_level_1.contentIds()) == 0\'>\n
<tal:block tal:define=\'node_category cat_level_1/getRelativeUrl;\n
net python: getInventory(node_category=node_category);\n
net_prev_period python: getInventoryPreviousPeriod(node_category=node_category);\n
\'>\n
<table:table-cell table:style-name=\'report-content-heading2\'\n
office:value-type=\'string\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'>\n
<text:p tal:content="cat_level_1/getTranslatedTitle"\n
>Level 1</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated=\'2\'/>\n
\n
<!-- net -->\n
<table:table-cell\n
tal:define=\'global total_net python: total_net + net;\'\n
table:style-name=\'report-content-currency1\'\n
tal:attributes=\'office:value net\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
\n
<!-- previous year -->\n
<table:table-cell\n
tal:define=\'global total_net_prev_period python: total_net_prev_period + net_prev_period;\'\n
table:style-name=\'report-content-currency1\'\n
tal:attributes=\'office:value net_prev_period\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
</tal:block>\n
</table:table-row>\n
<!-- }}} -->\n
<tal:block tal:define="depth python: depth - 1;"\n
tal:repeat="cat_level_2 python: cat_level_1.contentValues(sort_on=((\'int_index\', \'ascending\'),))">\n
<!-- LEVEL 2 {{{ -->\n
<table:table-row table:style-name=\'ro4\' tal:condition=\'python: depth &gt; 0 and len(cat_level_2.contentIds()) &gt; 0\'>\n
<table:table-cell table:style-name=\'report-content-heading1\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'\n
office:value-type=\'string\'>\n
<text:p tal:content="cat_level_2/getTranslatedTitle">Level 2</text:p>\n
</table:table-cell>\n
\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
</table:table-row>\n
<table:table-row table:style-name=\'ro4\' tal:condition=\'python: depth == 0 or len(cat_level_2.contentIds()) == 0\'>\n
<tal:block tal:define=\'node_category cat_level_2/getRelativeUrl;\n
net python: getInventory(node_category=node_category);\n
net_prev_period python: getInventoryPreviousPeriod(node_category=node_category);\n
\'>\n
<table:table-cell table:style-name=\'report-content-heading2\'\n
office:value-type=\'string\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'>\n
<text:p tal:content="cat_level_2/getTranslatedTitle">Level 2</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated=\'2\'/>\n
\n
<!-- net -->\n
<table:table-cell\n
tal:define=\'global total_net python: total_net + net;\'\n
table:style-name=\'report-content-currency1\'\n
tal:attributes=\'office:value net\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
\n
<!-- previous year -->\n
<table:table-cell\n
tal:define=\'global total_net_prev_period python: total_net_prev_period + net_prev_period;\'\n
table:style-name=\'report-content-currency1\'\n
tal:attributes=\'office:value net_prev_period\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
</tal:block>\n
</table:table-row>\n
<!-- }}} -->\n
<tal:block tal:repeat="cat_level_3 python: cat_level_2.contentValues(sort_on=((\'int_index\', \'ascending\'),))">\n
<!-- LEVEL 3 {{{ -->\n
<table:table-row table:style-name=\'ro4\'>\n
<tal:block tal:define=\'node_category cat_level_3/getRelativeUrl;\n
net python: getInventory(node_category=node_category);\n
net_prev_period python: getInventoryPreviousPeriod(node_category=node_category);\n
\'>\n
<table:table-cell table:style-name=\'report-content-heading2\'\n
office:value-type=\'string\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'>\n
<text:p tal:content="cat_level_3/getTranslatedTitle">Level 3</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated=\'2\'/>\n
\n
<!-- net -->\n
<table:table-cell\n
tal:define=\'global total_net python: total_net + net;\'\n
table:style-name=\'report-content-currency1\'\n
tal:attributes=\'office:value net\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
\n
<!-- previous year -->\n
<table:table-cell\n
tal:define=\'global total_net_prev_period python: total_net_prev_period + net_prev_period;\'\n
table:style-name=\'report-content-currency1\'\n
tal:attributes=\'office:value net_prev_period\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
</tal:block>\n
</table:table-row>\n
<!-- }}} -->\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
\n
<!-- TOTAL LEVEL 1 {{{ -->\n
<table:table-row table:style-name=\'ro7\'>\n
<table:table-cell table:style-name=\'report-stat1\'\n
office:value-type=\'string\'\n
table:number-rows-spanned=\'1\'\n
table:number-columns-spanned=\'3\'>\n
<text:p i18n:translate="" i18n:domain="ui">Total Asset</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated=\'2\'/>\n
\n
<!-- net -->\n
<table:table-cell\n
table:style-name=\'report-stat-currency1\'\n
tal:attributes="office:value total_net"\n
office:value-type=\'float\'\n
office:value=\'123456.56\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
\n
<!-- net previous period -->\n
<table:table-cell \n
table:style-name=\'report-stat-currency1\'\n
tal:attributes="office:value total_net_prev_period"\n
office:value-type=\'float\'\n
office:value=\'123456.56\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
</table:table-row>\n
<!-- }}} -->\n
\n
</tal:block> \n
\n
<table:table-row table:style-name=\'page-break\'>\n
<table:table-cell table:style-name=\'empty-cell\'/>\n
</table:table-row>\n
\n
</table:table>\n
<!-- new table -->\n
<table:table table:style-name=\'ta1\' table:print=\'false\' table:name=\'Equity + Liability\' i18n:domain=\'ui\' i18n:attributes=\'table:name\'>\n
<office:forms form:apply-design-mode=\'false\' form:automatic-focus=\'false\'/>\n
<table:table-column table:style-name=\'co1\' table:default-cell-style-name=\'report-title\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'ce7\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'ce1\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'report-column-title\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'report-column-title\'/>\n
\n
\n
<!-- Equity + Liabilities -->\n
<tal:block tal:define="global total_net python: 0;\n
global total_net_prev_period python: 0;\n
">\n
<!-- Header {{{ -->\n
<table:table-header-rows>\n
<table:table-row table:style-name=\'ro3\'>\n
<table:table-cell\n
table:style-name=\'report-column-title\'\n
office:value-type=\'string\'\n
table:number-rows-spanned=\'1\'\n
table:number-columns-spanned=\'3\'>\n
<text:p i18n:translate="" i18n:domain="ui">Equity + Liability</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:table-cell table:style-name=\'report-column-title\' office:value-type=\'string\'>\n
<text:p i18n:translate="" i18n:domain="ui">Current Period</text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name="report-column-title" office:value-type=\'string\'>\n
<text:p i18n:translate="" i18n:domain="ui">Prev. Period</text:p>\n
</table:table-cell>\n
</table:table-row>\n
</table:table-header-rows>\n
<!-- }}} -->\n
<tal:block tal:repeat="pair python: context.AccountModule_getJapaneseGapDebtCategoryList() +\n
context.AccountModule_getJapaneseGapCapitalCategoryList()">\n
<tal:block tal:define="depth python: pair[0] - 1;\n
cat_level_1 python: pair[1]">\n
<!-- LEVEL 1 {{{ -->\n
<table:table-row table:style-name=\'ro4\' tal:condition=\'python: depth &gt; 0 and len(cat_level_1.contentIds()) &gt; 0\'>\n
<table:table-cell table:style-name=\'report-content-heading1\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'\n
office:value-type=\'string\'>\n
<text:p tal:define=\'global level1_title cat_level_1/getTranslatedTitle\'\n
tal:content="level1_title">Level 1</text:p>\n
</table:table-cell>\n
\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
</table:table-row>\n
<table:table-row table:style-name=\'ro4\' tal:condition=\'python: depth == 0 &gt; 0 or len(cat_level_1.contentIds()) == 0\'>\n
<tal:block tal:define=\'node_category cat_level_1/getRelativeUrl;\n
net python: getInventory(node_category=node_category);\n
net_prev_period python: getInventoryPreviousPeriod(node_category=node_category);\n
\'>\n
<table:table-cell table:style-name=\'report-content-heading2\'\n
office:value-type=\'string\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'>\n
<text:p tal:content="cat_level_1/getTranslatedTitle"\n
>Level 1</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated=\'2\'/>\n
\n
<!-- net -->\n
<table:table-cell\n
tal:define=\'global total_net python: total_net + net;\'\n
table:style-name=\'report-content-currency2\'\n
tal:attributes=\'office:value net\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
\n
<!-- previous year -->\n
<table:table-cell\n
tal:define=\'global total_net_prev_period python: total_net_prev_period + net_prev_period;\'\n
table:style-name=\'report-content-currency2\'\n
tal:attributes=\'office:value net_prev_period\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
</tal:block>\n
</table:table-row>\n
<!-- }}} -->\n
<tal:block tal:define="depth python: depth - 1;"\n
tal:repeat="cat_level_2 python: cat_level_1.contentValues(sort_on=((\'int_index\', \'ascending\'),))">\n
<!-- LEVEL 2 {{{ -->\n
<table:table-row table:style-name=\'ro4\' tal:condition=\'python: depth &gt; 0 and len(cat_level_2.contentIds()) &gt; 0\'>\n
<table:table-cell table:style-name=\'report-content-heading1\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'\n
office:value-type=\'string\'>\n
<text:p tal:content="cat_level_2/getTranslatedTitle">Level 2</text:p>\n
</table:table-cell>\n
\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
</table:table-row>\n
<table:table-row table:style-name=\'ro4\' tal:condition=\'python: depth == 0 or len(cat_level_2.contentIds()) == 0\'>\n
<tal:block tal:define=\'node_category cat_level_2/getRelativeUrl;\n
net python: getInventory(node_category=node_category);\n
net_prev_period python: getInventoryPreviousPeriod(node_category=node_category);\n
\'>\n
<table:table-cell table:style-name=\'report-content-heading1\'\n
office:value-type=\'string\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'>\n
<text:p tal:content="cat_level_2/getTranslatedTitle">Level 2</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated=\'2\'/>\n
\n
<!-- net -->\n
<table:table-cell\n
tal:define=\'global total_net python: total_net + net;\'\n
table:style-name=\'report-content-currency1\'\n
tal:attributes=\'office:value net\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
\n
<!-- previous year -->\n
<table:table-cell\n
tal:define=\'global total_net_prev_period python: total_net_prev_period + net_prev_period;\'\n
table:style-name=\'report-content-currency1\'\n
tal:attributes=\'office:value net_prev_period\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
</tal:block>\n
</table:table-row>\n
<!-- }}} -->\n
<tal:block tal:repeat="cat_level_3 python: cat_level_2.contentValues(sort_on=((\'int_index\', \'ascending\'),))">\n
<!-- LEVEL 3 {{{ -->\n
<table:table-row table:style-name=\'ro4\'>\n
<tal:block tal:define=\'node_category cat_level_3/getRelativeUrl;\n
net python: getInventory(node_category=node_category);\n
net_prev_period python: getInventoryPreviousPeriod(node_category=node_category);\n
\'>\n
<table:table-cell table:style-name=\'report-content-heading2\'\n
office:value-type=\'string\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'>\n
<text:p tal:content="cat_level_3/getTranslatedTitle">Level 3</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated=\'2\'/>\n
\n
<!-- net -->\n
<table:table-cell\n
tal:define=\'global total_net python: total_net + net;\'\n
table:style-name=\'report-content-currency1\'\n
tal:attributes=\'office:value net\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
\n
<!-- previous year -->\n
<table:table-cell\n
tal:define=\'global total_net_prev_period python: total_net_prev_period + net_prev_period;\'\n
table:style-name=\'report-content-currency1\'\n
tal:attributes=\'office:value net_prev_period\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
</tal:block>\n
</table:table-row>\n
<!-- }}} -->\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
\n
<!-- TOTAL LEVEL 1 {{{ -->\n
<table:table-row table:style-name=\'ro7\'>\n
<table:table-cell table:style-name=\'report-stat1\'\n
office:value-type=\'string\'\n
table:number-rows-spanned=\'1\'\n
table:number-columns-spanned=\'3\'>\n
<text:p i18n:translate="" i18n:domain="ui">Total Equity + Liability</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated=\'2\'/>\n
\n
<!-- net -->\n
<table:table-cell\n
table:style-name=\'report-stat-currency1\'\n
tal:attributes="office:value total_net"\n
office:value-type=\'float\'\n
office:value=\'123456.56\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
\n
<!-- net previous period -->\n
<table:table-cell \n
table:style-name=\'report-stat-currency1\'\n
tal:attributes="office:value total_net_prev_period"\n
office:value-type=\'float\'\n
office:value=\'123456.56\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
</table:table-row>\n
<!-- }}} -->\n
\n
</tal:block> \n
\n
<table:table-row table:style-name=\'page-break\'>\n
<table:table-cell table:style-name=\'empty-cell\'/>\n
</table:table-row>\n
\n
</table:table>\n
</office:spreadsheet>\n
</office:body>\n
</office:document-content><!-- vim: filetype=xml tw=1000 foldmethod=marker\n
-->\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/vnd.oasis.opendocument.spreadsheet</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountModule_viewJapaneseBalanceSheetReport</string> </value>
</item>
<item>
<key> <string>ooo_stylesheet</string> </key>
<value> <string>Base_getODSStyleSheet</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Balance Sheet Report based on Japanese GAP category</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="OOoTemplate" module="Products.ERP5OOo.OOoTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>OLE_documents_zipstring</string> </key>
<value> <string encoding="base64">UEsDBBQAAAAIAEyHuTbMBk1mQgEAAFEHAAAVAAAATUVUQS1JTkYvbWFuaWZlc3QueG1stZVLasMw
EED3PYXR3lbbVTFxAi30BOkBJvLYEeiHZhSS21cO5NM2lKZYOw1I741GGmmx2ltT7TCS9q4TT82j
qNAp32s3duJj/V6/iNXyYWHB6QGJ29OgyuscncNOpOhaD6SpdWCRWlatD+h6r5JFx+3X+e1kWj5U
F/CgDdZ5YjxUFxn2Gmo+BOwEhGC0As55yp3rm6OruVY0FCJCT1tEFhfIkIypA/C2E1LIu5y3KW/e
DXpM8ZgLPUti4EQbiGXwoBQazKGPUqUYp53mYhZ3FREMxgNjIXjwIYV8E1IhfPRjRCp30lPqxeDs
vSkG1xZGJPmq2UKgoo472d+fDUpu6p4m6UZdC/6Ww51yxj3LqVdvwrOf/9fMv3OJDwZpdqxFhtke
nvU22Y0DbUjyadgEN84Nn7ewyJz/xXNpF/LHt7j8BFBLAQIUABQAAAAIAEyHuTbMBk1mQgEAAFEH
AAAVAAAAAAAAAAAAAAAAAAAAAABNRVRBLUlORi9tYW5pZmVzdC54bWxQSwUGAAAAAAEAAQBDAAAA
dQEAAAAA</string> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<office:document-content\n
xmlns:draw=\'urn:oasis:names:tc:opendocument:xmlns:drawing:1.0\'\n
xmlns:office=\'urn:oasis:names:tc:opendocument:xmlns:office:1.0\'\n
xmlns:text=\'urn:oasis:names:tc:opendocument:xmlns:text:1.0\'\n
xmlns:ooo=\'http://openoffice.org/2004/office\'\n
xmlns:number=\'urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0\'\n
xmlns:dc=\'http://purl.org/dc/elements/1.1/\'\n
xmlns:meta=\'urn:oasis:names:tc:opendocument:xmlns:meta:1.0\'\n
xmlns:table=\'urn:oasis:names:tc:opendocument:xmlns:table:1.0\'\n
xmlns:dr3d=\'urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0\'\n
xmlns:fo=\'urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\'\n
xmlns:style=\'urn:oasis:names:tc:opendocument:xmlns:style:1.0\'\n
xmlns:xforms=\'http://www.w3.org/2002/xforms\'\n
xmlns:form=\'urn:oasis:names:tc:opendocument:xmlns:form:1.0\'\n
xmlns:script=\'urn:oasis:names:tc:opendocument:xmlns:script:1.0\'\n
xmlns:ooow=\'http://openoffice.org/2004/writer\'\n
xmlns:svg=\'urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0\'\n
xmlns:chart=\'urn:oasis:names:tc:opendocument:xmlns:chart:1.0\'\n
xmlns:dom=\'http://www.w3.org/2001/xml-events\'\n
xmlns:xlink=\'http://www.w3.org/1999/xlink\'\n
xmlns:xsd=\'http://www.w3.org/2001/XMLSchema\'\n
xmlns:xsi=\'http://www.w3.org/2001/XMLSchema-instance\'\n
xmlns:oooc=\'http://openoffice.org/2004/calc\'\n
xmlns:math=\'http://www.w3.org/1998/Math/MathML\'\n
xmlns:tal=\'http://xml.zope.org/namespaces/tal\'\n
xmlns:i18n=\'http://xml.zope.org/namespaces/i18n\'\n
xmlns:metal=\'http://xml.zope.org/namespaces/metal\'\n
tal:attributes=\'dummy python:request.RESPONSE.setHeader("Content-Type", "text/html;; charset=utf-8")\'\n
tal:define=\'at_date request/at_date/latestTime;\n
at_date_previous_period python:modules["DateTime"].DateTime(at_date.year() - 1, at_date.month(), at_date.day()).latestTime();\n
from_date python:context.Base_getAccountingPeriodStartDateForSectionCategory(section_category=request["section_category"], date=at_date);\n
from_date_previous_period python:context.Base_getAccountingPeriodStartDateForSectionCategory(section_category=request["section_category"], date=at_date_previous_period);\n
portal_type here/getPortalAccountingMovementTypeList;\n
date_formatter nocall:here/Base_viewFieldLibrary/my_date/render_pdf;\n
section_uid python: context.Base_getSectionUidListForSectionCategory(request["section_category"], request["section_category_strict"]);\n
financial_section python:context.getPortalObject().portal_categories.financial_section;\n
getInventory python: lambda **kw:context.portal_simulation.getInventoryAssetPrice(section_uid=section_uid, simulation_state=request["simulation_state"], function=request.get("function") or None, project=request.get("project") or None, at_date=at_date, from_date=from_date, portal_type=portal_type, **kw);\n
getInventoryPreviousPeriod python: lambda **kw:context.portal_simulation.getInventoryAssetPrice(section_uid=section_uid, simulation_state=request["simulation_state"], function=request.get("function") or None, project=request.get("project") or None, at_date=at_date_previous_period, from_date=from_date_previous_period, portal_type=portal_type, **kw);\n
net_income python:getInventory(node_category=["financial_section/income", "financial_section/expense"]);\n
net_income_previous_period python:getInventoryPreviousPeriod(node_category=["financial_section/income", "financial_section/expense"]);\'\n
office:version=\'1.0\'>\n
<office:scripts/>\n
<office:font-face-decls>\n
<style:font-face svg:font-family=\'Arial\' style:font-family-generic=\'swiss\' style:name=\'Arial\' style:font-pitch=\'variable\'/>\n
<style:font-face svg:font-family="\'DejaVu Sans\'" style:font-family-generic=\'system\' style:name=\'DejaVu Sans\' style:font-pitch=\'variable\'/>\n
<style:font-face svg:font-family=\'Lucidasans\' style:font-family-generic=\'system\' style:name=\'Lucidasans\' style:font-pitch=\'variable\'/>\n
</office:font-face-decls>\n
<office:automatic-styles> <!-- {{{ -->\n
<style:style style:family=\'table-column\' style:name=\'co1\'>\n
<style:table-column-properties fo:break-before=\'auto\' style:column-width=\'6.21cm\'/>\n
</style:style>\n
<style:style style:family=\'table-column\' style:name=\'co2\'>\n
<style:table-column-properties fo:break-before=\'auto\' style:column-width=\'3.10cm\'/>\n
</style:style>\n
<style:style style:family=\'table-row\' style:name=\'ro2\'>\n
<style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'false\' style:row-height=\'0.644cm\'/>\n
</style:style>\n
<style:style style:family=\'table-row\' style:name=\'ro3\'>\n
<style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'false\' style:row-height=\'0.951cm\'/>\n
</style:style>\n
<style:style style:family=\'table-row\' style:name=\'ro4\'>\n
<style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'true\' style:row-height=\'0.503cm\'/>\n
</style:style>\n
<style:style style:family=\'table-row\' style:name=\'ro7\'>\n
<style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'true\' style:row-height=\'0.496cm\'/>\n
</style:style>\n
<style:style style:family=\'table-row\' style:name=\'ro9\'>\n
<style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'false\' style:row-height=\'0.279cm\'/>\n
</style:style>\n
<style:style style:family=\'table-row\' style:name=\'page-break\'>\n
<style:table-row-properties fo:break-before=\'page\' style:use-optimal-row-height=\'false\' style:row-height=\'0.279cm\'/>\n
</style:style>\n
<style:style style:family=\'table\' style:name=\'ta1\' style:master-page-name=\'Default\'>\n
<style:table-properties style:writing-mode=\'lr-tb\' table:display=\'true\'/>\n
</style:style>\n
<style:style style:parent-style-name=\'Default\' style:family=\'table-cell\' style:name=\'ce1\'>\n
<style:table-cell-properties style:vertical-align=\'middle\' style:repeat-content=\'false\' style:text-align-source=\'fix\' fo:border=\'none\'/>\n
<style:paragraph-properties fo:text-align=\'center\'/>\n
</style:style>\n
<style:style style:parent-style-name=\'Default\' style:family=\'table-cell\' style:name=\'bottom_border\'>\n
<style:table-cell-properties fo:border-left=\'0.002cm solid #000000\' fo:border-bottom=\'0.002cm solid #000000\' fo:border-right=\'0.002cm solid #000000\' fo:border-top=\'none\'/>\n
</style:style>\n
<style:style style:parent-style-name=\'Default\' style:family=\'table-cell\' style:name=\'ce7\'>\n
<style:table-cell-properties style:vertical-align=\'middle\' style:repeat-content=\'false\' style:text-align-source=\'fix\' fo:border=\'none\'/>\n
<style:paragraph-properties fo:text-align=\'center\' fo:margin-left=\'0cm\'/>\n
<style:text-properties fo:font-size=\'20pt\'/>\n
</style:style>\n
<style:style style:parent-style-name=\'Default\' style:family=\'table-cell\' style:name=\'ce8\'>\n
<style:table-cell-properties style:vertical-align=\'middle\' style:repeat-content=\'false\' style:text-align-source=\'fix\' fo:border=\'none\'/>\n
<style:paragraph-properties fo:text-align=\'center\' fo:margin-left=\'0cm\'/>\n
</style:style>\n
<style:style style:parent-style-name=\'Default\' style:family=\'table-cell\' style:name=\'ce9\'>\n
<style:table-cell-properties style:vertical-align=\'middle\' style:repeat-content=\'false\' style:text-align-source=\'fix\' fo:border=\'0.002cm solid #000000\'/>\n
<style:paragraph-properties fo:text-align=\'center\'/>\n
</style:style>\n
<style:style style:parent-style-name=\'Default\' style:family=\'table-cell\' style:name=\'empty-cell\'>\n
<style:table-cell-properties fo:border-left=\'none\' fo:border-bottom=\'none\' fo:border-right=\'none\' fo:border-top=\'none\'/>\n
</style:style>\n
<style:style style:family=\'text\' style:name=\'T1\'>\n
<style:text-properties fo:font-size=\'12pt\'/>\n
</style:style>\n
</office:automatic-styles> <!-- }}} -->\n
<office:body>\n
\n
<office:spreadsheet>\n
<table:table table:style-name=\'ta1\' table:print=\'false\' table:name=\'Expense\' i18n:domain=\'ui\' i18n:attributes=\'table:name\'>\n
<office:forms form:apply-design-mode=\'false\' form:automatic-focus=\'false\'/>\n
<table:table-column table:style-name=\'co1\' table:default-cell-style-name=\'report-title\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'ce7\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'ce1\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'ce1\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'report-column-title\'/>\n
\n
<!-- Expense -->\n
<tal:block tal:define="global total_current_period python: 0;\n
global total_previous_period python: 0;\n
\n
global grand_total_current_period python: 0;\n
global grand_total_previous_period python: 0;\n
\n
global level1_counter python: 0;\n
global level2_title python:\'\';\n
global level1_title python:\'\';\n
">\n
\n
<!-- Title {{{ -->\n
<table:table-row table:style-name=\'ro2\'>\n
<table:table-cell table:number-rows-spanned=\'2\'\n
table:number-columns-spanned=\'1\'\n
office:value-type=\'string\'\n
table:style-name=\'report-title\'>\n
<text:p tal:content=\'python: context.portal_categories.restrictedTraverse(request["section_category"]).getTranslatedTitle()\'/>\n
</table:table-cell>\n
<table:table-cell table:number-rows-spanned=\'1\' table:number-columns-spanned=\'4\'\n
office:value-type=\'string\' table:style-name=\'report-title\'>\n
<text:p i18n:translate="" i18n:domain="ui">Profit and Loss</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated=\'2\'/>\n
<table:covered-table-cell table:style-name=\'ce1\' table:number-columns-repeated=\'1\'/>\n
</table:table-row>\n
\n
<table:table-row table:style-name=\'ro2\'>\n
<table:table-cell table:style-name=\'ce1\'><text:p/></table:table-cell>\n
<table:table-cell table:style-name=\'report-title-date\'\n
table:number-rows-spanned=\'1\' table:number-columns-spanned=\'4\'>\n
<text:p tal:content="python:date_formatter(at_date)">Date</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated=\'2\'/>\n
<table:covered-table-cell table:style-name=\'ce1\' table:number-columns-repeated=\'1\'/>\n
</table:table-row>\n
\n
<table:table-row table:style-name=\'ro2\'>\n
<table:table-cell table:style-name=\'ce1\'/>\n
<table:table-cell table:style-name=\'ce8\'/>\n
<table:table-cell/>\n
<table:table-cell table:style-name=\'ce1\' table:number-columns-repeated=\'2\'/>\n
</table:table-row>\n
<!-- }}} -->\n
\n
<!-- Header {{{ -->\n
<table:table-header-rows>\n
<table:table-row table:style-name=\'ro3\'>\n
<table:table-cell\n
table:style-name=\'report-column-title\'\n
office:value-type=\'string\'\n
table:number-rows-spanned=\'1\'\n
table:number-columns-spanned=\'3\'>\n
<text:p i18n:translate="" i18n:domain="ui">Expense</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/><table:covered-table-cell table:style-name="ce9"/>\n
<table:table-cell table:style-name=\'report-column-title\' office:value-type=\'string\'>\n
<text:p i18n:translate="" i18n:domain="ui">Current Period</text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name="report-column-title" office:value-type=\'string\'>\n
<text:p i18n:translate="" i18n:domain="ui">Previous Period</text:p>\n
</table:table-cell>\n
</table:table-row>\n
</table:table-header-rows>\n
<!-- }}} -->\n
\n
<tal:block tal:repeat="cat_level_1 python: financial_section.expense.contentValues(sort_on=((\'int_index\', \'ascending\'),))">\n
<tal:block tal:define="global total_current_period python: 0;\n
global total_previous_period python: 0;">\n
\n
<!-- LEVEL 1 {{{ -->\n
<table:table-row table:style-name=\'ro4\'>\n
<table:table-cell table:style-name=\'report-content-heading1\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'\n
office:value-type=\'string\'>\n
<text:p tal:define=\'global level1_title cat_level_1/getTranslatedTitle\'\n
tal:content="level1_title">Level 1</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<tal:block tal:define="display_level_2 cat_level_1/contentIds">\n
<tal:block tal:condition="display_level_2">\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p></text:p></table:table-cell>\n
</tal:block>\n
<tal:block tal:condition="not: display_level_2"\n
tal:define="node_category cat_level_1/getRelativeUrl">\n
<!-- current period -->\n
<tal:block\n
tal:define=\'value python:getInventory(node_category=node_category);\n
global total_current_period python: total_current_period + value;\'>\n
<table:table-cell\n
tal:condition=\'value\'\n
table:style-name=\'report-content-currency1\'\n
tal:attributes=\'office:value value\'\n
office:value-type=\'float\' office:value=\'123456.56\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
<table:table-cell\n
tal:condition=\'not: value\'\n
table:style-name=\'report-content-currency1\'>\n
<text:p></text:p>\n
</table:table-cell>\n
</tal:block>\n
\n
<!-- previous period -->\n
<tal:block\n
tal:define=\'value python:getInventoryPreviousPeriod(node_category=node_category);\n
global total_previous_period python: total_previous_period + value;\'>\n
<table:table-cell\n
tal:condition=\'value\'\n
table:style-name=\'report-content-currency1\'\n
tal:attributes=\'office:value value\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
<table:table-cell\n
tal:condition=\'not: value\'\n
table:style-name=\'report-content-currency1\'>\n
<text:p></text:p>\n
</table:table-cell>\n
</tal:block>\n
</tal:block>\n
\n
</tal:block>\n
</table:table-row>\n
<!-- }}} -->\n
\n
<!-- LEVEL 2 {{{ -->\n
<tal:block tal:repeat="cat_level_2 python:cat_level_1.contentValues(sort_on=((\'int_index\', \'ascending\'),))">\n
<tal:block tal:define="display_level_3 cat_level_2/contentIds">\n
<table:table-row table:style-name=\'ro4\' tal:condition=\'display_level_3\'>\n
<table:table-cell table:style-name=\'report-content-heading2\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'\n
office:value-type=\'string\'>\n
<text:p><text:span text:style-name=\'T1\'\n
tal:define="global level2_title cat_level_2/getTranslatedTitle"\n
tal:content="level2_title"\n
>Level 2</text:span></text:p></table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:table-cell table:style-name=\'report-content-currency2\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency2\'>\n
<text:p></text:p></table:table-cell>\n
</table:table-row>\n
\n
<table:table-row table:style-name=\'ro4\' tal:condition=\'not:display_level_3\'>\n
<tal:block tal:define=\'node_category cat_level_2/getRelativeUrl;\'>\n
<table:table-cell table:style-name=\'report-content-heading2\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'\n
office:value-type=\'string\'>\n
<text:p tal:define="global level2_title cat_level_2/getTranslatedTitle"\n
tal:content="level2_title"\n
>Level 2</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:covered-table-cell table:style-name="ce9"/>\n
\n
<!-- current period -->\n
<tal:block\n
tal:define=\'value python:getInventory(node_category=node_category);\n
global total_current_period python: total_current_period + value;\'>\n
<table:table-cell\n
tal:condition=\'value\'\n
table:style-name=\'report-content-currency2\'\n
tal:attributes=\'office:value value\'\n
office:value-type=\'float\'\n
office:value=\'123456.56\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
<table:table-cell\n
tal:condition=\'not:value\'\n
table:style-name=\'report-content-currency2\'>\n
<text:p></text:p>\n
</table:table-cell>\n
</tal:block>\n
\n
<!-- previous period -->\n
<tal:block\n
tal:define=\'value python:getInventoryPreviousPeriod(node_category=node_category);\n
global total_previous_period python: total_previous_period + value;\'>\n
<table:table-cell\n
tal:condition=\'value\'\n
table:style-name=\'report-content-currency2\'\n
tal:attributes=\'office:value value\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
<table:table-cell\n
tal:condition=\'not:value\'\n
table:style-name=\'report-content-currency2\'>\n
<text:p></text:p>\n
</table:table-cell>\n
</tal:block>\n
</tal:block>\n
</table:table-row>\n
</tal:block>\n
<!-- }}} -->\n
\n
<!-- LEVEL 3 {{{ -->\n
<table:table-row tal:repeat="cat_level_3 python: cat_level_2.contentValues(sort_on=((\'int_index\',\'ascending\'),))">\n
<tal:block tal:define=\'node_category cat_level_3/getRelativeUrl;\'>\n
<table:table-cell table:style-name=\'report-content-heading3\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'\n
office:value-type=\'string\'>\n
<text:p tal:content="cat_level_3/getTranslatedTitle">Level 3</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:covered-table-cell table:style-name="ce9"/>\n
\n
<!-- current period -->\n
<tal:block\n
tal:define=\'value python:getInventory(node_category=node_category);\n
global total_current_period python: total_current_period + value;\'>\n
<table:table-cell\n
tal:condition=\'value\'\n
table:style-name=\'report-content-currency3\'\n
tal:attributes=\'office:value value\'\n
office:value-type=\'float\'\n
office:value=\'123456.56\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
<table:table-cell\n
tal:condition=\'not:value\'\n
table:style-name=\'report-content-currency3\'>\n
<text:p></text:p>\n
</table:table-cell>\n
</tal:block>\n
\n
<!-- previous period -->\n
<tal:block\n
tal:define=\'value python:getInventoryPreviousPeriod(node_category=node_category); \n
global total_previous_period python: total_previous_period + value;\'>\n
<table:table-cell\n
tal:condition=\'value\'\n
table:style-name=\'report-content-currency3\'\n
tal:attributes=\'office:value value\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
<table:table-cell\n
tal:condition=\'not:value\'\n
table:style-name=\'report-content-currency3\'>\n
<text:p></text:p>\n
</table:table-cell>\n
</tal:block>\n
</tal:block>\n
</table:table-row>\n
\n
</tal:block>\n
</tal:block>\n
<!-- }}} --> \n
\n
<!-- TOTAL LEVEL 1 {{{ -->\n
<table:table-row table:style-name=\'ro7\'>\n
<table:table-cell table:style-name=\'report-stat1\'\n
office:value-type=\'string\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'\n
tal:define="global level1_counter python:level1_counter + 1">\n
<text:p i18n:translate="" i18n:domain="ui">Total <tal:block i18n:name="category_level_1_title" tal:content=\'level1_title\'>\n
</tal:block> <tal:block i18n:name="level1_counter" tal:content=\'level1_counter\'>\n
</tal:block></text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:covered-table-cell table:style-name="ce9"/>\n
\n
<!-- current period -->\n
<table:table-cell \n
table:style-name=\'report-stat-currency1\'\n
tal:define=\'global grand_total_current_period python: grand_total_current_period + total_current_period\'\n
tal:attributes="office:value total_current_period"\n
office:value-type=\'float\' office:value=\'123456.56\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
\n
<!-- previous period -->\n
<table:table-cell\n
table:style-name=\'report-stat-currency1\'\n
tal:define=\'global grand_total_previous_period python: grand_total_previous_period + total_previous_period\'\n
tal:attributes="office:value total_previous_period"\n
office:value-type=\'float\'\n
office:value=\'123456.56\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
</table:table-row>\n
<!-- }}} -->\n
</tal:block>\n
<!-- loop level 2 -->\n
<!-- Total expense {{{ -->\n
<table:table-row>\n
<table:table-cell table:style-name=\'report-stat2\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'\n
office:value-type=\'string\'>\n
<text:p i18n:translate="" i18n:domain="ui">Total <tal:block i18n:name="class"\n
i18n:translate=\'\' i18n:domain="ui" tal:content=\'string:Expense\'></tal:block></text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:covered-table-cell table:style-name="ce9"/>\n
\n
<table:table-cell table:style-name=\'report-stat-currency2\'\n
tal:attributes="office:value python: grand_total_current_period"\n
office:value-type=\'float\' office:value=\'123456.56\'><text:p>123 456,56</text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-stat-currency2\'\n
tal:attributes="office:value python: grand_total_previous_period"\n
office:value=\'123456.56\' office:value-type=\'float\'><text:p>123 456,56</text:p></table:table-cell>\n
</table:table-row>\n
<!-- }}} -->\n
\n
<!-- NET PROFIT {{{ -->\n
<table:table-row tal:condition="python: net_income &lt; 0 or net_income_previous_period &lt; 0">\n
<table:table-cell table:style-name=\'report-stat2\'\n
office:value-type=\'string\'\n
table:number-rows-spanned=\'1\'\n
table:number-columns-spanned=\'3\'>\n
<text:p i18n:translate="" i18n:domain="ui">Net Profit</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/><table:covered-table-cell table:style-name="ce9"/>\n
<table:table-cell table:style-name=\'report-stat-currency2\'\n
tal:attributes="office:value python: - net_income"\n
tal:define="global grand_total_current_period python: grand_total_current_period - net_income"\n
office:value-type=\'float\' office:value=\'123456.56\'><text:p>123 456,56</text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-stat-currency2\'\n
tal:attributes="office:value python: - net_income_previous_period"\n
tal:define="global grand_total_previous_period python: grand_total_previous_period - net_income_previous_period"\n
office:value=\'\' office:value-type=\'float\'><text:p></text:p></table:table-cell>\n
</table:table-row>\n
\n
<!-- TOTAL LEVEL 2 {{{ -->\n
<table:table-row>\n
<table:table-cell table:style-name=\'report-stat2\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'\n
office:value-type=\'string\'>\n
<text:p i18n:translate="" i18n:domain="ui">Total</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:covered-table-cell table:style-name="ce9"/>\n
\n
<table:table-cell table:style-name=\'report-stat-currency2\'\n
tal:attributes="office:value python: grand_total_current_period"\n
office:value-type=\'float\' office:value=\'123456.56\'><text:p>123 456,56</text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-stat-currency2\'\n
tal:attributes="office:value python: grand_total_previous_period"\n
office:value=\'123456.56\' office:value-type=\'float\'><text:p>123 456,56</text:p></table:table-cell>\n
</table:table-row>\n
\n
<table:table-row table:style-name=\'ro9\'>\n
<table:table-cell table:style-name=\'bottom_border\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'/>\n
<table:table-cell table:style-name=\'bottom_border\'/>\n
<table:table-cell table:style-name=\'bottom_border\'/>\n
<table:table-cell table:style-name=\'bottom_border\'/>\n
<table:table-cell table:style-name=\'bottom_border\'/>\n
</table:table-row>\n
<!-- }}} --> \n
\n
</tal:block> <!-- loop level 1 -->\n
\n
<table:table-row table:style-name=\'page-break\'>\n
<table:table-cell table:style-name=\'empty-cell\' />\n
</table:table-row>\n
\n
\n
</table:table> <!-- new table -->\n
<table:table table:style-name=\'ta1\' table:print=\'false\' table:name=\'Income\'\n
i18n:domain=\'ui\' i18n:attributes=\'table:name\'>\n
<office:forms form:apply-design-mode=\'false\' form:automatic-focus=\'false\'/>\n
<table:table-column table:style-name=\'co1\' table:default-cell-style-name=\'report-title\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'ce7\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'ce1\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'ce1\'/>\n
<table:table-column table:style-name=\'co2\' table:default-cell-style-name=\'report-column-title\'/>\n
\n
\n
<tal:block tal:define="global total_current_period python: 0;\n
global total_previous_period python: 0;\n
\n
global grand_total_current_period python: 0;\n
global grand_total_previous_period python: 0;\n
global level1_counter python:0;\n
global level2_title python:\'\';\n
global level1_title python:\'\';">\n
\n
<!-- Header {{{ -->\n
<table:table-header-rows>\n
<table:table-row table:style-name=\'ro3\'>\n
<table:table-cell\n
table:style-name=\'report-column-title\'\n
office:value-type=\'string\'\n
table:number-rows-spanned=\'1\'\n
table:number-columns-spanned=\'3\'>\n
<text:p i18n:translate="" i18n:domain="ui">Income</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/><table:covered-table-cell table:style-name="ce9"/>\n
<table:table-cell table:style-name=\'report-column-title\' office:value-type=\'string\'>\n
<text:p i18n:translate="" i18n:domain="ui">Current Period</text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name="report-column-title" office:value-type=\'string\'>\n
<text:p i18n:translate="" i18n:domain="ui">Prev. Period</text:p>\n
</table:table-cell>\n
</table:table-row>\n
</table:table-header-rows>\n
\n
<tal:block tal:repeat="cat_level_1 python:financial_section.income.contentValues(sort_on=((\'int_index\', \'ascending\'),))">\n
<tal:block tal:define="global total_current_period python: 0;\n
global total_previous_period python: 0;">\n
<!-- }}} -->\n
\n
<!-- LEVEL 1 {{{ -->\n
<table:table-row table:style-name=\'ro4\'>\n
<table:table-cell table:style-name=\'report-content-heading1\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'\n
office:value-type=\'string\'>\n
<text:p tal:define="global level1_title cat_level_1/getTranslatedTitle"\n
tal:content="level1_title">Level 1</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<tal:block tal:define="display_level_2 cat_level_1/contentIds">\n
<tal:block tal:condition="display_level_2">\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p/></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency1\'>\n
<text:p/></table:table-cell>\n
</tal:block>\n
<tal:block tal:condition="not: display_level_2"\n
tal:define="node_category cat_level_1/getRelativeUrl">\n
\n
<!-- current period -->\n
<tal:block\n
tal:define=\'value python:- getInventory(node_category=node_category);\n
global total_current_period python: total_current_period + value;\'>\n
<table:table-cell\n
tal:condition=\'value\'\n
table:style-name=\'report-content-currency1\'\n
tal:attributes=\'office:value value\'\n
office:value-type=\'float\' office:value=\'123456.56\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
<table:table-cell\n
tal:condition=\'not: value\'\n
table:style-name=\'report-content-currency1\'>\n
<text:p></text:p>\n
</table:table-cell>\n
</tal:block>\n
\n
<!-- previous period -->\n
<tal:block\n
tal:define=\'value python: -getInventoryPreviousPeriod(node_category=node_category);\n
global total_previous_period python: total_previous_period + value;\'>\n
<table:table-cell\n
tal:condition=\'value\'\n
table:style-name=\'report-content-currency1\'\n
tal:attributes=\'office:value value\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
<table:table-cell\n
tal:condition=\'not:value\'\n
table:style-name=\'report-content-currency1\'>\n
<text:p></text:p>\n
</table:table-cell>\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
</table:table-row>\n
<!-- }}} -->\n
\n
<!-- LEVEL 2 {{{ -->\n
<tal:block tal:repeat="cat_level_2 python:cat_level_1.contentValues(sort_on=((\'int_index\', \'ascending\'),))">\n
\n
<!-- if we have sub content at level 3 to display, we will only display a title ...\n
-->\n
<table:table-row table:style-name=\'ro4\' tal:condition="cat_level_2/contentIds">\n
<table:table-cell table:style-name=\'report-content-heading2\'\n
office:value-type=\'string\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'>\n
<text:p> <text:span\n
text:style-name=\'T1\'\n
tal:define="global title_level2 cat_level_2/getTranslatedTitle"\n
tal:content="title_level2">Level 2</text:span></text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:table-cell table:style-name=\'report-content-currency2\'>\n
<text:p></text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-content-currency2\'>\n
<text:p></text:p></table:table-cell>\n
</table:table-row>\n
<!-- ... otherwise, if we have nothing deeper to display, we display the value at this level. -->\n
<table:table-row table:style-name=\'ro4\'\n
tal:condition="not: cat_level_2/contentIds"\n
tal:define="node_category cat_level_2/getRelativeUrl;">\n
<table:table-cell table:style-name=\'report-content-heading2\'\n
office:value-type=\'string\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'>\n
<text:p> <text:span\n
text:style-name=\'T1\'\n
tal:define="global title_level2 cat_level_2/getTranslatedTitle"\n
tal:content="title_level2">Level 2</text:span></text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/>\n
<table:covered-table-cell table:style-name="ce9"/>\n
\n
<!-- current period: -->\n
<tal:block\n
tal:define=\'value python: -getInventory(node_category=node_category);\n
global total_current_period python: total_current_period + value;\'>\n
<table:table-cell\n
tal:condition=\'value\'\n
tal:attributes=\'office:value value\'\n
table:style-name=\'report-content-currency2\'\n
office:value-type=\'float\'\n
office:value=\'123456.56\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
<table:table-cell\n
tal:condition=\'not:value\'\n
table:style-name=\'report-content-currency2\'>\n
<text:p></text:p>\n
</table:table-cell>\n
</tal:block>\n
\n
<!-- previous period -->\n
<tal:block \n
tal:define=\'value python: -getInventoryPreviousPeriod(node_category=node_category);\n
global total_previous_period python: total_previous_period + value;\'>\n
<table:table-cell\n
tal:condition=\'value\'\n
tal:attributes=\'office:value value\'\n
table:style-name=\'report-content-currency2\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
<table:table-cell\n
tal:condition=\'not:value\'\n
table:style-name=\'report-content-currency2\'>\n
<text:p></text:p>\n
</table:table-cell>\n
</tal:block>\n
</table:table-row>\n
\n
<!-- }}} -->\n
\n
<!-- LEVEL 3 {{{ -->\n
<table:table-row tal:repeat="cat_level_3 python: cat_level_2.contentValues(sort_on=((\'int_index\', \'ascending\'),))">\n
<tal:block tal:define="node_category cat_level_3/getRelativeUrl;">\n
<table:table-cell table:style-name=\'report-content-heading3\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'\n
office:value-type=\'string\'>\n
<text:p tal:content="cat_level_3/getTranslatedTitle">Level 3</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/><table:covered-table-cell table:style-name="ce9"/>\n
\n
<!-- current period; -->\n
<tal:block\n
tal:define=\'value python: -getInventory(node_category=node_category);\n
global total_current_period python: total_current_period + value;\'>\n
<table:table-cell\n
tal:condition=\'value\'\n
tal:attributes=\'office:value value\'\n
table:style-name=\'report-content-currency3\'\n
office:value-type=\'float\'\n
office:value=\'123456.56\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
<table:table-cell\n
tal:condition=\'not:value\'\n
table:style-name=\'report-content-currency3\'>\n
<text:p></text:p>\n
</table:table-cell>\n
</tal:block>\n
\n
<!-- previous period -->\n
<tal:block\n
tal:define=\'value python: -getInventoryPreviousPeriod(node_category=node_category);\n
global total_previous_period python: total_previous_period + value;\'>\n
<table:table-cell\n
tal:condition=\'value\'\n
tal:attributes=\'office:value value\'\n
table:style-name=\'report-content-currency3\'\n
office:value=\'123456.56\'\n
office:value-type=\'float\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
<table:table-cell\n
tal:condition=\'not:value\'\n
table:style-name=\'report-content-currency3\'>\n
<text:p></text:p>\n
</table:table-cell>\n
\n
</tal:block>\n
</tal:block>\n
</table:table-row>\n
</tal:block>\n
</tal:block>\n
<!-- }}} --> \n
\n
<!-- TOTAL LEVEL 1 {{{ -->\n
<table:table-row table:style-name=\'ro7\'>\n
<table:table-cell table:style-name=\'report-stat1\'\n
office:value-type=\'string\'\n
table:number-rows-spanned=\'1\'\n
table:number-columns-spanned=\'3\'>\n
<text:p tal:define=\'global level1_counter python: level1_counter + 1;\'\n
i18n:translate="" i18n:domain="ui">Total <tal:block i18n:name="category_level_1_title" tal:content=\'level1_title\'>\n
</tal:block> <tal:block i18n:name="level1_counter" tal:content=\'level1_counter\'>\n
</tal:block></text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/><table:covered-table-cell table:style-name="ce9"/>\n
\n
<!-- current_period -->\n
<table:table-cell \n
table:style-name=\'report-stat-currency1\'\n
tal:define=\'global grand_total_current_period python: grand_total_current_period + total_current_period\'\n
tal:attributes="office:value total_current_period"\n
office:value-type=\'float\' office:value=\'123456.56\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
\n
<!-- previous period -->\n
<table:table-cell\n
table:style-name=\'report-stat-currency1\'\n
tal:define=\'global grand_total_previous_period python: grand_total_previous_period + total_previous_period\'\n
tal:attributes="office:value total_previous_period"\n
office:value-type=\'float\'\n
office:value=\'123456.56\'>\n
<text:p>123 456,56</text:p>\n
</table:table-cell>\n
</table:table-row>\n
<!-- }}} -->\n
\n
</tal:block> <!-- loop level 2 -->\n
\n
<!-- TOTAL INCOME {{{ -->\n
<table:table-row>\n
<table:table-cell table:style-name=\'report-stat2\'\n
office:value-type=\'string\'\n
table:number-rows-spanned=\'1\'\n
table:number-columns-spanned=\'3\'>\n
<text:p i18n:translate="" i18n:domain="ui">Total <tal:block i18n:name="class" i18n:translate=\'\' i18n:domain="ui" tal:content=\'string:Income\'></tal:block></text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/><table:covered-table-cell table:style-name="ce9"/>\n
<table:table-cell table:style-name=\'report-stat-currency2\'\n
tal:attributes="office:value python: grand_total_current_period"\n
office:value-type=\'float\' office:value=\'123456.56\'><text:p>123 456,56</text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-stat-currency2\'\n
tal:attributes="office:value python: grand_total_previous_period"\n
office:value=\'123456.56\' office:value-type=\'float\'><text:p>123 456,56</text:p></table:table-cell>\n
</table:table-row>\n
<!-- }}} --> \n
\n
<!-- NET LOSS {{{ -->\n
<table:table-row tal:condition="python: net_income &gt; 0 or net_income_previous_period &gt; 0">\n
<table:table-cell table:style-name=\'report-stat2\'\n
office:value-type=\'string\'\n
table:number-rows-spanned=\'1\'\n
table:number-columns-spanned=\'3\'>\n
<text:p i18n:translate="" i18n:domain="ui">Net Loss</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/><table:covered-table-cell table:style-name="ce9"/>\n
<table:table-cell table:style-name=\'report-stat-currency2\'\n
tal:attributes="office:value python: net_income"\n
tal:define="global grand_total_current_period python: grand_total_current_period + net_income"\n
office:value-type=\'float\' office:value=\'123456.56\'><text:p>123 456,56</text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-stat-currency2\'\n
tal:attributes="office:value python: net_income_previous_period"\n
tal:define="global grand_total_previous_period python: grand_total_previous_period + net_income_previous_period"\n
office:value=\'\' office:value-type=\'float\'><text:p></text:p></table:table-cell>\n
</table:table-row>\n
\n
<!-- TOTAL LEVEL 2 {{{ -->\n
<table:table-row>\n
<table:table-cell table:style-name=\'report-stat2\'\n
office:value-type=\'string\'\n
table:number-rows-spanned=\'1\'\n
table:number-columns-spanned=\'3\'>\n
<text:p i18n:translate="" i18n:domain="ui">Total</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:style-name="ce9"/><table:covered-table-cell table:style-name="ce9"/>\n
<table:table-cell table:style-name=\'report-stat-currency2\'\n
tal:attributes="office:value python: grand_total_current_period"\n
office:value-type=\'float\' office:value=\'123456.56\'><text:p>123 456,56</text:p></table:table-cell>\n
<table:table-cell table:style-name=\'report-stat-currency2\'\n
tal:attributes="office:value python: grand_total_previous_period"\n
office:value=\'123456.56\' office:value-type=\'float\'><text:p>123 456,56</text:p></table:table-cell>\n
</table:table-row>\n
\n
<table:table-row table:style-name=\'ro9\'>\n
<table:table-cell table:style-name=\'bottom_border\'\n
table:number-columns-spanned=\'3\'\n
table:number-rows-spanned=\'1\'/>\n
<table:table-cell table:style-name=\'bottom_border\'/>\n
<table:table-cell table:style-name=\'bottom_border\'/>\n
<table:table-cell table:style-name=\'bottom_border\'/>\n
<table:table-cell table:style-name=\'bottom_border\'/>\n
</table:table-row>\n
<!-- }}} --> \n
\n
</tal:block> <!-- loop level 1 -->\n
</table:table>\n
</office:spreadsheet>\n
</office:body>\n
</office:document-content><!-- vim: filetype=xml tw=1000 foldmethod=marker\n
-->\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/vnd.oasis.opendocument.spreadsheet</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountModule_viewJapaneseProfitAndLossReport</string> </value>
</item>
<item>
<key> <string>ooo_stylesheet</string> </key>
<value> <string>Base_getODSStyleSheet</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Profit and Loss Report based on Japanese GAP category</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -50,124 +50,115 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>root = context.portal_categories.gap.jp.afbe\n
\n
return [\n
(depth,\n
root.restrictedTraverse(path))\n
for depth, path in (\n
\n
#######################\n
# 流動資産\n
#######################\n
\n
# 現金預金\n
#######################\n
(2, \'5/53\'), # 現金\n
# 小口現金\n
\n
(2, \'5/51\'), # 普通預金 (GAP上では預金があるだけ。細かい分類はない)\n
# 当座預金\n
# 定期預金\n
# 定期積金\n
# 通知預金\n
# 別段預金\n
\n
#売上債権\n
<value> <string>portal = context.getPortalObject()\n
portal_simulation = context.portal_simulation\n
\n
gap_root = context.portal_categories.gap.jp.afbe\n
\n
portal_type = context.getPortalAccountingMovementTypeList()\n
\n
request = context.REQUEST\n
\n
at_date = request[\'at_date\'].latestTime()\n
simulation_state = request["simulation_state"]\n
section_uid = context.Base_getSectionUidListForSectionCategory(request["section_category"], request["section_category_strict"])\n
\n
def getGapCategoryValueList(gap_path_list):\n
result = []\n
for gap_path in gap_path_list:\n
category = gap_root.restrictedTraverse(gap_path)\n
subcategory_list = category.getCategoryChildValueList(include_if_child=0)\n
if not subcategory_list:\n
result.append(category)\n
else:\n
for subcategory in subcategory_list:\n
result.append(subcategory)\n
return result\n
\n
def getInventory(node_category_value):\n
return portal_simulation.getInventoryAssetPrice(section_uid=section_uid, simulation_state=simulation_state, function=request.get("function") or None, project=request.get("project") or None, at_date=at_date, portal_type=portal_type, node_category=node_category_value.getRelativeUrl())\n
\n
data_dict = {}\n
\n
data_dict[\'asset_list\'] = asset_list = []\n
data_dict[\'liability_list\'] = liability_list = []\n
data_dict[\'equity_list\'] = equity_list = []\n
data_dict[\'company_name\'] = portal.portal_categories.restrictedTraverse(request["section_category"]).getTranslatedTitle()\n
data_dict[\'date\'] = \'%d-%d-%d\' % (at_date.year(), at_date.month(), at_date.day())\n
\n
def addItem(list_, section_title=\'\', group_title=\'\', title=\'\', amount=None):\n
list_.append({\'section_title\':section_title, \'group_title\':group_title, \'title\':title, \'amount\':amount})\n
\n
def addGapCategoryItem(list_, gap_path_list):\n
total_amount = 0\n
for category in getGapCategoryValueList(gap_path_list):\n
amount = getInventory(category)\n
addItem(list_, \'\', \'\', category.getTitle(), amount)\n
total_amount += amount\n
addItem(list_, title=\'Total\', amount=total_amount)\n
return total_amount\n
\n
\n
\n
########################\n
# Assets\n
########################\n
current_asset_total_amount = 0\n
fixed_asset_total_amount = 0\n
deferred_asset_total_amount = 0\n
\n
addItem(asset_list, \'Current Assets\')\n
current_asset_total_amount += addGapCategoryItem(asset_list, (\'5/53\', \'5/51\', \'4/41\', \'4/49\', \'5/50/503\', \'3\', \'4/44/441/4412\', \'4/44/443\'))\n
\n
addItem(asset_list)\n
\n
addItem(asset_list, \'Fixed Assets\')\n
\n
addItem(asset_list, group_title=\'Tangible Fixed Assets\')\n
fixed_asset_total_amount += addGapCategoryItem(asset_list, (\'2/21\', \'2/28\'))\n
\n
addItem(asset_list, group_title=\'Intangible Fixed Assets\')\n
fixed_asset_total_amount += addGapCategoryItem(asset_list, (\'2/20/205\', \'2/20/207/2071\'))\n
\n
addItem(asset_list, group_title=\'Investments and Other Assets\')\n
fixed_asset_total_amount += addGapCategoryItem(asset_list, (\'2/27/271\',\'2/20/208/2081\'))\n
\n
addItem(asset_list, title=\'Total\', amount=fixed_asset_total_amount)\n
\n
addItem(asset_list)\n
\n
addItem(asset_list, \'Deferred Assets\')\n
deferred_asset_total_amount += addGapCategoryItem(asset_list, (\'2/20/201\',))\n
\n
addItem(asset_list)\n
\n
addItem(asset_list, title=\'Total\', amount=current_asset_total_amount + fixed_asset_total_amount + deferred_asset_total_amount)\n
\n
\n
\n
########################\n
# Liabilities\n
########################\n
liability_total_amount = 0\n
\n
addItem(liability_list, \'Current Liabilities\')\n
liability_total_amount += addGapCategoryItem(liability_list, (\'4/40\', \'4/46/461\', \'4/44/443/4431\', \'4/44/441/4412/44121\', \'4/44/441/4411/44112\', \'4/42/422\'))\n
\n
addItem(liability_list, \'Fixed Liabilities\')\n
liability_total_amount += addGapCategoryItem(liability_list, (\'5/50/505\', \'2/27/272\', \'4/42/423\', \'2/20/207/2072\', \'2/20/208/2082\'))\n
\n
addItem(liability_list)\n
\n
addItem(liability_list, title=\'Total\', amount=liability_total_amount)\n
\n
\n
\n
########################\n
# Equity\n
########################\n
addGapCategoryItem(equity_list, (\'1/10\', \'1/11\', \'1/12\', \'1/13\'))\n
\n
(2, \'4/41\'), # 受取手形\n
# 売掛金\n
# 前渡金 (GAPには前払金とあるが、一般的には前渡金のようである)\n
# 立替金\n
# 仮払金\n
# 未収入金\n
# 前払費用\n
# 未収収益\n
# 短期貸付金 (GAP上は貸付金)\n
\n
(2, \'4/49\'), # 貸倒引当金\n
\n
# 有価証券\n
#########################\n
(2, \'5/50/503\'), # 有価証券\n
\n
# 棚卸資産\n
#########################\n
(2, \'3\'), # 商品 (GAPの中に棚卸引当金というのがあるけど、これはなに?)\n
# 製品\n
# 半製品\n
# 仕掛品\n
# 原材料\n
# 貯蔵品\n
\n
# その他の流動資産\n
#########################\n
(2, \'4/44/441/4412\'), # 仮払消費税等\n
# 未収消費税等\n
\n
# 繰延税金資産(流動) (GAPの中に固定資産のものはあるが、流動資産のものはない)\n
\n
(2, \'4/44/443\'), # 仮払法人税等\n
\n
\n
###########################\n
# 固定資産\n
###########################\n
\n
# 有形固定資産\n
###########################\n
\n
(2, \'2/21\'), # 建物\n
# 構築物\n
# 車両・運搬具\n
# 土地\n
# 建設仮勘定\n
\n
# 建物付属設備 (GAPに該当なし)\n
# 機械・装置 (GAPに該当なし)\n
# 工具・備品・医療器具備品 (GAPに該当なし)\n
\n
(2, \'2/28\'), # 減価償却累計額\n
\n
#######################\n
# 無形固定資産\n
#######################\n
(2, \'2/20/205\'), # ソフトウェア\n
# 電話加入権\n
# 特許権\n
# 借地権\n
\n
(2, \'2/20/207/2071\'), # のれん\n
\n
# 水道施設利用権 (GAPに該当しない)\n
\n
\n
# 投資その他の資産\n
#####################\n
(2, \'2/27/271\'), # 投資有価証券\n
# 長期前払費用\n
# 長期貸付金\n
# 保証金 (GAP上の差入れ保証金に該当)\n
\n
# 関係会社株式 (GAPに該当しない)\n
# 出資金 (GAPに該当しない)\n
# ゴルフ会員権 (GAPに該当しない)\n
# 敷金 (GAPに該当しない)\n
# 保険積立金 (GAPに該当しない)\n
# 破産更生債権 (GAPに該当しない)\n
\n
(2, \'2/20/208/2081\'), # 繰延税金資産(固定)\n
\n
# 繰延資産\n
############################\n
(2, \'2/20/201\'), # 創立費\n
# 開業費\n
# 新株発行費 (GAP上の株式交付費)\n
# 社債発行費\n
# 開発費 (GAP上の繰越研究開発費)\n
\n
)]\n
return data_dict\n
</string> </value>
</item>
<item>
......@@ -206,12 +197,30 @@ return [\n
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>root</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>depth</string>
<string>path</string>
<string>portal</string>
<string>portal_simulation</string>
<string>gap_root</string>
<string>portal_type</string>
<string>request</string>
<string>_getitem_</string>
<string>at_date</string>
<string>simulation_state</string>
<string>section_uid</string>
<string>getGapCategoryValueList</string>
<string>getInventory</string>
<string>data_dict</string>
<string>_write_</string>
<string>asset_list</string>
<string>liability_list</string>
<string>equity_list</string>
<string>None</string>
<string>addItem</string>
<string>addGapCategoryItem</string>
<string>current_asset_total_amount</string>
<string>fixed_asset_total_amount</string>
<string>deferred_asset_total_amount</string>
<string>_inplacevar_</string>
<string>liability_total_amount</string>
</tuple>
</value>
</item>
......@@ -228,7 +237,7 @@ return [\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountModule_getJapaneseGapAssetCategoryList</string> </value>
<value> <string>AccountingTransactionModule_getJapaneseBalanceSheetDataDict</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
......@@ -50,47 +50,121 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>root = context.portal_categories.gap.jp.afbe\n
\n
return [\n
(depth,\n
root.restrictedTraverse(path))\n
for depth, path in (\n
######################\n
# 流動負債\n
######################\n
(2, \'4/40\'), # 支払手形\n
# 買掛金\n
# 短期借入金\n
# 未払金\n
# 未払費用\n
# 前受金\n
# 預り金\n
# 前受収益\n
# 仮受金 \n
\n
(2, \'4/46/461\'), # 未払配当金\n
\n
# コマーシャルペーパー(該当GAPなし)\n
# 1年内返済予定の長期借入金、社債等(該当GAPなし)\n
\n
(2, \'4/44/443/4431\'), # 未払法人税等\n
(2, \'4/44/441/4412/44121\'), # 未払消費税等\n
(2, \'4/44/441/4411/44112\'), # 仮受消費税等\n
(2, \'4/42/422\'), # 賞与引当金\n
\n
# 繰延税金負債(流動) (該当GAPなし、流動負債にもこれが必要)\n
\n
######################\n
# 固定負債\n
######################\n
(2, \'5/50/505\'), # 社債 (GAP上では財務(資産っぽい)の中にあるけど正しいのか?)\n
(2, \'2/27/272\'), # 長期借入金 (GAP上では固定資産の中にあるけど正しいのか?)\n
(2, \'4/42/423\'), # 退職給付引当金 (GAP上では流動資産の中にあるけど正しいのか?)\n
(2, \'2/20/207/2072\'), # 負ののれん\n
(2, \'2/20/208/2082\'), # 繰延税金負債(固定) (GAP上では固定資産の中にあるけど正しいのか?)\n
\n
)]\n
<value> <string>portal = context.getPortalObject()\n
portal_simulation = context.portal_simulation\n
\n
gap_root = context.portal_categories.gap.jp.afbe\n
\n
portal_type = context.getPortalAccountingMovementTypeList()\n
\n
request = context.REQUEST\n
\n
at_date = request[\'at_date\'].latestTime()\n
simulation_state = request["simulation_state"]\n
section_uid = context.Base_getSectionUidListForSectionCategory(request["section_category"], request["section_category_strict"])\n
\n
def getGapCategoryValueList(gap_path_list):\n
result = []\n
for gap_path in gap_path_list:\n
category = gap_root.restrictedTraverse(gap_path)\n
subcategory_list = category.getCategoryChildValueList(include_if_child=0)\n
if not subcategory_list:\n
result.append(category)\n
else:\n
for subcategory in subcategory_list:\n
result.append(subcategory)\n
return result\n
\n
def getInventory(node_category_value):\n
return portal_simulation.getInventoryAssetPrice(section_uid=section_uid, simulation_state=simulation_state, function=request.get("function") or None, project=request.get("project") or None, at_date=at_date, portal_type=portal_type, node_category=node_category_value.getRelativeUrl())\n
\n
data_dict = {}\n
\n
data_dict[\'data_list\'] = data_list = []\n
data_dict[\'company_name\'] = portal.portal_categories.restrictedTraverse(request["section_category"]).getTranslatedTitle()\n
data_dict[\'date\'] = \'%d-%d-%d\' % (at_date.year(), at_date.month(), at_date.day())\n
\n
def addItem(section_title=\'\', group_title=\'\', title=\'\', amount=None):\n
data_list.append({\'section_title\':section_title, \'group_title\':group_title, \'title\':title, \'amount\':amount})\n
\n
def addGapCategoryItem(gap_path_list):\n
total_amount = 0\n
for category in getGapCategoryValueList(gap_path_list):\n
amount = getInventory(category)\n
addItem(\'\', \'\', category.getTitle(), amount)\n
total_amount += amount\n
addItem(title=\'Total\', amount=total_amount)\n
return total_amount\n
\n
sale_gap_path_list = [\'7/70\']\n
cos_gap_path_list = [\'6/60\']\n
non_operating_income_gap_path_list = [\'7/75\', \'7/76\', \'7/78\']\n
non_operating_expense_gap_path_list = [\'6/65\', \'6/66\']\n
sga_gap_path_list = [\'6/61\', \'6/62\', \'6/63/635\', \'6/64\', \'6/68\']\n
extraordinary_income_gap_path_list = [\'7/77\']\n
extraordinary_expense_gap_path_list = [\'6/67\']\n
corporation_tax_gap_path_list = [\'6/63/636\']\n
corporation_tax_adjustment_gap_path_list = [\'1/14\']\n
\n
\n
\n
addItem(\'Sales\')\n
sale_amount = addGapCategoryItem([\'7/70\'])\n
addItem(\'Cost of Sales\')\n
cost_of_sale_amount = addGapCategoryItem([\'6/60\'])\n
\n
addItem()\n
\n
gross_profit_amount = sale_amount - cost_of_sale_amount\n
addItem(\'Gross Profit\', amount=gross_profit_amount)\n
\n
addItem()\n
\n
addItem(\'Selling and General Administrative Expenses\')\n
sga_amount = addGapCategoryItem([\'6/61\', \'6/62\', \'6/63/635\', \'6/64\', \'6/68\'])\n
\n
addItem()\n
\n
operating_profit_amount = gross_profit_amount - sga_amount\n
addItem(\'Operating Profit\', amount=operating_profit_amount)\n
\n
addItem()\n
\n
addItem(\'Non-Operating Income\')\n
non_operating_income_amount = addGapCategoryItem([\'7/75\', \'7/76\', \'7/78\'])\n
addItem(\'Non-Operating Expense\')\n
non_operating_expense_amount = addGapCategoryItem([\'6/65\', \'6/66\'])\n
\n
addItem()\n
\n
ordinary_profit_amount = operating_profit_amount + non_operating_income_amount - non_operating_expense_amount\n
addItem(\'Ordinary Profit\', amount=ordinary_profit_amount)\n
\n
addItem()\n
\n
addItem(\'Extraordinary Income\')\n
extraordinary_income_amount = addGapCategoryItem([\'7/77\'])\n
addItem(\'Extraordinary Expense\')\n
extraordinary_expense_amount = addGapCategoryItem([\'6/67\'])\n
\n
addItem()\n
\n
pretax_income_amount = ordinary_profit_amount + extraordinary_income_amount - extraordinary_expense_amount\n
addItem(\'Pretax Income\', amount=pretax_income_amount)\n
\n
addItem()\n
\n
addItem(\'Corporation Tax\')\n
corporation_tax_amount = addGapCategoryItem([\'6/63/636\'])\n
addItem(\'Corporation Tax Adjustment\')\n
corporation_tax_adjustment_amount = addGapCategoryItem([\'1/14\'])\n
\n
addItem()\n
\n
net_income_amount = pretax_income_amount - corporation_tax_amount + corporation_tax_adjustment_amount\n
addItem(\'Net Income\', amount=net_income_amount)\n
\n
return data_dict\n
</string> </value>
</item>
<item>
......@@ -129,12 +203,46 @@ return [\n
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>root</string>
<string>append</string>
<string>$append0</string>
<string>_getiter_</string>
<string>depth</string>
<string>path</string>
<string>portal</string>
<string>portal_simulation</string>
<string>gap_root</string>
<string>portal_type</string>
<string>request</string>
<string>_getitem_</string>
<string>at_date</string>
<string>simulation_state</string>
<string>section_uid</string>
<string>getGapCategoryValueList</string>
<string>getInventory</string>
<string>data_dict</string>
<string>_write_</string>
<string>data_list</string>
<string>None</string>
<string>addItem</string>
<string>addGapCategoryItem</string>
<string>sale_gap_path_list</string>
<string>cos_gap_path_list</string>
<string>non_operating_income_gap_path_list</string>
<string>non_operating_expense_gap_path_list</string>
<string>sga_gap_path_list</string>
<string>extraordinary_income_gap_path_list</string>
<string>extraordinary_expense_gap_path_list</string>
<string>corporation_tax_gap_path_list</string>
<string>corporation_tax_adjustment_gap_path_list</string>
<string>sale_amount</string>
<string>cost_of_sale_amount</string>
<string>gross_profit_amount</string>
<string>sga_amount</string>
<string>operating_profit_amount</string>
<string>non_operating_income_amount</string>
<string>non_operating_expense_amount</string>
<string>ordinary_profit_amount</string>
<string>extraordinary_income_amount</string>
<string>extraordinary_expense_amount</string>
<string>pretax_income_amount</string>
<string>corporation_tax_amount</string>
<string>corporation_tax_adjustment_amount</string>
<string>net_income_amount</string>
</tuple>
</value>
</item>
......@@ -151,7 +259,7 @@ return [\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountModule_getJapaneseGapDebtCategoryList</string> </value>
<value> <string>AccountingTransactionModule_getJapaneseProfitAndLossDataDict</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="OOoTemplate" module="Products.ERP5OOo.OOoTemplate"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>OLE_documents_zipstring</string> </key>
<value> <string encoding="base64">UEsDBBQAAAAIADmELT1E1YD/SgEAAGgHAAAVAAAATUVUQS1JTkYvbWFuaWZlc3QueG1stZVNbsIw
EIX3nCLyPnHLqooIlVqpJ6AHGJxJsOQ/ecYIbt8EFUhbFgXFO9saf++N7RmvXg/WFHuMpL1rxHP1
JAp0yrfa9Y343HyUL+J1vVhZcLpD4vo8KIZ9ji7TRqToag+kqXZgkWpWtQ/oWq+SRcf1z/h6VFov
iiu40wbLITAei6sYthpKPgZsBIRgtAIefMq9a6uTVjWVqChEhJZ2iCyukElyy8lyl4wpA/CuEVLI
u6wwHlgO+dymKe94dDMGzMklPhqk2bEWGR6A3oZtdsluHWhDks/DKrh+bvgsvHfvOt2neHpTtJSg
FBocpj5KlWJ87BLv18oiEKLvIxJtIZNAZzww5nLvQwpDTac8+JGc7WDYe5MNri30SPJNs4WQqQ6+
NbKwiYHTI4/yd/un5MbirJKu1FTjfzbmbczIPHyXl9a8kn9+y/UXUEsBAhQAFAAAAAgAOYQtPUTV
gP9KAQAAaAcAABUAAAAAAAAAAAAAAAAAAAAAAE1FVEEtSU5GL21hbmlmZXN0LnhtbFBLBQYAAAAA
AQABAEMAAAB9AQAAAAA=</string> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<?xml version=\'1.0\' encoding=\'utf-8\'?>\n
<office:document-content xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:rpt="http://openoffice.org/2005/report" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:i18n="http://xml.zope.org/namespaces/i18n" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:metal="http://xml.zope.org/namespaces/metal" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:rdfa="http://docs.oasis-open.org/opendocument/meta/rdfa#" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" office:version="1.2" tal:attributes="dummy python:request.RESPONSE.setHeader(\'Content-Type\', \'text/html;; charset=utf-8\')">\n
<office:scripts/>\n
<office:font-face-decls>\n
<style:font-face style:name="Liberation Sans" svg:font-family="\'Liberation Sans\'" style:font-family-generic="swiss" style:font-pitch="variable"/>\n
<style:font-face style:name="UmePlus P Gothic" svg:font-family="\'UmePlus P Gothic\'" style:font-family-generic="system" style:font-pitch="variable"/>\n
</office:font-face-decls>\n
<office:automatic-styles>\n
<style:style style:name="co1" style:family="table-column">\n
<style:table-column-properties fo:break-before="auto" style:column-width="2.267cm"/>\n
</style:style>\n
<style:style style:name="co2" style:family="table-column">\n
<style:table-column-properties fo:break-before="auto" style:column-width="2.658cm"/>\n
</style:style>\n
<style:style style:name="ro1" style:family="table-row">\n
<style:table-row-properties style:row-height="0.792cm" fo:break-before="auto" style:use-optimal-row-height="true"/>\n
</style:style>\n
<style:style style:name="ro2" style:family="table-row">\n
<style:table-row-properties style:row-height="0.894cm" fo:break-before="auto" style:use-optimal-row-height="true"/>\n
</style:style>\n
<style:style style:name="ro3" style:family="table-row">\n
<style:table-row-properties style:row-height="0.453cm" fo:break-before="auto" style:use-optimal-row-height="true"/>\n
</style:style>\n
<style:style style:name="ta1" style:family="table" style:master-page-name="Default">\n
<style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n
</style:style>\n
<number:date-style style:name="N33">\n
<number:month/>\n
<number:text></number:text>\n
<number:day/>\n
<number:text></number:text>\n
</number:date-style>\n
<style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default">\n
<style:table-cell-properties fo:background-color="#e6e6e6"/>\n
</style:style>\n
<style:style style:name="ce2" style:family="table-cell" style:parent-style-name="Default">\n
<style:text-properties fo:font-size="18pt" style:font-size-asian="18pt" style:font-size-complex="18pt"/>\n
</style:style>\n
<style:style style:name="ce3" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N33">\n
<style:text-properties fo:font-size="18pt" style:font-size-asian="18pt" style:font-size-complex="18pt"/>\n
</style:style>\n
<style:style style:name="ta_extref" style:family="table">\n
<style:table-properties table:display="false"/>\n
</style:style>\n
</office:automatic-styles>\n
<office:body\n
tal:define="data_dict here/AccountingTransactionModule_getJapaneseBalanceSheetDataDict;\n
asset_list data_dict/asset_list;\n
liability_list data_dict/liability_list;\n
equity_list data_dict/equity_list;">\n
<office:spreadsheet>\n
<table:table table:name="Asset" table:style-name="ta1" table:print="false">\n
<table:table-column table:style-name="co1" table:number-columns-repeated="5" table:default-cell-style-name="Default"/>\n
<table:table-row table:style-name="ro1">\n
<table:table-cell office:value-type="string" table:number-columns-spanned="3" table:number-rows-spanned="2">\n
<text:p tal:content="data_dict/company_name">Company name</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated="2"/>\n
<table:table-cell table:style-name="ce2" office:value-type="string" table:number-columns-spanned="2" table:number-rows-spanned="1">\n
<text:p i18n:translate="" i18n:domain="ui">Balance sheet</text:p>\n
</table:table-cell>\n
<table:covered-table-cell/>\n
</table:table-row>\n
<table:table-row table:style-name="ro2">\n
<table:covered-table-cell table:number-columns-repeated="3"/>\n
<table:table-cell table:style-name="ce3" office:value-type="date" tal:attributes="office:date-value data_dict/date" office:date-value="2010-09-13" table:number-columns-spanned="2" table:number-rows-spanned="1">\n
<text:p>9月13日</text:p>\n
</table:table-cell>\n
<table:covered-table-cell/>\n
</table:table-row>\n
<table:table-row table:style-name="ro3">\n
<table:table-cell table:number-columns-repeated="5"/>\n
</table:table-row>\n
<table:table-row table:style-name="ro3">\n
<table:table-cell table:style-name="ce1" office:value-type="string">\n
<text:p>Asset</text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name="ce1" table:number-columns-repeated="4"/>\n
</table:table-row>\n
\n
<tal:block repeat="item asset_list">\n
\n
<table:table-row table:style-name="ro3">\n
<table:table-cell/>\n
<table:table-cell office:value-type="string">\n
<text:p tal:content="item/section_title">Current asset</text:p>\n
</table:table-cell>\n
<table:table-cell office:value-type="string">\n
<text:p tal:content="item/group_title">Tangible Fixed Asset</text:p>\n
</table:table-cell>\n
<table:table-cell office:value-type="string">\n
<text:p tal:content="item/title">Money</text:p>\n
</table:table-cell>\n
<table:table-cell tal:condition="python:item[\'amount\'] is None"/>\n
<table:table-cell office:value-type="float" tal:condition="python:item[\'amount\'] is not None" tal:attributes="office:value item/amount" office:value="10000">\n
<text:p>10000</text:p>\n
</table:table-cell>\n
</table:table-row>\n
\n
</tal:block>\n
\n
</table:table>\n
\n
\n
\n
<table:table table:name="Liability + Equity" table:style-name="ta1" table:print="false">\n
<table:table-column table:style-name="co1" table:default-cell-style-name="Default"/>\n
<table:table-column table:style-name="co2" table:default-cell-style-name="Default"/>\n
<table:table-column table:style-name="co1" table:number-columns-repeated="3" table:default-cell-style-name="Default"/>\n
<table:table-row table:style-name="ro1">\n
<table:table-cell office:value-type="string" table:number-columns-spanned="3" table:number-rows-spanned="2">\n
<text:p tal:content="data_dict/company_name">Company name</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated="2"/>\n
<table:table-cell table:style-name="ce2" office:value-type="string" table:number-columns-spanned="2" table:number-rows-spanned="1">\n
<text:p>Balance sheet</text:p>\n
</table:table-cell>\n
<table:covered-table-cell/>\n
</table:table-row>\n
<table:table-row table:style-name="ro2">\n
<table:covered-table-cell table:number-columns-repeated="3"/>\n
<table:table-cell table:style-name="ce3" office:value-type="date" tal:attributes="office:date-value data_dict/date" office:date-value="2010-09-13" table:number-columns-spanned="2" table:number-rows-spanned="1">\n
<text:p>9月13日</text:p>\n
</table:table-cell>\n
<table:covered-table-cell/>\n
</table:table-row>\n
\n
\n
<table:table-row table:style-name="ro3">\n
<table:table-cell table:number-columns-repeated="5"/>\n
</table:table-row>\n
<table:table-row table:style-name="ro3">\n
<table:table-cell table:style-name="ce1" office:value-type="string">\n
<text:p>Liability</text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name="ce1" table:number-columns-repeated="4"/>\n
</table:table-row>\n
\n
<tal:block repeat="item liability_list">\n
\n
<table:table-row table:style-name="ro3">\n
<table:table-cell/>\n
<table:table-cell office:value-type="string">\n
<text:p tal:content="item/section_title">Current asset</text:p>\n
</table:table-cell>\n
<table:table-cell office:value-type="string">\n
<text:p tal:content="item/group_title">Tangible Fixed Asset</text:p>\n
</table:table-cell>\n
<table:table-cell office:value-type="string">\n
<text:p tal:content="item/title">Money</text:p>\n
</table:table-cell>\n
<table:table-cell tal:condition="python:item[\'amount\'] is None"/>\n
<table:table-cell office:value-type="float" tal:condition="python:item[\'amount\'] is not None" tal:attributes="office:value item/amount" office:value="10000">\n
<text:p>10000</text:p>\n
</table:table-cell>\n
</table:table-row>\n
\n
</tal:block>\n
\n
\n
\n
\n
<table:table-row table:style-name="ro3">\n
<table:table-cell table:number-columns-repeated="5"/>\n
</table:table-row>\n
<table:table-row table:style-name="ro3">\n
<table:table-cell table:style-name="ce1" office:value-type="string">\n
<text:p>Equity</text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name="ce1" table:number-columns-repeated="4"/>\n
</table:table-row>\n
\n
<tal:block repeat="item equity_list">\n
\n
<table:table-row table:style-name="ro3">\n
<table:table-cell/>\n
<table:table-cell office:value-type="string">\n
<text:p tal:content="item/section_title">Current asset</text:p>\n
</table:table-cell>\n
<table:table-cell office:value-type="string">\n
<text:p tal:content="item/group_title">Tangible Fixed Asset</text:p>\n
</table:table-cell>\n
<table:table-cell office:value-type="string">\n
<text:p tal:content="item/title">Money</text:p>\n
</table:table-cell>\n
<table:table-cell tal:condition="python:item[\'amount\'] is None"/>\n
<table:table-cell office:value-type="float" tal:condition="python:item[\'amount\'] is not None" tal:attributes="office:value item/amount" office:value="10000">\n
<text:p>10000</text:p>\n
</table:table-cell>\n
</table:table-row>\n
\n
</tal:block>\n
\n
\n
\n
</table:table>\n
</office:spreadsheet>\n
</office:body>\n
</office:document-content>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/vnd.oasis.opendocument.spreadsheet</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountingTransactionModule_viewJapaneseBalanceSheetReport</string> </value>
</item>
<item>
<key> <string>ooo_script_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>ooo_stylesheet</string> </key>
<value> <string>Base_getODSStyleSheet</string> </value>
</item>
<item>
<key> <string>ooo_xml_file_id</string> </key>
<value> <string>content.xml</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
</pickle>
<pickle>
<dictionary>
......@@ -38,7 +35,7 @@
</item>
<item>
<key> <string>action</string> </key>
<value> <string>AccountModule_viewJapaneseBalanceSheetReport</string> </value>
<value> <string>AccountingTransactionModule_viewJapaneseBalanceSheetReport</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -111,7 +108,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountModule_viewJapaneseBalanceSheetReportDialog</string> </value>
<value> <string>AccountingTransactionModule_viewJapaneseBalanceSheetReportDialog</string> </value>
</item>
<item>
<key> <string>method</string> </key>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ListField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
<global name="ListField" module="Products.Formulator.StandardFields"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
......@@ -104,10 +101,7 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
......@@ -120,10 +114,7 @@
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
......@@ -98,10 +95,7 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="OOoTemplate" module="Products.ERP5OOo.OOoTemplate"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>OLE_documents_zipstring</string> </key>
<value> <string encoding="base64">UEsDBBQAAAAIADmELT1E1YD/SgEAAGgHAAAVAAAATUVUQS1JTkYvbWFuaWZlc3QueG1stZVNbsIw
EIX3nCLyPnHLqooIlVqpJ6AHGJxJsOQ/ecYIbt8EFUhbFgXFO9saf++N7RmvXg/WFHuMpL1rxHP1
JAp0yrfa9Y343HyUL+J1vVhZcLpD4vo8KIZ9ji7TRqToag+kqXZgkWpWtQ/oWq+SRcf1z/h6VFov
iiu40wbLITAei6sYthpKPgZsBIRgtAIefMq9a6uTVjWVqChEhJZ2iCyukElyy8lyl4wpA/CuEVLI
u6wwHlgO+dymKe94dDMGzMklPhqk2bEWGR6A3oZtdsluHWhDks/DKrh+bvgsvHfvOt2neHpTtJSg
FBocpj5KlWJ87BLv18oiEKLvIxJtIZNAZzww5nLvQwpDTac8+JGc7WDYe5MNri30SPJNs4WQqQ6+
NbKwiYHTI4/yd/un5MbirJKu1FTjfzbmbczIPHyXl9a8kn9+y/UXUEsBAhQAFAAAAAgAOYQtPUTV
gP9KAQAAaAcAABUAAAAAAAAAAAAAAAAAAAAAAE1FVEEtSU5GL21hbmlmZXN0LnhtbFBLBQYAAAAA
AQABAEMAAAB9AQAAAAA=</string> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<?xml version=\'1.0\' encoding=\'utf-8\'?>\n
<office:document-content xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:rpt="http://openoffice.org/2005/report" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:i18n="http://xml.zope.org/namespaces/i18n" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:metal="http://xml.zope.org/namespaces/metal" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:rdfa="http://docs.oasis-open.org/opendocument/meta/rdfa#" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" office:version="1.2" tal:attributes="dummy python:request.RESPONSE.setHeader(\'Content-Type\', \'text/html;; charset=utf-8\')">\n
<office:scripts/>\n
<office:font-face-decls>\n
<style:font-face style:name="Liberation Sans" svg:font-family="\'Liberation Sans\'" style:font-family-generic="swiss" style:font-pitch="variable"/>\n
<style:font-face style:name="UmePlus P Gothic" svg:font-family="\'UmePlus P Gothic\'" style:font-family-generic="system" style:font-pitch="variable"/>\n
</office:font-face-decls>\n
<office:automatic-styles>\n
<style:style style:name="co1" style:family="table-column">\n
<style:table-column-properties fo:break-before="auto" style:column-width="2.267cm"/>\n
</style:style>\n
<style:style style:name="co2" style:family="table-column">\n
<style:table-column-properties fo:break-before="auto" style:column-width="2.658cm"/>\n
</style:style>\n
<style:style style:name="ro1" style:family="table-row">\n
<style:table-row-properties style:row-height="0.792cm" fo:break-before="auto" style:use-optimal-row-height="true"/>\n
</style:style>\n
<style:style style:name="ro2" style:family="table-row">\n
<style:table-row-properties style:row-height="0.894cm" fo:break-before="auto" style:use-optimal-row-height="true"/>\n
</style:style>\n
<style:style style:name="ro3" style:family="table-row">\n
<style:table-row-properties style:row-height="0.453cm" fo:break-before="auto" style:use-optimal-row-height="true"/>\n
</style:style>\n
<style:style style:name="ta1" style:family="table" style:master-page-name="Default">\n
<style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n
</style:style>\n
<number:date-style style:name="N33">\n
<number:month/>\n
<number:text></number:text>\n
<number:day/>\n
<number:text></number:text>\n
</number:date-style>\n
<style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default">\n
<style:table-cell-properties fo:background-color="#e6e6e6"/>\n
</style:style>\n
<style:style style:name="ce2" style:family="table-cell" style:parent-style-name="Default">\n
<style:text-properties fo:font-size="18pt" style:font-size-asian="18pt" style:font-size-complex="18pt"/>\n
</style:style>\n
<style:style style:name="ce3" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N33">\n
<style:text-properties fo:font-size="18pt" style:font-size-asian="18pt" style:font-size-complex="18pt"/>\n
</style:style>\n
<style:style style:name="ta_extref" style:family="table">\n
<style:table-properties table:display="false"/>\n
</style:style>\n
</office:automatic-styles>\n
<office:body\n
tal:define="data_dict here/AccountingTransactionModule_getJapaneseProfitAndLossDataDict;\n
data_list data_dict/data_list;">\n
<office:spreadsheet>\n
<table:table table:name="Profit and Loss" table:style-name="ta1" table:print="false">\n
<table:table-column table:style-name="co1" table:number-columns-repeated="5" table:default-cell-style-name="Default"/>\n
<table:table-row table:style-name="ro1">\n
<table:table-cell office:value-type="string" table:number-columns-spanned="3" table:number-rows-spanned="2">\n
<text:p tal:content="data_dict/company_name">Company name</text:p>\n
</table:table-cell>\n
<table:covered-table-cell table:number-columns-repeated="2"/>\n
<table:table-cell table:style-name="ce2" office:value-type="string" table:number-columns-spanned="2" table:number-rows-spanned="1">\n
<text:p i18n:translate="" i18n:domain="ui">Profit and Loss</text:p>\n
</table:table-cell>\n
<table:covered-table-cell/>\n
</table:table-row>\n
<table:table-row table:style-name="ro2">\n
<table:covered-table-cell table:number-columns-repeated="3"/>\n
<table:table-cell table:style-name="ce3" office:value-type="date" tal:attributes="office:date-value data_dict/date" office:date-value="2010-09-13" table:number-columns-spanned="2" table:number-rows-spanned="1">\n
<text:p>9月13日</text:p>\n
</table:table-cell>\n
<table:covered-table-cell/>\n
</table:table-row>\n
<table:table-row table:style-name="ro3">\n
<table:table-cell table:number-columns-repeated="5"/>\n
</table:table-row>\n
<table:table-row table:style-name="ro3">\n
<table:table-cell table:style-name="ce1" office:value-type="string">\n
<text:p>Profit and Loss</text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name="ce1" table:number-columns-repeated="4"/>\n
</table:table-row>\n
\n
<tal:block repeat="item data_list">\n
\n
<table:table-row table:style-name="ro3">\n
<table:table-cell/>\n
<table:table-cell office:value-type="string">\n
<text:p tal:content="item/section_title"></text:p>\n
</table:table-cell>\n
<table:table-cell office:value-type="string">\n
<text:p tal:content="item/group_title"></text:p>\n
</table:table-cell>\n
<table:table-cell office:value-type="string">\n
<text:p tal:content="item/title">Money</text:p>\n
</table:table-cell>\n
<table:table-cell tal:condition="python:item[\'amount\'] is None"/>\n
<table:table-cell office:value-type="float" tal:condition="python:item[\'amount\'] is not None" tal:attributes="office:value item/amount" office:value="10000">\n
<text:p>10000</text:p>\n
</table:table-cell>\n
</table:table-row>\n
\n
</tal:block>\n
\n
</table:table>\n
\n
</office:spreadsheet>\n
</office:body>\n
</office:document-content>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>application/vnd.oasis.opendocument.spreadsheet</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountingTransactionModule_viewJapaneseProfitAndLossReport</string> </value>
</item>
<item>
<key> <string>ooo_script_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>ooo_stylesheet</string> </key>
<value> <string>Base_getODSStyleSheet</string> </value>
</item>
<item>
<key> <string>ooo_xml_file_id</string> </key>
<value> <string>content.xml</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
</pickle>
<pickle>
<dictionary>
......@@ -38,7 +35,17 @@
</item>
<item>
<key> <string>action</string> </key>
<value> <string>AccountModule_viewProfitAndLossReport</string> </value>
<value> <string>AccountingTransactionModule_viewJapaneseProfitAndLossReport</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>edit_order</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>encoding</string> </key>
......@@ -101,7 +108,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>AccountModule_viewJapaneseProfitAndLossReportDialog</string> </value>
<value> <string>AccountingTransactionModule_viewJapaneseProfitAndLossReportDialog</string> </value>
</item>
<item>
<key> <string>method</string> </key>
......@@ -125,7 +132,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Profit and Loss</string> </value>
<value> <string>Japanese Profit and Loss</string> </value>
</item>
<item>
<key> <string>unicode_mode</string> </key>
......@@ -135,6 +142,10 @@
<key> <string>update_action</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>update_action_title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ListField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
<global name="ListField" module="Products.Formulator.StandardFields"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
......@@ -104,10 +101,7 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
......@@ -120,10 +114,7 @@
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
</pickle>
<pickle>
<dictionary>
......@@ -98,10 +95,7 @@
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
<tuple/>
</tuple>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
......
2010-09-13 yusei
* Fix printout format of B/S report and make its scripts simple.
* Implement P/L report.
2010-09-04 yusei
* Implement Japanese B/S report. (Although Japanese GAP is not good enough)
......
27
\ No newline at end of file
28
\ No newline at end of file
Accounting Transaction Module | balance_sheet_report_l10n_jp
\ No newline at end of file
Accounting Transaction Module | balance_sheet_report_l10n_jp
Accounting Transaction Module | profit_and_loss_report_l10n_jp
\ 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