Search in sources :

Example 1 with DisbursementVoucherForm

use of org.kuali.kfs.fp.document.web.struts.DisbursementVoucherForm in project cu-kfs by CU-CommunityApps.

the class IWantDocumentServiceImplTest method testSetUpDVDetailsFromIWantDoc.

public void testSetUpDVDetailsFromIWantDoc() throws Exception {
    IWantDocument iWantDocument = IWantDocumentFixture.I_WANT_DOC.createIWantDocument();
    CuDisbursementVoucherDocument disbursementVoucherDocument = (CuDisbursementVoucherDocument) SpringContext.getBean(DocumentService.class).getNewDocument(CuDisbursementVoucherDocument.class);
    disbursementVoucherDocument.initiateDocument();
    DisbursementVoucherForm disbursementVoucherForm = new DisbursementVoucherForm();
    iWantDocumentService.setUpDVDetailsFromIWantDoc(iWantDocument, disbursementVoucherDocument, disbursementVoucherForm);
    assertEquals(1, disbursementVoucherDocument.getSourceAccountingLines().size());
    assertEquals(iWantDocument.getTotalDollarAmount(), disbursementVoucherDocument.getDisbVchrCheckTotalAmount());
}
Also used : CuDisbursementVoucherDocument(edu.cornell.kfs.fp.document.CuDisbursementVoucherDocument) DisbursementVoucherForm(org.kuali.kfs.fp.document.web.struts.DisbursementVoucherForm) IWantDocument(edu.cornell.kfs.module.purap.document.IWantDocument)

Aggregations

CuDisbursementVoucherDocument (edu.cornell.kfs.fp.document.CuDisbursementVoucherDocument)1 IWantDocument (edu.cornell.kfs.module.purap.document.IWantDocument)1 DisbursementVoucherForm (org.kuali.kfs.fp.document.web.struts.DisbursementVoucherForm)1