Commit 09287505 authored by Aurel's avatar Aurel

when listing available cash container, use the date defined on the document...

when listing available cash container, use the date defined on the document instead of the current time otherwise some ordering problems in item table can happen

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24709 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4671adf4
...@@ -69,11 +69,18 @@ ...@@ -69,11 +69,18 @@
\n \n
container_portal_type_list = ["Monetary Reception",]\n container_portal_type_list = ["Monetary Reception",]\n
base_price_dict = {}\n base_price_dict = {}\n
request = context.REQUEST\n
if context.getStartDate() is None:\n
redirect_url = \'%s/%s?%s\' % ( context.absolute_url()\n
, \'view\'\n
, \'portal_status_message=Please register a date.\'\n
)\n
return request.RESPONSE.redirect( redirect_url )\n
\n \n
if listbox is None:\n
\n \n
if listbox is None:\n
node = context.getSource()\n node = context.getSource()\n
reference_date = DateTime()\n reference_date = context.getStartDate()\n
container_list = []\n container_list = []\n
listbox = []\n listbox = []\n
#context.log("tracking list", context.portal_simulation.getCurrentTrackingList(at_date= reference_date, node = node))\n #context.log("tracking list", context.portal_simulation.getCurrentTrackingList(at_date= reference_date, node = node))\n
...@@ -190,9 +197,11 @@ if listbox is None:\n ...@@ -190,9 +197,11 @@ if listbox is None:\n
<string>DateTime</string> <string>DateTime</string>
<string>container_portal_type_list</string> <string>container_portal_type_list</string>
<string>base_price_dict</string> <string>base_price_dict</string>
<string>None</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>request</string>
<string>None</string>
<string>redirect_url</string>
<string>node</string> <string>node</string>
<string>reference_date</string> <string>reference_date</string>
<string>container_list</string> <string>container_list</string>
......
653 654
\ 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