Class ShipmentServices
java.lang.Object
org.apache.ofbiz.shipment.shipment.ShipmentServices
ShipmentServices
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncalcShipmentCostEstimate
(DispatchContext dctx, Map<String, Object> context) clearShipmentStagingInfo
(DispatchContext dctx, Map<String, ? extends Object> context) createShipmentEstimate
(DispatchContext dctx, Map<String, ? extends Object> context) duplicateShipmentRouteSegment
(DispatchContext dctx, Map<String, ? extends Object> context) fillShipmentStagingTables
(DispatchContext dctx, Map<String, ? extends Object> context) getShipmentGatewayConfigFromShipment
(Delegator delegator, String shipmentId, Locale locale) getShipmentPackageValueFromOrders
(DispatchContext dctx, Map<String, ? extends 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.quickScheduleShipmentRouteSegment
(DispatchContext dctx, Map<String, ? extends Object> context) Service to call a ShipmentRouteSegment.carrierPartyId's confirm shipment method asynchronouslyremoveShipmentEstimate
(DispatchContext dctx, Map<String, ? extends Object> context) sendShipmentCompleteNotification
(DispatchContext dctx, Map<String, ? extends Object> context) updatePurchaseShipmentFromReceipt
(DispatchContext dctx, Map<String, ? extends Object> context) Whenever a ShipmentReceipt is generated, check the Shipment associated with it to see if all items were received.updateShipmentsFromStaging
(DispatchContext dctx, Map<String, ? extends Object> context)
-
Constructor Details
-
ShipmentServices
public ShipmentServices()
-
-
Method Details
-
createShipmentEstimate
-
removeShipmentEstimate
-
calcShipmentCostEstimate
-
fillShipmentStagingTables
-
updateShipmentsFromStaging
-
clearShipmentStagingInfo
-
updatePurchaseShipmentFromReceipt
public static Map<String,Object> updatePurchaseShipmentFromReceipt(DispatchContext dctx, Map<String, ? extends 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
-
quickScheduleShipmentRouteSegment
public static Map<String,Object> quickScheduleShipmentRouteSegment(DispatchContext dctx, Map<String, ? extends Object> context) Service to call a ShipmentRouteSegment.carrierPartyId's confirm shipment method asynchronously -
getShipmentPackageValueFromOrders
public static Map<String,Object> getShipmentPackageValueFromOrders(DispatchContext dctx, Map<String, ? extends 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
-
getShipmentGatewayConfigFromShipment
-