Hi Freeman,

I have taken a look at the code below. 
Basically it calls the calculateProductPrice method from PriceServices.java. 
As the amount attribute is to be used with a custom method that doesn't
exists in the demo data, 
I am not able to know what the amount attribute is used for.

Regards,
James


BJ Freeman wrote:
> 
> take a look at
> applications\order\script\org\ofbiz\order\quote\QuoteServices.xml
> 
> <set from-field="product" field="calculateProductPriceMap.product"/>
>                         <set from-field="parameters.quantity"
> field="calculateProductPriceMap.quantity"/>
>                         <if-not-empty field="parameters.selectedAmount">
>                             <set from-field="parameters.selectedAmount"
> field="calculateProductPriceMap.amount"/>
>                         </if-not-empty>
>                         <call-service
> service-name="calculateProductPrice"
> in-map-name="calculateProductPriceMap">
>                             <result-to-field result-name="price"
> field="newEntity.quoteUnitPrice"/>
>                         </call-service>
> 
> 
> 

-- 
View this message in context: 
http://n4.nabble.com/Selected-Amount-and-Quantity-tp1478030p1558508.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to