Merge pull request #286 from goutham-M/MIFOSX-338-FIXES

Api Documentation Updation for GLAccount recent changes
This commit is contained in:
Vishwas Babu A J
2013-05-13 23:43:12 -07:00
2 changed files with 205 additions and 6 deletions
@@ -108,7 +108,7 @@ public class GLAccountData {
this.allowedExpensesTagOptions = allowedExpensesTagOptions;
}
public static GLAccountData sensibleDefaultsForNewGLAccountCreation(final Integer GLAccType) {
public static GLAccountData sensibleDefaultsForNewGLAccountCreation(final Integer glAccType) {
final Long id = null;
final String name = null;
final Long parentId = null;
@@ -116,8 +116,8 @@ public class GLAccountData {
final boolean disabled = false;
final boolean manualEntriesAllowed = true;
final EnumOptionData type;
if(GLAccType!=0)
type = AccountingEnumerations.gLAccountType(GLAccType);
if(glAccType != null && glAccType >= GLAccountType.getMinValue() && glAccType <= GLAccountType.getMaxValue())
type = AccountingEnumerations.gLAccountType(glAccType);
else
type = AccountingEnumerations.gLAccountType(GLAccountType.ASSET);
final EnumOptionData usage = AccountingEnumerations.gLAccountUsage(GLAccountUsage.DETAIL);