Package org.openbravo.erpCommon.utility
Class OBCurrencyUtils
- java.lang.Object
-
- org.openbravo.erpCommon.utility.OBCurrencyUtils
-
public class OBCurrencyUtils extends Object
Utilities to get Currency
-
-
Constructor Summary
Constructors Constructor Description OBCurrencyUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getOrgCurrency(String orgId)
Returns the currency id for the given organization id.
-
-
-
Method Detail
-
getOrgCurrency
public static String getOrgCurrency(String orgId)
Returns the currency id for the given organization id. If the org id is empty, it returns null. If the given organization has no currency, it tries to get its legal entity's currency. If not found, it returns the organization client's currency- Parameters:
orgId
- Organization Id whose currency is needed- Returns:
- String currencyId currency id for the given organization. Null if not found
-
-