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;
}
Aggregations