the code is taking the results of a quantity price look up and
calculating the price for this quote .
selected amount is the quantity price range selected Price to be used to
calculate the final price
Quantity is the pieces quoting on.
The product price break is in the catalog component.
if you don't have any quantity price breaks then selected amount is not
used.

looking up the code is the only way to figure these things out.
I use Eclipse search feature.



james_sg sent the following on 2/17/2010 3:10 AM:
> 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>
>>
>>
>>
> 

Reply via email to