svn commit: r780005 - /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: r780005 - /ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl

jacopoc
Author: jacopoc
Date: Fri May 29 14:52:08 2009
New Revision: 780005

URL: http://svn.apache.org/viewvc?rev=780005&view=rev
Log:
Quick fix for a display error in the quote totals happening when the amount was set to 0.

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=780005&r1=780004&r2=780005&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl (original)
+++ ofbiz/trunk/applications/order/webapp/ordermgr/quote/ViewQuoteItemInfo.ftl Fri May 29 14:52:08 2009
@@ -45,7 +45,11 @@
                 <#else>
                     <#assign product = null> <#-- don't drag it along to the next iteration -->
                 </#if>
-                <#assign quoteItemAmount = quoteItem.quoteUnitPrice?default(0) * quoteItem.quantity?default(0) * quoteItem.selectedAmount?default(1)>
+                <#assign selectedAmount = quoteItem.selectedAmount?default(1)>
+                <#if selectedAmount == 0>
+                    <#assign selectedAmount = 1/>
+                </#if>
+                <#assign quoteItemAmount = quoteItem.quoteUnitPrice?default(0) * quoteItem.quantity?default(0) * selectedAmount>
                 <#assign quoteItemAdjustments = quoteItem.getRelated("QuoteAdjustment")>
                 <#assign totalQuoteItemAdjustmentAmount = 0.0>
                 <#list quoteItemAdjustments as quoteItemAdjustment>