svn commit: r1781979 - /ofbiz/trunk/applications/order/groovyScripts/order/OrderView.groovy

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

svn commit: r1781979 - /ofbiz/trunk/applications/order/groovyScripts/order/OrderView.groovy

mbrohl
Author: mbrohl
Date: Tue Feb  7 09:42:41 2017
New Revision: 1781979

URL: http://svn.apache.org/viewvc?rev=1781979&view=rev
Log:
Fixed: Cancelled OrderItems are still included in orderGrandTotal.
(OFBIZ-9204)

Thanks: Maurice for reporting and providing the patch, Deepak and Jacques for their suggestions.

Modified:
    ofbiz/trunk/applications/order/groovyScripts/order/OrderView.groovy

Modified: ofbiz/trunk/applications/order/groovyScripts/order/OrderView.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/groovyScripts/order/OrderView.groovy?rev=1781979&r1=1781978&r2=1781979&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/groovyScripts/order/OrderView.groovy (original)
+++ ofbiz/trunk/applications/order/groovyScripts/order/OrderView.groovy Tue Feb  7 09:42:41 2017
@@ -116,7 +116,7 @@ if (orderHeader) {
     taxAmount = OrderReadHelper.getOrderTaxByTaxAuthGeoAndParty(orderAdjustments).taxGrandTotal
     context.taxAmount = taxAmount
 
-    grandTotal = OrderReadHelper.getOrderGrandTotal(orderItems, orderAdjustments)
+    grandTotal = orderReadHelper.getOrderGrandTotal()
     context.grandTotal = grandTotal
 
     orderItemList = orderReadHelper.getOrderItems()