svn commit: r631668 - /ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r631668 - /ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl

mrisaliti
Author: mrisaliti
Date: Wed Feb 27 10:19:23 2008
New Revision: 631668

URL: http://svn.apache.org/viewvc?rev=631668&view=rev
Log:
Quote Items subtotal are not correctly calculated (Issue OFBIZ-1677).
Fixed a bug in case the selected amount is null.

Modified:
    ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl

Modified: ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl?rev=631668&r1=631667&r2=631668&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl Wed Feb 27 10:19:23 2008
@@ -43,7 +43,7 @@
                 <#if quoteItem.productId?exists>
                     <#assign product = quoteItem.getRelatedOne("Product")>
                 </#if>
-                <#assign quoteItemAmount = quoteItem.quoteUnitPrice?default(0) * quoteItem.quantity?default(0) * quoteItem.selectedAmount?default(0)>
+                <#assign quoteItemAmount = quoteItem.quoteUnitPrice?default(0) * quoteItem.quantity?default(0) * quoteItem.selectedAmount?default(1)>
                 <#assign quoteItemAdjustments = quoteItem.getRelated("QuoteAdjustment")>
                 <#assign totalQuoteItemAdjustmentAmount = 0.0>
                 <#list quoteItemAdjustments as quoteItemAdjustment>