Commit b676f653 authored by Jean-Paul Smets's avatar Jean-Paul Smets

updated by yo on real use server


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1164 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 654533d2
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0"?>
<form> <form>
<title>Account List</title> <title>Account List</title>
<name>accounting_transaction_list</name> <row_length>4</row_length>
<action>base_edit</action> <name>account_list</name>
<enctype></enctype>
<method>POST</method>
<pt>form_list</pt> <pt>form_list</pt>
<action>doSelect</action>
<update_action></update_action>
<method>POST</method>
<enctype></enctype>
<encoding>UTF-8</encoding>
<stored_encoding>ISO-8859-1</stored_encoding>
<unicode_mode>false</unicode_mode>
<groups> <groups>
<group> <group>
<title>left</title> <title>left</title>
...@@ -15,32 +19,36 @@ ...@@ -15,32 +19,36 @@
<field><id>listbox</id> <type>ListBox</type> <field><id>listbox</id> <type>ListBox</type>
<values> <values>
<all_columns type="list">[]</all_columns> <all_columns type="list">[('id', 'id'), ('pcg_title', 'PCG'), ('Title', 'Title'), ('default_destination_title', 'Mirror'), ('Account_countAccountingTransactions', 'Count'), ('Account_getTotalSourceCredit', 'Credit'), ('Account_getTotalSourceDebit', 'Debit'), ('accounting_transaction_line_currency', 'Currency')]</all_columns>
<all_editable_columns type="list">[]</all_editable_columns> <all_editable_columns type="list">[]</all_editable_columns>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<columns type="list">[('id', 'id'), ('pcg_title', 'PCG'), ('title', 'Title'), ('destination', 'Mirror')]</columns> <columns type="list">[('id', 'id'), ('pcg_title', 'PCG'), ('Title', 'Title'), ('default_destination_title', 'Mirror'), ('Account_countAccountingTransactions', 'Count'), ('Account_getTotalSourceCredit', 'Credit'), ('Account_getTotalSourceDebit', 'Debit'), ('accounting_transaction_line_currency', 'Currency')]</columns>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<default_params type="list">[]</default_params> <default_params type="list">[('id', "''"), ('pcg_title', "''"), ('Title', "''"), ('default_destination_title', "''")]</default_params>
<description></description> <description></description>
<domain_root_list type="list">[]</domain_root_list> <domain_root_list type="list">[('portal_categories/pcg', 'PCG'), ('portal_categories/account_type', 'Account Type'), ('portal_categories/financial_section', 'Balance Sheet')]</domain_root_list>
<domain_tree type="int">0</domain_tree> <domain_tree type="int">0</domain_tree>
<editable type="int">1</editable>
<editable_columns type="list">[]</editable_columns> <editable_columns type="list">[]</editable_columns>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<global_attributes type="list">[]</global_attributes> <global_attributes type="list">[]</global_attributes>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<lines type="int">25</lines> <lines type="int">25</lines>
<list_action>list</list_action> <list_action>list</list_action>
<list_method type="method">portal_catalog</list_method> <list_method type="method">Account_search</list_method>
<meta_types type="list">[]</meta_types> <meta_types type="list">[]</meta_types>
<portal_types type="list">[('Account', 'Account')]</portal_types> <portal_types type="list">[('Account', 'Account')]</portal_types>
<report_root_list type="list">[]</report_root_list> <report_root_list type="list">[('portal_categories/pcg', 'PCG'), ('portal_categories/account_type', 'Account Type')]</report_root_list>
<report_tree type="int">0</report_tree> <report_tree type="int">0</report_tree>
<search type="int">1</search> <search type="int">1</search>
<search_columns type="list">[]</search_columns>
<select type="int">1</select> <select type="int">1</select>
<selection_name>account_selection</selection_name> <selection_name>account_selection</selection_name>
<sort type="list">[('id', 'id')]</sort> <sort type="list">[('id', 'id')]</sort>
<stat_method></stat_method> <sort_columns type="list">[]</sort_columns>
<stat_method type="method">portal_catalog</stat_method>
<title>Account Listbox</title> <title>Account Listbox</title>
</values> </values>
<tales> <tales>
......
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0"?>
<form> <form>
<title>Account</title> <title>Account</title>
<row_length>4</row_length>
<name>accounting_transaction_list</name> <name>accounting_transaction_list</name>
<pt>form_view</pt>
<action>base_edit</action> <action>base_edit</action>
<enctype></enctype> <update_action></update_action>
<method>POST</method> <method>POST</method>
<pt>form_view</pt> <enctype></enctype>
<encoding>UTF-8</encoding>
<stored_encoding>ISO-8859-1</stored_encoding>
<unicode_mode>false</unicode_mode>
<groups> <groups>
<group> <group>
<title>left</title> <title>left</title>
...@@ -21,6 +25,8 @@ ...@@ -21,6 +25,8 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
...@@ -28,6 +34,8 @@ ...@@ -28,6 +34,8 @@
<required type="int">1</required> <required type="int">1</required>
<title>Id</title> <title>Id</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -45,6 +53,8 @@ ...@@ -45,6 +53,8 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
...@@ -52,6 +62,8 @@ ...@@ -52,6 +62,8 @@
<required type="int">1</required> <required type="int">1</required>
<title>Title</title> <title>Title</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -67,6 +79,8 @@ ...@@ -67,6 +79,8 @@
<css_class></css_class> <css_class></css_class>
<default type="int">0</default> <default type="int">0</default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
...@@ -85,17 +99,22 @@ ...@@ -85,17 +99,22 @@
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <items type="list">[]</items>
<required type="int">1</required> <required type="int">1</required>
<size type="int">1</size> <size type="int">1</size>
<title>PCG</title> <title>PCG</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>here/portal_categories/pcg/getCategoryChildTitleItemList</items> <items>python: here.getAccountPcgItemList()</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
...@@ -109,14 +128,19 @@ ...@@ -109,14 +128,19 @@
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <items type="list">[]</items>
<required type="int">1</required> <required type="int">1</required>
<size type="int">1</size> <size type="int">1</size>
<title>Account Type</title> <title>Account Type</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>here/portal_categories/account_type/getCategoryChildTitleItemList</items> <items>here/portal_categories/account_type/getCategoryChildTitleItemList</items>
...@@ -133,14 +157,19 @@ ...@@ -133,14 +157,19 @@
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <items type="list">[]</items>
<required type="int">1</required> <required type="int">1</required>
<size type="int">1</size> <size type="int">1</size>
<title>Financial Section</title> <title>Financial Section</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>here/portal_categories/financial_section/getCategoryChildTitleItemList</items> <items>here/portal_categories/financial_section/getCategoryChildTitleItemList</items>
...@@ -155,11 +184,13 @@ ...@@ -155,11 +184,13 @@
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<base_category>destination</base_category> <base_category>destination</base_category>
<catalog_index>Title</catalog_index> <catalog_index>relative_url</catalog_index>
<css_class></css_class> <css_class></css_class>
<default type="list">[]</default> <default type="list">[]</default>
<default_module>account</default_module> <default_module>account</default_module>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<height type="int">5</height> <height type="int">5</height>
...@@ -169,9 +200,13 @@ ...@@ -169,9 +200,13 @@
<max_linelength></max_linelength> <max_linelength></max_linelength>
<max_lines></max_lines> <max_lines></max_lines>
<portal_type type="list">[('Account', 'account')]</portal_type> <portal_type type="list">[('Account', 'account')]</portal_type>
<relation_setter_id></relation_setter_id>
<required type="int">0</required> <required type="int">0</required>
<title>Mirror account</title> <title>Mirror account</title>
<unicode type="int">0</unicode>
<update_method>base_update_relation</update_method> <update_method>base_update_relation</update_method>
<view_separator>&lt;br /&gt;</view_separator>
<whitespace_preserve type="int">0</whitespace_preserve>
<width type="int">40</width> <width type="int">40</width>
</values> </values>
<tales> <tales>
...@@ -202,6 +237,8 @@ ...@@ -202,6 +237,8 @@
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<height type="int">5</height> <height type="int">5</height>
...@@ -211,6 +248,8 @@ ...@@ -211,6 +248,8 @@
<max_lines></max_lines> <max_lines></max_lines>
<required type="int">0</required> <required type="int">0</required>
<title>Description</title> <title>Description</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
<width type="int">80</width> <width type="int">80</width>
</values> </values>
<tales> <tales>
......
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0"?>
<form> <form>
<title>Accounting Transaction Line</title> <title>Accounting Transaction Line</title>
<row_length>4</row_length>
<name>accounting_transaction_list</name> <name>accounting_transaction_list</name>
<pt>form_view</pt>
<action>base_edit</action> <action>base_edit</action>
<enctype></enctype> <update_action></update_action>
<method>POST</method> <method>POST</method>
<pt>form_view</pt> <enctype></enctype>
<encoding>UTF-8</encoding>
<stored_encoding>ISO-8859-1</stored_encoding>
<unicode_mode>false</unicode_mode>
<groups> <groups>
<group> <group>
<title>left</title> <title>left</title>
...@@ -19,14 +23,19 @@ ...@@ -19,14 +23,19 @@
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <items type="list">[]</items>
<required type="int">0</required> <required type="int">0</required>
<size type="int">1</size> <size type="int">1</size>
<title>Currency</title> <title>Currency</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python:map(lambda x: (x.id,'currency/%s' % x.id),here.currency.objectValues())</items> <items>python:map(lambda x: (x.id,'currency/%s' % x.id),here.currency.objectValues())</items>
...@@ -48,6 +57,8 @@ ...@@ -48,6 +57,8 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
...@@ -57,7 +68,9 @@ ...@@ -57,7 +68,9 @@
<required type="int">0</required> <required type="int">0</required>
<title>Destination</title> <title>Destination</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<update_method>base_update_relation</update_method> <update_method>base_update_relation</update_method>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -78,6 +91,8 @@ ...@@ -78,6 +91,8 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
...@@ -87,7 +102,9 @@ ...@@ -87,7 +102,9 @@
<required type="int">0</required> <required type="int">0</required>
<title>Source</title> <title>Source</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<update_method>base_update_relation</update_method> <update_method>base_update_relation</update_method>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -105,11 +122,14 @@ ...@@ -105,11 +122,14 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<required type="int">0</required> <required type="int">0</required>
<title>Source Credit</title> <title>Source Credit</title>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -127,11 +147,14 @@ ...@@ -127,11 +147,14 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<required type="int">0</required> <required type="int">0</required>
<title>Source Debit</title> <title>Source Debit</title>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
......
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0"?>
<form> <form>
<title>Accounting Transaction</title> <title>Accounting Transaction</title>
<row_length>4</row_length>
<name>accounting_transaction_list</name> <name>accounting_transaction_list</name>
<pt>form_view</pt>
<action>base_edit</action> <action>base_edit</action>
<enctype></enctype> <update_action></update_action>
<method>POST</method> <method>POST</method>
<pt>form_view</pt> <enctype></enctype>
<encoding>UTF-8</encoding>
<stored_encoding>ISO-8859-1</stored_encoding>
<unicode_mode>false</unicode_mode>
<groups> <groups>
<group> <group>
<title>left</title> <title>left</title>
<fields> <fields>
<field><id>my_id</id> <type>StringField</type> <field><id>my_source_section</id> <type>ListField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <editable type="int">1</editable>
<display_width type="int">20</display_width> <enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<max_length></max_length> <items type="list">[]</items>
<required type="int">1</required> <required type="int">0</required>
<title>Id</title> <size type="int">1</size>
<truncate type="int">0</truncate> <title>Section</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python: [['Nexedi', 'organisation/nexedi']]</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message> <message name="required_not_found">Input is required but no input given.</message>
<message name="too_long">Too much input was given.</message> <message name="unknown_selection">You selected an item that was not in the list.</message>
</messages> </messages>
</field> </field>
<field><id>my_effective_date</id> <type>DateTimeField</type> <field><id>my_source_reference</id> <type>StringField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<date_only type="int">1</date_only> <default></default>
<date_separator>/</date_separator>
<default_now type="int">0</default_now>
<description></description> <description></description>
<display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width>
<editable type="int">0</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<input_order>ymd</input_order> <max_length></max_length>
<input_style>text</input_style> <required type="int">0</required>
<required type="int">1</required> <title>Section Transaction Reference</title>
<time_separator>:</time_separator> <truncate type="int">0</truncate>
<title>Accounting Date</title> <unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message> <message name="required_not_found">Input is required but no input given.</message>
<message name="not_datetime">You did not enter a valid date and time.</message> <message name="too_long">Too much input was given.</message>
<message name="datetime_out_of_range">The date and time you entered were out of range.</message>
</messages> </messages>
</field> </field>
<field><id>my_title</id> <type>StringField</type> <field><id>my_title</id> <type>StringField</type>
...@@ -70,6 +82,8 @@ ...@@ -70,6 +82,8 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
...@@ -77,6 +91,8 @@ ...@@ -77,6 +91,8 @@
<required type="int">1</required> <required type="int">1</required>
<title>Title</title> <title>Title</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -97,16 +113,21 @@ ...@@ -97,16 +113,21 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<jump_method>base_jump_relation</jump_method> <jump_method>base_jump_relation</jump_method>
<max_length></max_length> <max_length></max_length>
<portal_type type="list">[('Person', 'Person'), ('Organisation', 'Organisation')]</portal_type> <portal_type type="list">[('Organisation', 'Organisation'), ('Person', 'Person')]</portal_type>
<relation_setter_id></relation_setter_id>
<required type="int">0</required> <required type="int">0</required>
<title>Destination Section</title> <title>Third Party</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<update_method>base_update_relation</update_method> <update_method>base_update_relation</update_method>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -116,27 +137,25 @@ ...@@ -116,27 +137,25 @@
<message name="too_long">Too much input was given.</message> <message name="too_long">Too much input was given.</message>
</messages> </messages>
</field> </field>
<field><id>my_source_section_title</id> <type>RelationStringField</type> <field><id>my_reference</id> <type>StringField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<base_category>source_section</base_category>
<catalog_index>id</catalog_index>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<default_module>person</default_module>
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<jump_method>base_jump_relation</jump_method>
<max_length></max_length> <max_length></max_length>
<portal_type type="list">[('Person', 'Person'), ('Organisation', 'Organisation')]</portal_type>
<required type="int">0</required> <required type="int">0</required>
<title>Source Section</title> <title>Transaction Reference</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<update_method>base_update_relation</update_method> <unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -146,46 +165,60 @@ ...@@ -146,46 +165,60 @@
<message name="too_long">Too much input was given.</message> <message name="too_long">Too much input was given.</message>
</messages> </messages>
</field> </field>
<field><id>my_start_date</id> <type>DateTimeField</type> <field><id>my_resource</id> <type>ListField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<date_only type="int">1</date_only> <default></default>
<date_separator>/</date_separator>
<default_now type="int">0</default_now>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<input_order>ymd</input_order> <items type="list">[]</items>
<input_style>text</input_style> <required type="int">0</required>
<required type="int">1</required> <size type="int">1</size>
<time_separator>:</time_separator> <title>Currency</title>
<title>Order Date</title> <unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python:[('','')]+map(lambda x:(x.id,'currency/%s' %x.id),here.currency.objectValues())</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message> <message name="required_not_found">Input is required but no input given.</message>
<message name="not_datetime">You did not enter a valid date and time.</message> <message name="unknown_selection">You selected an item that was not in the list.</message>
<message name="datetime_out_of_range">The date and time you entered were out of range.</message>
</messages> </messages>
</field> </field>
<field><id>my_stop_date</id> <type>DateTimeField</type> </fields>
</group>
<group>
<title>right</title>
<fields>
<field><id>my_start_date</id> <type>DateTimeField</type>
<values> <values>
<allow_empty_time type="int">0</allow_empty_time>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<ampm_time_style type="int">0</ampm_time_style>
<css_class></css_class> <css_class></css_class>
<date_only type="int">1</date_only> <date_only type="int">1</date_only>
<date_separator>/</date_separator> <date_separator>/</date_separator>
<default_now type="int">0</default_now> <default_now type="int">1</default_now>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<input_order>ymd</input_order> <input_order>ymd</input_order>
<input_style>text</input_style> <input_style>text</input_style>
<required type="int">1</required> <required type="int">0</required>
<time_separator>:</time_separator> <time_separator>:</time_separator>
<title>Value Date</title> <title>Operation Date</title>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -196,18 +229,14 @@ ...@@ -196,18 +229,14 @@
<message name="datetime_out_of_range">The date and time you entered were out of range.</message> <message name="datetime_out_of_range">The date and time you entered were out of range.</message>
</messages> </messages>
</field> </field>
</fields>
</group>
<group>
<title>right</title>
<fields>
<field><id>my_description</id> <type>TextAreaField</type> <field><id>my_description</id> <type>TextAreaField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<height type="int">5</height> <height type="int">5</height>
...@@ -217,6 +246,8 @@ ...@@ -217,6 +246,8 @@
<max_lines></max_lines> <max_lines></max_lines>
<required type="int">0</required> <required type="int">0</required>
<title>Description</title> <title>Description</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
<width type="int">40</width> <width type="int">40</width>
</values> </values>
<tales> <tales>
...@@ -229,6 +260,63 @@ ...@@ -229,6 +260,63 @@
<message name="too_long">You entered too many characters.</message> <message name="too_long">You entered too many characters.</message>
</messages> </messages>
</field> </field>
<field><id>simulation_state</id> <type>StringField</type>
<values>
<alternate_name></alternate_name>
<css_class></css_class>
<default></default>
<description></description>
<display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width>
<editable type="int">0</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator>
<extra></extra>
<hidden type="int">0</hidden>
<max_length></max_length>
<required type="int">0</required>
<title>State</title>
<truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values>
<tales>
<default>python:here.portal_workflow.getInfoFor(here, 'simulation_state')</default>
</tales>
<messages>
<message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message>
<message name="too_long">Too much input was given.</message>
</messages>
</field>
<field><id>my_destination_reference</id> <type>StringField</type>
<values>
<alternate_name></alternate_name>
<css_class></css_class>
<default></default>
<description></description>
<display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width>
<editable type="int">0</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator>
<extra></extra>
<hidden type="int">0</hidden>
<max_length></max_length>
<required type="int">0</required>
<title>Third Party Transaction Reference</title>
<truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values>
<tales>
</tales>
<messages>
<message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message>
<message name="too_long">Too much input was given.</message>
</messages>
</field>
</fields> </fields>
</group> </group>
<group> <group>
...@@ -246,30 +334,34 @@ ...@@ -246,30 +334,34 @@
<all_columns type="list">[]</all_columns> <all_columns type="list">[]</all_columns>
<all_editable_columns type="list">[]</all_editable_columns> <all_editable_columns type="list">[]</all_editable_columns>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<columns type="list">[('source', 'Source Account'), ('source_debit', 'Debit'), ('source_credit', 'Credit'), ('resource', 'Currency'), ('destination', 'Destination Account'), ('destination_debit', 'Debit'), ('destination_credit', 'Credit')]</columns> <columns type="list">[('id', 'id'), ('source', 'Account'), ('source_debit', 'Debit'), ('source_credit', 'Credit')]</columns>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<default_params type="list">[]</default_params> <default_params type="list">[]</default_params>
<description></description> <description></description>
<domain_root_list type="list">[]</domain_root_list> <domain_root_list type="list">[]</domain_root_list>
<domain_tree type="int">0</domain_tree> <domain_tree type="int">0</domain_tree>
<editable_columns type="list">[('source', 'Source Account'), ('source_debit', 'Debit'), ('source_credit', 'Credit'), ('resource', 'Currency'), ('destination', 'Destination Account')]</editable_columns> <editable type="int">1</editable>
<editable_columns type="list">[('source_debit', 'Debit'), ('source_credit', 'Credit'), ('source', 'Account')]</editable_columns>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<global_attributes type="list">[]</global_attributes> <global_attributes type="list">[]</global_attributes>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<lines type="int">10</lines> <lines type="int">10</lines>
<list_action>folder_contents</list_action> <list_action>folder_contents</list_action>
<list_method type="method">searchFolder</list_method> <list_method type="method">searchInvoiceTransaction</list_method>
<meta_types type="list">[]</meta_types> <meta_types type="list">[]</meta_types>
<portal_types type="list">[]</portal_types> <portal_types type="list">[]</portal_types>
<report_root_list type="list">[]</report_root_list> <report_root_list type="list">[]</report_root_list>
<report_tree type="int">0</report_tree> <report_tree type="int">0</report_tree>
<search type="int">0</search> <search type="int">0</search>
<search_columns type="list">[]</search_columns>
<select type="int">0</select> <select type="int">0</select>
<selection_name>account_line_selection</selection_name> <selection_name>accounting_transaction_line_selection</selection_name>
<sort type="list">[('id', 'id')]</sort> <sort type="list">[('id', 'id')]</sort>
<sort_columns type="list">[]</sort_columns>
<stat_method></stat_method> <stat_method></stat_method>
<title>Transaction Lines</title> <title>Accounting Transaction Lines</title>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -289,17 +381,22 @@ ...@@ -289,17 +381,22 @@
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <items type="list">[]</items>
<required type="int">0</required> <required type="int">0</required>
<size type="int">1</size> <size type="int">1</size>
<title>Source</title> <title>listbox_source</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python:[('','')] + map(lambda x: (x.title,'account/%s' % x.id),here.account.objectValues())</items> <items>python:cell.getObject().getInvoiceTransactionLineSourceItemList()</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
...@@ -307,23 +404,28 @@ ...@@ -307,23 +404,28 @@
<message name="unknown_selection">You selected an item that was not in the list.</message> <message name="unknown_selection">You selected an item that was not in the list.</message>
</messages> </messages>
</field> </field>
<field><id>listbox_resource</id> <type>ListField</type> <field><id>listbox_destination</id> <type>ListField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[('currency/EUR', 'currency/EUR'), ('currency/USD', 'currency/USD')]</items> <items type="list">[]</items>
<required type="int">0</required> <required type="int">0</required>
<size type="int">1</size> <size type="int">1</size>
<title>Currency</title> <title>listbox_destination</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python:map(lambda x: (x.id,'currency/%s' % x.id),here.currency.objectValues())</items> <items>python:[('','')] + map(lambda x: (x.title,'account/%s' % x.id),here.account.objectValues())</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
...@@ -331,43 +433,47 @@ ...@@ -331,43 +433,47 @@
<message name="unknown_selection">You selected an item that was not in the list.</message> <message name="unknown_selection">You selected an item that was not in the list.</message>
</messages> </messages>
</field> </field>
<field><id>listbox_destination</id> <type>ListField</type> <field><id>listbox_source_credit</id> <type>FloatField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<display_maxwidth></display_maxwidth>
<display_width type="int">5</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items>
<required type="int">0</required> <required type="int">0</required>
<size type="int">1</size> <title>listbox_source_credit</title>
<title>Destination</title> <whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python:[('','')] + map(lambda x: (x.title,'account/%s' % x.id),here.account.objectValues())</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message> <message name="required_not_found">Input is required but no input given.</message>
<message name="unknown_selection">You selected an item that was not in the list.</message> <message name="not_float">You did not enter a floating point number.</message>
</messages> </messages>
</field> </field>
<field><id>listbox_source_credit</id> <type>FloatField</type> <field><id>listbox_source_debit</id> <type>FloatField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">6</display_width> <display_width type="int">5</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<required type="int">0</required> <required type="int">0</required>
<title>Quantity</title> <title>listbox_source_debit</title>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -377,26 +483,32 @@ ...@@ -377,26 +483,32 @@
<message name="not_float">You did not enter a floating point number.</message> <message name="not_float">You did not enter a floating point number.</message>
</messages> </messages>
</field> </field>
<field><id>listbox_source_debit</id> <type>FloatField</type> <field><id>listbox_title</id> <type>StringField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">6</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<required type="int">0</required> <max_length></max_length>
<title>Quantity</title> <required type="int">1</required>
<title>listbox_title</title>
<truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message> <message name="required_not_found">Input is required but no input given.</message>
<message name="not_float">You did not enter a floating point number.</message> <message name="too_long">Too much input was given.</message>
</messages> </messages>
</field> </field>
</fields> </fields>
......
...@@ -16,17 +16,19 @@ product = my_transaction.manage_addProduct[ 'ERP5' ] ...@@ -16,17 +16,19 @@ product = my_transaction.manage_addProduct[ 'ERP5' ]
context.portal_types.constructContent(type_name= 'Purchase Invoice Transaction Line', context.portal_types.constructContent(type_name= 'Purchase Invoice Transaction Line',
container=my_transaction, container=my_transaction,
id='l0') id='expense')
context.portal_types.constructContent(type_name= 'Purchase Invoice Transaction Line', context.portal_types.constructContent(type_name= 'Purchase Invoice Transaction Line',
container=my_transaction, container=my_transaction,
id='l1') id='payable')
context.portal_types.constructContent(type_name= 'Purchase Invoice Transaction Line', context.portal_types.constructContent(type_name= 'Purchase Invoice Transaction Line',
container=my_transaction, container=my_transaction,
id='l2') id='collected_vat')
fournisseur=my_transaction.l0 context.portal_types.constructContent(type_name= 'Purchase Invoice Transaction Line',
charge=my_transaction.l1 container=my_transaction,
tva=my_transaction.l2 id='refundable_vat')
expense=my_transaction.expense
#fournisseur.setSource('account/capital') payable=my_transaction.payable
collected_vat=my_transaction.collected_vat
refundable_vat=my_transaction.refundable_vat
return my_transaction return my_transaction
...@@ -16,17 +16,15 @@ product = my_transaction.manage_addProduct[ 'ERP5' ] ...@@ -16,17 +16,15 @@ product = my_transaction.manage_addProduct[ 'ERP5' ]
context.portal_types.constructContent(type_name= 'Sale Invoice Transaction Line', context.portal_types.constructContent(type_name= 'Sale Invoice Transaction Line',
container=my_transaction, container=my_transaction,
id='l0') id='income')
context.portal_types.constructContent(type_name= 'Sale Invoice Transaction Line', context.portal_types.constructContent(type_name= 'Sale Invoice Transaction Line',
container=my_transaction, container=my_transaction,
id='l1') id='receivable')
context.portal_types.constructContent(type_name= 'Sale Invoice Transaction Line', context.portal_types.constructContent(type_name= 'Sale Invoice Transaction Line',
container=my_transaction, container=my_transaction,
id='l2') id='collected_vat')
client=my_transaction.l0 income=my_transaction.income
charge=my_transaction.l1 receivable=my_transaction.receivable
tva=my_transaction.l2 collected_vat=my_transaction.collected_vat
return my_transaction return my_transaction
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0"?>
<form> <form>
<title>Currency List</title> <title>Currency List</title>
<row_length>4</row_length>
<name>currency_list</name> <name>currency_list</name>
<action>base_edit</action>
<enctype></enctype>
<method>POST</method>
<pt>form_list</pt> <pt>form_list</pt>
<action>doSelect</action>
<update_action></update_action>
<method>POST</method>
<enctype></enctype>
<encoding>UTF-8</encoding>
<stored_encoding>ISO-8859-1</stored_encoding>
<unicode_mode>false</unicode_mode>
<groups> <groups>
<group> <group>
<title>left</title> <title>left</title>
...@@ -25,7 +29,9 @@ ...@@ -25,7 +29,9 @@
<description></description> <description></description>
<domain_root_list type="list">[]</domain_root_list> <domain_root_list type="list">[]</domain_root_list>
<domain_tree type="int">0</domain_tree> <domain_tree type="int">0</domain_tree>
<editable type="int">1</editable>
<editable_columns type="list">[]</editable_columns> <editable_columns type="list">[]</editable_columns>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<global_attributes type="list">[]</global_attributes> <global_attributes type="list">[]</global_attributes>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
...@@ -37,6 +43,7 @@ ...@@ -37,6 +43,7 @@
<report_root_list type="list">[]</report_root_list> <report_root_list type="list">[]</report_root_list>
<report_tree type="int">0</report_tree> <report_tree type="int">0</report_tree>
<search type="int">1</search> <search type="int">1</search>
<search_columns></search_columns>
<select type="int">1</select> <select type="int">1</select>
<selection_name>currency_selection</selection_name> <selection_name>currency_selection</selection_name>
<sort type="list">[('id', 'id')]</sort> <sort type="list">[('id', 'id')]</sort>
......
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0"?>
<form> <form>
<title>Currency</title> <title>Currency</title>
<row_length>4</row_length>
<name>currency_view</name> <name>currency_view</name>
<pt>form_view</pt>
<action>base_edit</action> <action>base_edit</action>
<enctype></enctype> <update_action></update_action>
<method>POST</method> <method>POST</method>
<pt>form_view</pt> <enctype></enctype>
<encoding>UTF-8</encoding>
<stored_encoding>ISO-8859-1</stored_encoding>
<unicode_mode>false</unicode_mode>
<groups> <groups>
<group> <group>
<title>left</title> <title>left</title>
...@@ -21,13 +25,17 @@ ...@@ -21,13 +25,17 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<max_length></max_length> <max_length></max_length>
<required type="int">1</required> <required type="int">1</required>
<title>Id</title> <title>ID</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -45,6 +53,8 @@ ...@@ -45,6 +53,8 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
...@@ -52,6 +62,8 @@ ...@@ -52,6 +62,8 @@
<required type="int">1</required> <required type="int">1</required>
<title>Title</title> <title>Title</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
......
...@@ -7,23 +7,38 @@ ...@@ -7,23 +7,38 @@
##parameters= ##parameters=
##title= ##title=
## ##
if context.id == 'l0': from Products.ERP5Type.Cache import CachingMethod
if context.portal_type == 'Purchase Invoice Transaction Line':
compte = '41' category_dict = {'income': 'portal_categories/pcg/6',
compte2 = '410' 'expense': 'portal_categories/pcg/7',
elif context.portal_type == 'Sale Invoice Transaction Line': 'payable': 'portal_categories/pcg/4/41/410',
compte2 = '409' 'receivable': 'portal_categories/pcg/4/40/409',
compte = '40' 'collected_vat': 'portal_categories/pcg/4/44',
return context.portal_categories.pcg['4'][compte][compte2].getCategoryMemberTitleItemList() 'refundable_vat': 'portal_categories/pcg/4/44',
elif context.id == 'l1': 'bank': 'portal_categories/pcg/5',
if context.portal_type == 'Purchase Invoice Transaction Line': }
compte = '7'
elif context.portal_type == 'Sale Invoice Transaction Line': if context.id in category_dict:
compte = '6' category = category_dict[context.id]
return context.portal_categories.pcg[compte].getCategoryMemberTitleItemList()
elif context.id == 'l2':
return context.portal_categories.pcg['4']['44'].getCategoryMemberTitleItemList()
else: else:
return context.portal_categories.pcg.getCategoryMemberTitleItemList() category = 'portal_categories/pcg'
display_dict = {}
def display(x):
if x not in display_dict:
pcg_id = x.getPcgId()
account_title = x.getTitle()
display_dict[x] = "%s - %s" % (pcg_id, account_title)
return display_dict[x]
def sort(x,y):
return cmp(display(x), display(y))
def getItemList(category=None):
obj = context.restrictedTraverse(category)
item_list = obj.getCategoryMemberItemList(portal_type='Account', base=0,
display_method=display, sort_method=sort)
return item_list
return () getItemList = CachingMethod(getItemList, id=('getInvoiceTransactionLineItemList', 'getItemList'))
return getItemList(category=category)
...@@ -7,23 +7,38 @@ ...@@ -7,23 +7,38 @@
##parameters= ##parameters=
##title= ##title=
## ##
if context.id == 'l0': from Products.ERP5Type.Cache import CachingMethod
if context.portal_type == 'Purchase Invoice Transaction Line':
compte2 = '409' category_dict = {'income': 'portal_categories/pcg/7',
compte = '40' 'expense': 'portal_categories/pcg/6',
elif context.portal_type == 'Sale Invoice Transaction Line': 'payable': 'portal_categories/pcg/4/40/409',
compte = '41' 'receivable': 'portal_categories/pcg/4/41/410',
compte2 = '410' 'collected_vat': 'portal_categories/pcg/4/44',
return context.portal_categories.pcg['4'][compte][compte2].getCategoryMemberTitleItemList() 'refundable_vat': 'portal_categories/pcg/4/44',
elif context.id == 'l1': 'bank': 'portal_categories/pcg/5',
if context.portal_type == 'Purchase Invoice Transaction Line': }
compte = '6'
elif context.portal_type == 'Sale Invoice Transaction Line': if context.id in category_dict:
compte = '7' category = category_dict[context.id]
return context.portal_categories.pcg[compte].getCategoryMemberTitleItemList()
elif context.id == 'l2':
return context.portal_categories.pcg['4']['44'].getCategoryMemberTitleItemList()
else: else:
return context.portal_categories.pcg.getCategoryMemberTitleItemList() category = 'portal_categories/pcg'
display_dict = {}
def display(x):
if x not in display_dict:
pcg_id = x.getPcgId()
account_title = x.getTitle()
display_dict[x] = "%s - %s" % (pcg_id, account_title)
return display_dict[x]
def sort(x,y):
return cmp(display(x), display(y))
def getItemList(category=None):
obj = context.restrictedTraverse(category)
item_list = obj.getCategoryMemberItemList(portal_type='Account', base=0,
display_method=display, sort_method=sort)
return item_list
return () getItemList = CachingMethod(getItemList, id=('getInvoiceTransactionLineItemList', 'getItemList'))
return getItemList(category=category)
...@@ -2,208 +2,139 @@ ...@@ -2,208 +2,139 @@
<html> <html>
<head> <head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1"> <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<title tal:content="here/getTitle">Nexedi</title> <title tal:content="here/getTitle">Nexedi</title>
</head>
<body bgcolor="#ffffff"
tal:define="packing_list
python:here.getDefaultValue('causality',spec=['Sale Packing List']);
from_organisation
python:here.getDefaultSourceSectionValue();
client_invoice
python:here.getDefaultValue('destination_section',spec=['Organisation']);
client_delivery
python:here.getDefaultValue('destination_section',spec=['Organisation']);">
</head>
<table width=100%> <body bgcolor="#ffffff"
<tr tal:condition="from_organisation/default_logo/getUrl | nothing"> tal:define="packing_list python:here.getDefaultValue('causality',spec=['Sale Packing List']);
<td colspan="2"> from_organisation python:here.restrictedTraverse('/nexedi/organisation/nexedi');
<img src="" tal:attributes="src from_organisation/default_logo/getUrl | nothing" client_invoice python:here.getDefaultValue('destination_section',spec=['Organisation', 'Person']);
width="20%"> client_delivery python:here.getDefaultValue('destination_section',spec=['Organisation', 'Person']);
<td/> total_price python:here.getDefaultTotalPrice()">
</tr>
<tr>
<td align=left tal:content="python:
from_organisation.getCorporateName()"/>
<td align=right tal:content="python: 'Tel : %s' %
from_organisation.getDefaultTelephone().asText()"/>
</tr>
<tr>
<td tal:content="python:
from_organisation.getDefaultAddress().getStreetAddress()"/>
<td>
</tr>
<tr>
<td tal:content="python: '%s %s' %
(from_organisation.getDefaultAddress().getZipCode(),
from_organisation.getDefaultAddress().getCity())"/>
<td>
</tr>
<tr>
<th colspan=3>
<h2>INVOICE</h2>
</th>
</tr>
</table>
<table width=100%>
<tr>
<td align=right tal:content="python: 'Invoice Date : %s' %
here.getStartDate().strftime('%Y-%m-%d')"/>
</tr>
<tr>
<td align=right tal:content="python: 'Pay Before : %s' %
here.getStartDate().strftime('%Y-%m-%d')"/>
</tr>
<tr>
<td align=right tal:content="python: 'Invoice N : %s' %
here.getId()"/>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
<table width=100%>
<tr bgcolor=000000>
<th align=left><font color=ffffff>INVOICE ADDRESS</th>
<th align=left><font color=ffffff>DELIVERY ADDRESS</th>
</tr>
<tr>
<td align=left tal:content="python:
client_invoice.getCorporateName()"/>
<td align=left tal:content="python:
client_delivery.getCorporateName()"/>
</tr>
<tr>
<td align=left tal:content="python:
client_invoice.getDefaultAddress().getStreetAddress()"/>
<td align=left tal:content="python:
client_delivery.getDefaultAddress().getStreetAddress()"/>
</tr>
<tr>
<td align=left tal:content="python: '%s %s' %
(client_invoice.getDefaultAddress().getZipCode(),
client_invoice.getDefaultAddress().getCity())"/>
<td align=left tal:content="python: '%s %s' %
(client_delivery.getDefaultAddress().getZipCode(),
client_delivery.getDefaultAddress().getCity())"/>
</tr>
</table>
<p/>
<table width=100%>
<tr bgcolor=000000>
<th align=left><font color=ffffff>N</th>
<th align=left><font color=ffffff>Description</th>
<th><font color=ffffff>Quantity</font></th>
<th><font color=ffffff>Unit</font></th>
<th><font color=ffffff>Unit Price</font></th>
<th><font color=ffffff>Total Price</font></th>
</tr>
<span tal:define="ordered_lines
python:packing_list.contentValues(filter={'meta_type':'ERP5 Delivery
Line'})"
tal:repeat="ligne ordered_lines">
<tr valign=top tal:condition="python:ligne.getQuantity()>0">
<td align=left tal:content="python:ligne.getId()"></td>
<!-- <td> </td> -->
<td width="50%"><span tal:replace="python:
ligne.getResourceTitle()"/>: <span tal:replace="python:
ligne.getDescription()"/></td>
<td width="12%" align=right tal:content="python: '%.0f' %
ligne.getQuantity()"></td>
<td>n/a</td>
<td width="12%" align=right tal:content="python: '%.0f' %
ligne.getPrice()"></td>
<td width="12%" align=right
tal:define="line_price ligne/getTotalPrice | python:0.0"
tal:content="python: '%.0f' % line_price"></td>
</tr>
</span>
<table width=100%>
<tr> <tr>
<td colspan=6><hr noshade></td> <td colspan=3><img src="logo.png"></td>
</tr> </tr>
<tr> <tr>
<th colspan=4 align=right>Total (<span <td align=left tal:content="python: from_organisation.getCorporateName()" colspan="2" />
<td align=right tal:content="python: 'Invoice Date: %s' % here.getStartDate()"/>
tal:replace="python:here.l1.getDefaultResourceValue().getTitle()"/>)</th>
<td colspan=2 align=right tal:content="python:
here.l1.getSourceDebit()"></td>
</tr> </tr>
<tr> <tr>
<th colspan=4 align=right>TVA 19.6 % (<span <td align=left tal:content="python: 'Tel : %s' % from_organisation.getDefaultTelephone().asText()" colspan="2"/>
<td align=right tal:content="python: 'Pay Before: %s' % here.getStopDate()"/>
tal:replace="python:here.l1.getDefaultResourceValue().getTitle()"/>)</th>
<td colspan=2 align=right tal:content="python:
here.l2.getSourceDebit()"></td>
</tr> </tr>
<tr> <tr>
<td colspan=3>&nbsp;</td> <td tal:content="python: from_organisation.getDefaultAddress().getStreetAddress()" colspan="2"/>
<td colspan=3><hr noshade></td> <td align=right tal:content="python: 'Invoice N: ERP5/%s' % here.getId()"/>
</tr> </tr>
<tr> <tr>
<td colspan=3>A rgler avant le <b tal:content="python: <td tal:content="python: '%s %s' %
here.getStartDate().strftime('%Y-%m-%d')">0</b>. (from_organisation.getDefaultAddress().getZipCode(),
<br><font size="-3">Conditions de rglement: par chque, 0 jours date de from_organisation.getDefaultAddress().getCity())" colspan="3"/>
la facture. Paiement accept en euros.
Tout retard de rglement donnera lieu une pnalit de 1,5% du montant d
par mois.
Rserve de proprit: nous conservons la pleine proprit des marchandises
jusqu'au paiement intgral du prix, des taxes et accessoires.</font></td>
<th colspan=1 align=right>Somme rgler (<span
tal:replace="python:here.l1.getDefaultResourceValue().getTitle()"/>)</th>
<th colspan=2 align=right tal:content="python:
here.l0.getSourceCredit()"></th>
</tr> </tr>
<tr> <tr>
<td>&nbsp;</td> <th colspan=3>
<h2>INVOICE</h2>
</th>
</tr> </tr>
</table> </table>
<table width="100%"> <br/>
<tr>
<td><center><h6>RCS Roubaix Tourcoing 440 047 504<br> <table width=100%>
<tr bgcolor=000000>
Banque:&nbsp;30027&nbsp;Guichet:&nbsp;00039&nbsp;Compte:&nbsp;00000013323&nbsp;RIB:&nbsp;36<br>IBAN: <th align=left><font color=ffffff>INVOICE ADDRESS</th>
FR76 3002 7175 3900 0410 2760 135<br> <th align=left><font color=ffffff>DELIVERY ADDRESS</th>
VAT FR72440047504</h6></center></td> </tr>
</tr>
</table> <tr>
<td align=left tal:content="client_invoice/getCorporateName | client_invoice/getTitle"/>
<td align=left tal:content="client_delivery/getCorporateName | client_delivery/getTitle"/>
</tr>
<tr>
<td align=left tal:content="python: client_invoice.getDefaultAddress().getStreetAddress()"/>
<td align=left tal:content="python: client_delivery.getDefaultAddress().getStreetAddress()"/>
</tr>
<tr>
<td align=left tal:content="python: '%s %s' %
(client_invoice.getDefaultAddress().getZipCode(),
client_invoice.getDefaultAddress().getCity())"/>
<td align=left tal:content="python: '%s %s' %
(client_delivery.getDefaultAddress().getZipCode(),
client_delivery.getDefaultAddress().getCity())"/>
</tr>
</table>
<br/>
<table width=100%>
<tr bgcolor=000000>
<th align=left nowrap><font color=ffffff>N</font></th>
<th align=left nowrap><font color=ffffff>Description</font></th>
<th nowrap><font color=ffffff>Quantity</th>
<th nowrap><font color=ffffff>Unit</font></th>
<th nowrap><font color=ffffff>Unit Price</font></th>
<th nowrap><font color=ffffff>Total Price</font></th>
</tr>
<span tal:define="ordered_lines python:packing_list.contentValues(filter={'meta_type':'ERP5 Delivery Line'})"
tal:repeat="ligne ordered_lines">
<tr valign=top tal:condition="python:ligne.getQuantity()>0">
<td align=left tal:content="python:ligne.getId()"></td>
<!-- <td> </td> -->
<td tal:content="python: ligne.getResourceTitle()"></td>
<td align=right tal:content="python: '%.0f' % ligne.getQuantity()"></td>
<td>n/a</td>
<td align=right tal:content="python: '%.0f' % ligne.getPrice()"></td>
<td align=right tal:content="python: '%.0f' % ligne.getTotalPrice()"></td>
</tr>
</span>
<tr>
<td colspan=6><hr noshade></td>
</tr>
<tr>
<th colspan=4 align=right>Total (<span tal:replace="here/l0/getResourceId"/>)</th>
<td colspan=2 align=right tal:content="here/l1/getSourceCredit"></td>
</tr>
<tr>
<th colspan=4 align=right>TVA 19.6 % (<span tal:replace="here/l0/getResourceId"/>)</th>
<td colspan=2 align=right tal:content="here/l2/getSourceCredit"></td>
</tr>
<tr>
<td colspan=3>&nbsp;</td>
<td colspan=3><hr noshade></td>
</tr>
<tr>
<td colspan=3>A rgler dans <b>0</b> jours au plus tard.
<br><font size="-3">Conditions de rglement: par chque, 0 jours date de la facture. Paiement accept en euros.
Tout retard de rglement donnera lieu une pnalit de 1,5% du montant d par mois.
Rserve de proprit: nous conservons la pleine proprit des marchandises jusqu'au paiement intgral du prix, des taxes et accessoires.</font></td>
<th colspan=1 align=right nowrap>Somme rgler (<span tal:replace="here/l0/getResourceId"/>)</th>
<th colspan=2 align=right tal:content="here/l0/getSourceDebit"></th>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table>
<table width="100%">
<tr>
<td><center><h6>RCS Roubaix Tourcoing 440 047 504<br>
Banque:&nbsp;30027&nbsp;Guichet:&nbsp;00039&nbsp;Compte:&nbsp;00000013323&nbsp;RIB:&nbsp;36<br>IBAN: FR76 3002 7175 3900 0410 2760 135<br>
VAT FR72440047504</h6></center></td>
</tr>
</table>
</body> </body>
</html> </html>
\ No newline at end of file
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0"?>
<form> <form>
<title>Purchase Invoice Transaction Line</title> <title>Purchase Invoice Transaction Line</title>
<row_length>4</row_length>
<name>purchase_invoice_list</name> <name>purchase_invoice_list</name>
<pt>form_view</pt>
<action>base_edit</action> <action>base_edit</action>
<enctype></enctype> <update_action></update_action>
<method>POST</method> <method>POST</method>
<pt>form_view</pt> <enctype></enctype>
<encoding>UTF-8</encoding>
<stored_encoding>ISO-8859-1</stored_encoding>
<unicode_mode>false</unicode_mode>
<groups> <groups>
<group> <group>
<title>left</title> <title>left</title>
...@@ -21,13 +25,17 @@ ...@@ -21,13 +25,17 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<max_length></max_length> <max_length></max_length>
<required type="int">1</required> <required type="int">0</required>
<title>Title</title> <title>Title</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -43,17 +51,22 @@ ...@@ -43,17 +51,22 @@
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <items type="list">[]</items>
<required type="int">1</required> <required type="int">0</required>
<size type="int">1</size> <size type="int">1</size>
<title>Source</title> <title>Customer Account</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python:here.portal_categories.pcg.getCategoryMemberTitleItemList()</items> <items>python:here.getInvoiceTransactionLineSourceItemList()</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
...@@ -67,17 +80,22 @@ ...@@ -67,17 +80,22 @@
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <items type="list">[]</items>
<required type="int">1</required> <required type="int">0</required>
<size type="int">1</size> <size type="int">1</size>
<title>Destination</title> <title>Vendor Account</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python:here.portal_categories.pcg.getCategoryMemberTitleItemList()</items> <items>python:here.getInvoiceTransactionLineDestinationItemList()</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
...@@ -93,11 +111,14 @@ ...@@ -93,11 +111,14 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<required type="int">1</required> <required type="int">0</required>
<title>Source Debit</title> <title>Source Debit</title>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -115,11 +136,14 @@ ...@@ -115,11 +136,14 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<required type="int">1</required> <required type="int">0</required>
<title>Source Credit</title> <title>Source Credit</title>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
......
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0"?>
<form> <form>
<title>Purchase Invoice Transaction</title> <title>Purchase Invoice Transaction</title>
<row_length>4</row_length>
<name>purchase_invoice_list</name> <name>purchase_invoice_list</name>
<pt>form_view</pt>
<action>base_edit</action> <action>base_edit</action>
<enctype></enctype> <update_action></update_action>
<method>POST</method> <method>POST</method>
<pt>form_view</pt> <enctype></enctype>
<encoding>UTF-8</encoding>
<stored_encoding>ISO-8859-1</stored_encoding>
<unicode_mode>false</unicode_mode>
<groups> <groups>
<group> <group>
<title>left</title> <title>left</title>
<fields> <fields>
<field><id>my_source_section</id> <type>ListField</type>
<values>
<alternate_name></alternate_name>
<css_class></css_class>
<default></default>
<description></description>
<editable type="int">1</editable>
<editable_expression></editable_expression>
<editable_permission type="list">[]</editable_permission>
<editable_role type="list">[]</editable_role>
<enabled type="int">1</enabled>
<external_validator></external_validator>
<extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item>
<hidden type="int">0</hidden>
<items type="list">[]</items>
<not_viewable type="int">0</not_viewable>
<read_only type="int">0</read_only>
<required type="int">1</required>
<size type="int">1</size>
<title>Customer</title>
<unicode type="int">0</unicode>
<viewable_expression></viewable_expression>
<viewable_permission type="list">[]</viewable_permission>
<viewable_role type="list">[]</viewable_role>
<whitespace_preserve type="int">0</whitespace_preserve>
</values>
<tales>
<items>python: [['Nexedi', 'organisation/nexedi'], ]</items>
</tales>
<messages>
<message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message>
<message name="unknown_selection">You selected an item that was not in the list.</message>
</messages>
</field>
<field><id>my_source_reference</id> <type>StringField</type>
<values>
<alternate_name></alternate_name>
<css_class></css_class>
<default></default>
<description></description>
<display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width>
<editable type="int">0</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator>
<extra></extra>
<hidden type="int">0</hidden>
<max_length></max_length>
<required type="int">0</required>
<title>Transaction Reference</title>
<truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values>
<tales>
</tales>
<messages>
<message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message>
<message name="too_long">Too much input was given.</message>
</messages>
</field>
<field><id>my_title</id> <type>StringField</type> <field><id>my_title</id> <type>StringField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
...@@ -21,13 +90,17 @@ ...@@ -21,13 +90,17 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<max_length></max_length> <max_length></max_length>
<required type="int">1</required> <required type="int">0</required>
<title>Title</title> <title>Title</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -43,11 +116,13 @@ ...@@ -43,11 +116,13 @@
<base_category>destination_section</base_category> <base_category>destination_section</base_category>
<catalog_index>Title</catalog_index> <catalog_index>Title</catalog_index>
<css_class></css_class> <css_class></css_class>
<default>Nexedi</default> <default></default>
<default_module>organisation</default_module> <default_module>organisation</default_module>
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
...@@ -55,9 +130,11 @@ ...@@ -55,9 +130,11 @@
<max_length></max_length> <max_length></max_length>
<portal_type type="list">[('Organisation', 'Organisation'), ('Person', 'Person')]</portal_type> <portal_type type="list">[('Organisation', 'Organisation'), ('Person', 'Person')]</portal_type>
<required type="int">0</required> <required type="int">0</required>
<title>Client</title> <title>Vendor</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<update_method>base_update_relation</update_method> <update_method>base_update_relation</update_method>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -67,27 +144,33 @@ ...@@ -67,27 +144,33 @@
<message name="too_long">Too much input was given.</message> <message name="too_long">Too much input was given.</message>
</messages> </messages>
</field> </field>
<field><id>my_source_section_title</id> <type>RelationStringField</type> <field><id>my_reference</id> <type>StringField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<base_category>source_section</base_category>
<catalog_index>Title</catalog_index>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<default_module>organisation</default_module>
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<editable_expression></editable_expression>
<editable_permission></editable_permission>
<editable_role></editable_role>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<jump_method>base_jump_relation</jump_method>
<max_length></max_length> <max_length></max_length>
<portal_type type="list">[('Organisation', 'Organisation'), ('Person', 'Person')]</portal_type> <not_viewable type="int">0</not_viewable>
<read_only type="int">0</read_only>
<required type="int">0</required> <required type="int">0</required>
<title>Vendor</title> <title>Invoice Number</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<update_method>base_update_relation</update_method> <unicode type="int">0</unicode>
<viewable_expression></viewable_expression>
<viewable_permission></viewable_permission>
<viewable_role></viewable_role>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -97,24 +180,28 @@ ...@@ -97,24 +180,28 @@
<message name="too_long">Too much input was given.</message> <message name="too_long">Too much input was given.</message>
</messages> </messages>
</field> </field>
<field><id>resource</id> <type>ListField</type> <field><id>my_resource</id> <type>ListField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <items type="list">[]</items>
<required type="int">0</required> <required type="int">0</required>
<size type="int">1</size> <size type="int">1</size>
<title>Currency</title> <title>Currency</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<default>here/l0/getDefaultResource | nothing</default> <items>python:[('','')]+map(lambda x:(x.id,'currency/%s' %x.id),here.currency.objectValues())</items>
<items>python:map(lambda x: (x.id,'currency/%s' % x.id),here.currency.objectValues())</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
...@@ -130,19 +217,23 @@ ...@@ -130,19 +217,23 @@
<field><id>my_start_date</id> <type>DateTimeField</type> <field><id>my_start_date</id> <type>DateTimeField</type>
<values> <values>
<allow_empty_time type="int">0</allow_empty_time>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<ampm_time_style type="int">0</ampm_time_style>
<css_class></css_class> <css_class></css_class>
<date_only type="int">0</date_only> <date_only type="int">1</date_only>
<date_separator>/</date_separator> <date_separator>/</date_separator>
<default_now type="int">1</default_now> <default_now type="int">1</default_now>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<input_order>ymd</input_order> <input_order>ymd</input_order>
<input_style>text</input_style> <input_style>text</input_style>
<required type="int">0</required> <required type="int">0</required>
<time_separator>:</time_separator> <time_separator>:</time_separator>
<title>Start Date</title> <title>Operation Date</title>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -153,56 +244,100 @@ ...@@ -153,56 +244,100 @@
<message name="datetime_out_of_range">The date and time you entered were out of range.</message> <message name="datetime_out_of_range">The date and time you entered were out of range.</message>
</messages> </messages>
</field> </field>
<field><id>my_stop_date</id> <type>DateTimeField</type> <field><id>my_description</id> <type>TextAreaField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<date_only type="int">0</date_only> <default></default>
<date_separator>/</date_separator>
<default_now type="int">1</default_now>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra>
<height type="int">5</height>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<input_order>ymd</input_order> <max_length></max_length>
<input_style>text</input_style> <max_linelength></max_linelength>
<max_lines></max_lines>
<required type="int">0</required> <required type="int">0</required>
<time_separator>:</time_separator> <title>Description</title>
<title>Stop Date</title> <unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
<width type="int">40</width>
</values> </values>
<tales> <tales>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message> <message name="required_not_found">Input is required but no input given.</message>
<message name="not_datetime">You did not enter a valid date and time.</message> <message name="too_many_lines">You entered too many lines.</message>
<message name="datetime_out_of_range">The date and time you entered were out of range.</message> <message name="line_too_long">A line was too long.</message>
<message name="too_long">You entered too many characters.</message>
</messages> </messages>
</field> </field>
<field><id>my_description</id> <type>TextAreaField</type> <field><id>simulation_state</id> <type>StringField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width>
<editable type="int">0</editable>
<editable_expression></editable_expression>
<editable_permission type="list">[]</editable_permission>
<editable_role type="list">[]</editable_role>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<height type="int">5</height>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<max_length></max_length> <max_length></max_length>
<max_linelength></max_linelength> <not_viewable type="int">0</not_viewable>
<max_lines></max_lines> <read_only type="int">1</read_only>
<required type="int">0</required> <required type="int">0</required>
<title>Description</title> <title>State</title>
<width type="int">40</width> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<viewable_expression></viewable_expression>
<viewable_permission type="list">[]</viewable_permission>
<viewable_role type="list">[]</viewable_role>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<default>python:here.portal_workflow.getInfoFor(here, 'simulation_state')</default>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message> <message name="required_not_found">Input is required but no input given.</message>
<message name="too_many_lines">You entered too many lines.</message> <message name="too_long">Too much input was given.</message>
<message name="line_too_long">A line was too long.</message> </messages>
<message name="too_long">You entered too many characters.</message> </field>
<field><id>my_destination_reference</id> <type>StringField</type>
<values>
<alternate_name></alternate_name>
<css_class></css_class>
<default></default>
<description></description>
<display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width>
<editable type="int">0</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator>
<extra></extra>
<hidden type="int">0</hidden>
<max_length></max_length>
<required type="int">0</required>
<title>Vendor Transaction Reference</title>
<truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values>
<tales>
</tales>
<messages>
<message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message>
<message name="too_long">Too much input was given.</message>
</messages> </messages>
</field> </field>
</fields> </fields>
...@@ -222,30 +357,42 @@ ...@@ -222,30 +357,42 @@
<all_columns type="list">[]</all_columns> <all_columns type="list">[]</all_columns>
<all_editable_columns type="list">[]</all_editable_columns> <all_editable_columns type="list">[]</all_editable_columns>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<columns type="list">[('id', 'id'), ('title', 'Title'), ('source', 'Source'), ('source_debit', 'Debit'), ('source_credit', 'Credit'), ('destination', 'Destination'), ('destination_debit', 'Debit'), ('destination_credit', 'Credit')]</columns> <columns type="list">[('id', 'id'), ('source', 'Account'), ('source_debit', 'Debit'), ('source_credit', 'Credit')]</columns>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<default_params type="list">[]</default_params> <default_params type="list">[]</default_params>
<description></description> <description></description>
<domain_root_list type="list">[]</domain_root_list> <domain_root_list type="list">[]</domain_root_list>
<domain_tree type="int">0</domain_tree> <domain_tree type="int">0</domain_tree>
<editable_columns type="list">[('title', 'Title'), ('source_debit', 'Debit'), ('source_credit', 'Credit'), ('destination', 'Destination'), ('source', 'Source')]</editable_columns> <editable type="int">1</editable>
<editable_columns type="list">[('source_debit', 'Debit'), ('source_credit', 'Credit'), ('source', 'Account')]</editable_columns>
<editable_expression></editable_expression>
<editable_permission type="list">[]</editable_permission>
<editable_role type="list">[]</editable_role>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<global_attributes type="list">[('resource', 'resource')]</global_attributes> <global_attributes type="list">[('resource', 'resource')]</global_attributes>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<lines type="int">10</lines> <lines type="int">10</lines>
<list_action>folder_contents</list_action> <list_action>folder_contents</list_action>
<list_method type="method">searchFolder</list_method> <list_method type="method">searchInvoiceTransaction</list_method>
<meta_types type="list">[]</meta_types> <meta_types type="list">[]</meta_types>
<not_viewable type="int">0</not_viewable>
<portal_types type="list">[]</portal_types> <portal_types type="list">[]</portal_types>
<read_only type="int">0</read_only>
<report_root_list type="list">[]</report_root_list> <report_root_list type="list">[]</report_root_list>
<report_tree type="int">0</report_tree> <report_tree type="int">0</report_tree>
<search type="int">0</search> <search type="int">0</search>
<select type="int">1</select> <search_columns type="list">[]</search_columns>
<select type="int">0</select>
<selection_name>purchase_invoice_transaction_line_selection</selection_name> <selection_name>purchase_invoice_transaction_line_selection</selection_name>
<sort type="list">[('id', 'id')]</sort> <sort type="list">[('id', 'id')]</sort>
<sort_columns type="list">[]</sort_columns>
<stat_method></stat_method> <stat_method></stat_method>
<title>Purchase Invoice Transaction Lines</title> <title>Purchase Invoice Transaction Lines</title>
<viewable_expression></viewable_expression>
<viewable_permission type="list">[]</viewable_permission>
<viewable_role type="list">[]</viewable_role>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -267,6 +414,8 @@ ...@@ -267,6 +414,8 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
...@@ -274,6 +423,8 @@ ...@@ -274,6 +423,8 @@
<required type="int">0</required> <required type="int">0</required>
<title>Title</title> <title>Title</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -289,14 +440,19 @@ ...@@ -289,14 +440,19 @@
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <items type="list">[]</items>
<required type="int">0</required> <required type="int">0</required>
<size type="int">1</size> <size type="int">1</size>
<title>listbox_source</title> <title>listbox_source</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python:cell.getObject().getInvoiceTransactionLineSourceItemList()</items> <items>python:cell.getObject().getInvoiceTransactionLineSourceItemList()</items>
...@@ -313,14 +469,19 @@ ...@@ -313,14 +469,19 @@
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <items type="list">[]</items>
<required type="int">0</required> <required type="int">0</required>
<size type="int">1</size> <size type="int">1</size>
<title>listbox_destination</title> <title>listbox_destination</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python:cell.getObject().getInvoiceTransactionLineDestinationItemList()</items> <items>python:cell.getObject().getInvoiceTransactionLineDestinationItemList()</items>
...@@ -339,11 +500,14 @@ ...@@ -339,11 +500,14 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">5</display_width> <display_width type="int">5</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<required type="int">0</required> <required type="int">0</required>
<title>listbox_source_debit</title> <title>listbox_source_debit</title>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -361,11 +525,14 @@ ...@@ -361,11 +525,14 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">5</display_width> <display_width type="int">5</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<required type="int">0</required> <required type="int">0</required>
<title>listbox_source_debit</title> <title>listbox_source_credit</title>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
......
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0"?>
<form> <form>
<title>Sale Invoice Transaction Line</title> <title>Sale Invoice Transaction Line</title>
<row_length>4</row_length>
<name>sale_invoice_list</name> <name>sale_invoice_list</name>
<pt>form_view</pt>
<action>base_edit</action> <action>base_edit</action>
<enctype></enctype> <update_action></update_action>
<method>POST</method> <method>POST</method>
<pt>form_view</pt> <enctype></enctype>
<encoding>UTF-8</encoding>
<stored_encoding>ISO-8859-1</stored_encoding>
<unicode_mode>false</unicode_mode>
<groups> <groups>
<group> <group>
<title>left</title> <title>left</title>
...@@ -21,13 +25,17 @@ ...@@ -21,13 +25,17 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<max_length></max_length> <max_length></max_length>
<required type="int">1</required> <required type="int">0</required>
<title>Title</title> <title>Title</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -43,17 +51,22 @@ ...@@ -43,17 +51,22 @@
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <items type="list">[]</items>
<required type="int">1</required> <required type="int">0</required>
<size type="int">1</size> <size type="int">1</size>
<title>Source</title> <title>Vendor Account</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python:here.portal_categories.pcg.getCategoryMemberTitleItemList()</items> <items>python:here.getInvoiceTransactionLineSourceItemList()</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
...@@ -67,17 +80,22 @@ ...@@ -67,17 +80,22 @@
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <items type="list">[]</items>
<required type="int">1</required> <required type="int">0</required>
<size type="int">1</size> <size type="int">1</size>
<title>Destination</title> <title>Customer Account</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python:here.portal_categories.pcg.getCategoryMemberTitleItemList()</items> <items>python:here.getInvoiceTransactionLineDestinationItemList()</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
...@@ -93,11 +111,14 @@ ...@@ -93,11 +111,14 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<required type="int">1</required> <required type="int">0</required>
<title>Source Debit</title> <title>Vendor Debit</title>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -115,11 +136,14 @@ ...@@ -115,11 +136,14 @@
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<required type="int">1</required> <required type="int">0</required>
<title>Source Credit</title> <title>Vendor Credit</title>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
......
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0"?>
<form> <form>
<title>Sale Invoice Transaction</title> <title>Sale Invoice Transaction</title>
<row_length>4</row_length>
<name>sale_invoice_list</name> <name>sale_invoice_list</name>
<pt>form_view</pt>
<action>base_edit</action> <action>base_edit</action>
<enctype></enctype> <update_action></update_action>
<method>POST</method> <method>POST</method>
<pt>form_view</pt> <enctype></enctype>
<encoding>UTF-8</encoding>
<stored_encoding>ISO-8859-1</stored_encoding>
<unicode_mode>false</unicode_mode>
<groups> <groups>
<group> <group>
<title>left</title> <title>left</title>
<fields> <fields>
<field><id>my_title</id> <type>StringField</type> <field><id>my_source_section</id> <type>ListField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <editable type="int">1</editable>
<display_width type="int">20</display_width> <editable_expression></editable_expression>
<editable_permission type="list">[]</editable_permission>
<editable_role type="list">[]</editable_role>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<max_length></max_length> <items type="list">[]</items>
<required type="int">1</required> <not_viewable type="int">0</not_viewable>
<title>Title</title> <read_only type="int">0</read_only>
<truncate type="int">0</truncate> <required type="int">0</required>
<size type="int">1</size>
<title>Vendor</title>
<unicode type="int">0</unicode>
<viewable_expression></viewable_expression>
<viewable_permission type="list">[]</viewable_permission>
<viewable_role type="list">[]</viewable_role>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python: [['Nexedi', 'organisation/nexedi']]</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message> <message name="required_not_found">Input is required but no input given.</message>
<message name="too_long">Too much input was given.</message> <message name="unknown_selection">You selected an item that was not in the list.</message>
</messages> </messages>
</field> </field>
<field><id>my_destination_section_title</id> <type>RelationStringField</type> <field><id>my_title</id> <type>StringField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<base_category>destination_section</base_category>
<catalog_index>Title</catalog_index>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<default_module>organisation</default_module>
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<jump_method>base_jump_relation</jump_method>
<max_length></max_length> <max_length></max_length>
<portal_type type="list">[('Organisation', 'Organisation'), ('Person', 'Person')]</portal_type> <required type="int">1</required>
<required type="int">0</required> <title>Title</title>
<title>Client</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<update_method>base_update_relation</update_method> <unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -67,27 +82,33 @@ ...@@ -67,27 +82,33 @@
<message name="too_long">Too much input was given.</message> <message name="too_long">Too much input was given.</message>
</messages> </messages>
</field> </field>
<field><id>my_source_section_title</id> <type>RelationStringField</type> <field><id>my_reference</id> <type>StringField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<base_category>source_section</base_category>
<catalog_index>Title</catalog_index>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<default_module>organisation</default_module>
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">10</display_width>
<editable type="int">0</editable>
<editable_expression></editable_expression>
<editable_permission type="list">[]</editable_permission>
<editable_role type="list">[]</editable_role>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<jump_method>base_jump_relation</jump_method>
<max_length></max_length> <max_length></max_length>
<portal_type type="list">[('Organisation', 'Organisation'), ('Person', 'Person')]</portal_type> <not_viewable type="int">0</not_viewable>
<read_only type="int">1</read_only>
<required type="int">0</required> <required type="int">0</required>
<title>Vendor</title> <title>Invoice Reference</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<update_method>base_update_relation</update_method> <unicode type="int">0</unicode>
<viewable_expression></viewable_expression>
<viewable_permission type="list">[]</viewable_permission>
<viewable_role type="list">[]</viewable_role>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -97,52 +118,62 @@ ...@@ -97,52 +118,62 @@
<message name="too_long">Too much input was given.</message> <message name="too_long">Too much input was given.</message>
</messages> </messages>
</field> </field>
<field><id>resource</id> <type>ListField</type> <field><id>my_description</id> <type>TextAreaField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<first_item type="int">0</first_item> <height type="int">3</height>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <max_length></max_length>
<max_linelength></max_linelength>
<max_lines></max_lines>
<required type="int">0</required> <required type="int">0</required>
<size type="int">1</size> <title>Description</title>
<title>Currency</title> <unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
<width type="int">40</width>
</values> </values>
<tales> <tales>
<default>here/l0/getDefaultResource | nothing</default>
<items>python:map(lambda x: (x.id,'currency/%s' % x.id),here.currency.objectValues())</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message> <message name="required_not_found">Input is required but no input given.</message>
<message name="unknown_selection">You selected an item that was not in the list.</message> <message name="too_many_lines">You entered too many lines.</message>
<message name="line_too_long">A line was too long.</message>
<message name="too_long">You entered too many characters.</message>
</messages> </messages>
</field> </field>
<field><id>my_causality_title</id> <type>RelationStringField</type> <field><id>my_source_administration_title</id> <type>RelationStringField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<base_category>causality</base_category> <base_category>source_administration</base_category>
<catalog_index>Title</catalog_index> <catalog_index>Title</catalog_index>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<default_module>sale_packing_list</default_module> <default_module>person</default_module>
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">10</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<jump_method>base_jump_relation</jump_method> <jump_method>base_jump_relation</jump_method>
<max_length></max_length> <max_length></max_length>
<portal_type type="list">[('Sale Packing List', 'Sale Packing List'), ('Sales Packing List', 'Sales Packing List')]</portal_type> <portal_type type="list">[('Person', 'Person')]</portal_type>
<required type="int">0</required> <required type="int">0</required>
<title>Packing List</title> <title>Sale Manager</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<update_method>base_update_relation</update_method> <update_method>base_update_relation</update_method>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -152,27 +183,33 @@ ...@@ -152,27 +183,33 @@
<message name="too_long">Too much input was given.</message> <message name="too_long">Too much input was given.</message>
</messages> </messages>
</field> </field>
</fields>
</group>
<group>
<title>right</title>
<fields>
<field><id>my_start_date</id> <type>DateTimeField</type> <field><id>my_start_date</id> <type>DateTimeField</type>
<values> <values>
<allow_empty_time type="int">0</allow_empty_time>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<ampm_time_style type="int">0</ampm_time_style>
<css_class></css_class> <css_class></css_class>
<date_only type="int">0</date_only> <date_only type="int">1</date_only>
<date_separator>/</date_separator> <date_separator>/</date_separator>
<default_now type="int">1</default_now> <default_now type="int">0</default_now>
<description></description> <description></description>
<editable type="int">1</editable>
<editable_expression></editable_expression>
<editable_permission type="list">[]</editable_permission>
<editable_role type="list">[]</editable_role>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<input_order>ymd</input_order> <input_order>ymd</input_order>
<input_style>text</input_style> <input_style>text</input_style>
<not_viewable type="int">0</not_viewable>
<read_only type="int">0</read_only>
<required type="int">0</required> <required type="int">0</required>
<time_separator>:</time_separator> <time_separator>:</time_separator>
<title>Start Date</title> <title>Invoice Date</title>
<viewable_expression></viewable_expression>
<viewable_permission type="list">[]</viewable_permission>
<viewable_role type="list">[]</viewable_role>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -183,127 +220,187 @@ ...@@ -183,127 +220,187 @@
<message name="datetime_out_of_range">The date and time you entered were out of range.</message> <message name="datetime_out_of_range">The date and time you entered were out of range.</message>
</messages> </messages>
</field> </field>
<field><id>my_stop_date</id> <type>DateTimeField</type> <field><id>simulation_state</id> <type>StringField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<date_only type="int">0</date_only> <default></default>
<date_separator>/</date_separator>
<default_now type="int">1</default_now>
<description></description> <description></description>
<display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width>
<editable type="int">0</editable>
<editable_expression></editable_expression>
<editable_permission type="list">[]</editable_permission>
<editable_role type="list">[]</editable_role>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<input_order>ymd</input_order> <max_length></max_length>
<input_style>text</input_style> <not_viewable type="int">0</not_viewable>
<read_only type="int">1</read_only>
<required type="int">0</required> <required type="int">0</required>
<time_separator>:</time_separator> <title>State</title>
<title>Stop Date</title> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<viewable_expression></viewable_expression>
<viewable_permission type="list">[]</viewable_permission>
<viewable_role type="list">[]</viewable_role>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<default>python:here.portal_workflow.getInfoFor(here, 'simulation_state')</default>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message> <message name="required_not_found">Input is required but no input given.</message>
<message name="not_datetime">You did not enter a valid date and time.</message> <message name="too_long">Too much input was given.</message>
<message name="datetime_out_of_range">The date and time you entered were out of range.</message>
</messages> </messages>
</field> </field>
<field><id>my_description</id> <type>TextAreaField</type> <field><id>my_resource</id> <type>ListField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<height type="int">5</height> <extra_item></extra_item>
<first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<max_length></max_length> <items type="list">[]</items>
<max_linelength></max_linelength>
<max_lines></max_lines>
<required type="int">0</required> <required type="int">0</required>
<title>Description</title> <size type="int">1</size>
<width type="int">40</width> <title>Currency</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python:[('','')]+map(lambda x:(x.id,'currency/%s' %x.id),here.currency.objectValues())</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message> <message name="required_not_found">Input is required but no input given.</message>
<message name="too_many_lines">You entered too many lines.</message> <message name="unknown_selection">You selected an item that was not in the list.</message>
<message name="line_too_long">A line was too long.</message>
<message name="too_long">You entered too many characters.</message>
</messages> </messages>
</field> </field>
</fields> </fields>
</group> </group>
<group> <group>
<title>center</title> <title>right</title>
<fields>
</fields>
</group>
<group>
<title>bottom</title>
<fields> <fields>
<field><id>listbox</id> <type>ListBox</type> <field><id>my_causality_id</id> <type>RelationStringField</type>
<values> <values>
<all_columns type="list">[]</all_columns>
<all_editable_columns type="list">[]</all_editable_columns>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<columns type="list">[('id', 'id'), ('title', 'Title'), ('source', 'Source'), ('source_debit', 'Debit'), ('source_credit', 'Credit'), ('destination', 'Destination'), ('destination_debit', 'Debit'), ('destination_credit', 'Credit')]</columns> <base_category>causality</base_category>
<catalog_index>id</catalog_index>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<default_params type="list">[]</default_params> <default_module>sale_packing_list</default_module>
<description></description> <description></description>
<domain_root_list type="list">[]</domain_root_list> <display_maxwidth></display_maxwidth>
<domain_tree type="int">0</domain_tree> <display_width type="int">10</display_width>
<editable_columns type="list">[('title', 'Title'), ('source_debit', 'Debit'), ('source_credit', 'Credit'), ('destination', 'Destination'), ('source', 'Source')]</editable_columns> <editable type="int">1</editable>
<editable_expression></editable_expression>
<editable_permission type="list">[]</editable_permission>
<editable_role type="list">[]</editable_role>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<global_attributes type="list">[('resource', 'resource')]</global_attributes> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<lines type="int">10</lines> <jump_method>base_jump_relation</jump_method>
<list_action>folder_contents</list_action> <max_length></max_length>
<list_method type="method">searchFolder</list_method> <not_viewable type="int">0</not_viewable>
<meta_types type="list">[]</meta_types> <portal_type type="list">[('Sale Packing List', 'Sale Packing List')]</portal_type>
<portal_types type="list">[]</portal_types> <read_only type="int">0</read_only>
<report_root_list type="list">[]</report_root_list> <required type="int">0</required>
<report_tree type="int">0</report_tree> <title>Packing List No</title>
<search type="int">0</search> <truncate type="int">0</truncate>
<select type="int">1</select> <unicode type="int">0</unicode>
<selection_name>purchase_invoice_transaction_line_selection</selection_name> <update_method>base_update_relation</update_method>
<sort type="list">[('id', 'id')]</sort> <viewable_expression></viewable_expression>
<stat_method></stat_method> <viewable_permission type="list">[]</viewable_permission>
<title>Sale Invoice Transaction Lines</title> <viewable_role type="list">[]</viewable_role>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message>
<message name="too_long">Too much input was given.</message>
</messages> </messages>
</field> </field>
</fields> <field><id>my_destination_title</id> <type>RelationStringField</type>
</group>
<group>
<title>hidden</title>
<fields>
<field><id>listbox_title</id> <type>StringField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<base_category>destination</base_category>
<catalog_index>Title</catalog_index>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<default_module>organisation</default_module>
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width> <display_width type="int">20</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<jump_method>base_jump_relation</jump_method>
<max_length></max_length> <max_length></max_length>
<portal_type type="list">[('Organisation', 'Organisation'), ('Person', 'Person')]</portal_type>
<required type="int">0</required> <required type="int">0</required>
<title>Title</title> <title>Deliver to</title>
<truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<update_method>base_update_relation</update_method>
<whitespace_preserve type="int">0</whitespace_preserve>
</values>
<tales>
</tales>
<messages>
<message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message>
<message name="too_long">Too much input was given.</message>
</messages>
</field>
<field><id>my_destination_section_title</id> <type>RelationStringField</type>
<values>
<alternate_name></alternate_name>
<base_category>destination_section</base_category>
<catalog_index>Title</catalog_index>
<css_class></css_class>
<default></default>
<default_module>organisation</default_module>
<description></description>
<display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width>
<editable type="int">1</editable>
<editable_expression></editable_expression>
<editable_permission type="list">[]</editable_permission>
<editable_role type="list">[]</editable_role>
<enabled type="int">1</enabled>
<external_validator></external_validator>
<extra></extra>
<hidden type="int">0</hidden>
<jump_method>base_jump_relation</jump_method>
<max_length></max_length>
<not_viewable type="int">0</not_viewable>
<portal_type type="list">[('Organisation', 'Organisation'), ('Person', 'Person')]</portal_type>
<read_only type="int">0</read_only>
<required type="int">0</required>
<title>For the account of</title>
<truncate type="int">0</truncate> <truncate type="int">0</truncate>
<unicode type="int">0</unicode>
<update_method>base_update_relation</update_method>
<viewable_expression></viewable_expression>
<viewable_permission type="list">[]</viewable_permission>
<viewable_role type="list">[]</viewable_role>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -313,23 +410,73 @@ ...@@ -313,23 +410,73 @@
<message name="too_long">Too much input was given.</message> <message name="too_long">Too much input was given.</message>
</messages> </messages>
</field> </field>
<field><id>listbox_source</id> <type>ListField</type> <field><id>my_value_added_tax_recoverable</id> <type>CheckBoxField</type>
<values>
<alternate_name></alternate_name>
<css_class></css_class>
<default type="int">0</default>
<description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator>
<extra></extra>
<hidden type="int">0</hidden>
<title>VAT in use</title>
</values>
<tales>
<default>here/getValueAddedTaxRecoverable</default>
</tales>
<messages>
<message name="external_validator_failed">The input failed the external validator.</message>
</messages>
</field>
<field><id>my_value_added_tax_ratio</id> <type>FloatField</type>
<values>
<alternate_name></alternate_name>
<css_class></css_class>
<default></default>
<description></description>
<display_maxwidth></display_maxwidth>
<display_width type="int">10</display_width>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator>
<extra></extra>
<hidden type="int">0</hidden>
<required type="int">0</required>
<title>VAT ratio</title>
<whitespace_preserve type="int">0</whitespace_preserve>
</values>
<tales>
</tales>
<messages>
<message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message>
<message name="not_float">You did not enter a floating point number.</message>
</messages>
</field>
<field><id>my_incoterm</id> <type>ListField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <items type="list">[]</items>
<required type="int">0</required> <required type="int">0</required>
<size type="int">1</size> <size type="int">1</size>
<title>listbox_source</title> <title>Incoterm</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python:cell.getObject().getInvoiceTransactionLineSourceItemList()</items> <items>python:here.portal_categories.incoterm.getCategoryChildItemList(display_id = 'getTitle', display_none_category=1)</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
...@@ -337,23 +484,28 @@ ...@@ -337,23 +484,28 @@
<message name="unknown_selection">You selected an item that was not in the list.</message> <message name="unknown_selection">You selected an item that was not in the list.</message>
</messages> </messages>
</field> </field>
<field><id>listbox_destination</id> <type>ListField</type> <field><id>my_delivery_mode</id> <type>ListField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<editable type="int">1</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<extra_item></extra_item>
<first_item type="int">0</first_item> <first_item type="int">0</first_item>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<items type="list">[]</items> <items type="list">[]</items>
<required type="int">0</required> <required type="int">0</required>
<size type="int">1</size> <size type="int">1</size>
<title>listbox_destination</title> <title>Delivery Mode</title>
<unicode type="int">0</unicode>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<items>python:cell.getObject().getInvoiceTransactionLineDestinationItemList()</items> <items>here/portal_categories/delivery_mode/getFormItemList</items>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
...@@ -361,21 +513,83 @@ ...@@ -361,21 +513,83 @@
<message name="unknown_selection">You selected an item that was not in the list.</message> <message name="unknown_selection">You selected an item that was not in the list.</message>
</messages> </messages>
</field> </field>
<field><id>listbox_source_debit</id> <type>FloatField</type> </fields>
</group>
<group>
<title>center</title>
<fields>
<field><id>total_without_tax</id> <type>FloatField</type>
<values>
<alternate_name></alternate_name>
<css_class></css_class>
<default></default>
<description></description>
<display_maxwidth></display_maxwidth>
<display_width type="int">10</display_width>
<editable type="int">0</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator>
<extra></extra>
<hidden type="int">0</hidden>
<required type="int">0</required>
<title>Total without tax included</title>
<whitespace_preserve type="int">0</whitespace_preserve>
</values>
<tales>
<default>python: '%.2f' % here.getTotalPrice()</default>
</tales>
<messages>
<message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message>
<message name="not_float">You did not enter a floating point number.</message>
</messages>
</field>
<field><id>total_taxable</id> <type>FloatField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">5</display_width> <display_width type="int">10</display_width>
<editable type="int">0</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator>
<extra></extra>
<hidden type="int">0</hidden>
<required type="int">0</required>
<title>Total Taxable</title>
<whitespace_preserve type="int">0</whitespace_preserve>
</values>
<tales>
<default>python: '%.2f' % here.Invoice_zGetTotalNetPrice()</default>
</tales>
<messages>
<message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message>
<message name="not_float">You did not enter a floating point number.</message>
</messages>
</field>
<field><id>vat</id> <type>FloatField</type>
<values>
<alternate_name></alternate_name>
<css_class></css_class>
<default></default>
<description></description>
<display_maxwidth></display_maxwidth>
<display_width type="int">10</display_width>
<editable type="int">0</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<required type="int">0</required> <required type="int">0</required>
<title>listbox_source_debit</title> <title>VAT</title>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<default>python: '%.2f' % here.Invoice_zGetTotalVat()</default>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
...@@ -383,21 +597,25 @@ ...@@ -383,21 +597,25 @@
<message name="not_float">You did not enter a floating point number.</message> <message name="not_float">You did not enter a floating point number.</message>
</messages> </messages>
</field> </field>
<field><id>listbox_source_credit</id> <type>FloatField</type> <field><id>total_price</id> <type>FloatField</type>
<values> <values>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<description></description> <description></description>
<display_maxwidth></display_maxwidth> <display_maxwidth></display_maxwidth>
<display_width type="int">5</display_width> <display_width type="int">10</display_width>
<editable type="int">0</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<extra></extra> <extra></extra>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
<required type="int">0</required> <required type="int">0</required>
<title>listbox_source_debit</title> <title>Net Price to pay</title>
<whitespace_preserve type="int">0</whitespace_preserve>
</values> </values>
<tales> <tales>
<default>python:'%.2f' % (here.Invoice_zGetTotalVat() + here.Invoice_zGetTotalNetPrice())</default>
</tales> </tales>
<messages> <messages>
<message name="external_validator_failed">The input failed the external validator.</message> <message name="external_validator_failed">The input failed the external validator.</message>
...@@ -405,7 +623,49 @@ ...@@ -405,7 +623,49 @@
<message name="not_float">You did not enter a floating point number.</message> <message name="not_float">You did not enter a floating point number.</message>
</messages> </messages>
</field> </field>
<field><id>due_date</id> <type>DateTimeField</type>
<values>
<allow_empty_time type="int">0</allow_empty_time>
<alternate_name></alternate_name>
<ampm_time_style type="int">0</ampm_time_style>
<css_class></css_class>
<date_only type="int">1</date_only>
<date_separator>/</date_separator>
<default_now type="int">0</default_now>
<description></description>
<editable type="int">0</editable>
<enabled type="int">1</enabled>
<external_validator></external_validator>
<hidden type="int">0</hidden>
<input_order>dmy</input_order>
<input_style>text</input_style>
<required type="int">0</required>
<time_separator>:</time_separator>
<title>Due Date</title>
</values>
<tales>
<default>python:here.Invoice_zGetDueDate()</default>
</tales>
<messages>
<message name="external_validator_failed">The input failed the external validator.</message>
<message name="required_not_found">Input is required but no input given.</message>
<message name="not_datetime">You did not enter a valid date and time.</message>
<message name="datetime_out_of_range">The date and time you entered were out of range.</message>
</messages>
</field>
</fields>
</group>
<group>
<title>bottom</title>
<fields>
</fields>
</group>
<group>
<title>hidden</title>
<fields>
</fields> </fields>
</group> </group>
</groups> </groups>
</form> </form>
\ No newline at end of file
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0"?>
<form> <form>
<title></title> <title></title>
<name>accounting_transaction_list</name> <row_length>4</row_length>
<action></action> <name>transaction_list</name>
<enctype></enctype>
<method>POST</method>
<pt>form_list</pt> <pt>form_list</pt>
<action>doSelect</action>
<update_action></update_action>
<method>POST</method>
<enctype></enctype>
<encoding>UTF-8</encoding>
<stored_encoding>ISO-8859-1</stored_encoding>
<unicode_mode>false</unicode_mode>
<groups> <groups>
<group> <group>
<title>Default</title> <title>left</title>
<fields> <fields>
<field><id>accounting_transaction_list</id> <type>ListBox</type> <field><id>listbox</id> <type>ListBox</type>
<values> <values>
<all_columns type="list">[]</all_columns> <all_columns type="list">[]</all_columns>
<all_editable_columns type="list">[]</all_editable_columns> <all_editable_columns type="list">[]</all_editable_columns>
<alternate_name></alternate_name> <alternate_name></alternate_name>
<columns type="list">[('id', 'id'), ('Type', 'Type'), ('getStopDate', 'Stop Date'), ('title', 'Title')]</columns> <columns type="list">[('id', 'id'), ('Type', 'Type'), ('getStopDate', 'Stop Date'), ('Title', 'Title'), ('simulation_state', 'State'), ('default_destination_section_title', 'Destination'), ('source_reference', 'Source Reference'), ('destination_reference', 'Destination Reference'), ('reference', 'Invoice Reference')]</columns>
<css_class></css_class> <css_class></css_class>
<default></default> <default></default>
<default_params type="list">[]</default_params> <default_params type="list">[]</default_params>
<description></description> <description></description>
<domain_root_list type="list">[]</domain_root_list> <domain_root_list type="list">[]</domain_root_list>
<domain_tree type="int">0</domain_tree> <domain_tree type="int">0</domain_tree>
<editable type="int">1</editable>
<editable_columns type="list">[]</editable_columns> <editable_columns type="list">[]</editable_columns>
<editable_expression></editable_expression>
<editable_permission type="list">[]</editable_permission>
<editable_role type="list">[]</editable_role>
<enabled type="int">1</enabled>
<external_validator></external_validator> <external_validator></external_validator>
<global_attributes type="list">[]</global_attributes> <global_attributes type="list">[]</global_attributes>
<hidden type="int">0</hidden> <hidden type="int">0</hidden>
...@@ -33,15 +42,22 @@ ...@@ -33,15 +42,22 @@
<list_action>list</list_action> <list_action>list</list_action>
<list_method type="method">portal_catalog</list_method> <list_method type="method">portal_catalog</list_method>
<meta_types type="list">[]</meta_types> <meta_types type="list">[]</meta_types>
<portal_types type="list">[('Accounting Transaction', 'Accounting Transaction'), ('Purchase Invoice Transaction', 'Purchase Invoice Transaction'), ('Sale Invoice Transaction', 'Sale Invoice Transaction')]</portal_types> <not_viewable type="int">0</not_viewable>
<portal_types type="list">[('Accounting Transaction', 'Accounting Transaction'), ('Balance Transaction', 'Balance Transaction'), ('Purchase Invoice Transaction', 'Purchase Invoice Transaction'), ('Sale Invoice Transaction', 'Sale Invoice Transaction'), ('Pay Sheet Transaction', 'Pay Sheet Transaction'), ('Payment Transaction', 'Payment Transaction')]</portal_types>
<read_only type="int">0</read_only>
<report_root_list type="list">[]</report_root_list> <report_root_list type="list">[]</report_root_list>
<report_tree type="int">0</report_tree> <report_tree type="int">0</report_tree>
<search type="int">1</search> <search type="int">1</search>
<search_columns type="list">[]</search_columns>
<select type="int">1</select> <select type="int">1</select>
<selection_name>accounting_selection</selection_name> <selection_name>accounting_selection</selection_name>
<sort type="list">[('id', 'id')]</sort> <sort type="list">[('id', 'id')]</sort>
<sort_columns type="list">[]</sort_columns>
<stat_method></stat_method> <stat_method></stat_method>
<title>Accounting Transaction List</title> <title>Accounting Transaction List</title>
<viewable_expression></viewable_expression>
<viewable_permission type="list">[]</viewable_permission>
<viewable_role type="list">[]</viewable_role>
</values> </values>
<tales> <tales>
</tales> </tales>
...@@ -51,5 +67,23 @@ ...@@ -51,5 +67,23 @@
</field> </field>
</fields> </fields>
</group> </group>
<group>
<title>right</title>
<fields>
</fields>
</group>
<group>
<title>center</title>
<fields>
</fields>
</group>
<group>
<title>bottom</title>
<fields>
</fields>
</group>
</groups> </groups>
</form> </form>
\ 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