Commit 3b9ebeff authored by Jérome Perrin's avatar Jérome Perrin

we no longer have tax system here


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28521 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fe5a6620
......@@ -127,16 +127,6 @@ else:\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
immediate_reindex=immediate_reindex,\n
......@@ -232,13 +222,6 @@ for month in range(1, month_count + 1):\n
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
......@@ -428,8 +411,6 @@ return "Accounting Transactions Created."\n
<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>
......
133
\ No newline at end of file
134
\ 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