Class PackingServices
java.lang.Object
org.apache.ofbiz.shipment.packing.PackingServices
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPackLine
(DispatchContext dctx, Map<String, ? extends Object> context) calcPackSessionAdditionalShippingCharge
(DispatchContext dctx, Map<String, ? extends Object> context) clearLastPackage
(DispatchContext dctx, Map<String, ? extends Object> context) clearPackAll
(DispatchContext dctx, Map<String, ? extends Object> context) clearPackLine
(DispatchContext dctx, Map<String, ? extends Object> context) completePack
(DispatchContext dctx, Map<String, ? extends Object> context) incrementPackageSeq
(DispatchContext dctx, Map<String, ? extends Object> context) packBulk
(DispatchContext dctx, Map<String, ? extends Object> context) Create or update package lines.static BigDecimal
setSessionPackageWeights
(PackingSession session, Map<String, String> packageWeights) static void
setSessionShipmentBoxTypes
(PackingSession session, Map<String, String> boxTypes)
-
Constructor Details
-
PackingServices
public PackingServices()
-
-
Method Details
-
addPackLine
-
packBulk
public static Map<String,Object> packBulk(DispatchContext dctx, Map<String, ? extends 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
-
clearLastPackage
-
clearPackLine
-
clearPackAll
-
calcPackSessionAdditionalShippingCharge
-
completePack
-
setSessionPackageWeights
public static BigDecimal setSessionPackageWeights(PackingSession session, Map<String, String> packageWeights) -
setSessionShipmentBoxTypes
-