Users - what is replaced for this method

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

Users - what is replaced for this method

puranisank

Hello,
    /** Service to prepare notification data */
    public static Map prepareOrderEmailData(DispatchContext ctx, Map context) {
        Map result = new HashMap();
        GenericDelegator delegator = ctx.getDelegator();
        String orderId = (String) context.get("orderId");

        try {
            GenericValue orderHeader = delegator.findByPrimaryKey("OrderHeader", UtilMisc.toMap("orderId", orderId));
            OrderReadHelper orh = new OrderReadHelper(orderHeader);
            List orderItems = orh.getOrderItems();
            List orderAdjustments = orh.getAdjustments();
            List orderHeaderAdjustments = orh.getOrderHeaderAdjustments();
            double orderSubTotal = orh.getOrderItemsSubTotal();
            List headerAdjustmentsToShow = orh.getOrderHeaderAdjustmentsToShow();

            //templateContext.put("localOrderReadHelper", orh);
            result.put("orderId", orderId);
            result.put("orderItemSeqId", context.get("orderItemSeqId"));
            result.put("orderHeader", orderHeader);
            result.put("orderItems", orh.getOrderItems());
            result.put("statusString", orh.getStatusString());
            result.put("orderAdjustments", orderAdjustments);
            result.put("orderHeaderAdjustments", orderHeaderAdjustments);
            result.put("orderSubTotal", new Double(orderSubTotal));
            result.put("headerAdjustmentsToShow", headerAdjustmentsToShow);

            double shippingAmount = OrderReadHelper.getAllOrderItemsAdjustmentsTotal(orderItems, orderAdjustments, false, false, true);
            shippingAmount += OrderReadHelper.calcOrderAdjustments(orderHeaderAdjustments, orderSubTotal, false, false, true);



The above is the method in "OrderServices.java" in "components\order\src\org\ofbiz\order\order" in the older ofbiz3.0.


Can anyone say how is this service working in sequoiaerp0.8.3
This method is not available in sequoiaerp0.8.3.


Regards
Purani





 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users