Commit 51b6a177 authored by Jérome Perrin's avatar Jérome Perrin

support searches on date from Accounting Transaction Module.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10572 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bc9bac36
...@@ -74,6 +74,9 @@ ...@@ -74,6 +74,9 @@
kw[\'omit_input\'] = 0\n kw[\'omit_input\'] = 0\n
kw[\'omit_output\'] = 0\n kw[\'omit_output\'] = 0\n
\n \n
if kw.get(\'delivery_start_date\'):\n
kw[\'delivery.start_date\'] = kw[\'delivery_start_date\']\n
\n
return context.AccountingTransactionModule_zGetAccountingTransactionList( selection=None,\n return context.AccountingTransactionModule_zGetAccountingTransactionList( selection=None,\n
selection_params=kw,\n selection_params=kw,\n
stat=0,\n stat=0,\n
...@@ -132,6 +135,7 @@ return context.AccountingTransactionModule_zGetAccountingTransactionList( select ...@@ -132,6 +135,7 @@ return context.AccountingTransactionModule_zGetAccountingTransactionList( select
<string>kw</string> <string>kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>_write_</string> <string>_write_</string>
<string>_getitem_</string>
<string>_apply_</string> <string>_apply_</string>
<string>context</string> <string>context</string>
<string>None</string> <string>None</string>
......
...@@ -91,7 +91,10 @@ if params.get(\'count\', 0):\n ...@@ -91,7 +91,10 @@ if params.get(\'count\', 0):\n
params[\'omit_input\'] = 0\n params[\'omit_input\'] = 0\n
params[\'omit_output\'] = 0\n params[\'omit_output\'] = 0\n
\n \n
#context.log(\'LOG\', context.AccountingTransactionModule_zGetAccountingTransactionList(src__ =1, selection_params=params, **params))\n if params.get(\'delivery_start_date\'):\n
params[\'delivery.start_date\'] = params[\'delivery_start_date\']\n
\n
#context.log(\'LOG (%s)\' % params, context.AccountingTransactionModule_zGetAccountingTransactionList(src__ =1, selection_params=params, **params))\n
return context.AccountingTransactionModule_zGetAccountingTransactionList(selection_params=params, **params)\n return context.AccountingTransactionModule_zGetAccountingTransactionList(selection_params=params, **params)\n
...@@ -146,6 +149,7 @@ return context.AccountingTransactionModule_zGetAccountingTransactionList(selecti ...@@ -146,6 +149,7 @@ return context.AccountingTransactionModule_zGetAccountingTransactionList(selecti
<string>params</string> <string>params</string>
<string>_write_</string> <string>_write_</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>_getitem_</string>
<string>_apply_</string> <string>_apply_</string>
<string>context</string> <string>context</string>
</tuple> </tuple>
......
...@@ -73,6 +73,8 @@ ...@@ -73,6 +73,8 @@
params[\'stat\'] = 1\n params[\'stat\'] = 1\n
params[\'omit_input\'] = 1\n params[\'omit_input\'] = 1\n
params[\'omit_output\'] = 0\n params[\'omit_output\'] = 0\n
if params.get(\'delivery_start_date\'):\n
params[\'delivery.start_date\'] = params[\'delivery_start_date\']\n
\n \n
result = context.AccountingTransactionModule_zGetAccountingTransactionList(\n result = context.AccountingTransactionModule_zGetAccountingTransactionList(\n
selection=selection,\n selection=selection,\n
...@@ -133,10 +135,10 @@ return float(\'%.02f\' % (row.total_price and - row.total_price or 0.0))\n ...@@ -133,10 +135,10 @@ return float(\'%.02f\' % (row.total_price and - row.total_price or 0.0))\n
<string>_getattr_</string> <string>_getattr_</string>
<string>params</string> <string>params</string>
<string>_write_</string> <string>_write_</string>
<string>_getitem_</string>
<string>_apply_</string> <string>_apply_</string>
<string>context</string> <string>context</string>
<string>result</string> <string>result</string>
<string>_getitem_</string>
<string>row</string> <string>row</string>
<string>float</string> <string>float</string>
</tuple> </tuple>
......
...@@ -73,6 +73,8 @@ ...@@ -73,6 +73,8 @@
params[\'stat\'] = 1\n params[\'stat\'] = 1\n
params[\'omit_output\'] = 1\n params[\'omit_output\'] = 1\n
params[\'omit_input\'] = 0\n params[\'omit_input\'] = 0\n
if params.get(\'delivery_start_date\'):\n
params[\'delivery.start_date\'] = params[\'delivery_start_date\']\n
\n \n
result = context.AccountingTransactionModule_zGetAccountingTransactionList(\n result = context.AccountingTransactionModule_zGetAccountingTransactionList(\n
selection=selection, selection_params = params, **params)\n selection=selection, selection_params = params, **params)\n
...@@ -132,10 +134,10 @@ return float(\'%.02f\' % (row.total_price or 0.0))\n ...@@ -132,10 +134,10 @@ return float(\'%.02f\' % (row.total_price or 0.0))\n
<string>_getattr_</string> <string>_getattr_</string>
<string>params</string> <string>params</string>
<string>_write_</string> <string>_write_</string>
<string>_getitem_</string>
<string>_apply_</string> <string>_apply_</string>
<string>context</string> <string>context</string>
<string>result</string> <string>result</string>
<string>_getitem_</string>
<string>row</string> <string>row</string>
<string>float</string> <string>float</string>
</tuple> </tuple>
......
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