Commit 45d734e1 authored by Jérome Perrin's avatar Jérome Perrin

use omit_asset_increase/decrease, as we are using getInventoryAssetPrice here.

fix a missing - for credit

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37690 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 04848fe3
...@@ -62,8 +62,8 @@ query_dict = context.BudgetLine_getInventoryQueryDictForCellIndex(\n ...@@ -62,8 +62,8 @@ query_dict = context.BudgetLine_getInventoryQueryDictForCellIndex(\n
cell_index=cell_index,\n cell_index=cell_index,\n
engaged_budget=engaged_budget)\n engaged_budget=engaged_budget)\n
\n \n
query_dict[\'omit_input\'] = True\n query_dict[\'omit_asset_increase\'] = True\n
return portal.portal_simulation.getInventoryAssetPrice(**query_dict)\n return - portal.portal_simulation.getInventoryAssetPrice(**query_dict) or 0\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -62,7 +62,7 @@ query_dict = context.BudgetLine_getInventoryQueryDictForCellIndex(\n ...@@ -62,7 +62,7 @@ query_dict = context.BudgetLine_getInventoryQueryDictForCellIndex(\n
cell_index=cell_index,\n cell_index=cell_index,\n
engaged_budget=engaged_budget)\n engaged_budget=engaged_budget)\n
\n \n
query_dict[\'omit_output\'] = True\n query_dict[\'omit_asset_decrease\'] = True\n
return portal.portal_simulation.getInventoryAssetPrice(**query_dict)\n return portal.portal_simulation.getInventoryAssetPrice(**query_dict)\n
</string> </value> </string> </value>
</item> </item>
......
321 323
\ 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