You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Christian Geisert <ch...@isu-gmbh.de> on 2008/02/27 14:06:43 UTC

Re: svn commit: r631330 - in /ofbiz/trunk/applications/order/webapp/ordermgr: WEB-INF/actions/quote/ManageQuotePrices.bsh WEB-INF/actions/quote/ViewQuoteProfit.bsh quote/ViewQuoteItemInfo.ftl

mrisaliti@apache.org schrieb:
> Author: mrisaliti
> Date: Tue Feb 26 10:45:08 2008
> New Revision: 631330
> 
> URL: http://svn.apache.org/viewvc?rev=631330&view=rev
> Log:
> Quote Items subtotal are not correctly calculated (Issue OFBIZ-1677)

[..]

> --- ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/quote/ManageQuotePrices.bsh (original)
> +++ ofbiz/trunk/applications/order/webapp/ordermgr/WEB-INF/actions/quote/ManageQuotePrices.bsh Tue Feb 26 10:45:08 2008
> @@ -73,7 +73,7 @@
>          }
>          defaultQuoteUnitPrice = averageCost * costToPriceMult * selectedAmount;
>          totalCost += (averageCost * quantity);
> -        totalPrice += (unitPrice * quantity);
> +        totalPrice += (unitPrice * quantity * selectedAmount);

But this causes a problem if selectedAmount is zero.
My understanding is that the amount field is optional and only used if 
you need a non-integer quantity.

-- 
Christian