Class WeightPackageSession
- java.lang.Object
-
- org.apache.ofbiz.shipment.weightPackage.WeightPackageSession
-
- All Implemented Interfaces:
java.io.Serializable
public class WeightPackageSession extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.math.BigDecimal
actualShipCost
protected java.lang.String
carrierPartyId
protected java.lang.String
delegatorName
protected java.lang.String
dimensionUomId
protected java.lang.String
dispatcherName
protected java.math.BigDecimal
estimatedShipCost
protected java.lang.String
facilityId
protected java.lang.String
invoiceId
static java.lang.String
module
protected java.lang.String
picklistBinId
protected java.lang.String
primaryOrderId
protected java.lang.String
primaryShipGrpSeqId
protected java.lang.String
shipmentId
protected GenericValue
userLogin
protected java.util.List<WeightPackageSessionLine>
weightPackageLines
protected int
weightPackageSeqId
protected java.lang.String
weightUomId
-
Constructor Summary
Constructors Constructor Description WeightPackageSession()
WeightPackageSession(LocalDispatcher dispatcher, GenericValue userLogin)
WeightPackageSession(LocalDispatcher dispatcher, GenericValue userLogin, java.lang.String facilityId)
WeightPackageSession(LocalDispatcher dispatcher, GenericValue userLogin, java.lang.String facilityId, java.lang.String picklistBinId, java.lang.String orderId, java.lang.String shipGrpSeqId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyItemsToPackages(java.lang.String orderId)
protected void
changeOrderItemStatus(java.lang.String orderId)
void
clearPackedLines(java.lang.String orderId)
java.lang.String
complete(java.lang.String orderId, java.util.Locale locale, java.lang.String calculateOnlineShippingRateFromUps)
boolean
completeShipment(java.lang.String orderId, java.lang.String calculateOnlineShippingRateFromUps)
protected void
createPackages(java.lang.String orderId)
void
createWeightPackageLine(java.lang.String orderId, java.math.BigDecimal packageWeight, java.math.BigDecimal packageLength, java.math.BigDecimal packageWidth, java.math.BigDecimal packageHeight, java.lang.String shipmentBoxTypeId)
void
deletePackedLine(int weightPackageSeqId)
protected boolean
diffInShipCost(java.math.BigDecimal actualShippingCost)
java.math.BigDecimal
getActualShipCost()
Delegator
getDelegator()
java.lang.String
getDimensionUomId()
LocalDispatcher
getDispatcher()
java.math.BigDecimal
getEstimatedShipCost()
java.lang.String
getFacilityId()
java.lang.String
getInvoiceId()
protected java.lang.Integer
getOrderedQuantity(java.lang.String orderId)
WeightPackageSessionLine
getPackedLine(int weightPackageSeqId)
java.util.List<WeightPackageSessionLine>
getPackedLines()
java.util.List<WeightPackageSessionLine>
getPackedLines(java.lang.String orderId)
java.lang.String
getPicklistBinId()
java.lang.String
getPrimaryOrderId()
java.lang.String
getPrimaryShipGroupSeqId()
java.math.BigDecimal
getShipmentCostEstimate(java.lang.String shippingContactMechId, java.lang.String shipmentMethodTypeId, java.lang.String carrierPartyId, java.lang.String carrierRoleTypeId, java.lang.String orderId, java.lang.String productStoreId, java.util.List<GenericValue> shippableItemInfo, java.math.BigDecimal shippableTotal, java.math.BigDecimal shippableWeight, java.math.BigDecimal shippableQuantity)
java.math.BigDecimal
getShipmentCostEstimate(GenericValue orderItemShipGroup, java.lang.String orderId, java.lang.String productStoreId, java.util.List<GenericValue> shippableItemInfo, java.math.BigDecimal shippableTotal, java.math.BigDecimal shippableWeight, java.math.BigDecimal shippableQuantity)
java.lang.String
getShipmentId()
java.math.BigDecimal
getShippableWeight(java.lang.String orderId)
int
getWeightPackageSeqId()
java.lang.String
getWeightUomId()
protected void
savePackagesInfo(java.lang.String orderId, java.lang.String calculateOnlineShippingRateFromUps)
void
setActualShipCost(java.math.BigDecimal actualShipCost)
void
setCarrierPartyId(java.lang.String carrierPartyId)
void
setDimensionAndShipmentBoxType(int weightPackageSeqId)
void
setDimensionUomId(java.lang.String dimensionUomId)
void
setEstimatedShipCost(java.math.BigDecimal estimatedShipCost)
void
setFacilityId(java.lang.String facilityId)
void
setInvoiceId(java.lang.String invoiceId)
void
setPackageHeight(java.math.BigDecimal packageHeight, int weightPackageSeqId)
void
setPackageLength(java.math.BigDecimal packageLength, int weightPackageSeqId)
void
setPackageWeight(java.math.BigDecimal packageWeight, int weightPackageSeqId)
void
setPackageWidth(java.math.BigDecimal packageWidth, int weightPackageSeqId)
void
setPicklistBinId(java.lang.String picklistBinId)
void
setPrimaryOrderId(java.lang.String primaryOrderId)
void
setPrimaryShipGroupSeqId(java.lang.String primaryShipGrpSeqId)
void
setShipmentBoxTypeId(java.lang.String shipmentBoxTypeId, int weightPackageSeqId)
void
setShipmentId(java.lang.String shipmentId)
protected void
setShipmentToPacked()
void
setWeightUomId(java.lang.String weightUomId)
protected void
updateShipmentRouteSegments(java.lang.String orderId)
protected void
upsShipmentAccept()
protected java.math.BigDecimal
upsShipmentConfirm()
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
userLogin
protected GenericValue userLogin
-
dispatcherName
protected java.lang.String dispatcherName
-
delegatorName
protected java.lang.String delegatorName
-
primaryOrderId
protected java.lang.String primaryOrderId
-
primaryShipGrpSeqId
protected java.lang.String primaryShipGrpSeqId
-
picklistBinId
protected java.lang.String picklistBinId
-
shipmentId
protected java.lang.String shipmentId
-
invoiceId
protected java.lang.String invoiceId
-
facilityId
protected java.lang.String facilityId
-
carrierPartyId
protected java.lang.String carrierPartyId
-
dimensionUomId
protected java.lang.String dimensionUomId
-
weightUomId
protected java.lang.String weightUomId
-
estimatedShipCost
protected java.math.BigDecimal estimatedShipCost
-
actualShipCost
protected java.math.BigDecimal actualShipCost
-
weightPackageSeqId
protected int weightPackageSeqId
-
weightPackageLines
protected java.util.List<WeightPackageSessionLine> weightPackageLines
-
-
Constructor Detail
-
WeightPackageSession
public WeightPackageSession()
-
WeightPackageSession
public WeightPackageSession(LocalDispatcher dispatcher, GenericValue userLogin, java.lang.String facilityId, java.lang.String picklistBinId, java.lang.String orderId, java.lang.String shipGrpSeqId)
-
WeightPackageSession
public WeightPackageSession(LocalDispatcher dispatcher, GenericValue userLogin, java.lang.String facilityId)
-
WeightPackageSession
public WeightPackageSession(LocalDispatcher dispatcher, GenericValue userLogin)
-
-
Method Detail
-
getDispatcher
public LocalDispatcher getDispatcher()
-
getDelegator
public Delegator getDelegator()
-
createWeightPackageLine
public void createWeightPackageLine(java.lang.String orderId, java.math.BigDecimal packageWeight, java.math.BigDecimal packageLength, java.math.BigDecimal packageWidth, java.math.BigDecimal packageHeight, java.lang.String shipmentBoxTypeId) throws GeneralException
- Throws:
GeneralException
-
getWeightPackageSeqId
public int getWeightPackageSeqId()
-
getFacilityId
public java.lang.String getFacilityId()
-
setFacilityId
public void setFacilityId(java.lang.String facilityId)
-
getPrimaryOrderId
public java.lang.String getPrimaryOrderId()
-
setPrimaryOrderId
public void setPrimaryOrderId(java.lang.String primaryOrderId)
-
getPrimaryShipGroupSeqId
public java.lang.String getPrimaryShipGroupSeqId()
-
setPrimaryShipGroupSeqId
public void setPrimaryShipGroupSeqId(java.lang.String primaryShipGrpSeqId)
-
setPicklistBinId
public void setPicklistBinId(java.lang.String picklistBinId)
-
getPicklistBinId
public java.lang.String getPicklistBinId()
-
setEstimatedShipCost
public void setEstimatedShipCost(java.math.BigDecimal estimatedShipCost)
-
getEstimatedShipCost
public java.math.BigDecimal getEstimatedShipCost()
-
setActualShipCost
public void setActualShipCost(java.math.BigDecimal actualShipCost)
-
getActualShipCost
public java.math.BigDecimal getActualShipCost()
-
getShipmentId
public java.lang.String getShipmentId()
-
setShipmentId
public void setShipmentId(java.lang.String shipmentId)
-
getInvoiceId
public java.lang.String getInvoiceId()
-
setInvoiceId
public void setInvoiceId(java.lang.String invoiceId)
-
getWeightUomId
public java.lang.String getWeightUomId()
-
setWeightUomId
public void setWeightUomId(java.lang.String weightUomId)
-
getDimensionUomId
public java.lang.String getDimensionUomId()
-
setCarrierPartyId
public void setCarrierPartyId(java.lang.String carrierPartyId)
-
setDimensionUomId
public void setDimensionUomId(java.lang.String dimensionUomId)
-
getShippableWeight
public java.math.BigDecimal getShippableWeight(java.lang.String orderId)
-
getPackedLines
public java.util.List<WeightPackageSessionLine> getPackedLines()
-
getPackedLines
public java.util.List<WeightPackageSessionLine> getPackedLines(java.lang.String orderId)
-
getPackedLine
public WeightPackageSessionLine getPackedLine(int weightPackageSeqId)
-
setPackageWeight
public void setPackageWeight(java.math.BigDecimal packageWeight, int weightPackageSeqId)
-
setPackageLength
public void setPackageLength(java.math.BigDecimal packageLength, int weightPackageSeqId)
-
setPackageWidth
public void setPackageWidth(java.math.BigDecimal packageWidth, int weightPackageSeqId)
-
setPackageHeight
public void setPackageHeight(java.math.BigDecimal packageHeight, int weightPackageSeqId)
-
setShipmentBoxTypeId
public void setShipmentBoxTypeId(java.lang.String shipmentBoxTypeId, int weightPackageSeqId)
-
deletePackedLine
public void deletePackedLine(int weightPackageSeqId)
-
setDimensionAndShipmentBoxType
public void setDimensionAndShipmentBoxType(int weightPackageSeqId)
-
clearPackedLines
public void clearPackedLines(java.lang.String orderId)
-
complete
public java.lang.String complete(java.lang.String orderId, java.util.Locale locale, java.lang.String calculateOnlineShippingRateFromUps) throws GeneralException
- Throws:
GeneralException
-
completeShipment
public boolean completeShipment(java.lang.String orderId, java.lang.String calculateOnlineShippingRateFromUps) throws GeneralException
- Throws:
GeneralException
-
upsShipmentConfirm
protected java.math.BigDecimal upsShipmentConfirm() throws GeneralException
- Throws:
GeneralException
-
upsShipmentAccept
protected void upsShipmentAccept() throws GeneralException
- Throws:
GeneralException
-
diffInShipCost
protected boolean diffInShipCost(java.math.BigDecimal actualShippingCost) throws GeneralException
- Throws:
GeneralException
-
createPackages
protected void createPackages(java.lang.String orderId) throws GeneralException
- Throws:
GeneralException
-
changeOrderItemStatus
protected void changeOrderItemStatus(java.lang.String orderId) throws GeneralException
- Throws:
GeneralException
-
applyItemsToPackages
protected void applyItemsToPackages(java.lang.String orderId) throws GeneralException
- Throws:
GeneralException
-
updateShipmentRouteSegments
protected void updateShipmentRouteSegments(java.lang.String orderId) throws GeneralException
- Throws:
GeneralException
-
setShipmentToPacked
protected void setShipmentToPacked() throws GeneralException
- Throws:
GeneralException
-
getShipmentCostEstimate
public java.math.BigDecimal getShipmentCostEstimate(GenericValue orderItemShipGroup, java.lang.String orderId, java.lang.String productStoreId, java.util.List<GenericValue> shippableItemInfo, java.math.BigDecimal shippableTotal, java.math.BigDecimal shippableWeight, java.math.BigDecimal shippableQuantity)
-
getShipmentCostEstimate
public java.math.BigDecimal getShipmentCostEstimate(java.lang.String shippingContactMechId, java.lang.String shipmentMethodTypeId, java.lang.String carrierPartyId, java.lang.String carrierRoleTypeId, java.lang.String orderId, java.lang.String productStoreId, java.util.List<GenericValue> shippableItemInfo, java.math.BigDecimal shippableTotal, java.math.BigDecimal shippableWeight, java.math.BigDecimal shippableQuantity)
-
savePackagesInfo
protected void savePackagesInfo(java.lang.String orderId, java.lang.String calculateOnlineShippingRateFromUps) throws GeneralException
- Throws:
GeneralException
-
getOrderedQuantity
protected java.lang.Integer getOrderedQuantity(java.lang.String orderId)
-
-