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