Class PackingServices
- java.lang.Object
-
- org.apache.ofbiz.shipment.packing.PackingServices
-
public class PackingServices extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PackingServices()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.Object>
addPackLine(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
calcPackSessionAdditionalShippingCharge(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
clearLastPackage(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
clearPackAll(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
clearPackLine(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
completePack(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
incrementPackageSeq(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
packBulk(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Create or update package lines.static java.math.BigDecimal
setSessionPackageWeights(PackingSession session, java.util.Map<java.lang.String,java.lang.String> packageWeights)
static void
setSessionShipmentBoxTypes(PackingSession session, java.util.Map<java.lang.String,java.lang.String> boxTypes)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
resource
public static final java.lang.String resource
- See Also:
- Constant Field Values
-
-
Method Detail
-
addPackLine
public static java.util.Map<java.lang.String,java.lang.Object> addPackLine(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
packBulk
public static java.util.Map<java.lang.String,java.lang.Object> packBulk(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Create or update package lines.
Context parameters:- selInfo - selected rows
- iteInfo - orderItemIds
- prdInfo - productIds
- pkgInfo - package numbers
- wgtInfo - weights to pack
- numPackagesInfo - number of packages to pack per line (>= 1, default: 1)
Packs the same items n times in consecutive packages, starting from the package number retrieved from pkgInfo.
- Parameters:
dctx
- the dispatch contextcontext
- the context- Returns:
- returns the result of the service execution
-
incrementPackageSeq
public static java.util.Map<java.lang.String,java.lang.Object> incrementPackageSeq(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
clearLastPackage
public static java.util.Map<java.lang.String,java.lang.Object> clearLastPackage(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
clearPackLine
public static java.util.Map<java.lang.String,java.lang.Object> clearPackLine(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
clearPackAll
public static java.util.Map<java.lang.String,java.lang.Object> clearPackAll(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
calcPackSessionAdditionalShippingCharge
public static java.util.Map<java.lang.String,java.lang.Object> calcPackSessionAdditionalShippingCharge(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
completePack
public static java.util.Map<java.lang.String,java.lang.Object> completePack(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
setSessionPackageWeights
public static java.math.BigDecimal setSessionPackageWeights(PackingSession session, java.util.Map<java.lang.String,java.lang.String> packageWeights)
-
setSessionShipmentBoxTypes
public static void setSessionShipmentBoxTypes(PackingSession session, java.util.Map<java.lang.String,java.lang.String> boxTypes)
-
-