Package org.adempiere.util
Class ShippingUtil
java.lang.Object
org.adempiere.util.ShippingUtil
Helper methods for shipping
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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).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_ShippingAcctstatic String
getSenderDutiesShipperAccount
(int shipper_id, int org_id) Get duties shipper account from C_BP_ShippingAcctstatic String
getSenderShipperAccount
(int shipper_id, int org_id) Get shipper account from C_BP_ShippingAcct
-
Constructor Details
-
ShippingUtil
public ShippingUtil()
-
-
Method Details
-
getSenderShipperAccount
Get shipper account from C_BP_ShippingAcct- Parameters:
shipper_id
- M_Shipper_IDorg_id
- AD_Org_ID- Returns:
- Shipper Account
-
getSenderDutiesShipperAccount
Get duties shipper account from C_BP_ShippingAcct- Parameters:
shipper_id
- M_Shipper_IDorg_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_IDc_bpartner_id
- C_BPartner_IDad_org_id
- AD_Org_IDinout_id
- M_InOut_IDorder_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)
-