Commit 0f337f57 authored by Jérome Perrin's avatar Jérome Perrin

display the kw used in src__=1

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37224 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 392f08e1
...@@ -66,7 +66,7 @@ if at_date:\n ...@@ -66,7 +66,7 @@ if at_date:\n
\n \n
# XXX use getBudgetConsumptionMethod ?\n # XXX use getBudgetConsumptionMethod ?\n
if src__:\n if src__:\n
return context.portal_simulation.getCurrentInventoryAssetPrice(src__=src__, **kw)\n return \'-- %s\\n%s\' % (kw, context.portal_simulation.getCurrentInventoryAssetPrice(src__=src__, **kw))\n
return (context.portal_simulation.getCurrentInventoryAssetPrice(**kw) or 0) * context.getParentValue().BudgetLine_getConsumptionSign()\n return (context.portal_simulation.getCurrentInventoryAssetPrice(**kw) or 0) * context.getParentValue().BudgetLine_getConsumptionSign()\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -70,7 +70,7 @@ kw.setdefault(\'explanation_simulation_state\', context.getPortalReservedInvento ...@@ -70,7 +70,7 @@ kw.setdefault(\'explanation_simulation_state\', context.getPortalReservedInvento
\n \n
# XXX use getBudgetConsumptionMethod ?\n # XXX use getBudgetConsumptionMethod ?\n
if src__:\n if src__:\n
return context.portal_simulation.getInventoryAssetPrice(src__=src__, **kw)\n return \'-- %s\\n%s\' % (kw, context.portal_simulation.getCurrentInventoryAssetPrice(src__=src__, **kw))\n
return (context.portal_simulation.getInventoryAssetPrice(**kw) or 0) * context.getParentValue().BudgetLine_getConsumptionSign()\n return (context.portal_simulation.getInventoryAssetPrice(**kw) or 0) * context.getParentValue().BudgetLine_getConsumptionSign()\n
</string> </value> </string> </value>
</item> </item>
......
291 292
\ 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