Search in sources :

Example 21 with AccountingDocument

use of org.kuali.kfs.sys.document.AccountingDocument in project cu-kfs by CU-CommunityApps.

the class KualiAccountingDocumentActionBase method checkSalesTaxRequiredAllLines.

protected boolean checkSalesTaxRequiredAllLines(KualiDocumentFormBase kualiDocumentFormBase, List<AccountingLine> baselineAcctingLines) {
    AccountingDocument accoutingDocument = (AccountingDocument) kualiDocumentFormBase.getDocument();
    boolean passed = true;
    int index = 0;
    for (AccountingLine accountingLine : baselineAcctingLines) {
        boolean source = false;
        if (accountingLine.isSourceAccountingLine()) {
            source = true;
        }
        passed &= checkSalesTax(accoutingDocument, accountingLine, source, false, index);
        index++;
    }
    return passed;
}
Also used : SourceAccountingLine(org.kuali.kfs.sys.businessobject.SourceAccountingLine) AccountingLine(org.kuali.kfs.sys.businessobject.AccountingLine) TargetAccountingLine(org.kuali.kfs.sys.businessobject.TargetAccountingLine) AccountingDocument(org.kuali.kfs.sys.document.AccountingDocument)

Example 22 with AccountingDocument

use of org.kuali.kfs.sys.document.AccountingDocument in project cu-kfs by CU-CommunityApps.

the class CuCapitalAssetManagementModuleServiceImplIntegrationTest method testValidateAssetTagLocationLines.

public void testValidateAssetTagLocationLines() {
    CapitalAssetInformation capitalAssetInformation = CapitalAssetInformationFixture.ONE.createCapitalAssetInformation();
    int capitalAssetIndex = 0;
    AccountingDocument accountingDocument = AccountingDocumentFixture.ONE.createAccountingDocument();
    ((CuCapitalAssetManagementModuleServiceImpl) capitalAssetManagementModuleService).validateAssetTagLocationLines(capitalAssetInformation, capitalAssetIndex, accountingDocument);
}
Also used : CapitalAssetInformation(org.kuali.kfs.fp.businessobject.CapitalAssetInformation) AccountingDocument(org.kuali.kfs.sys.document.AccountingDocument)

Aggregations

AccountingDocument (org.kuali.kfs.sys.document.AccountingDocument)22 AccountingLine (org.kuali.kfs.sys.businessobject.AccountingLine)6 ArrayList (java.util.ArrayList)5 SourceAccountingLine (org.kuali.kfs.sys.businessobject.SourceAccountingLine)5 TargetAccountingLine (org.kuali.kfs.sys.businessobject.TargetAccountingLine)5 DocumentService (org.kuali.kfs.krad.service.DocumentService)4 WorkflowException (org.kuali.rice.kew.api.exception.WorkflowException)4 List (java.util.List)3 FinancialSystemDocumentHeader (org.kuali.kfs.sys.businessobject.FinancialSystemDocumentHeader)3 AccountingXmlDocumentEntryFixture (edu.cornell.kfs.fp.batch.xml.fixture.AccountingXmlDocumentEntryFixture)2 IOException (java.io.IOException)2 ActionForward (org.apache.struts.action.ActionForward)2 InternalBillingDocument (org.kuali.kfs.fp.document.InternalBillingDocument)2 Document (org.kuali.kfs.krad.document.Document)2 ValidationException (org.kuali.kfs.krad.exception.ValidationException)2 KualiRuleService (org.kuali.kfs.krad.service.KualiRuleService)2 PersistenceService (org.kuali.kfs.krad.service.PersistenceService)2 AmountTotaling (org.kuali.kfs.sys.document.AmountTotaling)2 AddAccountingLineEvent (org.kuali.kfs.sys.document.validation.event.AddAccountingLineEvent)2 DeleteAccountingLineEvent (org.kuali.kfs.sys.document.validation.event.DeleteAccountingLineEvent)2