use of edu.cornell.kfs.fp.businessobject.AchIncomeTransaction in project cu-kfs by CU-CommunityApps.
the class AdvanceDepositServiceImplTest method testSetupSourceAccountingLine_PositiveAmount.
@Test
public void testSetupSourceAccountingLine_PositiveAmount() {
SourceAccountingLine sourceAccountingLine = new SourceAccountingLine();
AchIncomeTransaction achIncomeTransaction = new AchIncomeTransaction();
achIncomeTransaction.setTransactionAmount(new KualiDecimal(10));
advanceDepositService.setupSourceAccountingLine(achIncomeTransaction, advanceDepositDocument, "IT", NON_ASSET_EXPENSE_OBJECT_CODE, "1234567");
assertEquals("Accounting line amount should equal the transaction amount", achIncomeTransaction.getTransactionAmount(), advanceDepositDocument.getSourceAccountingLine(0).getAmount());
}
use of edu.cornell.kfs.fp.businessobject.AchIncomeTransaction in project cu-kfs by CU-CommunityApps.
the class AdvanceDepositServiceImplTest method testCreateSourceAccountingLineDefault.
@Test
public void testCreateSourceAccountingLineDefault() {
AchIncomeTransaction transaction = new AchIncomeTransaction();
transaction.setNotes(new ArrayList<AchIncomeNote>());
advanceDepositService.createSourceAccountingLine(transaction, advanceDepositDocument);
assertNotNull(advanceDepositDocument.getSourceAccountingLines());
assertEquals(1, advanceDepositDocument.getSourceAccountingLines().size());
assertEquals("IT", advanceDepositDocument.getSourceAccountingLine(0).getChartOfAccountsCode());
assertEquals("2240", advanceDepositDocument.getSourceAccountingLine(0).getFinancialObjectCode());
assertEquals("G621060", advanceDepositDocument.getSourceAccountingLine(0).getAccountNumber());
}
Aggregations