Class VerifyPickSession

java.lang.Object
org.apache.ofbiz.shipment.verify.VerifyPickSession
All Implemented Interfaces:
Serializable

public class VerifyPickSession extends Object implements Serializable
The type Verify pick session.
See Also:
  • Constructor Details

    • VerifyPickSession

      public VerifyPickSession()
    • VerifyPickSession

      public VerifyPickSession(LocalDispatcher dispatcher, GenericValue userLogin)
  • Method Details

    • getDispatcher

      public LocalDispatcher getDispatcher()
      Gets dispatcher.
      Returns:
      the dispatcher
    • getDelegator

      public Delegator getDelegator()
      Gets delegator.
      Returns:
      the delegator
    • createRow

      public void createRow(String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, String originGeoId, BigDecimal quantity, Locale locale) throws GeneralException
      Create row.
      Parameters:
      orderId - the order id
      orderItemSeqId - the order item seq id
      shipGroupSeqId - the ship group seq id
      productId - the product id
      originGeoId - the origin geo id
      quantity - the quantity
      locale - the locale
      Throws:
      GeneralException - the general exception
    • findOrderItemSeqId

      protected String findOrderItemSeqId(String productId, String orderId, String shipGroupSeqId, BigDecimal quantity, Locale locale) throws GeneralException
      Find order item seq id string.
      Parameters:
      productId - the product id
      orderId - the order id
      shipGroupSeqId - the ship group seq id
      quantity - the quantity
      locale - the locale
      Returns:
      the string
      Throws:
      GeneralException - the general exception
    • checkRowForAdd

      protected int checkRowForAdd(GenericValue reservation, String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, BigDecimal quantity)
      Check row for add int.
      Parameters:
      reservation - the reservation
      orderId - the order id
      orderItemSeqId - the order item seq id
      shipGroupSeqId - the ship group seq id
      productId - the product id
      quantity - the quantity
      Returns:
      the int
    • createVerifyPickRow

      protected void createVerifyPickRow(int checkCode, GenericValue res, String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, String originGeoId, BigDecimal quantity, Locale locale) throws GeneralException
      Create verify pick row.
      Parameters:
      checkCode - the check code
      res - the res
      orderId - the order id
      orderItemSeqId - the order item seq id
      shipGroupSeqId - the ship group seq id
      productId - the product id
      originGeoId - the origin geo id
      quantity - the quantity
      locale - the locale
      Throws:
      GeneralException - the general exception
    • getUserLogin

      public GenericValue getUserLogin()
      Gets user login.
      Returns:
      the user login
    • setFacilityId

      public void setFacilityId(String facilityId)
      Sets facility id.
      Parameters:
      facilityId - the facility id
    • getFacilityId

      public String getFacilityId()
      Gets facility id.
      Returns:
      the facility id
    • setPicklistBinId

      public void setPicklistBinId(String setPicklistBinId)
      Sets picklist bin id.
      Parameters:
      setPicklistBinId - the set picklist bin id
    • getPicklistBinId

      public String getPicklistBinId()
      Gets picklist bin id.
      Returns:
      the picklist bin id
    • getPickRows

      public List<VerifyPickSessionRow> getPickRows()
      Gets pick rows.
      Returns:
      the pick rows
    • getPickRows

      public List<VerifyPickSessionRow> getPickRows(String orderId)
      Gets pick rows.
      Parameters:
      orderId - the order id
      Returns:
      the pick rows
    • getReadyToVerifyQuantity

      public BigDecimal getReadyToVerifyQuantity(String orderId, String orderSeqId) throws GeneralException
      Gets ready to verify quantity.
      Parameters:
      orderId - the order id
      orderSeqId - the order seq id
      Returns:
      the ready to verify quantity
      Throws:
      GeneralException - the general exception
    • getPickRow

      public VerifyPickSessionRow getPickRow(String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, String inventoryItemId)
      Gets pick row.
      Parameters:
      orderId - the order id
      orderItemSeqId - the order item seq id
      shipGroupSeqId - the ship group seq id
      productId - the product id
      inventoryItemId - the inventory item id
      Returns:
      the pick row
    • getVerifiedQuantity

      public BigDecimal getVerifiedQuantity(String orderId, String orderItemSeqId, String shipGroupSeqId, String productId, String inventoryItemId)
      Gets verified quantity.
      Parameters:
      orderId - the order id
      orderItemSeqId - the order item seq id
      shipGroupSeqId - the ship group seq id
      productId - the product id
      inventoryItemId - the inventory item id
      Returns:
      the verified quantity
    • clearAllRows

      public void clearAllRows()
      Clear all rows.
    • complete

      public String complete(String orderId, Locale locale) throws GeneralException
      Complete string.
      Parameters:
      orderId - the order id
      locale - the locale
      Returns:
      the string
      Throws:
      GeneralException - the general exception
    • checkReservedQty

      protected void checkReservedQty(String orderId, Locale locale) throws GeneralException
      Check reserved qty.
      Parameters:
      orderId - the order id
      locale - the locale
      Throws:
      GeneralException - the general exception
    • getReservedQty

      public BigDecimal getReservedQty(String orderId, String orderItemSeqId, String shipGroupSeqId)
      Gets reserved qty.
      Parameters:
      orderId - the order id
      orderItemSeqId - the order item seq id
      shipGroupSeqId - the ship group seq id
      Returns:
      the reserved qty
    • checkVerifiedQty

      protected void checkVerifiedQty(String orderId, Locale locale) throws GeneralException
      Check verified qty.
      Parameters:
      orderId - the order id
      locale - the locale
      Throws:
      GeneralException - the general exception
    • issueItemsToShipment

      protected void issueItemsToShipment(String shipmentId, Locale locale) throws GeneralException
      Issue items to shipment.
      Parameters:
      shipmentId - the shipment id
      locale - the locale
      Throws:
      GeneralException - the general exception
    • checkLine

      protected boolean checkLine(List<VerifyPickSessionRow> processedRows, VerifyPickSessionRow pickrow)
      Check line boolean.
      Parameters:
      processedRows - the processed rows
      pickrow - the pickrow
      Returns:
      the boolean
    • createShipment

      protected String createShipment(VerifyPickSessionRow line) throws GeneralException
      Create shipment string.
      Parameters:
      line - the line
      Returns:
      the string
      Throws:
      GeneralException - the general exception
    • updateProduct

      protected void updateProduct() throws GeneralException
      Update product.
      Throws:
      GeneralException - the general exception