Class ShipmentServices
- java.lang.Object
-
- org.apache.ofbiz.shipment.shipment.ShipmentServices
-
public class ShipmentServices extends java.lang.Object
ShipmentServices
-
-
Constructor Summary
Constructors Constructor Description ShipmentServices()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.Object>
calcShipmentCostEstimate(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
clearShipmentStagingInfo(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
createShipmentEstimate(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
duplicateShipmentRouteSegment(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
fillShipmentStagingTables(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
getShipmentGatewayConfigFromShipment(Delegator delegator, java.lang.String shipmentId, java.util.Locale locale)
static java.util.Map<java.lang.String,java.lang.Object>
getShipmentPackageValueFromOrders(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Calculates the total value of a shipment package by totalling the results of the getOrderItemInvoicedAmountAndQuantity service for the orderItem related to each ShipmentPackageContent, prorated by the quantity of the orderItem issued to the ShipmentPackageContent.static java.util.Map<java.lang.String,java.lang.Object>
quickScheduleShipmentRouteSegment(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Service to call a ShipmentRouteSegment.carrierPartyId's confirm shipment method asynchronouslystatic java.util.Map<java.lang.String,java.lang.Object>
removeShipmentEstimate(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
sendShipmentCompleteNotification(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
static java.util.Map<java.lang.String,java.lang.Object>
updatePurchaseShipmentFromReceipt(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Whenever a ShipmentReceipt is generated, check the Shipment associated with it to see if all items were received.static java.util.Map<java.lang.String,java.lang.Object>
updateShipmentsFromStaging(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
resource
public static final java.lang.String resource
- See Also:
- Constant Field Values
-
resource_error
public static final java.lang.String resource_error
- See Also:
- Constant Field Values
-
decimals
public static final int decimals
-
rounding
public static final java.math.RoundingMode rounding
-
ZERO
public static final java.math.BigDecimal ZERO
-
-
Method Detail
-
createShipmentEstimate
public static java.util.Map<java.lang.String,java.lang.Object> createShipmentEstimate(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
removeShipmentEstimate
public static java.util.Map<java.lang.String,java.lang.Object> removeShipmentEstimate(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
calcShipmentCostEstimate
public static java.util.Map<java.lang.String,java.lang.Object> calcShipmentCostEstimate(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
fillShipmentStagingTables
public static java.util.Map<java.lang.String,java.lang.Object> fillShipmentStagingTables(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
updateShipmentsFromStaging
public static java.util.Map<java.lang.String,java.lang.Object> updateShipmentsFromStaging(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
clearShipmentStagingInfo
public static java.util.Map<java.lang.String,java.lang.Object> clearShipmentStagingInfo(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
updatePurchaseShipmentFromReceipt
public static java.util.Map<java.lang.String,java.lang.Object> updatePurchaseShipmentFromReceipt(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Whenever a ShipmentReceipt is generated, check the Shipment associated with it to see if all items were received. If so, change its status to PURCH_SHIP_RECEIVED. The check is accomplished by counting the products shipped (from ShipmentAndItem) and matching them with the products received (from ShipmentReceipt).
-
duplicateShipmentRouteSegment
public static java.util.Map<java.lang.String,java.lang.Object> duplicateShipmentRouteSegment(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
quickScheduleShipmentRouteSegment
public static java.util.Map<java.lang.String,java.lang.Object> quickScheduleShipmentRouteSegment(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Service to call a ShipmentRouteSegment.carrierPartyId's confirm shipment method asynchronously
-
getShipmentPackageValueFromOrders
public static java.util.Map<java.lang.String,java.lang.Object> getShipmentPackageValueFromOrders(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
Calculates the total value of a shipment package by totalling the results of the getOrderItemInvoicedAmountAndQuantity service for the orderItem related to each ShipmentPackageContent, prorated by the quantity of the orderItem issued to the ShipmentPackageContent. Value is converted according to the incoming currencyUomId.- Parameters:
dctx
- DispatchContextcontext
- Map- Returns:
- Map
-
sendShipmentCompleteNotification
public static java.util.Map<java.lang.String,java.lang.Object> sendShipmentCompleteNotification(DispatchContext dctx, java.util.Map<java.lang.String,? extends java.lang.Object> context)
-
getShipmentGatewayConfigFromShipment
public static java.util.Map<java.lang.String,java.lang.Object> getShipmentGatewayConfigFromShipment(Delegator delegator, java.lang.String shipmentId, java.util.Locale locale)
-
-