Fixed: Cancelled OrderItems are still included in orderGrandTotal.
(OFBIZ-9204)
Thanks: Maurice for reporting and providing the patch, Deepak and Jacques for their suggestions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1781979 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/applications/order/groovyScripts/order/OrderView.groovy b/applications/order/groovyScripts/order/OrderView.groovy
index b099e29..5bbd59e 100644
--- a/applications/order/groovyScripts/order/OrderView.groovy
+++ b/applications/order/groovyScripts/order/OrderView.groovy
@@ -116,7 +116,7 @@
taxAmount = OrderReadHelper.getOrderTaxByTaxAuthGeoAndParty(orderAdjustments).taxGrandTotal
context.taxAmount = taxAmount
- grandTotal = OrderReadHelper.getOrderGrandTotal(orderItems, orderAdjustments)
+ grandTotal = orderReadHelper.getOrderGrandTotal()
context.grandTotal = grandTotal
orderItemList = orderReadHelper.getOrderItems()