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 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -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
<tal:block metal:use-macro="here/AccountingZuite_CommonTemplate/macros/init"/>\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
<tr>\n
<td>selectAndWait</td>\n
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PythonScripts.PythonScript</string>
<string>PythonScript</string>
</tuple>
<none/>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -245,7 +242,7 @@ for month in range(1, month_count + 1):\n
destination_section=section,\n
source_section=getOrganisationByTitle(\'Supplier\'),\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
resource=euro_resource,\n
)\n
......@@ -385,6 +382,7 @@ return "Accounting Transactions Created."\n
<string>vat_rate</string>
<string>client_title</string>
<string>amount</string>
<string>_inplacevar_</string>
</tuple>
</value>
</item>
......
67
\ No newline at end of file
68
\ 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