[Erp5-report] r7157 - /erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed May 10 17:17:48 CEST 2006
Author: alex
Date: Wed May 10 17:17:46 2006
New Revision: 7157
URL: http://svn.erp5.org?rev=7157&view=rev
Log:
As now all Resources use a default_supply_line, Movement_lookupPrice must use the
Resource.getPrice() method to be able to retrieve the base_price from the
supply_line.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Movement_lookupPrice.xml
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Movement_lookupPrice.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Movement_lookupPrice.xml?rev=7157&r1=7156&r2=7157&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Movement_lookupPrice.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Movement_lookupPrice.xml Wed May 10 17:17:46 2006
@@ -68,8 +68,8 @@
<key> <string>_body</string> </key>
<value> <string>resource = context.getResourceValue()\n
if resource is not None:\n
- return resource.getBasePrice(0)/resource.getPricedQuantity()\n
- # return resource.getPrice(context=context) # calls a Resource_lookupPrice itself\n
+ #return resource.getBasePrice(0)/resource.getPricedQuantity()\n
+ return resource.getPrice(context=context) # calls a Resource_lookupPrice itself\n
else:\n
return None\n
</string> </value>
More information about the Erp5-report
mailing list