Class ShippingUtil

java.lang.Object
org.adempiere.util.ShippingUtil

public class ShippingUtil extends Object
Helper methods for shipping
  • Constructor Details

    • ShippingUtil

      public ShippingUtil()
  • Method Details

    • getSenderShipperAccount

      public static String getSenderShipperAccount(int shipper_id, int org_id)
      Get shipper account from C_BP_ShippingAcct
      Parameters:
      shipper_id - M_Shipper_ID
      org_id - AD_Org_ID
      Returns:
      Shipper Account
    • getSenderDutiesShipperAccount

      public static String getSenderDutiesShipperAccount(int shipper_id, int org_id)
      Get duties shipper account from C_BP_ShippingAcct
      Parameters:
      shipper_id - M_Shipper_ID
      org_id - AD_Org_ID
      Returns:
      DutiesShipperAccount (if any)
    • findRecipientAccountLocationId

      public static int findRecipientAccountLocationId(int shipper_id, int c_bpartner_id, int ad_org_id, int inout_id, int order_id)
      Find recipient C_BPartner_Location_ID from C_BP_ShippingAcct, M_InOut or C_Order (in the listed order).
      Parameters:
      shipper_id - M_Shipper_ID
      c_bpartner_id - C_BPartner_ID
      ad_org_id - AD_Org_ID
      inout_id - M_InOut_ID
      order_id - C_Order_ID
      Returns:
      C_BPartner_Location_ID
    • getBPShipperAccount

      public static String getBPShipperAccount(int shipper_id, int c_bpartner_id, int c_bpartner_location_id, int org_id, String trxName)
      Get shipper account number (ShipperAccount) from C_BP_ShippingAcct
      Parameters:
      shipper_id -
      c_bpartner_id -
      c_bpartner_location_id -
      org_id -
      trxName -
      Returns:
      shipper account number (if any)