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>
......@@ -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>
......
......@@ -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>
......
......@@ -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