T-Restricted Account Numbers_

JIRA : OLE-2356
Intent
"Account Restricted Status Code" of "R-Restricted" or "T-Temporarily Restricted" prohibit use of Account in PURAP documents, REQS, PO, POA, PREQ and other PO docs, with error messages. "R- Restricted" does not have an expiration date (no date expiration, account blocked from use).For "T- Temporarily Restricted", we need to add system functions and notifications as an Action List item to the Fiscal Officer on the account at the time of "Account Restricted Status Date" to notify the Fiscal Officer to extend the "Account Restricted Status Date" or "Approve" removing the Restricted status and date, and return the status to "U –Unrestricted". All changes above should be captured in the Route Log and Notes tabs as audit trail for these changes.




References:

https://jira.kuali.org/browse/OLE-2356

Participants
AccountRule

  • Extends IndirectCostRecoveryAccountsRule.

CheckAccountRestrictedStatusDateIsGreaterThanCurrentDate ()

  • returns Boolean.
  • Validates the AccountRestrictedStatusDate which should be greater than the currentDate if AccountRestrictedStatusCode is 'T' which is Temporary-Restricted, if not it just displays the error message.



HasTemporaryRestrictedStatusCodeButRestrictedStatusDateisGreaterThanCurrentDate ()

  • returns Boolean.
  • This method called by testCase AccountRuleTest.
  • Validates the passed AccountRestrictedStatusDate is greater than the currentDate or not when AccountRestrictedStatusCode is 'T' which is Temporary-Restricted.


AccountTemporaryRestrictedStep

  • Extends AbstractStep.

Execute()

  • Returns Boolean.
  • This method gets all the Temporary Restricted Accounts details and checks the status date with current date, if status date is same as the current date it will notify Fiscal Officer to approve the account by making status code as Un-Restricted or extend the status date.


Spring-select

  • Define a bean id for AccountTemporaryRestrictedNotify.

Example:
<bean id="accountTemporaryRestrictedNotify" class="org.kuali.ole.select.batch.AccountTemporaryRestrictedNotify" parent="step">
</bean>

  • Assign job to schedule descriptor for the step.



Example:
<property name="jobNames">
<list>
<value>accountTemporaryRestrictedNotifyJob</value>
</list>
</property>
<bean id="accountTemporaryRestrictedNotifyJob"
parent="scheduledJobDescriptor">
<property name="steps">
<list>
<ref bean="accountTemporaryRestrictedNotify"/>
</list>
</property>
</bean>

Tests
AccountRuleTest

  • Extends ChartRuleTestBase.

TestHasTemporaryRestrictedStatusCodeButRestrictedStatusDateisGreaterThanCurrentDate ()

  • Tests whether AccountRestrictedStatusDate is greater than the CurrentDate.



Operated as a Community Resource by the Open Library Foundation