Commit b5ab2a0d authored by Yusei Tahara's avatar Yusei Tahara

Changed the start date of purchase invoice transaction to make sure that stop date is used for it.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19140 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b51f8092
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<string>Products.PageTemplates.ZopePageTemplate</string> <tuple/>
<string>ZopePageTemplate</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -59,13 +56,6 @@ Test Accounting module listbox display values + sort on dates\n ...@@ -59,13 +56,6 @@ Test Accounting module listbox display values + sort on dates\n
</thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0">\n </thead><tbody tal:define="init_method string:AccountingZuite_createAccountingTransactionList?add_draft_transactions:int=0">\n
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n <tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\n
\n \n
<!--\n
\n
FIXME:\n
default sort uses delivery.start_date, but for Purchase, we must use delivery.stop_date\n
\n
-->\n
\n
<!-- Setup {{{ -->\n <!-- Setup {{{ -->\n
<tr>\n <tr>\n
<td>selectAndWait</td>\n <td>selectAndWait</td>\n
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -245,7 +242,7 @@ for month in range(1, month_count + 1):\n ...@@ -245,7 +242,7 @@ for month in range(1, month_count + 1):\n
destination_section=section,\n destination_section=section,\n
source_section=getOrganisationByTitle(\'Supplier\'),\n source_section=getOrganisationByTitle(\'Supplier\'),\n
created_by_builder=1,\n created_by_builder=1,\n
start_date=default_date,\n start_date=default_date-5, # In purchase invoice transaction, stop_date is accounting operation date.\n
stop_date=default_date,\n stop_date=default_date,\n
resource=euro_resource,\n resource=euro_resource,\n
)\n )\n
...@@ -385,6 +382,7 @@ return "Accounting Transactions Created."\n ...@@ -385,6 +382,7 @@ return "Accounting Transactions Created."\n
<string>vat_rate</string> <string>vat_rate</string>
<string>client_title</string> <string>client_title</string>
<string>amount</string> <string>amount</string>
<string>_inplacevar_</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
67 68
\ No newline at end of file \ 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