Commit 27e17cd5 authored by Jérome Perrin's avatar Jérome Perrin

2008-06-16 yusei

* Update accounting_zuite/test_account_module/test_account_module_domain_tree.html
for the recent changes of domain tree.
associate with a business process, it seem to be required now

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40098 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b929cee1
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -57,7 +54,7 @@ ...@@ -57,7 +54,7 @@
\n \n
# params\n # params\n
section_title = \'My Organisation\'\n section_title = \'My Organisation\'\n
\n business_process = \'business_process_module/erp5_default_business_process\'\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
accounting_module = portal.accounting_module\n accounting_module = portal.accounting_module\n
year = 2005\n year = 2005\n
...@@ -133,6 +130,7 @@ for i in range(random.randint(5, 10)):\n ...@@ -133,6 +130,7 @@ for i in range(random.randint(5, 10)):\n
source=section,\n source=section,\n
destination_section=getOrganisationByTitle(\'Client 1\'),\n destination_section=getOrganisationByTitle(\'Client 1\'),\n
destination=getOrganisationByTitle(\'Client 1\'),\n destination=getOrganisationByTitle(\'Client 1\'),\n
specialise=business_process,\n
start_date=default_date, )\n start_date=default_date, )\n
line = pl.newContent(portal_type=\'Sale Packing List Line\',\n line = pl.newContent(portal_type=\'Sale Packing List Line\',\n
resource_value=product,\n resource_value=product,\n
...@@ -191,6 +189,7 @@ for month in range(1, month_count + 1):\n ...@@ -191,6 +189,7 @@ for month in range(1, month_count + 1):\n
created_by_builder=1,\n created_by_builder=1,\n
start_date=default_date,\n start_date=default_date,\n
stop_date=default_date,\n stop_date=default_date,\n
specialise=business_process,\n
resource=euro_resource,\n resource=euro_resource,\n
)\n )\n
tr.newContent(portal_type=\'Sale Invoice Transaction Line\',\n tr.newContent(portal_type=\'Sale Invoice Transaction Line\',\n
...@@ -268,6 +267,7 @@ for month in range(1, month_count + 1):\n ...@@ -268,6 +267,7 @@ for month in range(1, month_count + 1):\n
created_by_builder=1,\n created_by_builder=1,\n
start_date=default_date-5, # In purchase invoice transaction, stop_date is accounting operation date.\n start_date=default_date-5, # In purchase invoice transaction, stop_date is accounting operation date.\n
stop_date=default_date,\n stop_date=default_date,\n
specialise=business_process,\n
resource=euro_resource,\n resource=euro_resource,\n
)\n )\n
tr.newContent(portal_type=\'Purchase Invoice Transaction Line\',\n tr.newContent(portal_type=\'Purchase Invoice Transaction Line\',\n
...@@ -303,6 +303,7 @@ if add_draft_transactions:\n ...@@ -303,6 +303,7 @@ if add_draft_transactions:\n
start_date=default_date,\n start_date=default_date,\n
stop_date=default_date,\n stop_date=default_date,\n
resource=euro_resource,\n resource=euro_resource,\n
specialise=business_process,\n
)\n )\n
tr.newContent(portal_type=\'Sale Invoice Transaction Line\',\n tr.newContent(portal_type=\'Sale Invoice Transaction Line\',\n
source=getAccountByTitle(\'Receivable\'),\n source=getAccountByTitle(\'Receivable\'),\n
...@@ -363,6 +364,7 @@ return "Accounting Transactions Created."\n ...@@ -363,6 +364,7 @@ return "Accounting Transactions Created."\n
<string>keep_grouping_reference</string> <string>keep_grouping_reference</string>
<string>DateTime</string> <string>DateTime</string>
<string>section_title</string> <string>section_title</string>
<string>business_process</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</string> <string>portal</string>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -59,6 +56,7 @@ from DateTime import DateTime\n ...@@ -59,6 +56,7 @@ from DateTime import DateTime\n
\n \n
# params\n # params\n
section_title = \'My Organisation\'\n section_title = \'My Organisation\'\n
business_process = \'business_process_module/erp5_default_business_process\'\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
accounting_module = portal.accounting_module\n accounting_module = portal.accounting_module\n
year = 2005\n year = 2005\n
...@@ -127,6 +125,7 @@ for month in range(1, month_count + 1):\n ...@@ -127,6 +125,7 @@ for month in range(1, month_count + 1):\n
start_date=DateTime(year, month, day),\n start_date=DateTime(year, month, day),\n
stop_date=DateTime(year, month, day),\n stop_date=DateTime(year, month, day),\n
resource=euro_resource,\n resource=euro_resource,\n
specialise=business_process,\n
)\n )\n
receivable_qty = -(amount * (1 + vat_rate))\n receivable_qty = -(amount * (1 + vat_rate))\n
total_receivable_quantity += receivable_qty\n total_receivable_quantity += receivable_qty\n
...@@ -231,6 +230,7 @@ return "Accounting Transactions Created."\n ...@@ -231,6 +230,7 @@ return "Accounting Transactions Created."\n
<string>keep_grouping_reference</string> <string>keep_grouping_reference</string>
<string>DateTime</string> <string>DateTime</string>
<string>section_title</string> <string>section_title</string>
<string>business_process</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</string> <string>portal</string>
......
...@@ -2,10 +2,7 @@ ...@@ -2,10 +2,7 @@
<ZopeData> <ZopeData>
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
...@@ -57,6 +54,7 @@ ...@@ -57,6 +54,7 @@
# params\n # params\n
section_title = \'My Organisation\'\n section_title = \'My Organisation\'\n
business_process = \'business_process_module/erp5_default_business_process\'\n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
accounting_module = portal.accounting_module\n accounting_module = portal.accounting_module\n
from DateTime import DateTime\n from DateTime import DateTime\n
...@@ -135,6 +133,7 @@ for month in range(1, month_count + 1):\n ...@@ -135,6 +133,7 @@ for month in range(1, month_count + 1):\n
created_by_builder=1,\n created_by_builder=1,\n
start_date=DateTime(year, month, day),\n start_date=DateTime(year, month, day),\n
stop_date=DateTime(year, month, day),\n stop_date=DateTime(year, month, day),\n
specialise=business_process,\n
resource=euro_resource,\n resource=euro_resource,\n
)\n )\n
tr.newContent(portal_type=\'Sale Invoice Transaction Line\',\n tr.newContent(portal_type=\'Sale Invoice Transaction Line\',\n
...@@ -199,6 +198,7 @@ return "Accounting Transactions Created."\n ...@@ -199,6 +198,7 @@ return "Accounting Transactions Created."\n
<tuple> <tuple>
<string>month_count</string> <string>month_count</string>
<string>section_title</string> <string>section_title</string>
<string>business_process</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>portal</string> <string>portal</string>
......
178 180
\ No newline at end of file \ 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