Class PackingSessionLine
java.lang.Object
org.apache.ofbiz.shipment.packing.PackingSessionLine
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
ConstructorDescriptionPackingSessionLine
(String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, String inventoryItemId, BigDecimal quantity, BigDecimal weight, int packageSeq) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addQuantity
(BigDecimal quantity) Add quantity.void
addWeight
(BigDecimal weight) Add weight.protected void
applyLineToPackage
(String shipmentId, GenericValue userLogin, LocalDispatcher dispatcher) Apply line to package.Gets height.Gets inventory item id.Gets length.Gets order id.Gets order item seq id.int
Gets package seq.Gets product id.Gets quantity.Gets ship group seq id.Gets shipment box type id.Gets shipment item seq id.Gets weight.Gets weight package seq id.getWidth()
Gets width.boolean
isSameItem
(PackingSessionLine line) Is same item boolean.protected void
issueItemToShipment
(String shipmentId, String picklistBinId, GenericValue userLogin, BigDecimal quantity, LocalDispatcher dispatcher) Issue item to shipment.void
setHeight
(BigDecimal height) Sets height.void
setLength
(BigDecimal length) Sets length.void
setQuantity
(BigDecimal quantity) Sets quantity.void
setShipmentBoxTypeId
(String shipmentBoxTypeId) Sets shipment box type id.void
setShipmentItemSeqId
(String shipmentItemSeqId) Sets shipment item seq id.void
setWeight
(BigDecimal weight) Sets weight.void
setWeightPackageSeqId
(String weightPackageSeqId) Sets weight package seq id.void
setWidth
(BigDecimal width) Sets width.
-
Constructor Details
-
PackingSessionLine
public PackingSessionLine(String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, String inventoryItemId, BigDecimal quantity, BigDecimal weight, int packageSeq)
-
-
Method Details
-
getOrderId
Gets order id.- Returns:
- the order id
-
getOrderItemSeqId
Gets order item seq id.- Returns:
- the order item seq id
-
getShipGroupSeqId
Gets ship group seq id.- Returns:
- the ship group seq id
-
getInventoryItemId
Gets inventory item id.- Returns:
- the inventory item id
-
getProductId
Gets product id.- Returns:
- the product id
-
getShipmentItemSeqId
Gets shipment item seq id.- Returns:
- the shipment item seq id
-
setShipmentItemSeqId
Sets shipment item seq id.- Parameters:
shipmentItemSeqId
- the shipment item seq id
-
getQuantity
Gets quantity.- Returns:
- the quantity
-
setQuantity
Sets quantity.- Parameters:
quantity
- the quantity
-
addQuantity
Add quantity.- Parameters:
quantity
- the quantity
-
getWeight
Gets weight.- Returns:
- the weight
-
setWeight
Sets weight.- Parameters:
weight
- the weight
-
addWeight
Add weight.- Parameters:
weight
- the weight
-
getPackageSeq
public int getPackageSeq()Gets package seq.- Returns:
- the package seq
-
getLength
Gets length.- Returns:
- the length
-
setLength
Sets length.- Parameters:
length
- the length
-
getWidth
Gets width.- Returns:
- the width
-
setWidth
Sets width.- Parameters:
width
- the width
-
getHeight
Gets height.- Returns:
- the height
-
setHeight
Sets height.- Parameters:
height
- the height
-
getShipmentBoxTypeId
Gets shipment box type id.- Returns:
- the shipment box type id
-
setShipmentBoxTypeId
Sets shipment box type id.- Parameters:
shipmentBoxTypeId
- the shipment box type id
-
getWeightPackageSeqId
Gets weight package seq id.- Returns:
- the weight package seq id
-
setWeightPackageSeqId
Sets weight package seq id.- Parameters:
weightPackageSeqId
- the weight package seq id
-
isSameItem
Is same item boolean.- Parameters:
line
- the line- Returns:
- the boolean
-
issueItemToShipment
protected void issueItemToShipment(String shipmentId, String picklistBinId, GenericValue userLogin, BigDecimal quantity, LocalDispatcher dispatcher) throws GeneralException Issue item to shipment.- Parameters:
shipmentId
- the shipment idpicklistBinId
- the picklist bin iduserLogin
- the user loginquantity
- the quantitydispatcher
- the dispatcher- Throws:
GeneralException
- the general exception
-
applyLineToPackage
protected void applyLineToPackage(String shipmentId, GenericValue userLogin, LocalDispatcher dispatcher) throws GeneralException Apply line to package.- Parameters:
shipmentId
- the shipment iduserLogin
- the user logindispatcher
- the dispatcher- Throws:
GeneralException
- the general exception
-