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

add tests for transactions of an account




git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9921 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 80d13399
......@@ -62,7 +62,7 @@
<tr><td rowspan="1" colspan="4">\n
Test Transactions related to an account\n
</td></tr>\n
</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionList">\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
......@@ -98,91 +98,93 @@ Test Transactions related to an account\n
<!-- dumped listbox {{{2 -->\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]/a</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]</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[3]/a</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]</td>\n
<td>2005/01/02</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]/a</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[6]/a</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[6]</td>\n
<td>Client 1</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[7]/a</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[7]</td>\n
<td>Validated</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[8]/a</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[8]</td>\n
<td>2200.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[9]/a</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[9]</td>\n
<td>0.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[10]/a</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[10]</td>\n
<td>2200.0</td>\n
</tr>\n
\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[2]/a</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[2]</td>\n
<td>Client 2 Sale Invoice</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[3]/a</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[3]</td>\n
<td>2005/01/03</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]/a</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]</td>\n
<td>Sale Invoice Transaction</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[6]/a</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[6]</td>\n
<td>Client 2</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[7]/a</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[7]</td>\n
<td>Validated</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[8]/a</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[8]</td>\n
<td>3300.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[9]/a</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[9]</td>\n
<td>0.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[10]/a</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[10]</td>\n
<td>3300.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[11]/a</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[11]</td>\n
<td>5500.0</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ stat line -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[8]</td>\n
......@@ -202,51 +204,6 @@ Test Transactions related to an account\n
\n
<!-- }}} -->\n
\n
<!-- Jump to Accounting Module {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Transactions Related To This Account:</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>2 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>2200.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[10]/a</td>\n
<td>2200.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[9]/a</td>\n
<td>3300.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/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>5500.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n
<td>5500.00</td>\n
</tr>\n
<!-- }}} -->\n
\n
</tbody></table>\n
</body>\n
</html> <!-- vim: syntax=html foldmethod=marker\n
......
<?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>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Test for Account 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 account, with at date parameter\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
\n
<!-- {{{ Select Receivable account and check transaction list -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounts</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Receivable</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(), \'At Date\')]]</td>\n
<td>2005/01/11</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>24 record(s)</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- List lines {{{ -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[11]</td>\n
<td>2200.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[11]</td>\n
<td>3300.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_23\']/td[11]</td>\n
<td>214500.0</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ stat line -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[8]</td>\n
<td>217800.0</td>\n
</tr>\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>214500</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Tear down -->\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_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_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>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Test for Account 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 account, with from date parameter\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
<tr>\n
<td>selectAndWait</td>\n
<td>select_module</td>\n
<td>Accounts</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Select Receivable account and check transaction list -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Receivable</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>89 record(s)</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
<!-- }}} -->\n
\n
<!-- {{{ 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[2]</td>\n
<td></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>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[5]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[6]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[7]</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[8]</td>\n
<td>217800.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[9]</td>\n
<td>3300</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[10]</td>\n
<td>214500.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[11]</td>\n
<td>214500.0</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- FIXME: Listbox lines are not tested, because we don\'t know which will from\n
client 1 invoice or client 2 invoice will have the first uid. -->\n
\n
<!-- {{{ stat line -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[8]</td>\n
<td>1339800.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n
<td>1339800.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
<!-- }}} -->\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_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
\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_account_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>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<html>\n
<head><title>Test for Account 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 account\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>Accounts</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_show:method</td>\n
<td></td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- {{{ Select Receivable account and check transaction list -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Receivable</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>2 record(s)</td>\n
</tr>\n
\n
<!-- {{{ stat line -->\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[8]</td>\n
<td>5500.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[9]</td>\n
<td>0.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n
<td>5500.0</td>\n
</tr>\n
<!-- }}} -->\n
\n
<!-- Jump to Accounting Module {{{ -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=Transactions Related To This Account:</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>2 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>2200.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[10]</td>\n
<td>2200.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[9]</td>\n
<td>3300.0</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/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>5500.00</td>\n
</tr>\n
<tr>\n
<td>verifyFloat</td>\n
<td>//tr[@id=\'listbox_stat_line\']/td[10]</td>\n
<td>5500.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_account_transaction_list_jump_accounting_module.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>
20
\ No newline at end of file
21
\ 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