Search in sources :

Example 1 with CuSalaryExpenseTransferDocument

use of edu.cornell.kfs.module.ld.document.CuSalaryExpenseTransferDocument in project cu-kfs by CU-CommunityApps.

the class CuLaborPendingEntryConverterServiceImplTest method testGetBenefitClearingPendingEntry.

public void testGetBenefitClearingPendingEntry() throws IllegalAccessException, InstantiationException, WorkflowException {
    CuSalaryExpenseTransferDocument document = CuSalaryExpenseTransferDocumentFixture.GOOD_ST.createSalaryExpenseDocument();
    AccountingDocumentTestUtils.saveDocument(document, documentService);
    GeneralLedgerPendingEntrySequenceHelper sequenceHelper = new GeneralLedgerPendingEntrySequenceHelper();
    LaborLedgerPendingEntry laborLedgerPendingEntry = ((CuLaborPendingEntryConverterServiceImpl) laborPendingEntryConverterService).getBenefitClearingPendingEntry(document, sequenceHelper, "R704750", "IT", "MX", new KualiDecimal(6916.68), "5200");
    assertEquals("1", laborLedgerPendingEntry.getEmplid());
}
Also used : CuSalaryExpenseTransferDocument(edu.cornell.kfs.module.ld.document.CuSalaryExpenseTransferDocument) LaborLedgerPendingEntry(org.kuali.kfs.module.ld.businessobject.LaborLedgerPendingEntry) KualiDecimal(org.kuali.rice.core.api.util.type.KualiDecimal) GeneralLedgerPendingEntrySequenceHelper(org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)

Aggregations

CuSalaryExpenseTransferDocument (edu.cornell.kfs.module.ld.document.CuSalaryExpenseTransferDocument)1 LaborLedgerPendingEntry (org.kuali.kfs.module.ld.businessobject.LaborLedgerPendingEntry)1 GeneralLedgerPendingEntrySequenceHelper (org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper)1 KualiDecimal (org.kuali.rice.core.api.util.type.KualiDecimal)1