diff --git a/applications/order/config/OrderUiLabels.properties b/applications/order/config/OrderUiLabels.properties index 49b3a27ff6..c17eb8a96e 100644 --- a/applications/order/config/OrderUiLabels.properties +++ b/applications/order/config/OrderUiLabels.properties @@ -273,7 +273,7 @@ OrderNoGiftWrap=No Gift Wrap OrderNoNotes=No notes for this order OrderNoNotesForThisRequestItem=No Notes For This Request Item OrderNoOrderAdjustments=No adjustments on this order. -OrderNoOrderFound=No Order Found +OrderNoOrderFound=No Order Found with ID OrderNoOrderFoundForParty=No orders found for partyId OrderNoOrderItemsToDisplay=No order items to display. OrderNoOrderPaymentPreferences=No payment preferences associated with this order. diff --git a/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh b/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh index 5dfd32c973..937bbb947c 100644 --- a/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh +++ b/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderview.bsh @@ -88,6 +88,9 @@ if (orderHeader != null) { partyId = displayParty.getString("partyId"); context.put("displayParty", displayParty); context.put("partyId", partyId); + + List paymentMethodValueMaps = PaymentWorker.getPartyPaymentMethodValueMaps(delegator, displayParty.getString("partyId"), false); + context.put("paymentMethodValueMaps", paymentMethodValueMaps); } otherAdjAmount = OrderReadHelper.calcOrderAdjustments(orderHeaderAdjustments, orderSubTotal, true, false, false); @@ -360,11 +363,6 @@ if (orderHeader != null) { context.put("returnableItems", returnableItems); } -if (displayParty != null) { - List paymentMethodValueMaps = PaymentWorker.getPartyPaymentMethodValueMaps(delegator, displayParty.getString("partyId"), false); - context.put("paymentMethodValueMaps", paymentMethodValueMaps); -} - if (orderHeader != null) { // list to find all the POSTAL_ADDRESS for the party. orderParty = delegator.findByPrimaryKey("Party", UtilMisc.toMap("partyId", partyId)); diff --git a/applications/order/widget/ordermgr/OrderViewScreens.xml b/applications/order/widget/ordermgr/OrderViewScreens.xml index 20ea10fc2a..c95b493e65 100644 --- a/applications/order/widget/ordermgr/OrderViewScreens.xml +++ b/applications/order/widget/ordermgr/OrderViewScreens.xml @@ -78,7 +78,7 @@ under the License. - +