Search in sources :

Example 11 with SubObjectCode

use of org.kuali.kfs.coa.businessobject.SubObjectCode in project cu-kfs by CU-CommunityApps.

the class MockSubObjectCodeService method getByPrimaryIdForCurrentYear.

@Override
public SubObjectCode getByPrimaryIdForCurrentYear(String chartOfAccountsCode, String accountNumber, String financialObjectCode, String financialSubObjectCode) {
    SubObjectCode subObjectCode = null;
    if (ConcurAccountValidationTestConstants.VALID_CHART.equalsIgnoreCase(chartOfAccountsCode) && ConcurAccountValidationTestConstants.VALID_ACCT_NBR.equalsIgnoreCase(accountNumber) && ConcurAccountValidationTestConstants.VALID_OBJ_CD.equalsIgnoreCase(financialObjectCode) && ConcurAccountValidationTestConstants.VALID_SUB_OBJECT.equalsIgnoreCase(financialSubObjectCode)) {
        subObjectCode = createSubObjectCode(chartOfAccountsCode, accountNumber, financialObjectCode, financialSubObjectCode);
        subObjectCode.setActive(true);
    }
    if (ConcurAccountValidationTestConstants.VALID_CHART.equalsIgnoreCase(chartOfAccountsCode) && ConcurAccountValidationTestConstants.VALID_ACCT_NBR.equalsIgnoreCase(accountNumber) && ConcurAccountValidationTestConstants.VALID_OBJ_CD.equalsIgnoreCase(financialObjectCode) && ConcurAccountValidationTestConstants.INACTIVE_SUB_OBJECT.equalsIgnoreCase(financialSubObjectCode)) {
        subObjectCode = createSubObjectCode(chartOfAccountsCode, accountNumber, financialObjectCode, financialSubObjectCode);
        subObjectCode.setActive(false);
    }
    return subObjectCode;
}
Also used : SubObjectCode(org.kuali.kfs.coa.businessobject.SubObjectCode)

Aggregations

SubObjectCode (org.kuali.kfs.coa.businessobject.SubObjectCode)11 ArrayList (java.util.ArrayList)2 ObjectCode (org.kuali.kfs.coa.businessobject.ObjectCode)2 SubObjectCodeService (org.kuali.kfs.coa.service.SubObjectCodeService)2 ValidationResult (edu.cornell.kfs.concur.businessobjects.ValidationResult)1 Account (org.kuali.kfs.coa.businessobject.Account)1 Chart (org.kuali.kfs.coa.businessobject.Chart)1 ProjectCode (org.kuali.kfs.coa.businessobject.ProjectCode)1 SubAccount (org.kuali.kfs.coa.businessobject.SubAccount)1 DocumentType (org.kuali.kfs.kew.doctype.bo.DocumentType)1 PersistableBusinessObject (org.kuali.kfs.krad.bo.PersistableBusinessObject)1 BusinessObjectService (org.kuali.kfs.krad.service.BusinessObjectService)1 AccountingLineOverride (org.kuali.kfs.sys.businessobject.AccountingLineOverride)1 OriginationCode (org.kuali.kfs.sys.businessobject.OriginationCode)1