Commit 588383ea authored by Kevin Deldycke's avatar Kevin Deldycke

Get payment_uid and mirror_section_uid query parameters.

Remove suffix "transaction_" of query parameters to prepare the full migration of accouting stuff to getInventory API.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6419 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 35a6e471
...@@ -97,7 +97,7 @@ if not simulation_state:\n ...@@ -97,7 +97,7 @@ if not simulation_state:\n
, pref.getPreferredAccountingTransactionSimulationStateList()\n , pref.getPreferredAccountingTransactionSimulationStateList()\n
)\n )\n
if simulation_state:\n if simulation_state:\n
params[\'transaction_simulation_state\'] = simulation_state\n params[\'simulation_state\'] = simulation_state\n
\n \n
###\n ###\n
# Get the \'section_category\' parameter\n # Get the \'section_category\' parameter\n
...@@ -110,12 +110,11 @@ if not section_category:\n ...@@ -110,12 +110,11 @@ if not section_category:\n
, pref.getPreferredAccountingTransactionSectionCategory()\n , pref.getPreferredAccountingTransactionSectionCategory()\n
)\n )\n
if section_category:\n if section_category:\n
params[\'transaction_section_category\'] = section_category\n params[\'section_category\'] = section_category\n
\n \n
###\n ###\n
# Parameters only used in reports\n # Parameters only used in reports\n
if kw.has_key(\'node_uid\') : params[\'node_uid\'] = kw[\'node_uid\']\n if kw.has_key(\'node_uid\'): params[\'node_uid\'] = kw[\'node_uid\']\n
if kw.has_key(\'transaction_portal_type\'): params[\'transaction_portal_type\'] = kw[\'transaction_portal_type\']\n
\n \n
###\n ###\n
# Get omit parameters\n # Get omit parameters\n
...@@ -123,19 +122,6 @@ if kw.get(\'omit_input\') : params[\'omit_input\'] = 1\n ...@@ -123,19 +122,6 @@ if kw.get(\'omit_input\') : params[\'omit_input\'] = 1\n
if kw.get(\'omit_output\'): params[\'omit_output\'] = 1\n if kw.get(\'omit_output\'): params[\'omit_output\'] = 1\n
\n \n
params[\'stat\'] = 1\n params[\'stat\'] = 1\n
params[\'omit_simulation\'] = 1\n
\n
###\n
# Get payment and mirror related parameters\n
MARKER = []\n
no_payment_uid = kw.get(\'no_payment_uid\', MARKER)\n
no_mirror_section_uid = kw.get(\'no_mirror_section_uid\', MARKER)\n
payment_uid = kw.get(\'payment_uid\', MARKER)\n
mirror_section_uid = kw.get(\'mirror_section_uid\', MARKER)\n
if no_payment_uid is not MARKER: params[\'no_payment_uid\'] = 1\n
if no_mirror_section_uid is not MARKER: params[\'no_mirror_section_uid\'] = 1\n
if payment_uid is not MARKER: params[\'payment_uid\'] = payment_uid\n
if mirror_section_uid is not MARKER: params[\'mirror_section_uid\'] = mirror_section_uid\n
\n \n
if kw.has_key(\'getUid\') : params[\'getUid\'] = kw[\'getUid\']\n if kw.has_key(\'getUid\') : params[\'getUid\'] = kw[\'getUid\']\n
if kw.has_key(\'getParentUid\'): params[\'getParentUid\'] = kw[\'getParentUid\']\n if kw.has_key(\'getParentUid\'): params[\'getParentUid\'] = kw[\'getParentUid\']\n
...@@ -208,11 +194,6 @@ return context.Base_getRoundValue(row.quantity or 0.0, precision)\n ...@@ -208,11 +194,6 @@ return context.Base_getRoundValue(row.quantity or 0.0, precision)\n
<string>simulation_state</string> <string>simulation_state</string>
<string>section_category</string> <string>section_category</string>
<string>_getitem_</string> <string>_getitem_</string>
<string>MARKER</string>
<string>no_payment_uid</string>
<string>no_mirror_section_uid</string>
<string>payment_uid</string>
<string>mirror_section_uid</string>
<string>_apply_</string> <string>_apply_</string>
<string>result</string> <string>result</string>
<string>row</string> <string>row</string>
......
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