[Erp5-report] r24811 - in /erp5/trunk/bt5/erp5_accounting_ui_test: SkinTemplateItem/portal_...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Dec 5 18:54:43 CET 2008
Author: jerome
Date: Fri Dec 5 18:54:42 2008
New Revision: 24811
URL: http://svn.erp5.org?rev=24811&view=rev
Log:
Create tax line in the test, to make sure they don't have side effects
Modified:
erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_createAccountingTransactionList.xml
erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision
Modified: erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_createAccountingTransactionList.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_createAccountingTransactionList.xml?rev=24811&r1=24810&r2=24811&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_createAccountingTransactionList.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_createAccountingTransactionList.xml [utf8] Fri Dec 5 18:54:42 2008
@@ -127,6 +127,16 @@
product = portal.product_module.newContent(portal_type=\'Product\',\n
immediate_reindex=immediate_reindex,\n
title=\'Dummy Product for testing\')\n
+\n
+tax_list = [o.getObject() for o in portal.tax_module.searchFolder(\n
+ portal_type=\'Tax\',\n
+ title=\'VAT\')]\n
+if tax_list:\n
+ tax = tax_list[0]\n
+else:\n
+ tax = portal.tax_module.newContent(portal_type=\'Tax\',\n
+ title=\'VAT\')\n
+\n
\n
for i in range(random.randint(5, 10)):\n
pl = portal.sale_packing_list_module.newContent(\n
@@ -191,6 +201,8 @@
title=\'%s Sale Invoice\' % client_title,\n
source_section=section,\n
destination_section=getOrganisationByTitle(client_title),\n
+ source=section,\n
+ destination=getOrganisationByTitle(client_title),\n
created_by_builder=1,\n
start_date=default_date,\n
stop_date=default_date,\n
@@ -216,6 +228,13 @@
resource_value=product,\n
quantity=random.randint(300, 400),\n
price=random.randint(300, 400), )\n
+ # add a random tax line, which should not impact our tests\n
+ tr.newContent(portal_type=\'Tax Line\',\n
+ immediate_reindex=immediate_reindex,\n
+ resource_value=tax,\n
+ quantity=random.randint(300, 400),\n
+ price=random.randint(300, 400) / 100., )\n
+ \n
if transaction_state == \'validated\':\n
tr.stop()\n
assert tr.getSimulationState() == \'stopped\'\n
@@ -395,6 +414,8 @@
<string>o</string>
<string>product_list</string>
<string>product</string>
+ <string>tax_list</string>
+ <string>tax</string>
<string>range</string>
<string>random</string>
<string>i</string>
Modified: erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision?rev=24811&r1=24810&r2=24811&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting_ui_test/bt/revision [utf8] Fri Dec 5 18:54:42 2008
@@ -1,1 +1,1 @@
-109
+110
More information about the Erp5-report
mailing list