Commit 50998337 authored by Jérome Perrin's avatar Jérome Perrin

Add tests for bank accounts

Add tests for accounting transaction inputing



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10284 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7e51c10b
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Zelenium.zuite</string>
<string>Zuite</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>accounting_transaction_zuite</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Test for Accounting Transaction</title></head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="4">\n
Test Simple view of an Accounting Transaction\n
</td></tr>\n
<!-- XXX we do not need init method here ! -->\n
</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0">\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
\n
<!-- Setup {{{ -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounting</td>\n
</tr>\n
<!-- }}} -->\n
\n
\n
<!-- Add an accounting transaction and check the default view {{{ -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
<td>Add Accounting Transaction</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>field_my_source_section</td>\n
<td>organisation_module/my_organisation</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>field_my_destination_section_title</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>field_my_resource</td>\n
<td>currency_module/euro</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//span[@id=\'listbox_record_number\']</td>\n
<td>2 record(s)</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]/select</td>\n
<td>label=2 - Fixed Assets</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[2]/select</td>\n
<td>label=3 - Stocks</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n
<td>10.0</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[5]/input</td>\n
<td>20.0</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@name=\'Base_edit:method\']</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Check values we just entered {{{ -->\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>Data Updated.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>field_my_source_section</td>\n
<td>organisation_module/my_organisation</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>field_my_destination_section_title</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>field_my_resource</td>\n
<td>currency_module/euro</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]/select</td>\n
<td>account_module/fixed_assets</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[2]/select</td>\n
<td>account_module/stocks</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]/input</td>\n
<td>10.0</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[5]/input</td>\n
<td>20.0</td>\n
</tr>\n
<!-- stat is updated -->\n
<tr>\n
<td>assertFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[4]</td>\n
<td>10</td>\n
</tr>\n
<tr>\n
<td>assertFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[5]</td>\n
<td>20</td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test_accounting_transaction_module_default_sort.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Zelenium.zuite</string>
<string>Zuite</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test_bank_accounts</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Test for Organisation transaction lisbox</title></head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="4">\n
Test Transactions related to an Organisation, with stop date\n
</td></tr>\n
</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionListSalesAndPayments">\n
\n
<!-- Setup {{{ -->\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounts</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting Preference</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_year</td>\n
<td>2005</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_month</td>\n
<td>01</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_day</td>\n
<td>11</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<!-- XXX manually clear the cache ? -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@title=\'Select Language\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Organisations</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Select Client 1 Organisation and check transaction list -->\n
<tr>\n
<td>type</td>\n
<!-- title -->\n
<td>//tr[@id=\'listbox_search_line\']/td[2]/span/input</td>\n
<td>Client 1</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>listbox_select</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Client 1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Transactions</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>12 record(s)</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//div[preceding-sibling::label[contains(text(),\'At Date\')]]</td>\n
<td>2005/01/11</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n
<td>72600.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n
<td>1100.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[12]</td>\n
<td>71500.0</td>\n
</tr>\n
<!-- the last line of running total column shows the same value that the total\n
balance. -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_11\']/td[13]</td>\n
<td>71500.0</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Tear down -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounts</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting Preference</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_year</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_month</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_at_date_day</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<!-- XXX manually clear the cache ? -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@title=\'Select Language\']</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test_bank_account_transaction_list_at_date.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Test for jump methods from Organisation</title></head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="4">\n
Test for jump methods from an Organisation.\n
</td></tr>\n
</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0">\n
\n
<!-- Setup {{{ -->\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Organisations</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Jump menu from Destination Section Organisation {{{\n
When using jump from an Organisation, it jumps to accounting\n
module, filtered with all transactions with this entity at source\n
section or destination section\n
-->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Organisations</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>4 record(s)</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Client 2</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>1 record(s)</td>\n
</tr>\n
<!-- check amounts for lines -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[9]/a</td>\n
<td>3300.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[10]/a</td>\n
<td>3300.0</td>\n
</tr>\n
<!-- check amounts for stats -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n
<td>3300.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n
<td>3300.00</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Jump menu from My Organisation {{{\n
-->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Organisations</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>4 record(s)</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=My Organisation</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>4 record(s)</td>\n
</tr>\n
<!-- check amounts for lines -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[9]/a</td>\n
<td>20000.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[10]/a</td>\n
<td>20000.0</td>\n
</tr>\n
\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[9]/a</td>\n
<td>2200.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[10]/a</td>\n
<td>2200.0</td>\n
</tr>\n
\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[9]/a</td>\n
<td>3300.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[10]/a</td>\n
<td>3300.0</td>\n
</tr>\n
\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_3\']/td[9]/a</td>\n
<td>7700.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_3\']/td[10]/a</td>\n
<td>7700.0</td>\n
</tr>\n
\n
<!-- check amounts for stats -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n
<td>33200.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n
<td>33200.00</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Jump menu from Source Section Organisation {{{\n
We have a purchase with `Supplier` Organisation\n
-->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Organisations</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>4 record(s)</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Supplier</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>1 record(s)</td>\n
</tr>\n
<!-- check amounts for lines -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[9]/a</td>\n
<td>7700.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[10]/a</td>\n
<td>7700.0</td>\n
</tr>\n
<!-- check amounts for stats -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n
<td>7700.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n
<td>7700.00</td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test_organisation_jump.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Test for Organisation transaction lisbox</title></head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="4">\n
Test Transactions related to an Organisation\n
</td></tr>\n
</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0">\n
\n
<!-- Setup {{{ -->\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Organisations</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Select Client 2 Organisation and check transaction list -->\n
<tr>\n
<td>type</td>\n
<!-- title -->\n
<td>//tr[@id=\'listbox_search_line\']/td[2]/span/input</td> \n
<td>Client 2</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>listbox_select</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Client 2</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Transactions</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>1 record(s)</td>\n
</tr>\n
\n
<!-- Dumped lisbox {{{ \n
from http://localhost:9080/erp5/Entity_viewAccountingTransactionList/listbox?form_id=Entity_viewAccountingTransactionList&portal_skin=SeleniumDump \n
-->\n
\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n
<td>Client 2 Sale Invoice</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]</td>\n
<td>My Organisation</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]</td>\n
<td>2005/01/03</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]</td>\n
<td>Sale Invoice Transaction</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[5]</td>\n
<td>41</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[8]</td>\n
<td>Validated</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[9]</td>\n
<td>3300.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[10]</td>\n
<td>0.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[12]</td>\n
<td>3300.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[13]</td>\n
<td>3300.0</td>\n
</tr>\n
\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n
<td>3300.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n
<td>0.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[12]</td>\n
<td>3300.0</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- }}} -->\n
\n
<!-- Jump to Accounting Module {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Transactions Related To This Entity:</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>1 record(s)</td>\n
</tr>\n
<!-- check amounts for lines -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[9]</td>\n
<td>3300.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[10]</td>\n
<td>3300.0</td>\n
</tr>\n
<!-- check amounts for stats -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n
<td>3300.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n
<td>3300.00</td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test_organisation_transaction_list.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Test for Organisation transaction lisbox</title></head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="4">\n
Test Transactions related to an Organisation, with start date\n
</td></tr>\n
</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionListSalesAndPayments">\n
\n
<!-- Setup {{{ -->\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounts</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting Preference</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_year</td>\n
<td>2005</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_month</td>\n
<td>01</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>\n
<td>12</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<!-- XXX manually clear the cache ? -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@title=\'Select Language\']</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Organisations</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Select Client 1 Organisation and check transaction list -->\n
<tr>\n
<td>type</td>\n
<!-- title -->\n
<td>//tr[@id=\'listbox_search_line\']/td[2]/span/input</td>\n
<td>Client 1</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>listbox_select</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Client 1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Transactions</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//div[preceding-sibling::label[contains(text(),\'From Date\')]]</td>\n
<td>2005/01/12</td>\n
</tr>\n
<!-- The summary line is counted here. -->\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>45 record(s)</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- The first line is a \'summary\' line. {{{ -->\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n
<td>Previous Balance</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]</td>\n
<td>2005/01/12</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[9]</td>\n
<td>72600.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[10]</td>\n
<td>1100.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[12]</td>\n
<td>71500.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[13]</td>\n
<td>71500.00</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Lisbox body, especially the second line {{{ -->\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[1]</td>\n
<td>Client 1 Sale Invoice</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[3]</td>\n
<td>2005/01/12</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[8]</td>\n
<td>Validated</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[9]</td>\n
<td>13200.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[10]</td>\n
<td>0.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[12]</td>\n
<td>13200.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[13]</td>\n
<td>84700.00</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Stat line {{{ -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n
<td>446600.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n
<td>446600.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[12]</td>\n
<td>0</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Second page {{{ -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>listbox_page_selection</td>\n
<td>label=2 of 3</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n
<td>Payment from Client 1 Sale Invoice</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]</td>\n
<td>2005/01/21*</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[9]</td>\n
<td>0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[10]</td>\n
<td>12100</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[12]</td>\n
<td>-12100</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[13]</td>\n
<td>181500</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Stat line again {{{ -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n
<td>446600.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n
<td>446600.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[12]</td>\n
<td>0</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Tear down -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>listbox_page_selection</td>\n
<td>label=1 of 3</td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td>/erp5/</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounts</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_jump</td>\n
<td>Accounting Preference</td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_year</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_month</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>subfield_field_my_preferred_accounting_transaction_from_date_day</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<!-- XXX manually clear the cache ? -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@title=\'Select Language\']</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test_organisation_transaction_list_from_date.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Test for Organisation transaction lisbox</title></head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="4">\n
Test Transactions related to an Organisation, with multiple pages and date range\n
</td></tr>\n
</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionListSalesAndPayments">\n
\n
<!-- Setup {{{ -->\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Organisations</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Select Client 1 Organisation and check transaction list -->\n
<tr>\n
<td>type</td>\n
<!-- title -->\n
<td>//tr[@id=\'listbox_search_line\']/td[2]/span/input</td>\n
<td>Client 1</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>listbox_select</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Client 1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Transactions</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>56 record(s)</td>\n
</tr>\n
\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n
<td>446600.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n
<td>446600.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[12]</td>\n
<td>0.0</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ check second page -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>listbox_page_selection</td>\n
<td>2 of 3</td>\n
</tr>\n
<tr>\n
<!-- workaround for #206 -->\n
<td>clickAndWait</td>\n
<td>link=Transactions</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>56 record(s)</td>\n
</tr>\n
<!-- check first line -->\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n
<td>Client 1 Sale Invoice</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]</td>\n
<td>My Organisation</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]</td>\n
<td>2005/01/16</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]</td>\n
<td>Sale Invoice Transaction</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[5]</td>\n
<td>41</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[8]</td>\n
<td>Validated</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[9]</td>\n
<td>17600.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[10]</td>\n
<td>0</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[11]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[12]</td>\n
<td>17600.00</td>\n
</tr>\n
<!-- this is the same as the last net_balance from the previous page -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[13]</td>\n
<td>133100.00</td>\n
</tr>\n
\n
<!-- Stats should not change -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n
<td>446600.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n
<td>446600.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[12]</td>\n
<td>0.0</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ tear down -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>listbox_page_selection</td>\n
<td>1 of 3</td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test_organisation_transaction_list_multipage.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</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>_dav_writelocks</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Test for Organisation transaction lisbox</title></head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="4">\n
Test Transactions related to an Organisation shows transactions for this\n
organisation and no bogus parameters are kept in the selection.\n
</td></tr>\n
</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0">\n
\n
<!-- Setup {{{ -->\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Organisations</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Select Client 2 Organisation and check transaction list -->\n
<tr>\n
<td>type</td>\n
<!-- title -->\n
<td>//tr[@id=\'listbox_search_line\']/td[2]/span/input</td> \n
<td>Client 1</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>listbox_select</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Client 1</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Transactions</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>1 record(s)</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n
<td>Client 1 Sale Invoice</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[12]</td>\n
<td>2200</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Select Client 2 Organisation and check transaction list -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Organisations</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<!-- title -->\n
<td>//tr[@id=\'listbox_search_line\']/td[2]/span/input</td> \n
<td>Client 2</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>listbox_select</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Client 2</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Transactions</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>1 record(s)</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n
<td>Client 2 Sale Invoice</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[12]</td>\n
<td>3300</td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
-->\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>test_organisation_transaction_list_node_independance.html</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_container</string> </key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2006-09-25 jerome
* Add tests for bank accounts
* Add tests for accounting transaction inputing
2006-09-13 jerome
* Fix tests for organisations.
2006-08-14 jerome
* Initial revision
\ No newline at end of file
* Initial revision
21
\ No newline at end of file
22
\ 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