Class COAUtility
- java.lang.Object
-
- org.openbravo.erpCommon.businessUtility.COAUtility
-
public class COAUtility extends Object
- Author:
- David Alsasua Chart Of Accounts (COA) Utility class
-
-
Constructor Summary
Constructors Constructor Description COAUtility(Client clientProvided, Tree treeAccountProvided)
COAUtility(Client clientProvided, Organization orgProvided, Tree treeAccountProvided)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OBError
createAccounting(VariablesSecureApp vars, InputStream fileCoA, boolean hasBPartner, boolean hasProduct, boolean hasProject, boolean hasMCampaign, boolean hasSRegion, String strAccountString, String strGAAPProvided, String strCostingMethodProvided, String strCalendarColumnName, Currency currency)
static InputStream
getCOAResource(Module coaModule)
Returns the COA.csv resource as anInputStream
, obtained from deployed reourcesStringBuffer
getLog()
-
-
-
Constructor Detail
-
COAUtility
public COAUtility(Client clientProvided, Organization orgProvided, Tree treeAccountProvided)
-
-
Method Detail
-
createAccounting
public OBError createAccounting(VariablesSecureApp vars, InputStream fileCoA, boolean hasBPartner, boolean hasProduct, boolean hasProject, boolean hasMCampaign, boolean hasSRegion, String strAccountString, String strGAAPProvided, String strCostingMethodProvided, String strCalendarColumnName, Currency currency)
- Parameters:
vars
-fileCoA
-hasBPartner
-hasProduct
-hasProject
-hasMCampaign
-hasSRegion
-strAccountString
- Translated name of the column Account_IDcurrency
-strCalendarColumnName
-
-
getCOAResource
public static InputStream getCOAResource(Module coaModule) throws FileNotFoundException
Returns the COA.csv resource as anInputStream
, obtained from deployed reources- Parameters:
coaModule
- Module containing chart of accounts- Returns:
InputStream
to chart of accounts file- Throws:
FileNotFoundException
- In case expected COA.csv file cannot be found
-
getLog
public StringBuffer getLog()
-
-