| org.kuali.module.purap.rules.PurapAccountingDocumentRuleBase org.kuali.module.purap.rules.PurchasingAccountsPayableDocumentRuleBase org.kuali.module.purap.rules.AccountsPayableDocumentRuleBase org.kuali.module.purap.rules.PaymentRequestDocumentRule
Method Summary | |
protected boolean | accountIsAccessible(AccountingDocument financialDocument, AccountingLine accountingLine) | protected void | customizeExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry) Forces general ledger entries to be approved, does not wait for payment request document final approval. | public boolean | encumberedItemExistsForInvoicing(PurchaseOrderDocument document) Determines if there are items with encumbrances to be invoiced on passed in
purchase order document. | public boolean | processCalculateAccountsPayableBusinessRules(AccountsPayableDocument apDocument) | public boolean | processCancelAccountsPayableBusinessRules(AccountsPayableDocument document) | public boolean | processContinueAccountsPayableBusinessRules(AccountsPayableDocument apDocument) | protected boolean | processCustomAddAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine) Returns true if full document entry is complete, bypassing further rules. | protected boolean | processCustomRouteDocumentBusinessRules(Document document) | public boolean | processInvoiceValidation(PaymentRequestDocument preqDocument) Performs any validation for the Invoice tab. | public boolean | processItemValidation(PurchasingAccountsPayableDocument purapDocument) Performs item validations for the rules that are only applicable to Payment Request Document. | protected boolean | processPaymentRequestDateValidationForContinue(PaymentRequestDocument document) Ensures invoice date does not occur in the future. | public boolean | processPreCalculateAccountsPayableBusinessRules(AccountsPayableDocument document) Validates item fields are valid for the calculation process. | protected boolean | processPurchaseOrderIDValidation(PaymentRequestDocument document) Performs various validation on the purchase order. | public boolean | processValidation(PurchasingAccountsPayableDocument purapDocument) | public boolean | processVendorValidation(PaymentRequestDocument preqDocument) Performs validation on the vendor on the payment request document. | public boolean | validateCancel(PurchasingAccountsPayableDocument purapDocument) Validates that a cancel can occur given the current state of the document. | public boolean | validateItem(PaymentRequestDocument paymentRequestDocument, PaymentRequestItem item, String identifierString) Performs validation if full document entry not completed and peforms varying item validation. | public boolean | validateItemAccounts(PaymentRequestDocument paymentRequestDocument, PaymentRequestItem item, String identifierString) Validates the totals for the item by account, that the total by each accounting line for the item, matches
the extended price on the item. | public boolean | validateItemWithoutAccounts(PaymentRequestItem item, String identifierString) | public boolean | validatePayDateNotOverThresholdDaysAway(PaymentRequestDocument document) This method side-effects a warning, and consequently should not be used in such a way as to cause validation to fail. | boolean | validatePayDateNotPast(PaymentRequestDocument document) Validates that the payment request date does not occur in the past. | protected boolean | validatePaymentRequestDates(PaymentRequestDocument document) Validates payment request dates. | protected boolean | validatePaymentRequestReview(PaymentRequestDocument paymentRequest) | public boolean | validateRouteFiscal(PurchasingAccountsPayableDocument purapDocument) | public boolean | validateTotals(PaymentRequestDocument document) Validates whether the total of the items' extended price, excluding the item types that can be negative, match with
the vendor invoice amount that the user entered at the beginning of the preq creation, and if they don't match, the app will
just print a warning to the page that the amounts don't match. | protected boolean | verifyAccountPercent(AccountingDocument accountingDocument, List<PurApAccountingLine> purAccounts, String itemLineNumber) Returns true if full document entry is completed and bypasses any further validation, otherwise proceeds as normal. |
encumberedItemExistsForInvoicing | public boolean encumberedItemExistsForInvoicing(PurchaseOrderDocument document)(Code) | | Determines if there are items with encumbrances to be invoiced on passed in
purchase order document.
Parameters: document - - purchase order document |
processInvoiceValidation | public boolean processInvoiceValidation(PaymentRequestDocument preqDocument)(Code) | | Performs any validation for the Invoice tab.
Parameters: preqDocument - - payment request document |
processItemValidation | public boolean processItemValidation(PurchasingAccountsPayableDocument purapDocument)(Code) | | Performs item validations for the rules that are only applicable to Payment Request Document. In EPIC, we are
also doing similar steps as in this method within the validateFormatter, which is called upon Save. Therefore now we're also
calling the same validations upon Save.
Parameters: purapDocument - - purchasing accounts payable document |
processPaymentRequestDateValidationForContinue | protected boolean processPaymentRequestDateValidationForContinue(PaymentRequestDocument document)(Code) | | Ensures invoice date does not occur in the future.
Parameters: document - |
processPurchaseOrderIDValidation | protected boolean processPurchaseOrderIDValidation(PaymentRequestDocument document)(Code) | | Performs various validation on the purchase order.
Parameters: document - |
processVendorValidation | public boolean processVendorValidation(PaymentRequestDocument preqDocument)(Code) | | Performs validation on the vendor on the payment request document.
Parameters: preqDocument - - payment request document. |
validateCancel | public boolean validateCancel(PurchasingAccountsPayableDocument purapDocument)(Code) | | Validates that a cancel can occur given the current state of the document.
Parameters: purapDocument - - purchasing accounts payable document |
validateItem | public boolean validateItem(PaymentRequestDocument paymentRequestDocument, PaymentRequestItem item, String identifierString)(Code) | | Performs validation if full document entry not completed and peforms varying item validation.
Such as, above the line, items without accounts, items with accounts.
Parameters: paymentRequestDocument - - payment request document Parameters: item - - payment request item Parameters: identifierString - - identifier string used to mark in an error map |
validateItemAccounts | public boolean validateItemAccounts(PaymentRequestDocument paymentRequestDocument, PaymentRequestItem item, String identifierString)(Code) | | Validates the totals for the item by account, that the total by each accounting line for the item, matches
the extended price on the item.
Parameters: paymentRequestDocument - - payment request document Parameters: item - - payment request item to validate Parameters: identifierString - - identifier string used to mark in an error map |
validateItemWithoutAccounts | public boolean validateItemWithoutAccounts(PaymentRequestItem item, String identifierString)(Code) | | Validates that the item must contain at least one account
Parameters: item - - payment request item |
validatePayDateNotOverThresholdDaysAway | public boolean validatePayDateNotOverThresholdDaysAway(PaymentRequestDocument document)(Code) | | This method side-effects a warning, and consequently should not be used in such a way as to cause validation to fail. Returns
a boolean for ease of testing. If the threshold days value is positive, the method will test future dates accurately. If the
the threshold days value is negative, the method will test past dates.
Parameters: document - The PaymentRequestDocument True if the PREQ's pay date is not over the threshold number of days away. |
validatePayDateNotPast | boolean validatePayDateNotPast(PaymentRequestDocument document)(Code) | | Validates that the payment request date does not occur in the past.
Parameters: document - - payment request document |
validatePaymentRequestDates | protected boolean validatePaymentRequestDates(PaymentRequestDocument document)(Code) | | Validates payment request dates.
Parameters: document - - payment request document |
validatePaymentRequestReview | protected boolean validatePaymentRequestReview(PaymentRequestDocument paymentRequest)(Code) | | Parameters: paymentRequest - - payment request document |
validateTotals | public boolean validateTotals(PaymentRequestDocument document)(Code) | | Validates whether the total of the items' extended price, excluding the item types that can be negative, match with
the vendor invoice amount that the user entered at the beginning of the preq creation, and if they don't match, the app will
just print a warning to the page that the amounts don't match.
Parameters: document - - payment request document |
Methods inherited from org.kuali.module.purap.rules.PurchasingAccountsPayableDocumentRuleBase | protected static List getCurrentRouteLevels(KualiWorkflowDocument workflowDocument)(Code)(Java Doc) public boolean isAmountValid(AccountingDocument document, AccountingLine accountingLine)(Code)(Java Doc) public boolean isDebit(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc) public boolean processAccountValidation(AccountingDocument accountingDocument, List<PurApAccountingLine> purAccounts, String itemLineNumber)(Code)(Java Doc) public boolean processAddItemBusinessRules(AccountingDocument financialDocument, PurApItem item)(Code)(Java Doc) protected boolean processCustomAddAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc) protected boolean processCustomApproveDocumentBusinessRules(ApproveDocumentEvent approveEvent)(Code)(Java Doc) protected boolean processCustomRouteDocumentBusinessRules(Document document)(Code)(Java Doc) public boolean processDeleteAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine, boolean lineWasAlreadyDeletedFromDocument)(Code)(Java Doc) public boolean processDocumentOverviewValidation(PurchasingAccountsPayableDocument purapDocument)(Code)(Java Doc) public boolean processItemValidation(PurchasingAccountsPayableDocument purapDocument)(Code)(Java Doc) public boolean processValidation(PurchasingAccountsPayableDocument purapDocument)(Code)(Java Doc) public boolean processVendorValidation(PurchasingAccountsPayableDocument purapDocument)(Code)(Java Doc) public boolean requiresAccountValidationOnAllEnteredItems(PurchasingAccountsPayableDocument document)(Code)(Java Doc) protected boolean validateBelowTheLineValues(String documentType, PurApItem item)(Code)(Java Doc) protected boolean verifyAccountPercent(AccountingDocument accountingDocument, List<PurApAccountingLine> purAccounts, String itemLineNumber)(Code)(Java Doc) protected boolean verifyAccountingStringsBetween0And100Percent(PurApAccountingLine account, String errorPropertyName, String itemIdentifier)(Code)(Java Doc) protected boolean verifyHasAccounts(List<PurApAccountingLine> purAccounts, String itemLineNumber)(Code)(Java Doc) protected boolean verifyUniqueAccountingStrings(List<PurApAccountingLine> purAccounts, String errorPropertyName, String itemLineNumber)(Code)(Java Doc)
|
Fields inherited from org.kuali.module.purap.rules.PurapAccountingDocumentRuleBase | protected static org.apache.log4j.Logger LOG(Code)(Java Doc)
|
Methods inherited from org.kuali.module.purap.rules.PurapAccountingDocumentRuleBase | protected boolean accountIsAccessible(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc) protected void buildTotalChangeErrorMessage(String propertyName, KualiDecimal persistedSourceLineTotal, KualiDecimal currentSourceLineTotal)(Code)(Java Doc) protected boolean checkAccountingLineAccountAccessibility(AccountingDocument financialDocument, AccountingLine accountingLine, AccountingLineAction action)(Code)(Java Doc) protected void customizeExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry)(Code)(Java Doc) protected boolean customizeOffsetGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry)(Code)(Java Doc) protected Class getAccountingLineDocumentClass(AccountingDocument financialDocument)(Code)(Java Doc) protected KualiDecimal getGeneralLedgerPendingEntryAmountForAccountingLine(AccountingLine accountingLine)(Code)(Java Doc) protected ParameterService getParameterService()(Code)(Java Doc) final protected void handleNonExistentDocumentWhenApproving(AccountingDocument accountingDocument)(Code)(Java Doc) protected boolean hasAccessibleAccountingLines(AccountingDocument financialDocument, int min)(Code)(Java Doc) protected boolean isAccountingLineTotalsUnchanged(AccountingDocument accountingDocument)(Code)(Java Doc) protected boolean isAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)(Code)(Java Doc) public boolean isAmountValid(AccountingDocument document, AccountingLine accountingLine)(Code)(Java Doc) final public boolean isAsset(AccountingLine accountingLine)(Code)(Java Doc) final public boolean isAssetTypeCode(String objectTypeCode)(Code)(Java Doc) final public boolean isBudgetOnlyCodesSubType(String objectCode)(Code)(Java Doc) final public boolean isCashSubType(String objectCode)(Code)(Java Doc) final public boolean isCostRecoveryExpenseSubType(String objectCode)(Code)(Java Doc) public boolean isCredit(AccountingLine accountingLine, AccountingDocument financialDocument) throws IllegalStateException(Code)(Java Doc) protected boolean isDocumentBalanceValid(AccountingDocument accountingDocument)(Code)(Java Doc) protected boolean isDocumentBalanceValidConsideringDebitsAndCredits(AccountingDocument accountingDocument)(Code)(Java Doc) protected boolean isErrorCorrection(AccountingDocument accountingDocument)(Code)(Java Doc) public boolean isExpense(AccountingLine accountingLine)(Code)(Java Doc) final public boolean isExpenseOrAsset(AccountingLine line)(Code)(Java Doc) final public boolean isFringeBenefitsSubType(String objectCode)(Code)(Java Doc) final public boolean isFundBalanceCode(String objectCode)(Code)(Java Doc) final public boolean isFundBalanceSubType(String objectCode)(Code)(Java Doc) public boolean isFundGroupAllowed(Class documentClass, AccountingLine accountingLine)(Code)(Java Doc) protected boolean isFundGroupSetBalanceValid(AccountingDocument tranDoc, Class componentClass, String parameterName)(Code)(Java Doc) final public boolean isHourlyWagesSubType(String objectCode)(Code)(Java Doc) final public boolean isIncome(AccountingLine accountingLine)(Code)(Java Doc) final public boolean isIncomeOrLiability(AccountingLine line)(Code)(Java Doc) final public boolean isLiability(AccountingLine accountingLine)(Code)(Java Doc) final public boolean isLiabilityTypeCode(String objectTypeCode)(Code)(Java Doc) final public boolean isMandatoryTransfersSubType(String objectSubTypeCode)(Code)(Java Doc) final public boolean isNonMandatoryTransfersSubType(String objectSubTypeCode)(Code)(Java Doc) public boolean isObjectCodeAllowed(Class documentClass, AccountingLine accountingLine)(Code)(Java Doc) public boolean isObjectConsolidationAllowed(Class documentClass, AccountingLine accountingLine)(Code)(Java Doc) public boolean isObjectLevelAllowed(Class documentClass, AccountingLine accountingLine)(Code)(Java Doc) public boolean isObjectSubTypeAllowed(Class documentClass, AccountingLine accountingLine)(Code)(Java Doc) public boolean isObjectTypeAllowed(Class documentClass, AccountingLine accountingLine)(Code)(Java Doc) protected boolean isOptionalOneSidedDocumentAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)(Code)(Java Doc) final public boolean isRevenue(AccountingLine line)(Code)(Java Doc) final public boolean isSalariesSubType(String objectCode)(Code)(Java Doc) protected boolean isSourceAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)(Code)(Java Doc) public boolean isSubFundGroupAllowed(Class documentClass, AccountingLine accountingLine)(Code)(Java Doc) protected boolean isTargetAccountingLinesRequiredNumberForRoutingMet(AccountingDocument accountingDocument)(Code)(Java Doc) final public boolean isValuationsAndAdjustmentsSubType(String objectSubTypeCode)(Code)(Java Doc) protected void populateExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, GeneralLedgerPendingEntry explicitEntry)(Code)(Java Doc) public boolean processAddAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc) protected boolean processCustomAddAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc) protected boolean processCustomApproveDocumentBusinessRules(ApproveDocumentEvent approveEvent)(Code)(Java Doc) protected boolean processCustomDeleteAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine, boolean lineWasAlreadyDeletedFromDocument)(Code)(Java Doc) protected boolean processCustomReviewAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc) protected boolean processCustomRouteDocumentBusinessRules(Document document)(Code)(Java Doc) protected boolean processCustomUpdateAccountingLineBusinessRules(AccountingDocument accountingDocument, AccountingLine originalAccountingLine, AccountingLine updatedAccountingLine)(Code)(Java Doc) public boolean processDeleteAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine, boolean lineWasAlreadyDeletedFromDocument)(Code)(Java Doc) protected boolean processExplicitGeneralLedgerPendingEntry(AccountingDocument accountingDocument, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry)(Code)(Java Doc) public boolean processGenerateGeneralLedgerPendingEntries(AccountingDocument accountingDocument, AccountingLine accountingLine, GeneralLedgerPendingEntrySequenceHelper sequenceHelper)(Code)(Java Doc) protected boolean processOffsetGeneralLedgerPendingEntry(AccountingDocument accountingDocument, GeneralLedgerPendingEntrySequenceHelper sequenceHelper, AccountingLine accountingLine, GeneralLedgerPendingEntry explicitEntry, GeneralLedgerPendingEntry offsetEntry)(Code)(Java Doc) public boolean processReviewAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc) public boolean processUpdateAccountingLineBusinessRules(AccountingDocument financialDocument, AccountingLine accountingLine, AccountingLine updatedAccountingLine)(Code)(Java Doc) public static void putRequiredPropertyError(BusinessObjectEntry boe, String propertyName)(Code)(Java Doc) protected void reportError(String propertyName, String errorKey, String... errorParams)(Code)(Java Doc) protected AccountingDocument retrievePersistedDocument(AccountingDocument accountingDocument)(Code)(Java Doc)
|
|
|