Class CopyFromOrdersProcess

  • public class CopyFromOrdersProcess
    extends Object
    • Constructor Detail

      • CopyFromOrdersProcess

        public CopyFromOrdersProcess()
    • Method Detail

      • copyOrderLines

        public int copyOrderLines​(Order processingOrderParam,
                                  org.codehaus.jettison.json.JSONArray selectedOrders)
        This process copies the Order Lines of the selected Orders into the Order that is being processed by this same Process
        • Retrieve the Order Lines of each Order that are not Discounts or are Non-Stocked BOM Products and for each one:
        • 1. Update Order and Order Line related information
        • 2. Copy attributes
        • 3. Calculate amounts and UOM's
        • 4. Calculate Prices based on price list
        • 5. Recalculate Taxes
        • Explodes the non-stocked BOM Products to create the corresponding Order Lines
        selectedOrders - . Orders from which the lines are going to be copied
        The number of orders properly copied