diff --git a/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java b/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java index 5eac4d15ca..4eb5d8e379 100644 --- a/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java +++ b/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java @@ -803,8 +803,8 @@ public class CheckOutEvents { giftMessage = request.getParameter(shipGroupIndex + "_gift_message"); isGift = request.getParameter(shipGroupIndex + "_is_gift"); internalCode = request.getParameter("internalCode"); // FIXME - shipBeforeDate = request.getParameter(shipGroupIndex + "_shipBeforeDate"); - shipAfterDate = request.getParameter(shipGroupIndex + "_shipAfterDate"); + shipBeforeDate = request.getParameter("sgi" + shipGroupIndex + "_shipBeforeDate"); + shipAfterDate = request.getParameter("sgi" + shipGroupIndex + "_shipAfterDate"); internalOrderNotes = request.getParameter("internal_order_notes"); shippingNotes = request.getParameter("shippingNotes"); diff --git a/applications/order/webapp/ordermgr/WEB-INF/actions/entry/SetCheckOutTabBar.groovy b/applications/order/webapp/ordermgr/WEB-INF/actions/entry/SetCheckOutTabBar.groovy index ac3e5b1497..2e7bd8e826 100644 --- a/applications/order/webapp/ordermgr/WEB-INF/actions/entry/SetCheckOutTabBar.groovy +++ b/applications/order/webapp/ordermgr/WEB-INF/actions/entry/SetCheckOutTabBar.groovy @@ -28,22 +28,22 @@ shoppingCart = ShoppingCartEvents.getCartObject(request); // ---------------------------------- // The ordered list of steps is prepared here // ---------------------------------- -checkoutSteps.add([label : "OrderOrderItems", uri : "/orderentry", enabled : "Y"]) +checkoutSteps.add([label : "OrderOrderItems", uri : "orderentry", enabled : "Y"]) if ("PURCHASE_ORDER".equals(shoppingCart.getOrderType())) { - checkoutSteps.add([label : "OrderOrderTerms", uri : "/setOrderTerm", enabled : "Y"]) + checkoutSteps.add([label : "OrderOrderTerms", uri : "setOrderTerm", enabled : "Y"]) } -checkoutSteps.add([label : "FacilityShipping", uri : "/setShipping", enabled : "Y"]) +checkoutSteps.add([label : "FacilityShipping", uri : "setShipping", enabled : "Y"]) if (shoppingCart.getShipGroupSize() > 1) { - checkoutSteps.add([label : "OrderShipGroups", uri : "/SetItemShipGroups", enabled : "Y"]) + checkoutSteps.add([label : "OrderShipGroups", uri : "SetItemShipGroups", enabled : "Y"]) } -checkoutSteps.add([label : "CommonOptions", uri : "/setOptions", enabled : "Y"]) +checkoutSteps.add([label : "CommonOptions", uri : "setOptions", enabled : "Y"]) if ("SALES_ORDER".equals(shoppingCart.getOrderType())) { - checkoutSteps.add([label : "OrderOrderTerms", uri : "/setOrderTerm", enabled : "Y"]) - checkoutSteps.add([label : "AccountingPayment", uri : "/setBilling", enabled : "Y"]) + checkoutSteps.add([label : "OrderOrderTerms", uri : "setOrderTerm", enabled : "Y"]) + checkoutSteps.add([label : "AccountingPayment", uri : "setBilling", enabled : "Y"]) } -checkoutSteps.add([label : "PartyParties", uri : "/setAdditionalParty", enabled : "Y"]) -checkoutSteps.add([label : "OrderReviewOrder", uri : "/confirmOrder", enabled : "Y"]) +checkoutSteps.add([label : "PartyParties", uri : "setAdditionalParty", enabled : "Y"]) +checkoutSteps.add([label : "OrderReviewOrder", uri : "confirmOrder", enabled : "Y"]) // --------------------------------------- diff --git a/applications/order/webapp/ordermgr/entry/optionsettings.ftl b/applications/order/webapp/ordermgr/entry/optionsettings.ftl index fa2bb430be..32eefb7735 100644 --- a/applications/order/webapp/ordermgr/entry/optionsettings.ftl +++ b/applications/order/webapp/ordermgr/entry/optionsettings.ftl @@ -23,6 +23,28 @@ under the License.
+ + +
+ + + + + + + + + +
+

${uiLabelMap.OrderInternalNote}

+
+

${uiLabelMap.OrderShippingNotes}

+
+ + + +
+
@@ -37,29 +59,7 @@ under the License. <#assign supplier = delegator.findByPrimaryKey("PartyGroup", Static["org.ofbiz.base.util.UtilMisc"].toMap("partyId", supplierPartyId))?if_exists /> - - - - + <#if cart.getOrderType() != "PURCHASE_ORDER"> + + + <#assign shipEstimateWrapper = Static["org.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper"].getWrapper(dispatcher, cart, 0)> <#assign carrierShipmentMethods = shipEstimateWrapper.getShippingMethods()> <#list carrierShipmentMethods as carrierShipmentMethod> @@ -103,7 +108,6 @@ under the License. - <#else> @@ -128,7 +132,32 @@ under the License.
${uiLabelMap.FacilityShipAvailable}
- + + + + + + + + + + + + - - <#if shipGroup.shipAfterDate?has_content> + + + - - <#if shipGroup.shipByDate?has_content> - - + - + <#assign shipGroupShipments = shipGroup.getRelated("PrimaryShipment")> <#if shipGroupShipments?has_content> @@ -575,7 +577,7 @@ under the License. <#-- shipment actions --> - <#if security.hasEntityPermission("ORDERMGR", "_UPDATE", session) && ((orderHeader.statusId == "ORDER_APPROVED") || (orderHeader.statusId == "ORDER_SENT"))> + <#if security.hasEntityPermission("ORDERMGR", "_UPDATE", session) && ((orderHeader.statusId == "ORDER_CREATED") || (orderHeader.statusId == "ORDER_APPROVED") || (orderHeader.statusId == "ORDER_SENT"))> <#-- Manual shipment options --> @@ -584,22 +586,26 @@ under the License.
- - - - - - - - - -
-

${uiLabelMap.OrderInternalNote}

-
-

${uiLabelMap.OrderShippingNotes}

-
- - - -
-


${uiLabelMap.OrderShipGroup} ${uiLabelMap.CommonNbr} ${currIndex}<#if supplier?has_content> - ${supplier.groupName?default(supplier.partyId)}

@@ -67,6 +67,11 @@ under the License.
+

${uiLabelMap.ProductShipmentMethod}

+


+

${uiLabelMap.OrderShipBeforeDate}

+
+
+ + ${uiLabelMap.OrderCalendarClickHereForCalendar} +
+
+

${uiLabelMap.OrderShipAfterDate}

+
+
+ + ${uiLabelMap.OrderCalendarClickHereForCalendar} +
+

${uiLabelMap.FacilitySpecialInstructions}

@@ -154,7 +183,6 @@ under the License.

${uiLabelMap.OrderGiftMessage}

diff --git a/applications/order/webapp/ordermgr/order/ordershippinginfo.ftl b/applications/order/webapp/ordermgr/order/ordershippinginfo.ftl index 692d4bcb86..854769da6f 100644 --- a/applications/order/webapp/ordermgr/order/ordershippinginfo.ftl +++ b/applications/order/webapp/ordermgr/order/ordershippinginfo.ftl @@ -517,7 +517,9 @@ under the License.

@@ -525,22 +527,22 @@ under the License.   - ${shipGroup.shipAfterDate} + + ${uiLabelMap.OrderCalendarClickHereForCalendar}

 ${uiLabelMap.OrderShipBeforeDate}   - ${shipGroup.shipByDate} + + ${uiLabelMap.OrderCalendarClickHereForCalendar} +

<#if orderHeader.orderTypeId == "SALES_ORDER"> <#if !shipGroup.supplierPartyId?has_content> - ${uiLabelMap.OrderPackShipmentForShipGroup} [${shipGroup.shipGroupSeqId}] + <#if orderHeader.statusId == "ORDER_APPROVED"> + ${uiLabelMap.OrderPackShipmentForShipGroup}
- ${uiLabelMap.OrderNewShipmentForShipGroup} -
+ + ${uiLabelMap.OrderNewShipmentForShipGroup} + +
<#else> + <#if (orderHeader.statusId == "ORDER_APPROVED") || (orderHeader.statusId == "ORDER_SENT")> <#assign facilities = facilitiesForShipGroup.get(shipGroup.shipGroupSeqId)> <#if facilities?has_content> <#else> ${uiLabelMap.ProductShipmentQuickComplete} - ${uiLabelMap.OrderNewDropShipmentForShipGroup} [${shipGroup.shipGroupSeqId}] + ${uiLabelMap.OrderNewDropShipmentForShipGroup} [${shipGroup.shipGroupSeqId}] -
+ @@ -631,6 +637,7 @@ under the License.
+